@keyframes slideDownFade {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Applica opacity 0 a tutti i box inizialmente */
.primo-box-frase, .secondo-box, .box-membro {
    opacity: 0;
    will-change: transform, opacity; /* Ottimizza le prestazioni */
}

/* Questa classe verrà aggiunta dal JS quando scrolli */
.visible {
    animation: slideDownFade 0.8s ease-out forwards;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: scroll;
    min-height: 100vh;

    background-color: #f0f4fb;
    background-image:
        radial-gradient(ellipse 80% 60% at 0%   0%,   rgba(199, 215, 245, 0.7)  0, transparent 60%),
        radial-gradient(ellipse 55% 40% at 100% 0%,   rgba(214, 226, 248, 0.55) 0, transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(204, 220, 246, 0.6)  0, transparent 60%),
        radial-gradient(ellipse 50% 38% at 0%   100%, rgba(210, 222, 244, 0.55) 0, transparent 52%),
        radial-gradient(ellipse 32% 24% at 50%  48%,  rgba(240, 246, 255, 0.45) 0, transparent 42%);
    background-attachment: fixed;
    background-size: cover;
}
/*font*/
h1 { font-family: 'Raleway', sans-serif; font-weight: 800; text-transform: uppercase; }
p  { font-family: 'Open Sans', sans-serif; }

/* Il contenitore che spinge la freccia a destra */
/* Il contenitore: occupa tutto lo spazio senza sballare i margini */
/* 1. Il contenitore: solo per allineare a destra */


.banner {
    background-color: moccasin;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    /* Cambiamo in column per mettere menù sotto al logo */
    display: flex;
    flex-direction: column;
    align-items: center;

}

#logo-studio {
    position:relative
    display:inline-block;
    width:100%;
    line-height:0;
}

#logo-studio img:first-child {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.4;        /* Opzionale: un tocco di trasparenza al banner */
}

/* La seconda immagine (il Logo) */
#logo-studio img:last-child {
  position: absolute;  /* Lo stacca dal flusso e lo mette sopra */

  /* Posizionamento al centro esatto */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* Dimensioni del logo */
  width: 350px;        /* Regola questa misura come preferisci */
  height: auto;
  z-index: 10;         /* Lo tiene sicuramente davanti alla foto */
}

.menù {
    display: flex;
    justify-content: center; /* centra i link */
    gap: 30px;               /* spazio tra i link */
    width: 100%;
}

/* nascondi su mobile */
@media (max-width: 768px) {
    .menù {
        display: none;
    }
}
.menù a {
    text-decoration: none;
    color: #362511;
    font-size: 0.9rem;      /* Leggermente più grande per leggibilità */
    font-weight: bold;
    text-transform: uppercase; /* Rende il menù più professionale */
}

/* Pulizia dei margini che creavano problemi */
.menù #dove-trovarci-link,
{
    margin: 0;
}

.container-arrow {
    position: absolute;
    right: 20px;
    top: 20px; /* Posizionata in alto a destra nel banner */
    z-index: 10;
}

.social-bar {
    display: flex;
    justify-content: space-between; /* Spinge WhatsApp a destra */
    align-items: center;
    background-color: #ffffff; /* Colore di fondo chiaro */
    padding: 10px 20px;
    font-family: sans-serif;
    border: solid 1px #dddddd;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px; /* Spazio tra le icone */
}

.social-links a, .whatsapp-link a {
    color: #777; /* Colore grigio delle icone */
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.whatsapp-link a span {
    margin-left: 8px;
    font-size: 18px;
    font-weight: 300; /* Testo sottile come in foto */
}

/* Effetto al passaggio del mouse */
.social-links a:hover, .whatsapp-link a:hover {
    color: #333;
}

/* La foto centrale */
.primo-blocco-centro {
    width: 100%;
    padding: 0; /* Togliamo padding così la foto tocca i bordi se vuoi */
    box-sizing: border-box;
}



@keyframes slideDownIn {
    0% {
        opacity: 0;
        transform: translateY(-30px); /* Parte 30px più in alto */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Arriva alla posizione originale */
    }
}

.primo-box-frase {
    border-radius: 10px;
    border: solid 1px navy;
    padding: 20px;
    margin: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 128, 0.2),
    0 8px 10px -6px rgba(0, 0, 128, 0.1);
    background-color: #ffffff;
    /* AGGIUNTO EFFETTO */
    animation: slideDownIn 0.8s ease-out forwards;
}

.primo-box-frase p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: justify;
}

.firma {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: right;    /* Forza la firma a sinistra */
    color: navy;         /* Riprende il colore del bordo */
}

/* Per schermi più grandi (Tablet/PC) ripristiniamo un padding maggiore */
@media (min-width: 768px) {
    .primo-box-frase {
        padding: 80px 100px;
    }
}

.secondo-box {
    padding: 25px;
    border-left: 8px solid #003366;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.2);
    line-height: 1.6;
    margin: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* AGGIUNTO EFFETTO */
    animation: slideDownIn 0.8s ease-out 0.2s forwards; /* 0.2s di ritardo per farlo apparire dopo il primo */
}
h3{
    font-size: 1rem;
    text-align: center;

}
#freccia-giù{
    width: 24px; /* Regola questa misura in base alle tue esigenze */
    height: auto;
}
#titolo-h1{
    font-size: 1rem;
    margin-left: 45px;
}
.secondo-box-frase p{
    font-size: 0.9rem;
    margin-left: 10px;
 }

.box-membro {
    background: linear-gradient(135deg, #001f3f 0%, #0056b3 100%);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    box-shadow: 0 15px 35px rgba(0, 31, 63, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    width: 75%;
    margin-left: 5%;
    margin-bottom: 10%;
    /* AGGIUNTO EFFETTO */
    animation: slideDownIn 0.8s ease-out 0.4s forwards; /* 0.4s di ritardo */
}

/* Effetto riflesso superiore */
.box-membro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Hover dinamico */
.box-membro:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 31, 63, 0.5);
    filter: brightness(1.1);
}

.box-membro p{
    color:white;
}

#foto-membro {
    display: flex;
    justify-content: center;
}
.box-membro-uno {
    background-color: #f5f5f5;
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
}

#foto-primo-membro {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

#immagine-foto-primo-membro {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.nome-membro {
    margin: 8px 0 4px;
    font-size: 1.1rem;
}

.ruolo {
    font-weight: 600;
    color: #555;

    margin-bottom: 15px;
}

.bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

#box-pool {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- CARD POOL ---- */
.box-membro-pool {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 36px 24px;
}

/* ---- FOTO POOL ---- */
.foto-membro-pool {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.immagine-foto-pool {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 6px rgba(201,168,76,0.15);
}

/* ---- MOBILE: colonna ---- */
@media (max-width: 700px) {
    #box-pool {
        flex-direction: column;
        align-items: center;
    }
    .box-membro-pool {
        width: 100%;
        max-width: 400px;
        flex: none;
    }
}




/* Contenitore principale */
.rassegna-stampa {
    max-width: 800px;
    margin: 60px auto;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

.rassegna-stampa h3 {
    border-bottom: 2px solid #003366; /* Blu istituzionale */
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #003366;
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* La Card dell'articolo */
.news-card {
    background: #ffffff;
    border-left: 5px solid #d4af37; /* Oro/Ottone per un tocco legale */
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.news-card .data {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 5px 0;
}

.news-card h4 {
    margin: 5px 0 10px 0;
    color: #222;
    font-size: 1.15rem;
    line-height: 1.4;
}

.news-card .fonte {
    font-style: italic;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 15px;
}

/* Link all'articolo */
.news-card a {
    display: inline-block;
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #003366;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-card a:hover {
    background: #003366;
    color: #fff;
}

#contatti-footer {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px 32px 32px;
    scroll-margin-top: 100px;
    cursor:pointer;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-nome {
    font-size: 1.2rem;
    font-weight: 700;
    color: antracite;
    letter-spacing: 0.04em;
    margin-bottom: -50px;
}

.footer-tagline {
    font-size: 0.82rem;
    color: #64748b;
    letter-spacing: 0.06em;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 680px;
}

.footer-card {
    background: #FFFAD7;
    border: 1px solid rgba(88, 47, 47, 0.08);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
}

.footer-card:hover {
    transform: translateY(-5px);
}

.footer-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.footer-card svg {
    stroke: #00abff;
}

.footer-label {
    font-size: 10px;
    color: #64748b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: antracite;
    text-align: center;
}

.footer-bottom {
    font-size: 0.78rem;
    color: #64748b;
    letter-spacing: 0.04em;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    text-align: center;
    background: #1D1B1B;
}

@media (max-width: 520px) {
    .footer-contact-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}
#contatti {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    width:100%;
    color: #1e293b;
    box-shadow: 0 8px 32px rgba(100, 116, 139, 0.08);
    text-align: left;
    max-width: 440px;
    margin: 0 auto;
}

#contatti h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

#contatti ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.3;
}

#contatti li {
    margin-bottom: 0;
    padding: 10px 0 10px 16px;
    border-left: 2px solid #bfdbfe;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #475569;
    transition: border-color 0.2s;
}

#contatti li:hover {
    border-left-color: #3b82f6;
    color: #1e293b;
}

#contatti li:last-child {
    margin-bottom: 0;
}
.footer-section h3 {
    border-bottom: 2px solid #3498db;
    margin-bottom: 5px;
    margin-left: 5px;
    display: inline-block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-section p {
    margin-left:5px;
}
.contacts p {
    margin-left: 5px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #bdc3c7;
}
.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
}

.email-form textarea {
    margin-left: 10%;
    width: 75%;
    height: 90px;
    padding: 12px;
    border: 1px solid #2c3e50; /* Colore scuro per coerenza col footer */
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
}
/* Stile quando l'input è errato (gestito via JS) */
.email-form input.invalid {
    border: 1.5px solid #e74c3c !important;
    background-color: #fdf2f2;
}

/* Messaggio di errore sotto il form */
#email-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    text-align: left;
    margin-top: -5px;
    font-weight: bold;
}
.input-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.email-form input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    flex-grow: 1;
    min-width: 0;
    font-size: 0.9rem;
}

.email-form button {
    padding: 10px 20px;
    background-color: #3498db;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    white-space: nowrap;
}

.email-form button:hover {
    background-color: #2980b9;
}

/* Ottimizzazione per schermi molto piccoli (mobile) */
@media (max-width: 400px) {
    .input-group {
        flex-direction: column;
    }
    .email-form button {
        width: 100%;
    }}

#telefono-fluttuante {
    /* Posizionamento fisso */
    position: fixed;
    bottom: 20px;
    right: 20px;

    /* Dimensioni e Forma */
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Lo rende un cerchio */

    /* Colori */
    background-color: #25d366; /* Verde "chiamata" (puoi cambiarlo in blue se preferisci) */
    color: white !important;   /* Colore dell'icona telefono */

    /* Centramento Icona */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Testo e Decorazione */
    font-size: 28px;
    text-decoration: none;

    /* Elevazione e Ombra */
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    /* Animazione fluida */
    transition: all 0.3s ease;
}

/* Effetto al passaggio del mouse */
#telefono-fluttuante:hover {
    transform: scale(1.1); /* Si ingrandisce leggermente */
    background-color: #128c7e; /* Diventa un verde più scuro */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.yt-box {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.yt-box input {
    width: 70%;
    padding: 10px;
    margin-bottom: 10px;
}

.yt-box button {
    padding: 10px 15px;
    cursor: pointer;
}
#titolo-video{
    border-bottom: 2px solid #003366; /* Blu istituzionale */
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #003366;
    text-transform: uppercase;
    font-size: 1.2rem;
}
#results iframe {
    width: 100%;
    height: 300px;
    margin-top: 15px;
    border-radius: 10px;
    border: none;
}


/* Adattamento per Smartphone */
@media (max-width: 600px) {
    #telefono-fluttuante {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
}
/* Definiamo l'animazione */
@keyframes pulse-white {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Applichiamola all'icona */
#telefono-fluttuante {
    animation: pulse-white 2s infinite;
}

/* ============================================
   DESKTOP ONLY — @media (min-width: 1024px)
   Stile: Legal Luxury — navy, oro, serif
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:wght@300;400;600&family=Lato:wght@300;400;700&display=swap');

@media (min-width: 1024px) {

    /* ---- VARIABILI ---- */
    :root {
        --navy:      #0a1628;
        --navy-mid:  #0f2344;
        --gold:      #c9a84c;
        --gold-lt:   #e8d5a3;
        --cream:     #faf8f3;
        --text:      #1a1a2e;
        --muted:     #6b7280;
        --white:     #ffffff;
    }

    /* ---- BODY ---- */
    body {
        font-size: 17px;
        font-family: 'Lato', sans-serif;
        background-color: var(--cream);
        background-image:
                radial-gradient(ellipse 70% 50% at 0% 0%, rgba(10,22,40,0.04) 0, transparent 60%),
                radial-gradient(ellipse 50% 40% at 100% 100%, rgba(201,168,76,0.06) 0, transparent 55%);
        color: var(--text);
    }

    /* ---- BANNER ---- */

        .banner {
            position: sticky;
            top: 0;
            z-index: 200;
            background: var(--navy);
            box-shadow: 0 4px 30px rgba(0,0,0,0.5);
            border-bottom: 1px solid rgba(201,168,76,0.3);
            width: 100%;
        }

        #banner-inner {
            display: flex;
            flex-direction: column; /* Logo sopra */
            align-items: center;    /* Centra tutto */
            padding: 20px 0;
        }

        #logo-studio {
            display: flex;
            justify-content: center;
            margin-bottom: 25px;
            width: 100%;
        }

        /* MANTENGO IL TUO DISPLAY NONE */
        #logo-studio img:first-child {
            display: none !important;
        }

        #logo-studio img:last-child {
            width: 400px;
            height: auto;
            filter: brightness(0) invert(1);
        }

        .menù {
            display: flex;
            flex-direction: row;
            justify-content: center; /* Centra il gruppo delle opzioni */
            align-items: center;
            gap: 60px;              /* Distribuisce le voci (i tuoi _ _ _) */
            width: 100%;
            padding-top: 50px;
            border-top: 1px solid rgba(201,168,76,0.2);
            margin-top:20px;
        }

        .menù a {
            font-family: 'Lato', sans-serif;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            text-decoration: none;
            color: var(--gold-lt);
            white-space: nowrap;
            transition: color 0.3s ease;

            /* AGGIUNGI QUESTE TRE RIGHE */
            cursor: pointer !important;
            position: relative;
            z-index: 10;
        }

        .menù a:hover {
            color: var(--gold);
        }



    /* Telefono fluttuante */
    #telefono-fluttuante {
        position: fixed;
        bottom: 36px;
        right: 36px;
        top: auto;
        width: 58px;
        height: 58px;
        font-size: 22px;
        box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    }

    /* ---- BLOCCO CENTRALE ---- */
    .primo-blocco-centro {
        max-width: 1000px;
        margin: 0 auto;
        padding: 70px 60px 40px;
    }

    /* ---- BOX CITAZIONE ---- */
    .primo-box-frase {
        position: relative;
        max-width: 780px;
        margin: 0 auto 60px;
        padding: 50px 70px;
        background: var(--white);
        border-radius: 2px;
        border-left: 4px solid var(--gold);
        box-shadow: 0 20px 60px rgba(10,22,40,0.08), 0 4px 16px rgba(10,22,40,0.04);
        opacity: 0;
        will-change: transform, opacity;
    }

    .primo-box-frase::before {
        content: '\201C';
        font-family: 'Playfair Display', serif;
        font-size: 8rem;
        color: var(--gold);
        opacity: 0.15;
        position: absolute;
        top: -20px; left: 24px;
        line-height: 1;
        pointer-events: none;
    }

    .primo-box-frase p {
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.35rem;
        font-weight: 400;
        font-style: italic;
        line-height: 1.7;
        color: var(--navy);
        margin-bottom: 20px;
        text-align: left;
    }

    .firma {
        font-family: 'Lato', sans-serif;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--gold);
        text-align: right;
        display: block;
    }

    /* ---- BOX TEAM ---- */
    #box-team {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }

    #box-team h2 {
        font-family: 'Playfair Display', serif;
        font-size: 2.4rem !important;
        font-weight: 700;
        color: var(--navy);
        letter-spacing: 0.04em;
        margin-bottom: 4px !important;
    }

    #box-team h3 {
        font-family: 'Lato', sans-serif;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: var(--gold);
        margin-top: 0 !important;
        margin-bottom: 40px;
    }

    /* ---- CARD MEMBRO ---- */
    .box-membro {
        width: 560px;
        max-width: 100%;
        margin: 0 auto 30px;
        padding: 50px 60px;
        box-sizing: border-box;
        background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
        border-radius: 4px;
        border: 1px solid rgba(201,168,76,0.25);
        box-shadow:
                0 30px 70px rgba(10,22,40,0.25),
                inset 0 1px 0 rgba(201,168,76,0.2);
        position: relative;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        opacity: 0;
        will-change: transform, opacity;
    }

    .box-membro:hover {
        transform: translateY(-8px);
        box-shadow: 0 40px 80px rgba(10,22,40,0.35), inset 0 1px 0 rgba(201,168,76,0.3);
    }

    .box-membro::before {
        content: '';
        position: absolute;
        top: 0; left: 10%; right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

    #foto-membro {
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
    }

    #immagine-foto-primo-membro {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--gold);
        box-shadow: 0 0 0 6px rgba(201,168,76,0.15);
    }

    .ruolo {
        font-family: 'Lato', sans-serif;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: var(--gold);
        text-align: center;
        margin-bottom: 16px;
    }

    .bio {
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.1rem;
        line-height: 1.7;
        color: rgba(255,255,255,0.82);
        text-align: center;
    }
    .box-membro-pool {
        width: 650px;
        flex: 1 1 0;
        min-width: 0;
        padding: 36px 24px;
    }

    /* ---- SECONDO BOX FRASE ---- */
    .secondo-box-frase {
        max-width: 780px;
        margin: 40px auto;
        padding: 50px 70px;
        background: var(--white);
        border-radius: 2px;
        box-shadow: 0 8px 40px rgba(10,22,40,0.06);
        border-top: 3px solid var(--navy);

    }

    #titolo-h1 {
        font-family: 'Playfair Display', serif !important;
        font-size: 1.9rem !important;
        font-weight: 700;
        color: var(--navy);
        letter-spacing: 0.03em;
        margin-left: 0 !important;
        margin-bottom: 20px;
        line-height: 1.3;
        text-transform: none !important;
    }

    .secondo-box-frase p {
        font-family: 'Lato', sans-serif;
        font-size: 1rem;
        line-height: 1.8;
        color: var(--muted);
        margin-left: 0 !important;
    }

    .secondo-box {
        max-width: 780px;
        margin: 30px auto;
        padding: 40px 70px;
        opacity: 0;
        will-change: transform, opacity;
    }

    /* ---- FOOTER CONTATTI ---- */
    #contatti-footer {
        background: var(--navy);
        border-top: none;
        padding: 60px 80px 50px;
        scroll-margin-top: 100px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        max-width: 860px;
        margin: 0 auto;
        padding: 0;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }

    .footer-nome {
        font-family: 'Playfair Display', serif;
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--white);
        letter-spacing: 0.06em;
        margin-bottom: 0 !important;
    }

    .footer-brand::after {
        content: '';
        display: block;
        width: 60px;
        height: 1px;
        background: var(--gold);
        margin-top: 16px;
    }

    .footer-contact-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 24px;
        justify-content: center;
        width: 100%;
        max-width: 780px;
        margin-top: 20px;
    }

    .footer-card {
        flex: 1;
        min-width: 180px;
        max-width: 240px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(201,168,76,0.2);
        border-radius: 4px;
        padding: 28px 20px;
        transition: background 0.3s, transform 0.3s, border-color 0.3s;
    }

    .footer-card:hover {
        background: rgba(201,168,76,0.08);
        transform: translateY(-4px);
        border-color: rgba(201,168,76,0.5);
    }

    .footer-icon {
        background: rgba(201,168,76,0.12) !important;
        border: 1px solid rgba(201,168,76,0.3);
    }

    .footer-label {
        color: var(--gold) !important;
        font-size: 0.68rem;
        letter-spacing: 0.15em;
    }

    .footer-value {
        color: rgba(255,255,255,0.85) !important;
        font-size: 0.85rem;
    }

    /* ---- FORM EMAIL ---- */
    .footer-section.cta {
        max-width: 700px;
        margin: 0 auto;
        padding: 50px 80px;
        text-align: center;
    }

    .footer-section.cta h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--navy);
        border-bottom: none;
        letter-spacing: 0.04em;
        text-transform: none;
        margin-bottom: 10px;
    }

    .footer-section.cta p {
        font-size: 0.95rem;
        color: var(--muted);
        line-height: 1.7;
        margin-bottom: 28px;
        margin-left: 0 !important;
    }

    .email-form {
        max-width: 580px;
        margin: 0 auto;
    }

    .email-form textarea {
        width: 100%;
        margin-left: 0 !important;
        box-sizing: border-box;
        border: 1px solid #d1d5db;
        border-radius: 2px;
        font-size: 0.95rem;
        padding: 14px 16px;
        resize: none;
        background: var(--white);
        transition: border-color 0.2s;
    }

    .email-form textarea:focus {
        outline: none;
        border-color: var(--navy);
    }

    .input-group {
        flex-direction: row;
        gap: 10px;
        margin-top: 10px;
    }

    .email-form input[type="email"] {
        padding: 12px 16px;
        border: 1px solid #d1d5db;
        border-radius: 2px;
        font-size: 0.9rem;
        flex: 1;
        background: var(--white);
        transition: border-color 0.2s;
    }

    .email-form input[type="email"]:focus {
        outline: none;
        border-color: var(--navy);
    }

    .email-form button {
        padding: 12px 28px;
        background: var(--navy);
        color: var(--white);
        font-family: 'Lato', sans-serif;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        border: none;
        border-radius: 2px;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.3s, color 0.3s, transform 0.2s;
    }

    .email-form button:hover {
        background: var(--gold);
        color: var(--navy);
        transform: translateY(-2px);
    }

    /* ---- RASSEGNA STAMPA ---- */
    .rassegna-stampa {
        max-width: 860px;
        margin: 60px auto;
        padding: 0 60px;
    }

    .rassegna-stampa h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        color: var(--navy);
        border-bottom: 1px solid var(--gold);
        padding-bottom: 12px;
        text-transform: none;
        letter-spacing: 0.03em;
    }

    .news-card {
        border-left: 3px solid var(--gold);
        padding: 24px 28px;
        background: var(--white);
        box-shadow: 0 2px 16px rgba(10,22,40,0.05);
        margin-bottom: 20px;
        border-radius: 0 2px 2px 0;
    }

    /* ---- VIDEO ---- */
    #titolo-video {
        font-family: 'Playfair Display', serif;
        color: var(--navy);
        border-bottom: 1px solid var(--gold);
        font-size: 1.3rem;
        text-transform: none;
        letter-spacing: 0.03em;
        max-width: 860px;
        margin: 0 auto 30px;
        padding: 0 60px 12px;
        display: block;
    }

    .yt-box {
        max-width: 920px;
        margin: 0 auto 60px;
        padding: 30px 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        background: var(--white);
        border-radius: 4px;
        box-shadow: 0 8px 40px rgba(10,22,40,0.07);
    }

    #results {
        display: contents;
    }

    #results iframe {
        width: 100%;
        height: 280px;
        margin-top: 0;
        border-radius: 3px;
        border: none;
    }

    /* ---- FOOTER BOTTOM ---- */
    .footer-bottom {
        background: #060e1c;
        padding: 20px 80px;
        color: rgba(255,255,255,0.35);
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-align: center;
        border-top: 1px solid rgba(201,168,76,0.15);
    }

    /* ---- PAGINAZIONE ---- */
    .paginazione button {
        background: var(--navy);
        color: var(--white);
        border: none;
        padding: 8px 18px;
        font-size: 0.82rem;
        cursor: pointer;
        border-radius: 2px;
        margin-right: 8px;
        transition: background 0.2s, color 0.2s;
    }

    .paginazione button:hover {
        background: var(--gold);
        color: var(--navy);
    }

    }
