/* --- style.css (LOGO UPDATE + UX MOBILE) --- */
:root {
    --primary: #00ffa3;
    --primary-dark: #00cc82;
    --bg-dark: #050a08;
    --text-grey: #b0b0b0;
    --glass: rgba(20, 30, 25, 0.7);
    --border: rgba(0, 255, 163, 0.15);
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

a { text-decoration: none; color: white; transition: 0.3s; }
a:hover { color: var(--primary); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* SFONDO */
.glow-bg {
    position: fixed; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0,255,163,0.08) 0%, rgba(0,0,0,0) 70%);
    top: -300px; left: 50%; transform: translateX(-50%);
    z-index: -1; pointer-events: none;
}

/* --- HEADER & NAV --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 200;
}

/* STILE LOGO AGGIORNATO */
.logo { 
    font-weight: 900; 
    font-size: 1.5rem; 
    letter-spacing: -1px; 
    display: flex; 
    align-items: center; 
    z-index: 201; 
    text-decoration: none;
}

/* Modifica questo blocco nel tuo style.css */
.logo-img {
    height: 50px !important;    /* Forza l'altezza */
    width: auto !important;     /* Mantiene le proporzioni */
    max-width: 50px !important; /* Impedisce che diventi più largo */
    margin-right: 12px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 163, 0.3);
    object-fit: cover;          /* Assicura che l'immagine non si deformi */
}

.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 30px; font-size: 1rem; font-weight: 500; align-items: center; }
.menu-toggle { display: none; font-size: 1.5rem; color: white; cursor: pointer; z-index: 201; padding: 10px; }

/* BUTTONS */
.btn {
    background: var(--primary); color: #000;
    border: none; padding: 10px 24px;
    font-weight: 800; border-radius: 50px;
    cursor: pointer; transition: all 0.3s;
    text-transform: uppercase; letter-spacing: 0.5px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.btn:hover { box-shadow: 0 0 25px rgba(0,255,163,0.4); transform: translateY(-2px); }
.btn:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(0,255,163,0.1); }

/* FOOTER */
footer {
    border-top: 1px solid #222; padding: 40px 0; margin-top: 60px;
    color: #666; font-size: 0.9rem; text-align: center;
}

/* COMPONENTI COMUNI */
.section-title { font-size: 2rem; margin-bottom: 30px; text-align: center; }

section p { text-align: justify; hyphens: auto; }

.content-box {
    background: rgba(255,255,255,0.03); border-radius: 20px;
    padding: 30px; margin-bottom: 60px; text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
}
.content-box h3 { color: var(--primary); margin-top: 30px; font-size: 1.2rem; }
.content-box h3 i { margin-right: 8px; }
.content-box p { color: #ccc; margin-bottom: 15px; font-size: 1rem; text-align: justify; hyphens: auto; }
.content-box ul { list-style: none; padding-left: 0; }
.content-box li { margin-bottom: 10px; color: #bbb; font-size: 1rem; text-align: left; }

/* MODAL */
#video-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 1000;
    flex-direction: column; justify-content: center; align-items: center;
}

/* --- BOX REFERRAL (STILE GLOBALE) --- */
.ref-box-container {
    background: rgba(0,0,0,0.3); 
    padding: 15px; 
    border-radius: 8px; 
    margin-top: 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; 
}

code#ref-link {
    color: var(--primary); 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 0.95rem;
    font-weight: bold;
    word-break: break-all; 
    white-space: normal;
    flex: 1; 
}

/* =========================================
   --- MOBILE RESPONSIVE (MAX 768px) --- 
   ========================================= */
@media (max-width: 768px) {
    /* 1. Gestione Navigazione Full Screen */
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(5, 10, 8, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 200;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-links a { font-size: 1.8rem; font-weight: 700; color: white; }
    .nav-links a:hover { color: var(--primary); }
    .nav-links #connect-btn { display: none; } 
    .nav-links #connect-btn { display: block; font-size: 1.2rem; padding: 15px 40px; margin-top: 20px; }

    /* 2. Adattamento Testi e Layout */
    .container { padding: 0 15px; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2.2rem !important; line-height: 1.2; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    
    .stats-grid, .roadmap-grid, .comparison-grid, .steps-grid { grid-template-columns: 1fr !important; }
    section p, .content-box p { text-align: left; } 

    /* 3. FIX CENTRATURA BOTTONE MINING */
    #mine-btn {
        display: flex !important;           
        justify-content: center !important; 
        align-items: center !important;     
        width: 100% !important;             
        max-width: 300px;                   
        margin: 0 auto !important;          
        padding: 15px 10px !important;      
        font-size: 1rem !important;         
        white-space: normal !important;     
        line-height: 1.2 !important;
    }
}

/* =========================================
   --- MOBILE PICCOLI (MAX 600px) --- 
   ========================================= */
@media (max-width: 600px) {
    .ref-box-container {
        flex-direction: column;
        text-align: center;
    }
    
    .ref-box-container button {
        width: 100%;
        margin-top: 5px;
    }
    
    code#ref-link {
        font-size: 0.85rem;
    }
}