/* Importa il font Inter da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');

:root {
    --solshard-primary: #ff4500;
    --solshard-secondary: #ff6b35;
    --solshard-accent: #ffa500;
    --solshard-gold: #ffd700;
    --solshard-red: #ff2500;
    --solshard-dark: #0a0a0a;
    --solshard-gray: #1a1a1a;
    --solshard-border: #333333;
    --solshard-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--solshard-dark);
    color: var(--solshard-light);
    line-height: 1.6;
    overflow-x: hidden; /* Previene lo scroll orizzontale */
}

/* Animazione cristalli di sfondo */
.crystal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.crystal {
    position: absolute;
    background: linear-gradient(45deg, var(--solshard-primary), var(--solshard-accent));
    opacity: 0.3;
    border-radius: 5px;
    animation: float-crystal linear infinite;
}

@keyframes float-crystal {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(calc(var(--x) * 0.25), calc(var(--y) * 0.25)) rotate(calc(var(--rot) * 0.25)) scale(calc(1 + var(--scale) * 0.25));
        opacity: 0.4;
    }
    50% {
        transform: translate(calc(var(--x) * 0.5), calc(var(--y) * 0.5)) rotate(calc(var(--rot) * 0.5)) scale(calc(1 + var(--scale) * 0.5));
        opacity: 0.3;
    }
    75% {
        transform: translate(calc(var(--x) * 0.75), calc(var(--y) * 0.75)) rotate(calc(var(--rot) * 0.75)) scale(calc(1 + var(--scale) * 0.75));
        opacity: 0.2;
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(calc(1 + var(--scale)));
        opacity: 0.1;
    }
}

/* Header e Navigazione */
header {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.5); /* Semi-trasparente allo scroll */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--solshard-gold);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--solshard-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--solshard-primary);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--solshard-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    padding-top: 80px; /* Spazio per l'header fisso */
}

section {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

section:nth-of-type(even) {
    background-color: var(--solshard-gray);
}

h1 {
    font-size: 4rem;
    color: var(--solshard-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

h2 {
    font-size: 2.8rem;
    color: var(--solshard-accent);
    margin-bottom: 2rem;
}

h3 {
    font-size: 2rem;
    color: var(--solshard-gold);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    color: var(--solshard-primary);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--solshard-light);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background-color: var(--solshard-primary);
    color: var(--solshard-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--solshard-secondary);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(255, 69, 0, 0.1) 0%, rgba(10, 10, 10, 0) 70%);
}

.hero-section h1 {
    font-size: 5rem;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--solshard-gold);
}

/* Card Containers */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--solshard-gray);
    border: 1px solid var(--solshard-border);
    border-radius: 10px;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

.detail-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.detail-card {
    background-color: var(--solshard-dark);
    border: 1px solid var(--solshard-border);
    border-radius: 10px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

.detail-card img {
    height: 60px;
    margin-bottom: 1rem;
}

/* Countdown Section */
#timer {
    font-size: 3rem;
    font-weight: 700;
    color: var(--solshard-gold);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#timer span {
    background-color: var(--solshard-gray);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

#email-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

#email-form input[type="email"] {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--solshard-border);
    border-radius: 5px;
    background-color: var(--solshard-dark);
    color: var(--solshard-light);
    font-size: 1rem;
    width: 300px;
}

#email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--solshard-primary);
}

#email-form button {
    padding: 0.8rem 1.5rem;
    background-color: var(--solshard-gold);
    color: var(--solshard-dark);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#email-form button:hover {
    background-color: var(--solshard-accent);
}

#form-message {
    margin-top: 1rem;
    color: var(--solshard-gold);
    font-weight: 700;
}

/* Roadmap Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--solshard-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.roadmap-item {
    padding: 1rem 2rem;
    position: relative;
    background-color: var(--solshard-gray);
    border-radius: 10px;
    margin-bottom: 2rem;
    width: 45%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.roadmap-item:nth-child(odd) {
    left: 0;
    transform: translateX(-55%);
}

.roadmap-item:nth-child(even) {
    left: 50%;
    transform: translateX(5%);
}

.roadmap-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--solshard-gold);
    border-radius: 50%;
    top: 1.5rem;
    z-index: 1;
}

.roadmap-item:nth-child(odd)::after {
    right: -30px;
}

.roadmap-item:nth-child(even)::after {
    left: -30px;
}

.roadmap-item h3 {
    color: var(--solshard-gold);
    margin-bottom: 0.5rem;
}

.roadmap-item p {
    color: var(--solshard-light);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--solshard-dark);
    color: var(--solshard-light);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--solshard-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-content .logo span {
    font-size: 1.5rem;
}

.social-links a,
.footer-nav-links a,
.legal-links a {
    color: var(--solshard-light);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover,
.footer-nav-links a:hover,
.legal-links a:hover {
    color: var(--solshard-primary);
}

.footer-nav-links,
.legal-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-links li,
.legal-links li {
    margin: 0.5rem 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--solshard-border);
    margin-top: 1rem;
}

/* Animazioni di entrata (Intersection Observer) */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries per la Responsività */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 80px;
        height: 92vh;
        background-color: var(--solshard-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }

    .nav-links li {
        opacity: 0;
        margin: 1.5rem 0;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links.nav-active li {
        opacity: 1;
        transition: opacity 0.5s ease-in forwards;
    }

    .burger {
        display: block;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    #timer {
        font-size: 2rem;
        flex-wrap: wrap;
    }

    #email-form {
        flex-direction: column;
        align-items: center;
    }

    .roadmap-item {
        width: 90%;
        transform: translateX(0%) !important;
        left: 50%;
        margin-left: -45%;
    }

    .roadmap-item:nth-child(odd)::after,
    .roadmap-item:nth-child(even)::after {
        left: -30px;
    }

    .timeline::before {
        left: 5%;
        margin-left: 0;
    }

    .roadmap-item:nth-child(odd) {
        left: 5%;
        transform: translateX(0%);
    }

    .roadmap-item:nth-child(even) {
        left: 5%;
        transform: translateX(0%);
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-nav-links,
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 1rem;
    }

    .logo span {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    #timer {
        font-size: 1.5rem;
    }

    #email-form input[type="email"] {
        width: 90%;
    }
}



/* Stili per gli icon placeholder */
.icon-placeholder {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Stili per i numeri dei passaggi */
.step-number {
    background-color: var(--solshard-primary);
    color: var(--solshard-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

/* Miglioramenti per le card */
.card p {
    font-size: 1rem;
    color: var(--solshard-light);
    margin-bottom: 0;
}

/* Miglioramenti per la roadmap */
.roadmap-item h4 {
    color: var(--solshard-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Stili per i link CTA */
.cta-button {
    display: inline-block;
    text-decoration: none;
}

/* Animazione per i cristalli migliorata */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Miglioramenti per la responsività delle card */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 90%;
        max-width: 400px;
    }
    
    .detail-card-container {
        grid-template-columns: 1fr;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}



/* Ottimizzazioni aggiuntive per mobile */
@media (max-width: 768px) {
    /* Header ottimizzato per mobile */
    header {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    /* Hero section ottimizzata per mobile */
    .hero-section {
        padding: 2rem 1rem;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Sezioni ottimizzate per mobile */
    section {
        padding: 3rem 1rem;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    section p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Card container per mobile */
    .card-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .card {
        width: 100%;
        max-width: none;
        padding: 1.5rem;
    }
    
    /* Detail card container per mobile */
    .detail-card-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Countdown ottimizzato per mobile */
    .countdown-container {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }
    
    .countdown-item .number {
        font-size: 1.5rem;
    }
    
    .countdown-item .label {
        font-size: 0.8rem;
    }
    
    /* Form ottimizzato per mobile */
    .email-form {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }
    
    .email-form input {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .email-form button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Timeline ottimizzata per mobile */
    .timeline {
        padding-left: 1rem;
    }
    
    .roadmap-item {
        padding-left: 2rem;
        margin-bottom: 2rem;
    }
    
    .roadmap-item::before {
        left: -0.5rem;
        width: 12px;
        height: 12px;
    }
    
    .roadmap-item h3 {
        font-size: 1.2rem;
    }
    
    .roadmap-item h4 {
        font-size: 1rem;
    }
    
    /* Footer ottimizzato per mobile */
    footer {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Blog ottimizzato per mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
    
    .blog-card img {
        height: 200px;
    }
    
    /* Miglioramenti per touch */
    button, .cta-button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Testo più leggibile su mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Spaziatura migliorata per mobile */
    .crystal {
        display: none; /* Nasconde alcuni cristalli su mobile per performance */
    }
    
    .crystal:nth-child(-n+5) {
        display: block; /* Mostra solo i primi 5 cristalli su mobile */
    }
}

/* Ottimizzazioni per schermi molto piccoli */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.8rem 0.3rem;
    }
    
    .countdown-item .number {
        font-size: 1.2rem;
    }
    
    .countdown-item .label {
        font-size: 0.7rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .roadmap-item {
        padding-left: 1.5rem;
    }
}

/* Miglioramenti per l'accessibilità mobile */
@media (max-width: 768px) {
    /* Focus states più visibili su mobile */
    button:focus, .cta-button:focus, a:focus {
        outline: 3px solid var(--solshard-primary);
        outline-offset: 2px;
    }
    
    /* Hover states per touch devices */
    @media (hover: none) {
        .card:hover, .blog-card:hover {
            transform: none;
        }
        
        button:hover, .cta-button:hover {
            transform: none;
        }
    }
}


/* Stili per il widget di scambio */
.swap-widget-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    border: 1px solid var(--solshard-primary);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

.swap-widget-container iframe {
    border-radius: 10px;
}

/* Stili per il disclaimer */
.disclaimer {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    line-height: 1.4;
}

/* Ottimizzazioni mobile per il widget */
@media (max-width: 768px) {
    .swap-widget-container {
        max-width: 100%;
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .disclaimer {
        font-size: 0.7rem;
        padding: 0.8rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .swap-widget-container {
        padding: 0.5rem;
        margin: 0 0.5rem;
    }
    
    .disclaimer {
        font-size: 0.65rem;
        padding: 0.6rem;
    }
}



.swap-widget-container iframe {
    display: block;
    height: 100%;
    min-height: 356px; /* Assicura un'altezza minima */
}


