/* ==========================================================================
   ACCADEMIA SARDEGNA NEL CUORE — "Trame al Vento" 2026
   Identità visiva derivata dalla locandina della mostra:
   bianco carta, blu notte, filo d'oro, bande di tessuto sardo.
   ========================================================================== */

:root {
    /* Palette (campionata dai PDF della locandina e del logo) */
    --notte: #0D2849;      /* lettering del logo */
    --indaco: #223E6D;     /* sottotitolo del logo */
    --blu: #104788;        /* testi in evidenza della locandina */
    --oro: #F4B82D;        /* filo d'oro sotto il logo */
    --oro-scuro: #8A6200;  /* oro leggibile su bianco */
    --rosso: #A8172D;      /* rosso del tessuto */
    --carta: #FFFFFF;
    --cielo: #F3F5F9;
    --testo: #1F2B42;
    --muto: #56627A;
    --linea: rgba(13, 40, 73, 0.14);

    /* Colori dei nastri della rondine */
    --nastro-rosa: #E9858C;
    --nastro-oro: #F2BE4B;
    --nastro-viola: #4E3B95;
    --nastro-blu: #165A96;

    /* Tipografia */
    --f-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --f-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --f-ui: 'Montserrat', 'Segoe UI', Arial, sans-serif;

    /* Misure */
    --header-h: 78px;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --band: clamp(30px, 11vw, 210px);
    --radius: 4px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--carta);
    color: var(--testo);
    font-family: var(--f-serif);
    font-optical-sizing: auto;
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blu); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--notte); }

h1, h2, h3, h4 { margin: 0; color: var(--notte); line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
    outline: 2px solid var(--blu);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--notte);
    color: #fff;
    font-family: var(--f-ui);
    font-size: .85rem;
    text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--linea);
    transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 40, 73, .08); }

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
    max-width: 1320px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    text-decoration: none;
    color: var(--notte);
    flex-shrink: 0;
}
.brand img { width: 52px; height: auto; }
.brand-name {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .14em;
    line-height: 1.35;
    text-transform: uppercase;
}
.brand-name span { display: block; color: var(--indaco); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a {
    position: relative;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--notte);
    padding: 6px 0;
}
.site-nav ul a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--oro);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.site-nav ul a:hover::after,
.site-nav ul a.active::after { transform: scaleX(1); }

.site-nav .nav-cta {
    padding: 10px 18px;
    border: 1px solid var(--notte);
    border-radius: 999px;
    white-space: nowrap;
    transition: background .25s, color .25s;
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta.active { background: var(--notte); color: #fff; }

/* Selettore lingua (Google Translate, dopo consenso) */
.lang { position: relative; flex-shrink: 0; }
.custom-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--linea);
    border-radius: 999px;
    background: #fff;
    color: var(--notte);
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .75rem;
    letter-spacing: .06em;
    cursor: pointer;
}
.custom-translate-btn svg { width: 16px; height: 16px; }
.custom-translate-btn:hover { border-color: var(--notte); }

.translate-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 170px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(13, 40, 73, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.translate-dropdown.active { opacity: 1; visibility: visible; transform: none; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 3px;
    background: none;
    color: var(--testo);
    font-family: var(--f-ui);
    font-size: .85rem;
    text-align: left;
    cursor: pointer;
}
.lang-btn:hover { background: var(--cielo); }
.lang-btn.active { color: var(--blu); font-weight: 600; }
.lang-code {
    width: 26px;
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .08em;
    color: var(--muto);
}

/* Widget Google nascosto */
#google_translate_element,
.goog-te-banner-frame,
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; }

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px 9px;
    border: 0;
    background: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}
.mobile-menu-toggle span {
    display: block;
    height: 2px;
    background: var(--notte);
    transition: transform .3s var(--ease), opacity .2s;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Bande di tessuto (elemento firma, come nella locandina)
   -------------------------------------------------------------------------- */
.band {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--band);
    overflow: hidden;
    pointer-events: none;
}
.band::before {
    content: "";
    position: absolute;
    inset: -12% 0;
    background: url("../images/trame-al-vento/tessuto-verticale.jpg") center top / cover repeat-y;
    transform: translate3d(0, var(--drift, 0px), 0);
    will-change: transform;
}
.band--left { left: 0; }
.band--right { right: 0; }
.band--right::before { transform: scaleX(-1) translate3d(0, var(--drift-r, 0px), 0); background-position: center bottom; }

.textile-strip {
    height: clamp(56px, 7vw, 92px);
    background: url("../images/trame-al-vento/tessuto-orizzontale.jpg") center / auto 210% repeat-x;
}

/* --------------------------------------------------------------------------
   Hero home: la locandina
   -------------------------------------------------------------------------- */
.poster {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 7vh, 80px) calc(var(--band) + var(--gutter));
    text-align: center;
    background: var(--carta);
}
.poster-inner { max-width: 640px; }

.poster-logo {
    width: min(360px, 74%);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(14px);
    animation: rise 1.1s var(--ease) .1s forwards;
}
.poster-statement {
    margin: clamp(22px, 3.5vh, 36px) auto 0;
    font-family: var(--f-serif);
    font-variation-settings: "SOFT" 100;
    font-weight: 700;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    line-height: 1.3;
    color: var(--blu);
    opacity: 0;
    animation: rise 1s var(--ease) .45s forwards;
}
.poster-statement em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-weight: 500;
    font-size: .72em;
    color: var(--indaco);
}
.poster-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(.8rem, 1.4vw, .92rem);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--notte);
    opacity: 0;
    animation: rise 1s var(--ease) .65s forwards;
}
.poster-facts li + li::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin: 0 22px 2px 0;
    background: var(--oro);
    transform: rotate(45deg);
}
.poster-free {
    display: inline-block;
    margin: 16px 0 0;
    padding: 7px 18px;
    border: 1px solid var(--oro);
    border-radius: 999px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(.78rem, 1.3vw, .88rem);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--notte);
    opacity: 0;
    animation: rise 1s var(--ease) .75s forwards;
}
.poster .btn-row {
    justify-content: center;
    margin-top: clamp(26px, 4vh, 40px);
    opacity: 0;
    animation: rise 1s var(--ease) .85s forwards;
}

@keyframes rise { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Intestazione pagine interne
   -------------------------------------------------------------------------- */
.page-head {
    position: relative;
    padding: clamp(56px, 9vw, 104px) calc(var(--band) * .7 + var(--gutter));
    text-align: center;
    background: var(--carta);
    border-bottom: 1px solid var(--linea);
}
.page-head .band { width: calc(var(--band) * .7); }
.page-head h1 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.page-head .rule { margin: 22px auto; }
.page-head p {
    max-width: 640px;
    margin: 0 auto;
    font-variation-settings: "SOFT" 100;
    font-weight: 600;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.45;
    color: var(--blu);
}
.page-head .badge { margin-bottom: 18px; }
.page-head-logo { width: min(300px, 70%); margin: 0 auto 6px; }

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--cielo { background: var(--cielo); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }

.section-title { margin-bottom: clamp(32px, 5vw, 56px); }
.section-title--center { text-align: center; }
.section-title--center .rule { margin-inline: auto; }

.eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--indaco);
}
.section-title h2,
.h2 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.rule {
    width: 72px;
    height: 2px;
    margin-top: 20px;
    background: var(--oro);
    border: 0;
}

h3 {
    font-family: var(--f-serif);
    font-variation-settings: "SOFT" 100;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    color: var(--notte);
    margin-bottom: 12px;
}

.lead {
    font-variation-settings: "SOFT" 100;
    font-weight: 600;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    line-height: 1.5;
    color: var(--blu);
}

.prose { max-width: 68ch; }
.prose--center { margin-inline: auto; text-align: center; }

/* Due colonne testo / immagine */
.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split-media img {
    width: 100%;
    border-radius: var(--radius);
}
.split-media figcaption {
    margin-top: 10px;
    font-family: var(--f-ui);
    font-size: .75rem;
    letter-spacing: .04em;
    color: var(--muto);
}
.split-media--logo { display: flex; justify-content: center; }
.split-media--logo img { width: min(280px, 80%); }

/* --------------------------------------------------------------------------
   Bottoni e badge
   -------------------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 26px;
    border: 1px solid var(--notte);
    border-radius: 999px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--notte); color: #fff; }
.btn--primary:hover { background: var(--blu); border-color: var(--blu); color: #fff; }
.btn--ghost { background: transparent; color: var(--notte); }
.btn--ghost:hover { background: var(--notte); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--notte); }
.btn--light:hover { background: var(--oro); border-color: var(--oro); color: var(--notte); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--notte); }
.btn svg { width: 16px; height: 16px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.badge--live { background: var(--rosso); color: #fff; }
.badge--live::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 2s infinite;
}
.badge--past { background: var(--cielo); color: var(--indaco); border: 1px solid var(--linea); }

@keyframes pulse { 50% { opacity: .35; } }

/* --------------------------------------------------------------------------
   Informazioni pratiche (come sulla locandina)
   -------------------------------------------------------------------------- */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0;
    border-top: 1px solid var(--linea);
    border-bottom: 1px solid var(--linea);
}
.fact {
    padding: 28px 28px 30px 0;
}
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--linea); }
.fact-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--indaco);
}
.fact-label svg { width: 16px; height: 16px; color: var(--oro-scuro); }
.fact-value {
    font-variation-settings: "SOFT" 100;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--blu);
}
.fact-value a { color: inherit; text-decoration: none; }
.fact-value a[href^="tel:"] { white-space: nowrap; }
.fact-value a:hover { text-decoration: underline; }
.fact-note { margin-top: 6px; font-size: .92rem; color: var(--muto); }

/* --------------------------------------------------------------------------
   I cinque fili: materia, vita, festa, rito, memoria
   -------------------------------------------------------------------------- */
.threads {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.thread {
    position: relative;
    padding: 34px 22px 0;
    border-left: 1px solid var(--linea);
}
.thread:first-child { border-left: 0; padding-left: 0; }
.thread::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 4px;
    background: var(--c, var(--nastro-blu));
}
.thread:first-child::before { left: 0; }
.thread:nth-child(1) { --c: var(--nastro-viola); }
.thread:nth-child(2) { --c: var(--nastro-rosa); }
.thread:nth-child(3) { --c: var(--nastro-oro); }
.thread:nth-child(4) { --c: var(--rosso); }
.thread:nth-child(5) { --c: var(--nastro-blu); }
.thread h3 {
    font-family: var(--f-display);
    font-variation-settings: normal;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.thread p { font-size: .98rem; color: var(--muto); }

/* --------------------------------------------------------------------------
   Card progetti
   -------------------------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.card:hover { border-color: var(--oro); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,40,73,.08); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cielo); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media--contain img { object-fit: contain; padding: 18px; }
.card-media--top img { object-position: center top; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card-meta {
    margin-bottom: 8px;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--indaco);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: .97rem; color: var(--muto); }
.card-link {
    margin-top: auto;
    padding-top: 14px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--notte);
}
.card-link::after { content: " →"; }
.card-link:hover { color: var(--blu); }
.card-link--stretched::before { content: ""; position: absolute; inset: 0; }
.card { position: relative; }

/* Progetto in evidenza (orizzontale) */
.feature {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    border: 1px solid var(--linea);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.feature-media {
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    min-height: 320px;
}
.feature-media img { max-height: 520px; width: auto; box-shadow: 0 14px 40px rgba(13,40,73,.16); }
.feature-body { padding: clamp(28px, 4vw, 56px); border-left: 1px solid var(--linea); }
.feature-body .badge { margin-bottom: 18px; }
.feature-body h2 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.feature-body .subtitle {
    font-family: var(--f-display);
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--indaco);
    margin-bottom: 20px;
}
.feature .facts { margin: 26px 0 30px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.feature .fact { padding-block: 18px 20px; }
.feature .fact-value { font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Valori (rombo dei tessuti sardi)
   -------------------------------------------------------------------------- */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px 36px;
}
.value h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--f-display);
    font-variation-settings: normal;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.value h3::before {
    content: "";
    flex: 0 0 auto;
    width: 12px; height: 12px;
    border: 2px solid var(--oro);
    transform: rotate(45deg);
}
.value p { color: var(--muto); font-size: .98rem; }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
    position: relative;
    padding: 14px 0 14px 30px;
    border-bottom: 1px solid var(--linea);
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 1.45em;
    width: 8px; height: 8px;
    background: var(--oro);
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Sostegno istituzionale
   -------------------------------------------------------------------------- */
.sponsor {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.sponsor img { width: 92px; flex-shrink: 0; }
.sponsor-text {
    flex: 1 1 280px;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .68rem;
    letter-spacing: .06em;
    line-height: 1.7;
    text-transform: uppercase;
    color: var(--notte);
}
.sponsor-text .eyebrow { margin-bottom: 6px; }
.sponsor--center { justify-content: center; text-align: left; }

/* --------------------------------------------------------------------------
   Fascia invito (blu notte)
   -------------------------------------------------------------------------- */
.cta-band {
    background: var(--notte);
    color: rgba(255,255,255,.86);
    text-align: center;
}
.cta-band .wrap { padding-block: clamp(56px, 8vw, 96px); }
.cta-band h2 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.cta-band .rule { margin: 20px auto 24px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--notte);
    color: rgba(255,255,255,.78);
    font-size: .95rem;
}
.cta-band + .site-footer .footer-main { border-top: 1px solid rgba(255,255,255,.12); }
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding-block: 64px 48px;
}
.footer-brand img { width: 74px; margin-bottom: 16px; background: #fff; border-radius: 50%; padding: 6px; }
.footer-brand p { max-width: 30ch; }
.site-footer h2 {
    margin-bottom: 16px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--oro);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--oro); text-decoration: underline; }
.footer-sponsor {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-block: 26px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .64rem;
    letter-spacing: .06em;
    line-height: 1.7;
    text-transform: uppercase;
}
.footer-sponsor img { width: 54px; background: #fff; padding: 6px; border-radius: 3px; flex-shrink: 0; }
.footer-bottom {
    padding-block: 22px 28px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-family: var(--f-ui);
    font-size: .78rem;
    color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.85); }
.footer-bottom button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: rgba(255,255,255,.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.footer-bottom button:hover { color: var(--oro); }

/* --------------------------------------------------------------------------
   Archivio progetti (dettagli)
   -------------------------------------------------------------------------- */
.project-detail + .project-detail { border-top: 1px solid var(--linea); }
.project-detail .meta-line {
    margin-top: 14px;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--indaco);
}
.programme { margin: 0; padding: 0; list-style: none; }
.programme li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--linea);
}
.programme time, .programme .when {
    font-variation-settings: "SOFT" 100;
    font-weight: 700;
    color: var(--blu);
}
.programme em { display: block; font-size: .92rem; color: var(--muto); }
.note {
    margin-top: 28px;
    padding: 22px 24px;
    background: var(--cielo);
    border-left: 3px solid var(--oro);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.note h4 {
    margin-bottom: 8px;
    font-family: var(--f-display);
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.image-pair img, .detail-image { border-radius: var(--radius); border: 1px solid var(--linea); }
.detail-image { margin: 0 0 28px; }

/* --------------------------------------------------------------------------
   Mostra 2025: sezioni, galleria, panoramiche, costumi
   -------------------------------------------------------------------------- */
.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 900;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--linea);
}
.subnav ul {
    display: flex;
    justify-content: center;
    gap: 6px 28px;
    flex-wrap: wrap;
    margin: 0;
    padding: 12px 0;
    list-style: none;
}
.subnav a {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: .76rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--notte);
}
.subnav a:hover { color: var(--blu); text-decoration: underline; }

.chapters { display: grid; gap: 0; }
.chapter {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
    gap: clamp(24px, 5vw, 64px);
    padding-block: 44px;
    border-top: 1px solid var(--linea);
}
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter-head h3 {
    font-family: var(--f-display);
    font-variation-settings: normal;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.chapter-head .lead { font-size: 1.08rem; margin-top: 12px; }
.chapter-body h4 {
    margin: 24px 0 8px;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--indaco);
}
.chapter-body ul { margin: 0; padding-left: 1.1em; }
.chapter-body li::marker { color: var(--oro-scuro); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--cielo);
    cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

.panorama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.panorama-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 32 / 9;
    background: var(--cielo);
    cursor: grab;
}
.panorama-item img { width: 100%; height: 100%; object-fit: cover; }
.panorama-item span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(13,40,73,.85);
    color: #fff;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .08em;
}
.gallery-subtitle {
    margin: 64px 0 8px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.gallery-hint { margin-bottom: 22px; color: var(--muto); font-size: .95rem; }

.costumi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.costume-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 1px solid var(--linea);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: border-color .3s, transform .3s var(--ease);
}
.costume-card:hover { border-color: var(--oro); transform: translateY(-3px); }
.costume-card-image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--cielo); }
.costume-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.costume-card:hover .costume-card-image img { transform: scale(1.04); }
.costume-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .68rem;
    color: var(--notte);
}
.costume-card-info { padding: 16px 18px 18px; }
.costume-card-location {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--notte);
}
.costume-card-title { margin-top: 4px; font-size: .95rem; color: var(--muto); }

/* Overlay comuni: lightbox, panorama, scheda costume */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 22, 41, .94);
}
.overlay.active { display: flex; }
.overlay-close,
.overlay-nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.panorama-controls,
.panorama-info { z-index: 2; }
#panorama-viewer .overlay-close { background: rgba(13,40,73,.85); }
.overlay-close:hover,
.overlay-nav:hover { background: var(--oro); border-color: var(--oro); color: var(--notte); }
.overlay-close { top: 18px; right: 18px; }
.overlay-nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.overlay-nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

#lightbox-img { max-width: min(1200px, 86vw); max-height: 82vh; object-fit: contain; border-radius: 3px; }
.lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-ui);
    font-size: .8rem;
    letter-spacing: .1em;
    color: rgba(255,255,255,.75);
}

#panorama-container { width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.panorama-wrapper { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; cursor: grab; }
.panorama-wrapper:active { cursor: grabbing; }
.panorama-image { max-width: none; height: 80vh; width: auto; user-select: none; transition: transform .05s linear; }
.panorama-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.panorama-controls button {
    min-width: 48px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .8rem;
    cursor: pointer;
}
.panorama-controls button:hover { background: var(--oro); color: var(--notte); }
.panorama-info {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: var(--f-ui);
    font-size: .78rem;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
}

.costume-modal-content {
    position: relative;
    width: min(1100px, 100%);
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
}
.costume-modal-image { background: var(--cielo); display: flex; align-items: center; }
.costume-modal-image img { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; }
.costume-modal-info { padding: 40px 36px; overflow-y: auto; max-height: 90vh; }
.costume-modal-counter {
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .14em;
    color: var(--indaco);
}
.costume-modal-info h3 { margin: 8px 0 4px; font-size: 1.5rem; }
.costume-modal-location {
    margin-bottom: 18px;
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blu);
}
.costume-modal-description { font-size: .96rem; line-height: 1.75; }
.costume-modal-description strong { color: var(--notte); }
#costume-modal .overlay-close { background: var(--notte); }

/* --------------------------------------------------------------------------
   Contatti
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: start;
}
.contact-form { display: grid; gap: 18px; margin-top: 28px; }
.form-group { display: grid; gap: 6px; }
.form-group label {
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--notte);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(13,40,73,.28);
    border-radius: var(--radius);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: var(--testo);
}
.form-group input:focus,
.form-group textarea:focus { outline: 2px solid var(--blu); outline-offset: 0; border-color: var(--blu); }
.form-group textarea { resize: vertical; min-height: 150px; }
.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-family: var(--f-serif) !important;
    font-weight: 400 !important;
    font-size: .95rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--testo) !important;
}
.checkbox-label input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--notte); flex-shrink: 0; }
.form-status {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: .95rem;
}
.form-status--error { background: #FBEDEF; color: #7D1022; border: 1px solid #F1C4CB; }
.form-status--ok { background: #EDF4FB; color: var(--notte); border: 1px solid #C7DAEE; }
.form-hint { font-size: .88rem; color: var(--muto); }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--linea);
}
.contact-list li:first-child { border-top: 1px solid var(--linea); }
.contact-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cielo);
    color: var(--blu);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-list strong {
    display: block;
    font-family: var(--f-ui);
    font-weight: 600;
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--indaco);
}
.contact-list a { word-break: break-word; }

/* --------------------------------------------------------------------------
   Privacy (testo lungo)
   -------------------------------------------------------------------------- */
.legal { max-width: 78ch; margin-inline: auto; }
.legal h2 {
    margin: 48px 0 14px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.legal h3 { margin: 24px 0 8px; font-size: 1.1rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal .last-updated { font-family: var(--f-ui); font-size: .8rem; color: var(--muto); }

/* --------------------------------------------------------------------------
   Torna su
   -------------------------------------------------------------------------- */
.scroll-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 950;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--notte);
    border-radius: 50%;
    background: #fff;
    color: var(--notte);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, visibility .3s, background .2s, color .2s;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.scroll-to-top:hover { background: var(--notte); color: #fff; }

/* --------------------------------------------------------------------------
   Comparsa allo scroll (solo con JS attivo)
   -------------------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1140px) {
    .mobile-menu-toggle { display: flex; }
    .site-header .wrap { gap: 12px; }
    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--gutter) 28px;
        background: #fff;
        border-bottom: 1px solid var(--linea);
        box-shadow: 0 20px 40px rgba(13,40,73,.12);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .site-nav.active { opacity: 1; visibility: visible; transform: none; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: .9rem; }
    .site-nav ul a::after { display: none; }
    .site-nav ul a.active { color: var(--blu); }
    .site-nav .nav-cta { margin-top: 18px; text-align: center; padding: 14px; }
    .lang { order: 2; }
    .mobile-menu-toggle { order: 3; }
}

@media (max-width: 960px) {
    .split,
    .contact-grid,
    .feature,
    .chapter { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: 0; }
    .feature-body { border-left: 0; border-top: 1px solid var(--linea); }
    .feature-media { min-height: 0; }
    .feature-media img { max-height: 420px; }
    .threads { grid-template-columns: 1fr 1fr; gap: 0 24px; }
    .thread,
    .thread:first-child { border-left: 0; padding: 26px 0 22px; }
    .thread:nth-child(5) { grid-column: 1 / -1; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .costume-modal-content { grid-template-columns: 1fr; overflow-y: auto; }
    .costume-modal-image img { max-height: 46vh; }
    .costume-modal-info { max-height: none; overflow: visible; }
}

@media (max-width: 640px) {
    :root { --header-h: 68px; }
    body { font-size: 1rem; }
    .brand img { width: 44px; }
    .brand-name { font-size: .68rem; letter-spacing: .1em; }
    .poster-facts { flex-direction: column; gap: 4px; }
    .poster-facts li + li::before { display: none; }
    .poster .btn-row { flex-direction: column; align-items: stretch; }
    .fact,
    .fact + .fact { padding: 20px 0; border-left: 0; }
    .fact + .fact { border-top: 1px solid var(--linea); }
    .threads { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 32px; }
    .image-pair { grid-template-columns: 1fr; }
    .programme li { grid-template-columns: 1fr; gap: 2px; }
    .panorama-info { display: none; }
    .overlay-nav--prev { left: 8px; }
    .overlay-nav--next { right: 8px; }
    .costume-modal-info { padding: 28px 22px; }
    .panorama-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .poster-logo, .poster-statement, .poster-facts, .poster-free, .poster .btn-row { opacity: 1; transform: none; }
    .js .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .scroll-to-top, .band, .textile-strip, .cookie-consent-banner { display: none !important; }
    .poster, .page-head { padding-inline: 0; min-height: 0; }
}
