/* =========================================
   STYLE-LIGHT.CSS (Versione Chiara)
   ========================================= */

/* 1. VARIABLES & RESET */
:root {
    --bg-color: #F5F5F7;      /* Grigio Apple molto chiaro */
    --text-color: #1D1D1F;    /* Quasi nero (soft black) */
    --text-muted: #86868b;    /* Grigio medio */
    --accent-color: #0071e3;  /* Apple Blue (leggermente più scuro per contrasto su bianco) */
    --glass-bg: rgba(255, 255, 255, 0.85); /* Vetro bianco */
    --border-color: rgba(0, 0, 0, 0.1);    /* Bordi grigi sottili */
    --card-bg: #f9f9f9;     
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08); /* Ombra morbida */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* 2. TYPOGRAPHY */
h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff; /* Il titolo Hero rimane bianco perché è sopra il video scuro */
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1D1D1F; /* H2 diventa scuro */
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 15px 0 10px 0;
    color: #1D1D1F;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* 3. NAVBAR & LANGUAGE */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    /* Rimuoviamo le vecchie proprietà font-weight/font-size perché ora è un'immagine */
}
.logo img {
    height: 40px; /* Altezza ottimale per la navbar */
    width: auto;  /* Mantiene le proporzioni */
    display: block;
    
    /* Opzionale: se il logo è troppo attaccato al bordo, aggiungi un po' di margine */
    /* margin-right: 10px; */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    opacity: 0.8;
    color: #1D1D1F; /* Link scuri */
}

.nav-links a:hover { opacity: 1; color: var(--accent-color); }

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 12px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
    color: #1D1D1F;
}

.lang-switch span {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.6;
    transition: 0.3s;
}

.lang-switch span:hover { opacity: 1; color: var(--accent-color); }

/* 4. HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color); /* Ora usa il colore del sito invece del nero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center center; 
    filter: brightness(1); /* Rimosso oscuramento */
}

.hero-overlay {
    display: none; /* Rimosso perché ora usiamo il filtro direttamente sul video */
}

.hero-content {
    position: absolute;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    bottom: 6vh; /* Ancorato in basso per non tagliare il pulsante */
    left: 0;
    right: 0;
    margin: 0 auto; /* Centratura sicura che non viene sovrascritta dalle animazioni transform */
    opacity: 1 !important; /* Rimosso effetto semitrasparente */
    transition: opacity 0.5s ease-in-out;
}

.hero-content:hover {
    opacity: 1 !important;
}

/* Titoli e paragrafi della hero con ombra e rimpiccioliti per desktop */
.hero-content h1 { 
    font-size: clamp(1.4rem, 4vh + 1vw, 2.4rem); /* Si adatta dinamicamente alla finestra */
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); 
    line-height: 1.2;
    margin-bottom: 15px;
}
.hero-content p { 
    font-size: clamp(0.9rem, 2vh + 0.5vw, 1.1rem);
    color: #f5f5f7; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    margin-bottom: 25px;
}

/* =========================================
   14. AUDIO TOGGLE BUTTON
   ========================================= */
.audio-control {
    position: absolute;
    /* Posizione: sotto la navbar, a destra */
    top: 100px; 
    right: 5%; 
    z-index: 10; /* Sopra video e overlay */
    
    /* Stile Vetro Scuro per visibilità su bianco */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    
    /* Testo */
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-control:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.cta-button {
    display: inline-block;
    margin-top: 35px;
    padding: 14px 35px;
    background: #fff; /* Bianco su video sta bene */
    color: #000;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255,255,255,0.4);
}

/* 5. SERVICES SECTION */
.services-section { padding: 120px 5%; }

.container { max-width: 1200px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 15px; }
.section-subtitle { 
    text-align: center; 
    margin-bottom: 80px; 
    max-width: 600px; 
    margin-left: auto; margin-right: auto;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px;
}

.service-card {
    background: var(--card-bg); /* Scheda bianca */
    border-radius: 24px;
    padding: 24px;
    transition: var(--transition);
    /* Invece del bordo, usiamo un'ombra nel tema chiaro */
    border: 1px solid transparent; 
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); /* Ombra più forte all'hover */
    border-color: var(--accent-color);
}

.card-image {
    position: relative;
    width: 100%; height: 220px;
    background-color: #e5e5e5;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 25px;
    overflow: hidden;
}

.overlay-icon {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center; justify-content: center;
    font-size: 3rem;
    font-weight: 300;
    color: #fff;
    opacity: 0;
    transition: 0.3s ease;
}

.service-card:hover .overlay-icon { opacity: 1; }

/* =========================================
   13. CLIENTS SECTION
   ========================================= */
.clients-section {
    padding: 60px 5%; /* Padding ridotto rispetto alle altre sezioni */
    background-color: #f9f9f9; /* Leggermente diverso dal bianco dell'About */
    border-top: 1px solid var(--border-color);
}

.clients-grid {
    display: grid;
    /* Crea colonne automatiche: minimo 120px larghezza, massimo si adattano */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 40px;
    align-items: center; /* Centra verticalmente */
    justify-items: center; /* Centra orizzontalmente */
}

.client-logo {
    max-width: 140px; /* Larghezza massima logo */
    max-height: 70px; /* Altezza massima per evitare loghi giganti */
    width: auto;
    height: auto;
    object-fit: contain;
    
    /* STILE APPLE: Bianco e nero di default */
    filter: grayscale(100%);
    opacity: 0.6;
    
    transition: all 0.4s ease;
    cursor: pointer;
}

.client-logo:hover {
    /* AL PASSAGGIO DEL MOUSE: Torna a colori e piena visibilità */
    filter: grayscale(0%);
    opacity: 1;
    
    /* Piccolo effetto zoom */
    transform: scale(1.1);
}

/* 6. MODAL & GALLERY */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    align-items: center; justify-content: center;
    /* Backdrop più chiaro */
    background-color: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
}

.modal-content {
    position: relative;
    width: 80%; /* Occupa l'80% dello schermo utile */
    max-width: 1600px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden; /* Evita scrollbar orizzontali durante lo zoom */
    
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px; /* Aumentato il padding per contenere lo zoom */
    
    /* Ombra forte per staccare dal fondo chiaro */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content { transform: scale(1); }

#modalTitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #1D1D1F; /* Titolo scuro */
}

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    width: 32px; height: 32px;
    background: #f0f0f0; /* Grigio chiaro */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #333; /* X scura */
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 100;
}

.close-modal:hover { 
    background: var(--accent-color); 
    color: #fff;
    transform: rotate(90deg);
}

/* Griglia interna */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px; /* Aumentato il gap per dare respiro allo zoom 1.3x */
    justify-content: center;
    padding: 40px; /* Spazio extra interno per non far uscire i bordi */
}

.gallery-item { 
    width: 100%; 
    transition: opacity 0.6s ease, filter 0.6s ease;
    cursor: pointer;
}

/* Thumbnail quadrata per le immagini (non video) */
.gallery-item .img-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e5e5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gallery-item .img-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    display: block;
    box-shadow: none;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
    will-change: transform;
}

/* Overlay zoom icon */
.gallery-item .img-thumb-wrapper .thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border-radius: 12px;
}

.gallery-item .img-thumb-wrapper .thumb-overlay svg {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Hover thumbnail */
.gallery-item:hover .img-thumb-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.gallery-item:hover .img-thumb-wrapper img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.gallery-item:hover .img-thumb-wrapper .thumb-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.gallery-item:hover .img-thumb-wrapper .thumb-overlay svg {
    opacity: 1;
    transform: scale(1);
}

/* Stato dimmed (quando un video è in play) */
.gallery-item.dimmed .img-thumb-wrapper {
    opacity: 0.4;
    filter: grayscale(0.8) blur(2px);
}

.gallery-item.dimmed {
    opacity: 0.4;
}

/* Stato focused (video in play) */
.gallery-item.focused video {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    filter: brightness(1.05);
}

/* Video (non quadrato, larghezza piena) */
.gallery-item video {
    width: 100%; height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease, filter 0.6s ease;
    will-change: transform;
}

/* =========================================
   LIGHTBOX FULLSCREEN GALLERY
   ========================================= */
#lightboxOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    cursor: default;
}

#lightboxOverlay.show {
    display: flex;
    opacity: 1;
}

/* Wrapper immagine centrale */
#lightboxImgWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: calc(100vw - 200px);
    max-height: 92vh;
    overflow: hidden;
}

#lightboxImg {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.18s ease, transform 0.18s ease;
    cursor: default;
    display: block;
}

/* Bottone chiudi */
#lightboxClose {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10001;
    flex-shrink: 0;
}
#lightboxClose:hover {
    background: rgba(255,255,255,0.22);
    transform: rotate(90deg) scale(1.1);
}

/* Frecce prev / next */
#lightboxPrev,
#lightboxNext {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    z-index: 10000;
    margin: 0 18px;
}
#lightboxPrev:hover:not(:disabled),
#lightboxNext:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
#lightboxPrev:disabled,
#lightboxNext:disabled {
    cursor: default;
}

/* Counter  1 / 5 */
#lightboxCounter {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    z-index: 10001;
    background: rgba(0,0,0,0.3);
    padding: 5px 14px;
    border-radius: 20px;
    pointer-events: none;
}

/* Caption in basso */
#lightboxCaption {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.78);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 80vw;
    z-index: 10001;
    background: rgba(0,0,0,0.45);
    padding: 8px 22px;
    border-radius: 30px;
    pointer-events: none;
}

/* Mobile: frecce più piccole */
@media (max-width: 768px) {
    #lightboxPrev,
    #lightboxNext {
        width: 40px;
        height: 40px;
        margin: 0 8px;
    }
    #lightboxImgWrapper {
        max-width: calc(100vw - 110px);
    }
}

.caption {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--text-muted);
    text-align: left;
    font-weight: 400;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
    line-height: 1.5;
}

/* =========================================
   10. CONTACT FORM STYLES
   ========================================= */

/* Limita la larghezza del form per estetica */
.contact-box {
    max-width: 600px !important; /* Più stretto della gallery */
    width: 90%;
}

.tm-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stile Campi Input e Textarea */
.form-field {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1); /* Bordo sottile */
    background-color: #F5F5F7; /* Grigio chiaro Apple */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    outline: none;
}

.form-field:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1); /* Alone blu Apple */
}

/* Stile Textarea specifico */
textarea.form-field {
    resize: vertical; /* Permette di allungare ma non allargare */
    min-height: 120px;
}

/* Bottone Invio */
.submit-btn {
    margin-top: 10px;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

.submit-btn:hover {
    background-color: #005bb5; /* Blu più scuro */
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.3);
}

/* =========================================
   12. ABOUT SECTION
   ========================================= */
.about-section {
    padding: 100px 5%;
    background-color: #fff; /* O un grigio leggerissimo #fafafa per staccare */
    border-top: 1px solid var(--border-color);
}

.about-container {
    max-width: 900px; /* Più stretto per favorire la lettura */
    margin: 0 auto;
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Cerchio perfetto */
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Ombra elegante */
    border: 4px solid #fff; /* Bordo bianco per pulizia */
    transition: transform 0.4s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8; /* Alta leggibilità */
    color: var(--text-color);
    font-weight: 300;
}

/* Evidenzia parole chiave se vorrai usare <b> o <strong> nel testo */
.about-text strong {
    font-weight: 600;
    color: var(--text-color);
}

/* =========================================
   11. TOAST NOTIFICATION
   ========================================= */
.toast {
    visibility: hidden; /* Nascosto di default */
    min-width: 250px;
    background-color: #333; /* Sfondo scuro */
    color: #fff; /* Testo bianco */
    text-align: center;
    border-radius: 50px; /* Arrotondato */
    padding: 16px;
    position: fixed;
    z-index: 3000; /* Sopra a tutto, anche ai modali */
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%); /* Centratura perfetta */
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

/* Quando il toast è attivo */
.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Sale leggermente quando appare */
}

/* Versione Errore (opzionale, sfondo rosso) */
.toast.error {
    background-color: #ff3b30;
}

/* 7. FOOTER */
footer {
    padding: 100px 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #FFFFFF; /* Footer bianco */
}

.email-link {
    display: block;
    font-size: 2rem;
    margin: 30px 0;
    color: var(--accent-color);
    font-weight: 700;
    word-break: break-all;
}

.copyright { font-size: 0.9rem; opacity: 0.6; color: var(--text-muted); }

/* 8. ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }


/* =========================================
   15. COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: -200px; /* Più in basso per sicurezza */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 800px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 20px 35px;
    display: flex !important; /* Forza flex anche se il JS mette block */
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    z-index: 9999; /* Massima priorità */
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner.is-visible {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn-accept, .cookie-btn-reject {
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-accept {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.cookie-btn-accept:hover { transform: scale(1.05); opacity: 0.9; }
.cookie-btn-reject:hover { background: rgba(0,0,0,0.05); color: var(--text-color); }

/* 9. MEDIA QUERIES (Mobile) */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 2rem; }

    .logo img {
        height: 30px; /* Logo un po' più piccolo su smartphone */
    }
    
    .nav-links { display: none; }
    .nav-right { gap: 10px; }
    .lang-switch { border: none; padding-left: 0; }
    
    .hero-section {
        height: auto;
        display: flex;
        flex-direction: column;
        padding-top: 60px; /* Spazio per la navbar fissa */
        background-color: var(--bg-color);
        z-index: 10; /* Assicura che sia sopra i servizi */
        overflow: visible !important; /* Permette al testo di fluttuare sopra il div successivo */
    }

    .hero-video {
        position: relative;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        top: 0 !important;
        transform: none !important;
        filter: brightness(1) !important;
    }

    .hero-content {
        position: relative;
        top: 0 !important; /* Forza l'annullamento del posizionamento desktop */
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: -130px; /* Alza il blocco sopra il video */
        z-index: 999; /* Massima priorità per essere sopra il video */
        opacity: 1 !important;
        padding: 0 20px 40px;
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        color: #fff !important; /* Torna bianco per contrasto sul video */
        text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Ombra per leggibilità */
        margin-bottom: 10px;
        font-size: 1.6rem;
    }

    .hero-content p {
        color: #f5f5f7 !important; /* Chiaro sul video */
        text-shadow: 0 1px 5px rgba(0,0,0,0.5);
        margin-bottom: 60px; /* Spazio extra per spingere il pulsante fuori dal video */
        font-size: 1rem;
    }

    .hero-content .cta-button {
        background: var(--accent-color);
        color: #fff;
        margin-top: 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 loghi per riga su mobile */
        gap: 20px;
    }
    .client-logo {
        max-width: 100px;
    }

    .audio-control {
        top: 85px; /* Più in alto su mobile */
        right: 5%;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .services-section { padding: 80px 5%; }
    .grid-services { grid-template-columns: 1fr; }
    
    .modal-content {
        width: 95%; padding: 20px;
        max-height: 85vh;
    }
    .gallery-grid { grid-template-columns: 1fr; }
    .close-modal { top: 10px; right: 10px; }
    

    .email-link { font-size: 1.5rem; }

    /* Cookie Banner Mobile */
    .cookie-banner {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
        width: calc(100% - 30px);
    }
    .cookie-actions {
        width: 100%;
        gap: 10px;
    }
    .cookie-actions button {
        flex: 1;
        padding: 12px 10px;
    }
}