/* ==========================================================================
   1. VARIABILI E BASE 
   ========================================================================== */
:root {
    --primary: #0055a5;
    --brand-red: #e30613;
    --text: #333;
    --title: #777;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --border: #eee;
    --cta: #f0f4f8; 
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

/* ==========================================================================
   2. HEADER & NAVIGAZIONE (Pulizia dropdown + Fix Fantasma)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--brand-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* FIX SIMBOLINO FANTASMA: Invisibile su desktop */
.menu-toggle {
    display: none;
    background: transparent !important;
    border: none !important;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    list-style: none !important;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 25px;
}

.nav-links li { list-style: none !important; }

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover { color: var(--brand-red); }

/* SELETTORE LINGUA */
.lang-selector-v2 {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
}

.lang-btn {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: 0.3s;
}

.lang-btn:hover { color: var(--brand-red) !important; }
.lang-btn.active { color: var(--brand-red); cursor: default; }

/* ==========================================================================
   3. LOGO ED EXPERIENCE BADGE
   ========================================================================== */
/* --- LOGO --- */
.logo-container {
    position: relative;
    height: 60px;
    width: 300px;
}

.main-logo {
    position: absolute;
    top: -5px;
    left: 0;
    height: 150px;
    width: auto;
    z-index: 1001;
}

/* --- EXPERIENCE BADGE --- */
.experience-badge {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--primary);
    /* Più sottile è più elegante */
    padding: 8px 15px;
    border-radius: 0 0 15px 15px;
    /* Arrotondato solo sotto, come un sigillo appeso */
    position: fixed;
    /* Rimane fisso nella posizione dello schermo */
    top: 80px;
    /* Esattamente dove finisce l'header */
    right: 5%;
    /* Allineato con il margine della navigazione */
    z-index: 999;
    /* Appena sotto il logo (che ha 1001) ma sopra il resto */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.experience-badge .years {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 8px;
    border-right: 1px solid var(--border);
    padding-right: 8px;
}

.experience-badge .label {
    font-size: 0.55rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

/* Effetto al passaggio del mouse */
.experience-badge:hover {
    background: var(--primary);
    color: white;
    cursor: default;
}

.experience-badge:hover .years,
.experience-badge:hover .label {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
#hero {
    height: 90vh; /* Leggermente più alta per dare respiro all'immagine */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Sfondo: Overlay chiaro + Immagine Fibra */
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('images/hero-fiber.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effetto parallasse: l'immagine resta ferma mentre scorri */
    
    color: #333;; 
    padding: 0 5%;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

#hero h1 {
    font-weight: 200;
    font-size: 3.2rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--primary); 
    text-shadow: none; 
}

#hero p {
    font-size: 1.3rem;
    color: #555; 
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 60px;
    text-shadow: none;
}

/* Gestione Bottoni nella Hero */
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Base comune per entrambi i bottoni: stile Outline */
.btn {
    display: inline-block;
    min-width: 220px;
    padding: 15px 25px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    text-decoration: none;
    background: transparent;
    color: var(--primary) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* Effetto Hover unico per entrambi: si riempiono di blu */
.btn:hover {
    background: var(--primary);
    color: var(--white) !important;
    /* Il testo diventa bianco al riempimento */
    box-shadow: 0 10px 20px rgba(0, 58, 165, 0.1);
    /* Leggera ombra bluastra */
}


/* ==========================================================================
   5. SEZIONI TECNOLOGIE & SETTORI
   ========================================================================== */
/* Stile comune per i titoli di sezione */
.sectors h2,
.section-header h2 {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 2.0rem;
    margin-bottom: 50px;
    text-align: center;
    width: 100%;
    letter-spacing: 1px;
    color: var(--title);
    padding-top: 50px;
}

.sectors {
    padding: 100px 5%;
    text-align: center;
    background: var(--white);
    border-top: 1px solid #eee;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Riduce lo spazio tra sezioni consecutive dello stesso tipo */
#sectors {
    padding-top: 50px;    /* Dimezza il margine superiore */
}

#solutions {
    padding-top: 50px;    
}

/* --- LOGICA UNIFICATA CARDS --- */
.card {
    display: flex;
    flex-direction: column;
    min-height: 380px;
    padding: 50px 40px;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: left;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a; /* Sfondo di emergenza scuro */
}

/* Specifico per Tecnologie: altezza leggermente ridotta */
.tech-card {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Spinge il testo in basso come nei settori */
    transition: transform 0.3s ease;
}

/* Pseudo-elemento per l'effetto Blur all'hover (comune a tutte) */
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.card:hover::before {
    opacity: 1;
    visibility: visible;
    filter: blur(12px);
    transform: scale(1.1);
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9)) !important;
}

.card h3, .card p, .read-more {
    position: relative;
    z-index: 2 !important;
}

.card h3 {
    margin: 0 0 15px 0;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: 0.4s;
}

.card:hover h3 {
    color: var(--brand-red);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.card p {
    color: var(--white);
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: 0.4s;
}

.card:hover p {
    color: #000;
    text-shadow: none;
    /* font-weight: 400; */
}

.read-more {
    margin-top: auto;
    padding-top: 20px;
    display: block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--brand-red);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s ease;
}

.card:hover .read-more {
    opacity: 1;
    transform: translateX(0);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-red);
}

/* Contenitore per allineare titolo e icona */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Allinea l'icona in alto */
    margin-bottom: 15px; /* Spazio sotto il titolo/icona */
}

/* Titolo della card all'interno del header */
.card-header h3 {
    margin: 0; /* Rimuove i margini di default */
    flex: 1;   /* Prende tutto lo spazio disponibile */
}

/* Stile dell'icona Brevetto */
.patent-badge {
    position: relative;
    z-index: 10;
    color: var(--white);
    width: 35px; 
    height: 35px;
    margin-left: 10px;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: help !important; /* Cambia il cursore in un punto di domanda per suggerire il tooltip */
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.8));
}

.card:hover .patent-badge {
    opacity: 1;
    color: var(--brand-red);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.patent-badge:hover {
    transform: scale(1.1);
}

.patent-badge svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none; /* L'SVG non ruba il "passaggio del mouse" allo span */
}

/* Creazione del Tooltip personalizzato */
.patent-badge::after {
    content: attr(data-tooltip); /* Prende il testo dall'attributo data-tooltip */
    position: absolute;
    bottom: 110%; /* Lo posiziona sopra l'icona */
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1rem; /* Qui puoi ingrandirlo quanto vuoi (es. 1rem o 1.1rem) */
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out; /* Tempo di comparsa (0.2s è quasi istantaneo) */
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 400;
    letter-spacing: 0;
}

/* Triangolino sotto il tooltip */
.patent-badge::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
}

/* Mostra il tooltip istantaneamente all'hover */
.patent-badge:hover::after,
.patent-badge:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-220px) translateY(40px);
}

/* --- IMMAGINI DI SFONDO E GRADIENTI NITIDI --- */

.tech-card.fiber-optics {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('images/tech-fiber-optics.jpg');
}
.tech-card.liquid-analysis {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('images/tech-lab-on-chip.jpg');
}
/* Sfondi per i settori */
section#sectors .card.aerospace {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('images/background-aerospace.jpg');
}
section#sectors .card.civil {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('images/background-civil.jpg');
}
section#sectors .card.medical {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('images/background-medical.jpg');
}
section#sectors .card.railway {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('images/background-railways.jpg');
}
section#sectors .card.industrial {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('images/background-industrial.jpg');
}
section#sectors .card.automotive {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('images/background-automotive.jpg');
}
section#solutions .card.helicopter {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('images/background-rotor.jpg');
}
section#solutions .card.microring {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('images/background-microring.jpg');
}
section#solutions .card.polarif {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('images/background-polarif.jpg');
}


/* --- MODAL / APPROFONDIMENTI --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    /* Leggermente più scuro per focus tech */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    /* Effetto vetro sfocato molto moderno */
}

.modal-content {
    position: relative; /* Importante per agganciare la X */
    background: white;
    padding: 40px; /* Spazio per non far finire il testo sotto la X */
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto; /* Il contenuto scorre qui dentro */
    border-radius: 8px;
}

.close-modal {
    position: sticky; /* Cambiato da absolute a sticky */
    float: right;     /* La sposta a destra */
    top: 0;           /* La tiene inchiodata al bordo superiore della modal */
    right: 0;
    margin-top: -20px; /* Compensa il padding della modal se necessario */
    margin-right: -10px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
    transition: 0.3s;
    z-index: 999;     /* Assicura che stia sopra al testo che scorre */
    background: white; /* Opzionale: evita che il testo si legga "sotto" la X */
    padding: 5px 10px;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--brand-red);
}

.close-modal:hover {
    color: var(--brand-red);
    /* Rosso brand al passaggio del mouse */
}

/* Stile specifico per i link DENTRO la modal */
#modal-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

#modal-text a:hover {
    color: var(--brand-red) !important;
    text-decoration: underline !important;
}

#modal-text p:first-of-type, 
#modal-text p:first-of-type strong {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--primary) !important; /* Forza il blu del brand */
    margin-bottom: 20px;
    display: block; /* Assicura che si comporti come un blocco separato */
}

/* ==========================================================================
   6. PROGETTI FINANZIATI (FADE SLIDER)
   ========================================================================== */
.funded-projects {
    padding: 60px 5%;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.project-label {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 2.0rem;
    letter-spacing: 2px;
    color: var(--title);
    margin-bottom: 50px;
    text-align: center;
}

.project-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

.project-slider-wrapper {
    position: relative;
    width: 100%;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* --- LOGHI OMOGENEI --- */
.project-banner img {
    height: 80px;
    /* Altezza fissa per tutti per ordine visivo */
    width: auto;
    margin-bottom: 25px;
    filter: grayscale(100%);
    /* Tutti i loghi in bianco e nero */
    opacity: 0.6;
    transition: all 0.4s ease;
}

.project-slider-wrapper.is-hovered .project-banner img {
    filter: grayscale(0%); /* torna a colori */
    opacity: 1;
    transform: scale(1.05); /* leggero zoom */
}

.project-content h3 {
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.project-content p {
    font-size: 0.85rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.project-link {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 500;
}
.project-link:hover {
    text-decoration: underline;
}

/* Override specifici per bilanciare i pesi visivi dei loghi */
img[alt="Progetto MASH"] {
    height: 99px;
    /* Leggermente più grande perché è molto orizzontale */
}

img[alt="Progetto FUTURO"] {
    height: 65px;
    /* Più piccolo perché ha un peso visivo maggiore */
}

.slider-dots {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ddd; /* Colore pallino inattivo */
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--brand-red); /* Il tuo rosso per quello attivo */
    transform: scale(1.2);
}

.dot:hover {
    background-color: var(--primary); /* Feedback al passaggio del mouse */
}

/* ==========================================================================
   7. CALL TO ACTION
   ========================================================================== */

/* Container per la CTA */
.cta-container {
    margin-top: 50px;
    text-align: center;
}

.cta-box {
    background: var(--cta);
    color: var(--text);
    padding: 40px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 85, 165, 0.3);
}

.cta-box .btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 85, 165, 0.15);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cta-box:hover .btn {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(0, 85, 165, 0.3);
    transform: translateY(-2px);
}

.cta-box .btn {
    pointer-events: none; 
    transition: all 0.3s ease; /* Per rendere il cambio colore fluido */
}

/* Stile Form nel Modal */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 0.85rem;
}

.contact-form-width {
    max-width: 600px; /* Più stretto rispetto alle schede tecniche */
}

#contact-modal .btn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px); /* Piccolo scatto verso l'alto */
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    padding: 60px 5%;
    text-align: center;
    font-size: 0.8rem;
    color: #666; /* Colore più leggibile per gli indirizzi */
    border-top: 1px solid var(--border);
    line-height: 1.8;
}

/* La riga di copyright in rosso */
.footer-brand {
    color: var(--brand-red); /* Il tuo rosso brand */
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-info {
    color: #888;
}

/* Stile per i link email e pec */
.footer-info a {
    color: inherit; /* Di base prendono il colore del testo circostante */
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Effetto hover per le email */
.footer-info a:hover {
    color: var(--primary); /* Cambia in blu OST all'hover (o #e30613 se preferisci il rosso) */
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-link {
    color: #999;
    text-decoration: none;
    font-size: 0.75rem;
    transition: 0.3s;
}

.legal-link:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #888;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--brand-red);
    transform: translateY(-3px);
}

.social-links svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   8. RESPONSIVITY (Sempre in fondo)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. MOSTRA L'HAMBURGER */
    .menu-toggle {
        display: flex !important; /* Forza la visibilità */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100;
        padding: 0;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--primary);
        border-radius: 10px;
        transition: 0.3s;
    }

    /* 2. MENU A COMPARSA */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        height: 100vh;
        width: 75%;
        background-color: white;
        flex-direction: column !important; /* Forza l'incolonnamento */
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 40px;
        margin: 0;
        padding: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 10px 0;
    }

    /* 3. HERO SECTION & BOTTONI */
    #hero {
        padding-top: 80px; /* Spazio per non finire sotto l'header */
    }

    #hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column !important; /* Forza i bottoni uno sopra l'altro */
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 20px auto;
    }

    .btn {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* 4. EXTRA: SPOSTA IL BADGE "30 ANNI" SU MOBILE */
    .experience-badge {
        display: none; /* Lo nascondiamo su mobile perché ingombra troppo l'header */
    }

    .project-slide {
        min-height: 350px; /* Più spazio per il testo che si sviluppa in verticale */
    }
}

/* Animazione X */
.menu-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }