/* in public/css/lista.css */

:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --background-color: #ffffff;
    --light-gray-bg: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #212529;
    --light-text-color: #6c757d;
    --dark-section-bg: #1a253c;
    --white-color: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-y: scroll;
}

/* Nasconde la scrollbar ma mantiene lo scroll funzionante */
body::-webkit-scrollbar {
    display: none;
}

/* --- Header & Hero --- */
.main-header {
    background-color: var(--card-background);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-container img { width: 40px; }
.logo-container h1 { font-size: 1.2rem; margin: 0; font-weight: 600; }

.hero-section {
    background: var(--dark-section-bg);
    color: var(--white-color);
    text-align: center;
    padding: 8rem 5%;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-title span {
    background: linear-gradient(90deg, var(--secondary-color), #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content .subtitle { font-size: 1.2rem; max-width: 800px; margin: 0 auto; opacity: 0.8; }

/* --- Sezioni Generali --- */
.content-section {
    margin: 0 auto;
    padding: 5rem 5%;
    box-sizing: border-box;
}
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
.section-subtitle { text-align: center; max-width: 800px; margin: 0 auto 3rem auto; color: var(--light-text-color); }
.dark-section { background-color: var(--dark-section-bg); color: var(--white-color); }
.dark-section .section-subtitle, .dark-section .faq-answer p { color: rgba(255, 255, 255, 0.8); }

/* in public/css/lista.css */

/* --- *** SEZIONE CANDIDATI (STILE CON IMMAGINI SINGOLE) *** --- */
.candidates-grid .candidate-card:nth-child(n+4) {
    grid-column: span 1;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.candidate-card {
    grid-column: span 2;
}

.candidates-grid .candidate-card:nth-child(4) {
    grid-column: 2 / 4;
}

.candidates-grid .candidate-card:nth-child(5) {
    grid-column: 4 / 6;
}

.candidate-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Utile per l'allineamento interno */
    flex-direction: column;
}

.candidate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.candidate-card img {
    width: 100%;
    height: 320px; /* Altezza fissa per l'immagine */
    object-fit: cover;
    object-position: center top; /* Mette a fuoco il volto */
}

.candidate-card-content {
    padding: 1.5rem 2rem 2rem 2rem;
    flex-grow: 1; /* Permette al contenuto di espandersi se necessario */
    display: flex;
    flex-direction: column;
}

.candidate-card-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
}

.candidate-card-content h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-weight: 500;
    font-size: 1rem;
}

.candidate-card-content p {
    margin: 0;
    color: var(--light-text-color);
    flex-grow: 1; /* Assicura che il paragrafo occupi lo spazio disponibile */
}

/* --- SEZIONE "I NOSTRI VALORI" --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0 auto;
}
.value-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: background-color 0.3s;
}
.value-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.value-icon { font-size: 3rem; margin-bottom: 1rem; }
.value-card h3 { margin-bottom: 1rem; font-size: 1.5rem; color: var(--white-color); }
.value-card p { margin: 0; color: rgba(255, 255, 255, 0.8); }

/* --- SEZIONE "COME VOTARE" --- */
.voting-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.step-card {
    background: var(--light-gray-bg);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    padding-left: 4.5rem;
    border: 1px solid #e9ecef;
}
.step-number {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    background: var(--primary-color);
    color: var(--white-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}
.step-card h4 { margin: 0 0 0.5rem 0; font-size: 1.2rem; }
.step-card p { margin: 0; color: var(--light-text-color); }


/* --- SEZIONE FAQ --- */
.faq-container {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    background: var(--dark-section-bg);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-accordion { width: 100%; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%; background: none; border: none; text-align: left;
    padding: 1.5rem 0; font-size: 1.1rem; font-weight: 500; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; color: var(--white-color);
}
.faq-icon {
    font-size: 1.5rem; font-weight: 400; transition: transform 0.3s ease;
    color: var(--secondary-color);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p { margin: 0; padding: 0 0 1.5rem 0; }
.faq-item.active .faq-answer { padding-bottom: 1.5rem; }

/* --- Sezione Form & CTA & Footer (invariati) --- */
.form-section { background: var(--light-gray-bg); padding: 5rem 5%; }
.form-container { max-width: 800px; margin: 0 auto; }
.form-container .section-title { margin-bottom: 1rem; }
.proposal-form { background: var(--card-background); padding: 2.5rem; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; font-family: 'Poppins', sans-serif; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
/* Controllo specifico per il ridimensionamento del textarea */
.form-group textarea {
    resize: vertical; /* Permette solo ridimensionamento verticale */
    min-height: 150px; /* Altezza minima */
    max-height: 500px; /* Altezza massima */
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2); }
.cta-button { width: 100%; padding: 15px; font-size: 1.1rem; font-weight: 500; background-color: var(--primary-color); color: white; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
.cta-button:hover { background-color: #004a99; }
.cta-button:disabled { background-color: var(--light-text-color); cursor: not-allowed; }
#form-status-message { text-align: center; margin-top: 1rem; font-weight: 500; min-height: 1.2em; }
#form-status-message.success { color: var(--success-color); }
#form-status-message.error { color: var(--danger-color); }

.cta-final-section { background: var(--dark-section-bg); color: var(--white-color); text-align: center; padding: 6rem 5%; }
.cta-final-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-final-content p { max-width: 600px; margin: 0 auto 2rem auto; opacity: 0.8; }
.instagram-button { display: inline-block; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: transform 0.3s ease; }
.instagram-button:hover { transform: scale(1.05); }

.main-footer { text-align: center; padding: 2rem 5%; color: var(--light-text-color); font-size: 0.9rem; background-color: var(--light-gray-bg); }

/* --- Animazioni --- */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.candidates-text-grid .animate-on-scroll:nth-child(2),
.values-grid .animate-on-scroll:nth-child(2),
.voting-steps-container .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.values-grid .animate-on-scroll:nth-child(3),
.voting-steps-container .animate-on-scroll:nth-child(3) { transition-delay: 0.4s; }

/* --- Media Queries --- */
@media (max-width: 900px) {
    .alternating-container, .alternating-container.reverse { flex-direction: column; }
    
    /* Su tablet, 2 colonne */
    .candidates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Resetta le regole del desktop */
    .candidate-card,
    .candidates-grid .candidate-card:nth-child(4),
    .candidates-grid .candidate-card:nth-child(5) {
        grid-column: span 1;
    }
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .main-header { 
        padding: 0.75rem 1rem; 
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .logo-container { 
        gap: 8px; 
    }
    .logo-container img { 
        width: 30px; 
    }
    .logo-container h1 { 
        font-size: 0.9rem; 
    }
    .header-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .candidates-text-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 1.5rem; }
    
    /* Su mobile, 1 colonna */
    .candidates-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Resetta tutte le regole specifiche del desktop */
    .candidate-card,
    .candidates-grid .candidate-card:nth-child(4),
    .candidates-grid .candidate-card:nth-child(5) {
        grid-column: auto;
    }
    
    .step-card { padding-left: 1.5rem; padding-top: 4rem; text-align: center; }
    .step-number { left: 50%; transform: translateX(-50%); top: -1.25rem; }

    /* --- *** GRAFICA TIMELINE PER MOBILE (DEFINITIVA) *** --- */
    .timeline-container {
        padding: 0;
        max-width: 100%;
    }

    /* Nasconde la linea e i pallini */
    .timeline-container::before,
    .timeline-item::after {
        display: none;
    }

    /* Ogni evento è una card a larghezza piena */
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding: 0;
        margin-bottom: 1.5rem;
        text-align: left; /* Forza tutto a sinistra */
    }
    
    .timeline-date {
        /* Stile per la data (invariato dal desktop, ma ora allineato a sinistra) */
        margin-bottom: 0.5rem;
    }

    .timeline-content {
        /* Lo sfondo si sposta qui per contenere tutto */
        background: var(--light-gray-bg);
        border: 1px solid #e9ecef;
        border-radius: 12px;
        padding: 1.5rem;
    }
}

/* ** NUOVA REGOLA PER IL LAYOUT A DUE COLONNE ** */
.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-row .form-group {
    flex: 1; /* Fa in modo che ogni campo occupi metà dello spazio */
    margin-bottom: 0;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; }

/* ** REGOLA MODIFICATA PER INCLUDERE IL <select> ** */
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Aggiungi lo stato :focus anche per il select */
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

/* Rendi il testo del placeholder del select più leggero */
.form-group select:invalid {
    color: var(--light-text-color);
}

/* --- *** NUOVI STILI PER SEZIONE PROGRAMMA A TAB *** --- */
.tabs-container {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tabs-container input[type="radio"] {
    display: none; /* Nasconde i radio button */
}

.tab-button {
    display: inline-block;
    padding: 12px 20px;
    margin-right: 10px;
    margin-bottom: 10px;  /* NUOVA RIGA AGGIUNTA */
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tabs-container input[type="radio"]:checked + .tab-button {
    background: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.tab-content {
    display: none;
    padding: 2rem 1rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
    text-align: left;
}

.tab-content h3 { 
    margin-top: 0; 
    color: var(--secondary-color); 
    text-align: center;  /* CENTRATO */
}

.tab-content p {
    text-align: center;  /* CENTRATO */
    max-width: 700px;  /* LARGHEZZA MASSIMA */
    margin-left: auto;  /* CENTRATURA AUTOMATICA */
    margin-right: auto;  /* CENTRATURA AUTOMATICA */
}

.tab-content ul { 
    padding-left: 20px; 
    max-width: 700px;  /* LARGHEZZA MASSIMA */
    margin-left: auto;  /* CENTRATURA AUTOMATICA */
    margin-right: auto;  /* CENTRATURA AUTOMATICA */
}

.tab-content li { 
    margin-bottom: 0.5rem; 
    text-align: left;  /* LISTE ALLINEATE A SINISTRA PER LEGGIBILITÀ */
}

/* Mostra il contenuto corrispondente al tab selezionato */
#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3 {
    display: block;
}

/* --- STILI PER IL NUOVO STAFF SHOWCASE (v4 - Carosello Mobile) --- */
.staff-showcase-container {
    background: linear-gradient(145deg, #f9fafb, #eef2f7);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid white;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}
.staff-display-content {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Nasconde il testo che esce durante l'animazione */
}
.staff-role-description {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    width: 100%;
}
.staff-role-description.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}
.staff-role-description .role-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.staff-role-description h3 { margin: 0 0 1rem 0; font-size: 2rem; font-weight: 700; color: var(--primary-color); }
.staff-role-description p { font-size: 1.1rem; line-height: 1.8; color: #333; max-width: 650px; margin: 0 auto; }

/* --- Navigazione Desktop (default) --- */
.staff-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}
.staff-dots-wrapper { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.staff-nav-arrow { display: none; } /* Le frecce sono nascoste su desktop */

.staff-nav-dot {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    height: 50px;
    width: 50px;
    flex-shrink: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.staff-nav-dot .nav-icon {
    font-size: 1.5rem;
    min-width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}
.staff-nav-dot .nav-text {
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    color: white;
    padding-right: 1.25rem;
}
.staff-nav-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: auto;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}
.staff-nav-dot.active .nav-icon { color: white; }
.staff-nav-dot.active .nav-text { opacity: 1; transform: translateX(0); }

/* --- Stili Carosello per Mobile --- */
@media (max-width: 768px) {
    .staff-showcase-container { padding: 1.5rem; min-height: auto; }
    .staff-role-description h3 { font-size: 1.5rem; }
    .staff-role-description p { font-size: 1rem; }

    /* Rendi visibili le frecce e nascondi i pallini non attivi */
    .staff-nav-arrow {
        display: block;
        background: #e9ecef;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        transition: background-color 0.2s, transform 0.2s;
    }
    .staff-nav-arrow:hover { background-color: #dee2e6; transform: scale(1.1); }
    .staff-nav-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

    .staff-dots-viewport {
        width: 50px; /* Larghezza di un singolo pallino */
        height: 50px;
        overflow: hidden;
        position: relative;
    }

    .staff-dots-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        gap: 0; /* Nessun gap, la spaziatura è data dal transform */
        flex-wrap: nowrap; /* Impedisce di andare a capo */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* **ANIMAZIONE FLUIDA** */
    }

    .staff-nav-dot {
        width: 50px; /* Tutti i pallini hanno la stessa dimensione fissa */
        height: 50px;
        transition: background-color 0.3s ease, border-color 0.3s ease; /* Transizione più semplice */
    }
    
    .staff-nav-dot .nav-icon { min-width: 50px; }
    
    /* Su mobile, il testo non appare mai */
    .staff-nav-dot .nav-text { display: none; }
    
    /* Il pallino attivo non si espande, ma cambia solo colore */
    .staff-nav-dot.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        width: 50px; /* La larghezza rimane fissa */
    }
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;  /* AGGIUNTO per centrare il contenuto */
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.header-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.header-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.header-button svg {
    flex-shrink: 0;
    display: block;  /* AGGIUNTO per eliminare spazi bianchi */
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile: mostra solo l'icona */
@media (max-width: 768px) {
    .header-button {
        width: 45px;
        height: 45px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-button .button-text {
        display: none;
    }
}

.reserved-button:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.reserved-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.main-header .reserved-button {
    margin-left: 20px;
}

.tabs-container {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;  /* AGGIUNTO PER CENTRARE */
}

.tab-button {
    display: inline-block;
    padding: 12px 20px;
    margin: 5px;  /* MODIFICATO: margin uniforme per centratura migliore */
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

/* Mobile: riduci padding e font per evitare overflow */
@media (max-width: 768px) {
    .tab-button {
        padding: 10px 16px;
        font-size: 0.9rem;
        margin: 4px;
    }
}

/* ========================================
   ANIMAZIONE INIZIALE
   ======================================== */
.intro-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

.intro-animation.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.intro-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0;
    animation: logoAppear 0.8s ease-out forwards;
    transition: transform 0.8s ease-out;
    margin-bottom: 0;
}

/* Quando il logo si alza */
.intro-animation.stage-1 .intro-logo {
    transform: translateY(-60px);
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.intro-animation.stage-1 .intro-title {
    opacity: 1;
    transform: translateY(0);
}

.intro-motto {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.intro-animation.stage-1 .intro-motto {
    opacity: 1;
    transform: translateY(0);
}

@keyframes logoAppear {
    to {
        opacity: 1;
    }
}

/* Nascondi il contenuto principale durante l'animazione */
body.intro-active {
    overflow: hidden;
}

body.intro-active .main-header,
body.intro-active main,
body.intro-active footer {
    opacity: 0;
}

@media (max-width: 768px) {
    .intro-logo {
        width: 100px;
        height: 100px;
    }
    
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-motto {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .intro-animation.stage-1 .intro-logo {
        transform: translateY(-60px);
    }
}

/* ========================================
   SEZIONE SPONSOR
   ======================================== */
#sponsor {
    background: #ffffff !important;
    color: #1a1a2e;
}

#sponsor .section-title {
    color: #1a1a2e;
}

#sponsor .section-subtitle {
    color: #4a4a5e;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.sponsor-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.sponsor-logo-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsor-card:hover .sponsor-logo {
    transform: scale(1.05);
}

.sponsor-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a2e;
}

@media (max-width: 768px) {
    .intro-logo {
        width: 100px;
        height: 100px;
    }
    
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-motto {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .intro-animation.stage-1 .intro-logo {
        transform: translateY(-40px) scale(1);
        margin-bottom: 1.5rem;
    }
    
    .sponsors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========== SCROLLBAR ========== */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #004a99;
}

* {
    scrollbar-color: var(--primary-color) #f1f1f1;
    scrollbar-width: thin;
}

/* ========== NAVIGATION MENU ========== */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* ========== SIDEBAR BUTTONS IN HEADER ========== */
.user-info .sidebar-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.user-info .sidebar-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.user-info .sidebar-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 1rem;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-radius: 8px;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .user-info {
        width: 100%;
        gap: 10px;
    }

    .user-info .sidebar-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}