   =========================================
   STILI DI BASE E TIPOGRAFIA
   ========================================= */
html {
    height: 100%;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    /* Azzurro leggermente più intenso rispetto al precedente (#d1e9ff) */
    background: linear-gradient(to bottom, #ffffff 0%, #b8dcfd 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   HEADER E NAVIGAZIONE (Completo)
   ========================================= */
.site-header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid #eee;
}

.header-titles h1 {
    font-family: 'Lato', Arial, sans-serif;
    font-size: 3em;
    font-weight: 300;
    margin-bottom: 5px;
    color: #2c3e50;
}

.header-titles h2 {
    font-size: 1.2em;
    font-weight: normal;
    color: #34495e;
    margin-bottom: 30px;
}

.header-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px; /* Spazio tra i riquadri */
}

.main-menu a {
    text-decoration: none;
    color: #555;
    font-size: 1.1em;
    padding: 8px 18px;    /* Spazio interno al riquadro */
    border: 1px solid transparent; /* Invisibile di default */
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Effetto Hover: contorno azzurro */
.main-menu a:hover {
    color: #00a2ff;
    border: 1px solid #00a2ff;
}

/* Stato attivo: sfondo bianco, bordo azzurro, testo in grassetto */
.main-menu a.active {
    background-color: #ffffff;
    color: #00a2ff;
    border: 1px solid #00a2ff;
    font-weight: bold;
}

.language-switcher {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.language-switcher a {
    text-decoration: none;
    color: #888;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
    transition: color 0.3s ease;
}

/* Effetto hover lingua */
.language-switcher a:hover {
    color: #00a2ff;
}

/* Lingua attiva: sottolineata ed evidenziata */
.language-switcher a.active-lang {
    color: #00a2ff !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    text-underline-offset: 6px !important;
}
.menu-toggle {
    display: none; /* Nascosto su desktop */
    background: #00a2ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 auto 20px auto;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; } /* Visibile solo su mobile */
}
/* =========================================
   SEZIONE HOME
   ========================================= */

   .hero-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.hero-section img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.intro-text {
    max-width: 850px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    text-align: center;
}

.intro-text p {
    font-family: Arial, sans-serif;
    font-size: 1.15em;
    line-height: 1.8;
    color: #333;
}

/* =========================================
   SEZIONE BIO E IMMAGINE
   ========================================= */

.bio-container {
    max-width: 1000px;
    margin: 30px auto 60px auto;
    padding: 0 20px;
}

/* Stile per la foto della biografia */
.bio-image {
    float: right; /* Spinge la foto a destra permettendo al testo di affiancarla */
    max-width: 300px; /* Leggermente ridotta per far respirare bene il testo */
    width: 100%;
    height: auto;
    margin: 5px 0 20px 40px; /* Crea uno spazio vuoto a sinistra e sotto per non far appiccicare il testo alla foto */
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Regola per i cellulari: la foto torna centrata sopra il testo */
@media (max-width: 768px) {
    .bio-image {
        float: none;
        display: block;
        margin: 20px auto;
    }
}

.bio-container p {
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    text-align: left;
}

.bio-divider {
    width: 80px;
    border: 0;
    border-top: 2px solid #999;
    margin: 40px auto;
}

/* =========================================
   SEZIONE PREMI E OPERE (Elenco pulito)
   ========================================= */

.box-container {
    max-width: 850px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

.box-header {
    background-color: transparent;
    text-align: left;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #00a2ff;
    font-weight: bold;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    color: #00a2ff;
    margin-bottom: 10px;
}

.box-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.box-list li {
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    line-height: 1.6;
    background-color: transparent;
    font-family: Arial, sans-serif;
    font-size: 1.05em;
    color: #333;
}

.box-list li:last-child {
    border-bottom: none;
}

/* =========================================
   SEZIONE VIDEO (Schede pulite con Bottone Play)
   ========================================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.video-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #00a2ff; /* Elegante linea azzurra superiore */
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.video-info {
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
}

.video-info strong {
    display: block;
    font-size: 1.15em;
    color: #2c3e50;
    margin-bottom: 8px;
}

.video-info span {
    display: block;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.4;
}

.video-info em {
    display: block;
    font-size: 0.85em;
    color: #888;
    font-style: italic;
}

.play-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #00a2ff;
    color: #fff;
    text-decoration: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.1em;
    padding-left: 3px; /* Centra perfettamente l'icona del triangolo */
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.play-card-btn:hover {
    background-color: #0088d4;
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr; /* 1 colonna su smartphone */
    }
}

/* =========================================
   SEZIONE CONTATTI
   ========================================= */

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.form-group {
    margin-bottom: 25px;
}

.main-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #111;
}

.required {
    color: #cc0000;
}

.name-inputs {
    display: flex;
    gap: 20px;
}

.input-wrapper {
    flex: 1;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #777;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 1em;
    font-family: Arial, sans-serif;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #000;
}

.sub-label {
    display: block;
    font-size: 0.85em;
    color: #444;
    margin-top: 5px;
}

.submit-btn {
    background-color: #00a2ff;
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0088d4;
}

.contact-info-section {
    padding-top: 5px;
}

.info-divider {
    border-top: 2px solid #999;
    margin-bottom: 20px;
}

.contact-info-section p {
    line-height: 1.6;
    color: #222;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-email {
    font-size: 1.15em;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .name-inputs {
        flex-direction: column;
        gap: 0;
    }

    .input-wrapper {
        margin-bottom: 15px;
    }
}

/* =========================================
   FOOTER E ICONE SOCIAL
   ========================================= */
.site-footer {
    margin-top: auto;
    padding: 30px 40px;
    text-align: right;
}

.social-icons a {
    color: #666;
    font-size: 1.6em;
    margin-left: 20px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Blocco completato con tutti i social */
.social-icons a:nth-child(1):hover { color: #E1306C; transform: scale(1.2); } /* Instagram */
.social-icons a:nth-child(2):hover { color: #FF0000; transform: scale(1.2); } /* YouTube */
.social-icons a:nth-child(3):hover { color: #1877F2; transform: scale(1.2); } /* Facebook */
.social-icons a:nth-child(4):hover { color: #0A66C2; transform: scale(1.2); } /* LinkedIn */
.social-icons a:nth-child(5):hover { color: #25D366; transform: scale(1.2); } /* WhatsApp */

/* =========================================
   BANNER COOKIE & PRIVACY
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    padding: 20px;
    display: none; /* Gestito via JavaScript */
    z-index: 9999;
    font-family: Arial, sans-serif;
    border-top: 4px solid #00a2ff;
}

.cookie-banner-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text {
    font-size: 0.9em;
    color: #444;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.cookie-text a {
    color: #00a2ff;
    text-decoration: underline;
}

.cookie-btn {
    background-color: #00a2ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.cookie-btn:hover {
    background-color: #0088d4;
}

.footer-legal {
    margin-top: 15px;
    font-size: 0.85em;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #00a2ff;
}

@media (max-width: 768px) {
    .cookie-banner-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   DIMENSIONE ICONE SOCIAL
   ========================================= */
.social-icons a,
.social-icons i {
    font-size: 1.2em !important; /* Rimpicciolisce le icone (prima erano a 1.8em). Modifica questo numero a piacimento (es. 1.0em o 1.3em) */
    margin: 0 10px !important; /* Avvicina leggermente le icone tra loro */
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Colori al passaggio del mouse (Hover) */
.social-icons a:nth-child(1):hover i { color: #E1306C !important; transform: scale(1.0); } /* Instagram */
.social-icons a:nth-child(2):hover i { color: #FF0000 !important; transform: scale(1.0); } /* YouTube */
.social-icons a:nth-child(3):hover i { color: #1877F2 !important; transform: scale(1.0); } /* Facebook */
.social-icons a:nth-child(4):hover i { color: #0A66C2 !important; transform: scale(1.0); } /* LinkedIn */

/* =========================================
   COLORE COPYRIGHT FOOTER
   ========================================= */

.site-footer span {
    color: #555 !important; /* Colore grigio identico ai link Privacy/Cookie */
    font-size: 0.9em;
}

/* =========================================
   RIDUZIONE SPAZIO TRA HEADER E CONTENUTO
   ========================================= */
.box-container,
.bio-container,
.contact-container,
.hero-section {
    margin-top: 15px !important; /* Prima era 40px o 50px. Riduci a 10px o 5px se lo vuoi ancora più attaccato */
}

/* =========================================
   RIDUZIONE SPAZIO SOPRA IL FOOTER
   ========================================= */
/* 1. Riduce lo spazio interno (padding) nella parte alta del footer */
.site-footer {
    padding-top: 15px !important; /* Prima era 40px o 25px */
}

/* 2. Riduce il margine inferiore di tutti i blocchi centrali (Liste, Bio, Contatti) */
.box-container,
.bio-container,
.contact-container {
    margin-bottom: 20px !important; /* Prima era 60px o 80px */
} 
/* =========================================
   SOTTOLINEATURA LINGUA ATTIVA
   ========================================= */
.language-switcher a.active-lang {
    color: #00a2ff !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    text-underline-offset: 6px !important;
}

/* =========================================
   RESPONSIVE DESIGN (Mobile)
   ========================================= */

/* Regola per le immagini */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tablet */
@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .main-menu ul { gap: 30px !important; }
}

/* Smartphone */
@media (max-width: 768px) {
    /* HEADER E MENU */
    .menu-toggle { display: block !important; margin: 0 auto 20px auto; }
    .main-menu { display: none !important; }
    .main-menu.show { display: block !important; margin-bottom: 20px; }
    .main-menu ul { flex-direction: column !important; gap: 10px !important; }
    .header-navigation { flex-direction: column !important; }
    .header-titles h1 { font-size: 2em !important; }
    .video-grid, .contact-container { grid-template-columns: 1fr !important; }
    .bio-image { float: none !important; display: block !important; margin: 0 auto 20px auto !important; }

    /* FOOTER MOBILE: LA SOLUZIONE DEFINITIVA */
    .site-footer {
        padding: 30px 10px !important;
    }

    /* 1. Icone Social (Restano in cima naturalmente) */
    .social-icons {
        margin-bottom: 25px !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    /* Il contenitore 'invisibile' che raggruppa gli altri 3 elementi */
    .site-footer > div:not(.social-icons) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* 2. WhatsApp (Era il 2° div, lo forziamo al 1° posto sotto i social) */
    .site-footer > div:not(.social-icons) > div:nth-child(2) {
        order: 1 !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* 3. Privacy e Cookie (Erano il 3° div, li mettiamo in mezzo) */
    .site-footer > div:not(.social-icons) > div:nth-child(3) {
        order: 2 !important;
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* Centriamo i link legali annullando il margin-left di 20px del PC */
    .site-footer > div:not(.social-icons) > div:nth-child(3) a {
        margin: 0 10px !important;
        display: inline-block !important;
    }

    /* 4. Copyright (Era il 1° div, lo forziamo in fondo) */
    .site-footer > div:not(.social-icons) > div:nth-child(1) {
        order: 3 !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Banner Cookie */
    .cookie-banner-container { flex-direction: column; gap: 15px; }
    .cookie-btn { width: 100%; }
}
