/*
 * Alessandro Bellato — il palco: tokens, base, tipografia, header e menu,
 * la parte professionale (Mariposa, spettacoli, chi sono, recensioni,
 * curiosità, prenota), le pagine /mariposa e /contatti, il footer.
 *
 * Il racconto della home (le scene) sta in story.css, che si carica dopo
 * questo file e ne usa i tokens. Progetto: bellato-design.md §1, §5.
 *
 * Mondo: la notte verde-petrolio delle foto, e l'oro del broccato come UNICO
 * accento. Ciano, magenta e verde esistono solo nel bordo delle bolle.
 * Senza JavaScript o con movimento ridotto tutto è visibile e fermo.
 */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-italic.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/figtree.woff2) format('woff2'); }

/* ================= tokens (§1.2, hex presi dalle foto) ================= */
:root {
    /* ---- la notte del teatro ---- */
    --night-0: #050909;   /* bordi della foto, footer, sipario */
    --night-1: #0a1414;   /* fondo di scena: body, sezioni professionali */
    --night-2: #10211f;   /* superfici: card, pannelli, menu */
    --night-3: #183130;   /* bordi in rilievo, hover delle superfici */
    --memory:  #0b0d0d;   /* cielo delle scene in bianco e nero */

    --ink:   #f1ebdc;                    /* testo (su night-1: 15.4:1) */
    --ink-2: rgba(241, 235, 220, .72);   /* testo secondario */
    --ink-3: rgba(241, 235, 220, .5);    /* note, didascalie (4.6:1 su night-1) */

    /* ---- l'oro del broccato e del logo: unico accento dell'interfaccia ---- */
    --gold:    #d7b259;
    --gold-hi: #f1d88a;
    --gold-lo: #8f6a22;
    --gold-line: rgba(215, 178, 89, .28);

    /* ---- il cielo: due tempi ---- */
    --sky-memory: #0b0d0d;
    --sky-stage:  #0a1414;

    /* ---- la pellicola delle bolle (i canvas la ricostruiscono in JS) ---- */
    --film-stage: conic-gradient(from 0deg,
        #f0d38a 0deg, #d7a84e 40deg, #c6f1f3 105deg, #6fd3dc 145deg,
        #d98fb5 200deg, #a8d98a 250deg, #f3e3b0 300deg, #f0d38a 360deg);
    --film-mono: conic-gradient(from 0deg,
        #f4efe4 0deg, #c9c2b4 60deg, #ffffff 120deg, #b9b3a8 190deg,
        #e8e2d6 260deg, #d2cbbf 320deg, #f4efe4 360deg);

    --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --sans:  'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ease-out:  cubic-bezier(.2, .7, .2, 1);
    --ease-in:   cubic-bezier(.6, 0, .9, .4);
    --ease-soft: cubic-bezier(.45, 0, .2, 1);

    --gut: 16px;
    --head-h: 64px;
    --wrap: 1280px;
    --copy: 34rem;
    --stanza: 26rem;
    --section-y: clamp(72px, 10vw, 140px);
    color-scheme: dark;
}
@media (min-width: 700px) { :root { --gut: 32px; } }
@media (min-width: 1100px) { :root { --gut: 56px; } }
@media (min-width: 1120px) { :root { --head-h: 72px; } }

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--night-1); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (min-width: 1100px) { body { font-size: 18px; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--gold-line); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--gold); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 330; }
figure, blockquote, dl, dd { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--night-0); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(215, 178, 89, .35); color: var(--ink); }

/* ================= tipografia (§1.3) ================= */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 12.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
/* la bollicina dei titoletti: bubbles.js la fa scoppiare e rinascere (.kick) */
.kicker::before { content: ''; flex: none; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9) 0 12%, transparent 30%), var(--film-stage); -webkit-mask: radial-gradient(circle at 34% 30%, #000 0 22%, transparent 32%), radial-gradient(closest-side, transparent 72%, #000 88%, transparent 100%); mask: radial-gradient(circle at 34% 30%, #000 0 22%, transparent 32%), radial-gradient(closest-side, transparent 72%, #000 88%, transparent 100%); }
.kicker.kick::before { animation: kicker-rebirth 2.2s var(--ease-out) both; }
@keyframes kicker-rebirth { 0% { transform: scale(1.5); opacity: 0; } 30% { transform: scale(.2); opacity: 0; } 100% { transform: none; opacity: 1; } }

.h1, .h2, .hero-title, .mp-sub { font-family: var(--serif); font-weight: 330; line-height: 1.02; letter-spacing: -.02em; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; text-wrap: balance; }
.h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5rem); margin-bottom: 24px; }
.h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); margin-bottom: 28px; }
.hero-title { font-size: clamp(2.2rem, 1.2rem + 5vw, 5.4rem); line-height: 1; }
.h1 em, .h2 em, .hero-title em { font-style: italic; font-weight: 300; color: var(--gold-hi); }
/* il racconto: le regole di posizione stanno in story.css */
.stanza { font: 340 clamp(1.45rem, 1rem + 1.9vw, 2.5rem)/1.3 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72; max-width: var(--stanza); }
.stanza .line.turn { font-style: italic; font-weight: 320; color: var(--gold-hi); }
.signature { font: italic 300 clamp(2.4rem, 1.4rem + 4vw, 4.6rem)/1 var(--serif); font-variation-settings: 'WONK' 1; }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: var(--copy); }
.note { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.note a { color: var(--ink-2); }

/* ================= bottoni ================= */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; font: 600 15px/1 var(--sans); letter-spacing: .04em; text-decoration: none; color: var(--night-0); background: var(--gold); box-shadow: 0 10px 24px -14px var(--gold-lo); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease-out); }
.btn:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px rgba(215, 178, 89, .55); }
.btn.ghost:hover { background: rgba(215, 178, 89, .08); box-shadow: inset 0 0 0 1px var(--gold); }

/* ================= header e menu (§5.1) ================= */
.head { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s; }
/* in cima, sopra le foto, un velo leggero tiene leggibili logo e voci */
.head::before { content: ''; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(to bottom, rgba(5, 9, 9, .55), transparent); pointer-events: none; transition: opacity .35s; }
.head.scrolled::before { opacity: 0; }
.head.scrolled { background: rgba(10, 20, 20, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--gold-line); }
/* dentro il racconto niente blur: costerebbe un compositing in più a ogni frame */
html.in-story .head.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 20, 20, .62); }
.head-in { display: flex; align-items: center; gap: 22px; height: var(--head-h); }
.mark { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.mark img { width: 40px; height: 40px; }
.mark span { font: 400 19px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.mark em { font-style: italic; color: var(--gold); }
.nav { display: none; gap: 24px; align-items: center; }
.nav a { font-size: 15px; text-decoration: none; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
/* Mariposa: la farfallina d'oro che batte le ali */
.nav-star { position: relative; padding-left: 21px; font-family: var(--serif); font-style: italic; color: var(--gold-hi) }
.nav-star::before { content: ''; position: absolute; left: 0; top: 50%; width: 15px; height: 11px; transform: translateY(-50%); background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-90 -56 180 118'%3E%3Cpath d='M0 2C-30 4-58 14-60 34C-61 48-46 58-32 52C-18 46-6 28 0 8ZM0-4C-10-30-40-52-70-50C-84-49-86-38-80-28C-70-12-40-2 0 2ZM0 2C30 4 58 14 60 34C61 48 46 58 32 52C18 46 6 28 0 8ZM0-4C10-30 40-52 70-50C84-49 86-38 80-28C70-12 40-2 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-90 -56 180 118'%3E%3Cpath d='M0 2C-30 4-58 14-60 34C-61 48-46 58-32 52C-18 46-6 28 0 8ZM0-4C-10-30-40-52-70-50C-84-49-86-38-80-28C-70-12-40-2 0 2ZM0 2C30 4 58 14 60 34C61 48 46 58 32 52C18 46 6 28 0 8ZM0-4C10-30 40-52 70-50C84-49 86-38 80-28C70-12 40-2 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat; animation: nav-flap 1.6s ease-in-out infinite; }
@keyframes nav-flap { 50% { transform: translateY(-50%) scaleX(.55); } }
.head-cta { display: none; min-height: 42px; padding: 0 20px; font-size: 14px; }
.burger { width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(16, 33, 31, .7); box-shadow: inset 0 0 0 1px rgba(215, 178, 89, .35); cursor: pointer; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 48; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: calc(var(--head-h) + 16px) 28px 32px; overflow-y: auto; background: radial-gradient(ellipse 90% 60% at 75% 12%, #16302e, var(--night-2) 45%, var(--night-1) 85%); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menu a { font: 350 clamp(1.7rem, 7.4vw, 2.4rem)/1.22 var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 72; text-decoration: none; }
.menu a[aria-current='page'] { font-style: italic; color: var(--gold-hi); }
.menu .nav-star { padding-left: 0; }
.menu .nav-star::before { display: none; }
.menu .menu-skip { margin-bottom: 14px; font: 600 13px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.menu small { margin-top: 18px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.menu .menu-tel { font: 500 1.15rem/1.4 var(--sans); color: var(--ink-2); }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open body { overflow: hidden; }
@media (min-width: 700px) { .head-cta { display: inline-flex; } }
@media (min-width: 1120px) { .nav { display: flex; } .burger, .menu { display: none; } }

/* ================= sezioni professionali ================= */
/* stanno sopra lo .sky fisso del racconto (z-index 0): fondo pieno */
:where(main > section, .foot) { position: relative; z-index: 1; background: var(--night-1); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 44rem; }
.sec-head .h2 { margin-bottom: 0; }
.frame { position: relative; overflow: hidden; border-radius: 14px; background: var(--night-2); box-shadow: 0 30px 70px -40px #000; }
.frame-img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--pos, 50% 50%); }
.kv { display: grid; margin-top: 28px; border-bottom: 1px solid var(--gold-line); }
.kv > div { display: grid; grid-template-columns: minmax(6.5rem, 9.5rem) 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--gold-line); }
.kv dt { font: 600 12px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding-top: 2px; }
.kv dd { color: var(--ink); overflow-wrap: anywhere; }
.kv a { text-decoration: none; }
.kv a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- le farfalle incise (sprite #bb-wing / #bb-body, appendice 2 §4) ---------- */
/* solo tratto d'oro, come una tavola di un vecchio libro. non-scaling-stroke
   voluto: quando l'ala ruota di profilo il tratto NON si assottiglia, come
   inchiostro su carta. */
.wing-line { fill: rgba(241, 216, 138, .06); stroke: var(--gold); stroke-width: 1.15px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.wing-vein { fill: none; stroke: var(--gold); stroke-opacity: .5; stroke-width: .7px; vector-effect: non-scaling-stroke; }
.wing-band { fill: none; stroke: var(--gold-hi); stroke-opacity: .8; stroke-width: .8px; vector-effect: non-scaling-stroke; stroke-dasharray: 5 2.5; }
.wing-dot { fill: var(--gold-hi); }
.body-line { fill: var(--night-1); stroke: var(--gold); stroke-width: 1.15px; vector-effect: non-scaling-stroke; stroke-linecap: round; }

/* Una farfalla (partials/butterfly): due ali HTML che ruotano in 3D sul corpo.
   ⚠️ Niente filter/opacity/overflow su .fly-pose: appiattirebbe le ali. Lo
   specchio dell'ala destra sta nell'SVG, qui solo la rotazione sul cardine.
   Il margin negativo mette il centro del corpo sul punto di translate(). */
.fly { position: absolute; left: 0; top: 0; width: var(--s, 40px); height: calc(var(--s, 40px) * .6);
    margin: calc(var(--s, 40px) * -.3) 0 0 calc(var(--s, 40px) * -.5);
    pointer-events: none; will-change: transform; transform-style: preserve-3d; opacity: .88; }
.fly-pose { position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(240px); }
.fly-w { position: absolute; top: 0; width: 50%; height: 100%; overflow: visible; }
.fly-w.l { left: 0; transform-origin: 100% 50%; transform: rotateY(var(--fold, 0deg)); }
.fly-w.r { right: 0; transform-origin: 0 50%; transform: rotateY(calc(var(--fold, 0deg) * -1)); }
.fly-b { position: absolute; left: 45%; top: 0; width: 10%; height: 100%; overflow: visible; }
/* nascita: il contorno si disegna dove la bolla si è rotta */
.fly.born .wing-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: fly-draw .55s var(--ease-out) forwards; }
.fly.born .wing-vein, .fly.born .wing-band, .fly.born .wing-dot { animation: fly-ink .4s .35s both; }
@keyframes fly-draw { to { stroke-dashoffset: 0; } }
@keyframes fly-ink { from { opacity: 0; } }
/* nel fumo bianco di /mariposa il filo d'oro vuole un'ombra di un pixel */
.mp-hero .fly { filter: drop-shadow(0 0 1px rgba(5, 9, 9, .9)); }

/* ================= Mariposa in evidenza (§5.2) ================= */
.mariposa:not(.is-page) { padding: var(--section-y) 0; border-top: 1px solid var(--gold-line); background: radial-gradient(70% 60% at 20% 30%, #10211f, transparent 70%), var(--night-1); }
.mp-grid { display: grid; gap: 36px; align-items: start; }
.mp-photo { position: relative; overflow: hidden; border-radius: 14px; background: var(--night-0); }
.mp-img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--pos-m, var(--pos, 50% 50%)); }
.mp-sky { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mp-sky canvas { width: 100%; height: 100%; }
/* le farfalle vivono a livello di sezione: dalla foto possono arrivare al titolo */
.mariposa { position: relative; }
.mp-flies { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
/* Posa senza JavaScript (con JS la scrive flies.js, anche in movimento
   ridotto): circa sulla foto, in coordinate della sezione. --s = apertura alare. */
.fly.f1 { --s: 34px; transform: translate(72vw, 22vw) rotateZ(-14deg) rotateX(24deg); }
.fly.f2 { --s: 30px; --fold: 62deg; transform: translate(84vw, 52vw) rotateZ(18deg) rotateX(24deg); }
.fly.f3 { --s: 26px; transform: translate(12vw, 60vw) rotateZ(-6deg) rotateX(24deg); }
@media (min-width: 900px) {
    .fly.f1 { --s: 44px; transform: translate(42vw, 22vh) rotateZ(-14deg) rotateX(24deg); }
    .fly.f2 { --s: 36px; transform: translate(50vw, 62vh) rotateZ(18deg) rotateX(24deg); }
    .fly.f3 { --s: 32px; transform: translate(12vw, 72vh) rotateZ(-6deg) rotateX(24deg); }
}
/* con flies.js le farfalle non ancora nate non si vedono */
.fly.unborn { visibility: hidden; }
.mp-copy { position: relative; z-index: 2; }
.mp-title { display: block; margin: 0 0 26px; }
.mp-word { display: block; font: italic 300 clamp(3.6rem, 2rem + 5.5vw, 6.4rem)/.9 var(--serif); letter-spacing: -.035em; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; color: var(--gold-hi); padding-bottom: .08em; white-space: nowrap; }
.mp-word [aria-hidden] > span { display: inline-block; }
.mp-sub { display: block; margin-top: 8px; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-style: italic; font-weight: 300; color: var(--ink); line-height: 1.15; }
/* le lettere si posano una alla volta (site.js: .seen all'ingresso) */
.js-motion .mariposa .mp-word [aria-hidden] > span { opacity: 0; transform: translateY(-.6em); }
.js-motion .mariposa.seen .mp-word [aria-hidden] > span { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s cubic-bezier(.2, 1.2, .3, 1); transition-delay: calc(var(--i) * 70ms); }
.mp-when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 22px; padding: 14px 0; border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.mp-when small { font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.mp-date { font: 400 1.15rem/1.1 var(--serif); color: var(--ink-2); }
.mp-dm { font: 330 clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem)/1 var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 144; color: var(--ink); letter-spacing: -.01em; }
.mp-text { font: 340 clamp(1.15rem, 1rem + .5vw, 1.4rem)/1.45 var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 72; color: var(--ink); max-width: var(--copy); margin-bottom: 28px; }
@media (min-width: 900px) {
    .mp-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
    .mariposa:not(.is-page) .mp-photo { grid-column: 1 / 8; }
    .mariposa:not(.is-page) .mp-copy { grid-column: 8 / 13; padding-left: clamp(0px, 2vw, 32px); }
    .mariposa:not(.is-page) .mp-img { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--head-h) - 32px); object-position: var(--pos, 50% 50%); }
}
@media (min-width: 1100px) {
    .mp-grid { align-items: start; }
    .mariposa:not(.is-page) .mp-photo { position: sticky; top: calc(var(--head-h) + 16px); }
    .mariposa:not(.is-page) .mp-copy { padding-top: 12vh; }
}

/* ---------- /mariposa: apertura (§5.9.1) ---------- */
.mp-hero { min-height: 100svh; }
.mp-hero-in { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; padding-bottom: clamp(40px, 7vh, 88px); }
.mp-hero .mp-photo { position: absolute; inset: 0; border-radius: 0; }
.mp-hero .mp-img { aspect-ratio: auto; }
.mp-hero .mp-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, var(--night-1) 0, rgba(10, 20, 20, .9) 32%, rgba(10, 20, 20, .25) 62%, transparent 78%), radial-gradient(120% 90% at 55% 35%, transparent 50%, rgba(5, 9, 9, .85) 100%); }
.mp-hero .mp-copy { padding-top: 46svh; }
.mp-hero .mp-copy > * { max-width: 36rem; }
@media (min-width: 900px) {
    .mp-hero .mp-img { object-position: var(--pos, 50% 50%); }
    .mp-hero .mp-photo::after { background: linear-gradient(to right, rgba(10, 20, 20, .92) 0, rgba(10, 20, 20, .55) 34%, transparent 58%), linear-gradient(to top, var(--night-1) 0, transparent 30%), radial-gradient(120% 90% at 60% 40%, transparent 50%, rgba(5, 9, 9, .85) 100%); }
    .mp-hero .mp-copy { padding-top: calc(var(--head-h) + 40px); }
}

/* ================= spettacoli: sei locandine (§5.3) ================= */
.shows { padding: var(--section-y) 0; }
.bills { display: grid; gap: 24px; }
.bill { display: flex; flex-direction: column; background: var(--night-2); border: 1px solid var(--night-3); border-radius: 20px; overflow: hidden; transition: border-color .4s; }
.bill:hover, .bill:focus-within { border-color: rgba(215, 178, 89, .4); }
.bill-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--night-0); }
.bill-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .9s var(--ease-soft); }
.bill-photo::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to top, var(--night-2), transparent); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .bill:hover .bill-img, .bill:focus-within .bill-img { transform: scale(1.04); } }
.bill-num { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 6px 10px; border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--gold); background: rgba(5, 9, 9, .72); box-shadow: inset 0 0 0 1px var(--gold-line); }
.bill-body { padding: 8px 24px 28px; }
.bill h3 { font: 350 1.6rem/1.15 var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 72; margin-bottom: 14px; }
.bill p { font-size: 16px; color: var(--ink-2); }
.bill p:last-child { margin-bottom: 0; }
.bill .opera { color: var(--gold-hi); font-family: var(--serif); font-style: italic; }

/* ================= Spettacoli · il viaggio accanto alle locandine (appendice 2 §3) ================= */
/* La regola che regge tutto: .trip-table ha preserve-3d e NESSUNA proprietà
   che la appiattisca (overflow, mask, clip-path, filter, opacity < 1). Il
   ritaglio lo fa .trip-win (padre del contesto 3D), la sfumatura .trip-fade
   sopra, in spazio schermo. --table-w lo riscrive trip.js; il valore qui è
   il fallback senza JS (--u è una lunghezza: calc(--x * --u) resta valido). */
.shows-grid { display: grid; gap: 28px; }
.trip { position: relative; --tilt: 50deg; --table-w: 520px; --u: calc(var(--table-w) / 944); }
.trip-win { position: relative; height: var(--trip-h, 560px); overflow: hidden; border-radius: 20px; background: var(--night-1); }
.trip-kicker { position: absolute; left: 20px; top: 16px; z-index: 3; margin: 0; }
.trip-scene { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 32%; }
.trip-table {
    position: absolute; left: 50%; top: 50%;
    width: var(--table-w); height: calc(var(--table-w) * 1090 / 944);
    margin: calc(var(--table-w) * 1090 / 944 / -2) 0 0 calc(var(--table-w) / -2);
    transform-style: preserve-3d; will-change: transform;
    transform: rotateX(var(--tilt)) translate(var(--camx, 0px), var(--camy, 0px));
    /* il foglio sfuma nel fondo della finestra: nessun bordo rettangolare */
    background: radial-gradient(60% 55% at 50% 45%, #10211f, rgba(10, 20, 20, 0) 78%);
}
.trip-land, .trip-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trip-land { will-change: transform; }           /* rasterizzata una volta, poi solo composita */
/* la carta: tratto d'oro su petrolio. Spessori in unità viewBox, niente
   non-scaling-stroke: la carta è un foglio e il tratto si accorcia con la prospettiva. */
.trip-neigh { fill: rgba(241, 235, 220, .018); stroke: rgba(215, 178, 89, .1); stroke-width: 1.5; }
.trip-halo { fill: none; stroke: rgba(215, 178, 89, .14); stroke-width: 12; stroke-linejoin: round; }
.trip-italy { fill: #132826; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.trip-regions { fill: none; stroke: rgba(215, 178, 89, .16); stroke-width: 1.2; }
.trip-ghost path { fill: none; stroke: rgba(241, 235, 220, .14); stroke-width: 2; stroke-dasharray: 3 10; stroke-linecap: round; }
.trip-leg { fill: none; stroke: var(--gold-hi); stroke-width: 4.5; stroke-linecap: round; }
.trip-dots circle { fill: rgba(241, 216, 138, .06); stroke: var(--gold-hi); stroke-width: 1.2; stroke-opacity: .7;
    opacity: clamp(0, (var(--f, 1) - var(--k)) * 12, 1);
    transform: translateY(calc(-6px * clamp(0, (var(--f, 1) - var(--k)) * 3, 1))); }
.trip-home circle:first-child { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.trip-home circle:last-child { fill: var(--gold); }
/* cose posate sul tavolo (nel piano) */
.trip-spot, .trip-van-shadow { position: absolute; left: 0; top: 0; pointer-events: none;
    transform: translate(calc(var(--x) * var(--u)), calc(var(--y) * var(--u))) translate(-50%, -50%); }
.trip-spot { width: 46%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(241, 216, 138, .18), rgba(241, 216, 138, .05) 45%, transparent 72%); }
.trip-van-shadow { width: 64px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
/* cose in piedi (ritagli di carta): contro-ruotate di --tilt, piede sul punto */
.trip-pin, .trip-van { position: absolute; left: 0; top: 0; transform-origin: 50% 100%;
    transform: translate(calc(var(--x) * var(--u)), calc(var(--y) * var(--u))) translateZ(1px) translate(-50%, -100%) rotateX(calc(var(--tilt) * -1)); }
.trip-pin { display: block; width: 30px; height: 66px; text-decoration: none; color: var(--gold); }
/* la spia è un cartello su un'asta: il furgone parcheggia sotto, e la si legge lo stesso */
.trip-pin::after { content: ''; position: absolute; left: 50%; top: 30px; width: 1px; height: 36px; background: linear-gradient(var(--gold), rgba(215, 178, 89, .35)); }
.trip-pin-disc { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--night-2);
    box-shadow: inset 0 0 0 1px rgba(215, 178, 89, .5); transition: box-shadow .4s, transform .4s var(--ease-out); }
.trip-pin-disc svg { width: 18px; height: 18px; }
.trip-pin.on .trip-pin-disc { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 3px rgba(215, 178, 89, .18); }
.trip-pin.cur .trip-pin-disc { transform: scale(1.15); }
.trip-pin:focus-visible { outline: none; }
.trip-pin:focus-visible .trip-pin-disc { outline: 2px solid var(--gold); outline-offset: 2px; }
.trip-pin-l { position: absolute; left: 38px; top: 15px; transform: translateY(-50%); white-space: nowrap;
    font: 500 12px/1 var(--sans); color: var(--ink-3); padding: 5px 9px; border-radius: 999px;
    background: rgba(5, 9, 9, .72); box-shadow: inset 0 0 0 1px rgba(215, 178, 89, .25); transition: color .4s, box-shadow .4s; }
.trip-pin.on .trip-pin-l { color: var(--ink); }
.trip-pin.cur .trip-pin-l { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.trip-pin.flip .trip-pin-l { left: auto; right: 38px; }      /* gen.py mette .flip alle tappe nella metà destra */
/* la quinta sta fra la quarta e il bordo: l'etichetta va sopra la spia */
.trip-pin.up .trip-pin-l { left: 50%; top: -16px; transform: translate(-50%, -50%); }
.trip-van { width: 76px; height: 55px; pointer-events: none; will-change: transform; }
/* Sollevato di 2px dal foglio (translateZ prima della rotazione, cioè lungo
   la normale del tavolo): appoggiato esattamente sul piano, il compositore
   ordinava la carta (layer propria) davanti alla metà bassa del furgone e
   le ruote sparivano. E 3px davanti alle spie, che stanno sullo stesso punto. */
.trip-van { transform: translate(calc(var(--x) * var(--u)), calc(var(--y) * var(--u))) translateZ(2px) translate(-50%, -100%) rotateX(calc(var(--tilt) * -1)) translateZ(3px); }
.trip-van-svg { width: 100%; height: 100%; overflow: visible; }
.trip-van[data-dir="l"] .trip-van-svg { transform: scaleX(-1); }
.trip .wheel { transform-box: fill-box; transform-origin: center; animation: trip-wheel .9s linear infinite; animation-play-state: paused; }
.trip.is-moving .wheel { animation-play-state: running; }
@keyframes trip-wheel { to { transform: rotate(1turn); } }
.trip .beam { opacity: 0; transition: opacity .3s; }
.trip.is-moving .beam { opacity: 1; }
/* sopra tutto, in spazio schermo */
.trip-fade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, var(--night-1), transparent 16%, transparent 84%, var(--night-1)),
                linear-gradient(to right, var(--night-1), transparent 12%, transparent 88%, var(--night-1)); }
.trip-sky { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.trip-sky canvas { width: 100%; height: 100%; display: block; }
.trip-note { margin: 12px 4px 0; }

/* il furgone dello sprite (#bb-van): inchiostro, quindi non-scaling-stroke */
.van-line { fill: var(--night-2); stroke: var(--gold); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.van-glass { fill: #f1d88a; fill-opacity: .62; stroke: var(--gold); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.van-thin { fill: none; stroke: var(--gold-lo); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.van-tyre { fill: var(--night-0); stroke: var(--gold); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.van-rim { fill: none; stroke: var(--gold); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.van-beam { fill: #f1d88a; fill-opacity: .14; }

/* le locandine come tappe */
.bill { scroll-margin-top: calc(var(--head-h) + 12px); }
.bill.is-stop { border-color: rgba(215, 178, 89, .55); }
.bill-num { transition: background .4s, color .4s, box-shadow .4s; }
.bill.is-stop .bill-num { background: var(--gold); color: var(--night-0); box-shadow: none; }

/* ---- telefono e tablet (< 1100): la carta è una fascia ferma in alto ---- */
@media (max-width: 1099.98px) {
    .trip { position: sticky; top: var(--head-h); z-index: 4; margin: 0 calc(var(--gut) * -1);
        --tilt: 44deg; --table-w: 720px; --trip-h: clamp(200px, 30svh, 300px); }
    .trip-win { border-radius: 0; }
    .trip-kicker { left: var(--gut); top: 12px; font-size: 11px; }
    .trip-note { position: absolute; left: var(--gut); right: var(--gut); bottom: 8px; z-index: 3; margin: 0; font-size: 11.5px; line-height: 1.3; }
    .trip-pin-l { display: none; }                 /* la locandina sotto è l'etichetta */
    .trip-van { width: 60px; height: 44px; }
    .trip-pin { width: 26px; height: 54px; } .trip-pin-disc { width: 26px; height: 26px; } .trip-pin::after { top: 26px; height: 28px; }
    .trip-spot { width: 70%; }
    .bill { scroll-margin-top: calc(var(--head-h) + var(--trip-h) + 12px); }
}
@media (min-width: 700px) and (max-width: 1099.98px) { .trip { --trip-h: clamp(220px, 34svh, 340px); } }
/* ---- locandine orizzontali da 700: una colonna, foto a sinistra ---- */
@media (min-width: 700px) {
    .bill { display: grid; grid-template-columns: minmax(0, 38%) 1fr; }
    .bill-photo { aspect-ratio: auto; height: 100%; min-height: 300px; }
    .bill-photo::after { inset: 0 0 0 auto; width: 34%; height: auto; background: linear-gradient(to left, var(--night-2), transparent); }
    .bill-body { padding: 26px 28px; align-self: center; }
}
/* ---- desktop: due colonne, la carta ferma a sinistra ---- */
@media (min-width: 1100px) {
    .shows-grid { grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
    .trip { position: sticky; top: calc(var(--head-h) + 16px); --trip-h: calc(100svh - var(--head-h) - 32px - 44px); }
    /* il foglio inclinato lascia vuota la parte alta: lo si alza un poco */
    .trip-table { top: 44%; }
    .bill { grid-template-columns: minmax(0, 38%) 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .trip { position: static !important; margin: 0 0 24px; }
    /* in flusso e senza camera: la fascia diventa una tavola alta, con tutta l'Italia */
    @media (max-width: 1099.98px) { .trip { margin: 0 calc(var(--gut) * -1) 24px; --trip-h: min(124vw, 600px); } }
    .trip .wheel, .trip .beam { animation: none; transition: none; }
    .trip-pin-disc, .trip-pin-l, .bill, .bill-num { transition: none; }
}

/* il sipario del salto al programma (site.js lo crea; appendice 2 §2.3) */
.curtain { position: fixed; inset: 0; z-index: 60; background: var(--night-0); opacity: 0; pointer-events: none; transition: opacity .18s var(--ease-in); }
.curtain.down { opacity: 1; }

/* ================= chi sono (§5.4) ================= */
.about { padding: var(--section-y) 0; background: radial-gradient(60% 50% at 85% 40%, #10211f, transparent 70%), var(--night-1) }
.about-grid { display: grid; gap: 36px; }
.about-photo { order: -1; }
.about-copy p { color: var(--ink-2); max-width: var(--copy); }
.about-copy .about-lead, .mp-story-copy .about-lead { font: 340 clamp(1.2rem, 1rem + .7vw, 1.5rem)/1.45 var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 72; color: var(--ink); }
@media (min-width: 900px) {
    .about-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
    .about-copy { grid-column: 1 / 6; }
    .about-photo { grid-column: 6 / 13; order: 0; margin-left: clamp(0px, 2vw, 32px); }
}
/* «leggera come una farfalla»: una scia tratteggiata che si disegna */
.farfalla { position: relative; display: inline-block; white-space: nowrap; font-family: var(--serif); font-style: italic; color: var(--gold-hi); }
.farfalla .trail { position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .36em; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 3 5; stroke-linecap: round; }
.farfalla .trail path { vector-effect: non-scaling-stroke; }
.reveal-on .farfalla .trail { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-soft) .2s; }
.reveal-on .farfalla.in .trail { clip-path: inset(0 0 0 0); }

/* ================= recensioni (§5.5) ================= */
.reviews { padding: var(--section-y) 0; }
.review-list { display: grid; gap: 24px; }
@media (min-width: 900px) { .review-list { grid-template-columns: 1fr 1fr; align-items: start; } .review:nth-child(2) { margin-top: 56px; } }
.review { position: relative; padding: clamp(26px, 3vw, 40px); background: var(--night-2); border: 1px solid var(--night-3); border-radius: 20px; }
.review blockquote p { font: 350 1.25rem/1.45 var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 72; color: var(--ink); margin: 0 0 22px; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .04em; }
.av { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: italic 400 17px/1 var(--serif); color: var(--gold-hi); }
.av::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--film-stage); -webkit-mask: radial-gradient(closest-side, transparent 80%, #000 90%, transparent 100%); mask: radial-gradient(closest-side, transparent 80%, #000 90%, transparent 100%); }
.av::after { content: ''; position: absolute; left: 22%; top: 16%; width: 26%; height: 16%; border-radius: 50%; background: rgba(255, 255, 255, .7); transform: rotate(-30deg); filter: blur(.5px); }

/* ================= curiosità (§5.6) ================= */
.faq { padding: var(--section-y) 0; }
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; } .faq-grid .sec-head { grid-column: 1 / 6; } .faq-list { grid-column: 6 / 13; } }
.faq-list { border-bottom: 1px solid var(--gold-line); }
.faq-list details { border-top: 1px solid var(--gold-line); }
.faq-list summary { display: flex; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font: 350 clamp(1.15rem, 1rem + .5vw, 1.4rem)/1.3 var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 72; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; margin-left: auto; font: 300 28px/1 var(--sans); color: var(--gold); transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.q-bub { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; }
.q-bub::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9) 0 12%, transparent 30%), var(--film-stage); -webkit-mask: radial-gradient(circle at 34% 30%, #000 0 22%, transparent 32%), radial-gradient(closest-side, transparent 72%, #000 88%, transparent 100%); mask: radial-gradient(circle at 34% 30%, #000 0 22%, transparent 32%), radial-gradient(closest-side, transparent 72%, #000 88%, transparent 100%); }
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 0 24px 32px; color: var(--ink-2); max-width: var(--copy); }
.js-motion details[open] .faq-a { animation: faq-open .35s var(--ease-out); }
@keyframes faq-open { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }

/* ================= prenota un sorriso (§5.7) ================= */
.book { padding: var(--section-y) 0; overflow: hidden; }
.book:not(.has-photo) { background: radial-gradient(55% 60% at 50% 100%, #10211f, transparent 70%), var(--night-1); text-align: center; }
.book:not(.has-photo) .btns { justify-content: center; }
.book:not(.has-photo) .lede { margin-left: auto; margin-right: auto; }
.book-art { position: absolute; inset: 0; }
.book-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-m, var(--pos, 50% 50%)); }
.book-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--night-1), transparent 16%), linear-gradient(to top, var(--night-1) 30%, rgba(10, 20, 20, .7) 52%, transparent 78%), radial-gradient(120% 90% at 55% 40%, transparent 40%, rgba(5, 9, 9, .6) 100%); }
.book-sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.book-sky canvas { width: 100%; height: 100%; }
.book-in { position: relative; z-index: 2; }
.book.has-photo { display: flex; align-items: flex-end; min-height: min(100svh, 860px); }
.book.has-photo .book-in { padding-top: 40svh; }
.book .h2 { margin-bottom: 18px; }
.book .lede { margin-bottom: 28px; }
.book .note { margin: 22px 0 0; }
/* Telefono: la foto non fa più da fondo dietro il testo. Lì il calderone
   finiva sotto il titolo e le bolle uscivano da dietro le parole: ora la
   foto è un riquadro in alto (il calderone in basso, dentro la foto), le
   bolle salgono sul suo viso, e il testo sta sotto, sulla notte. */
@media (max-width: 899.98px) {
    .book.has-photo { display: block; min-height: 0; padding-top: 0; }
    .book.has-photo .book-art, .book.has-photo .book-sky { position: absolute; inset: 0 0 auto 0; height: min(118vw, 72svh); }
    .book.has-photo .book-art { position: relative; }
    .book.has-photo .book-img { object-position: 44% 50%; }
    .book.has-photo .book-art::after { background: linear-gradient(to bottom, var(--night-1), transparent 14%), linear-gradient(to top, var(--night-1) 0, transparent 16%); }
    .book.has-photo .book-in { padding-top: 20px; }
}
@media (min-width: 900px) {
    .book.has-photo { align-items: center; }
    .book.has-photo .book-in { padding-top: 0; }
    .book.has-photo .book-in > * { max-width: 32rem; }
    .book-img { object-position: var(--pos, 50% 50%); }
    .book-art::after { background: linear-gradient(to bottom, var(--night-1), transparent 16%), linear-gradient(to right, var(--night-1) 35%, transparent 70%), radial-gradient(120% 90% at 60% 45%, transparent 40%, rgba(5, 9, 9, .6) 100%); }
}

/* ================= /mariposa: il racconto e il palco (§5.9) ================= */
.mp-story { padding: var(--section-y) 0; }
.mp-story-grid { display: grid; gap: 36px; align-items: center; }
.mp-story-copy p { color: var(--ink-2); max-width: var(--copy); }
@media (min-width: 900px) { .mp-story-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; } .mp-story-grid .frame { grid-column: 1 / 7; } .mp-story-copy { grid-column: 7 / 13; padding-left: clamp(0px, 2vw, 32px); } }
.mp-stage { overflow: hidden; min-height: clamp(420px, 80svh, 820px); display: flex; align-items: flex-end; }
.mp-stage-art { position: absolute; inset: 0; }
.mp-stage-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.mp-stage-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--night-1), rgba(10, 20, 20, .6) 18%, transparent 42%), linear-gradient(to bottom, var(--night-1), transparent 14%), radial-gradient(120% 90% at 55% 45%, transparent 50%, rgba(5, 9, 9, .7) 100%); }
.mp-stage-in { position: relative; z-index: 1; padding-bottom: 32px; }

/* ================= /contatti (§5.10) ================= */
.contact { padding: calc(var(--head-h) + clamp(40px, 7vw, 96px)) 0 var(--section-y); background: radial-gradient(60% 50% at 85% 10%, #16302e, transparent), var(--night-1) }
.contact-grid { display: grid; gap: 40px; }
.contact-photo { display: none; margin-top: 36px; }
@media (min-width: 900px) {
    .contact-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
    .contact-side { grid-column: 1 / 6; }
    .form { grid-column: 6 / 13; margin-left: clamp(0px, 3vw, 48px); }
    .contact-photo { display: block; }
}
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); background: var(--night-2); border: 1px solid var(--night-3); border-radius: 20px; }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); }
.form input:not([type='checkbox']), .form textarea { width: 100%; padding: 13px 15px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--night-1); border: 1px solid var(--night-3); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:hover, .form textarea:hover { border-color: rgba(215, 178, 89, .35); }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215, 178, 89, .18); }
.form .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 14px; line-height: 1.5; letter-spacing: 0; }
.form .check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
/* errori del modulo (T26): sotto il campo, letti dal lettore di schermo via aria-describedby */
.form .form-err { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: 0; color: #ff8a7a; }
.form [aria-invalid='true'] { border-color: #ff8a7a; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form .out { margin: 0; font-size: 14.5px; color: var(--gold-hi); max-width: 34rem; }
.form .out:empty { display: none; }

/* ================= la lente (§5.9.2, §5.10): una bolla che ingrandisce ================= */
[data-lens] { cursor: zoom-in; }
.lens { position: absolute; left: 0; top: 0; z-index: 3; width: 180px; height: 180px; border-radius: 50%; pointer-events: none; opacity: 0; background-repeat: no-repeat; background-color: var(--night-0); box-shadow: 0 18px 50px rgba(0, 0, 0, .6), inset 0 0 30px rgba(241, 216, 138, .18); transition: opacity .25s; }
.lens::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse 20% 12% at 32% 26%, rgba(255, 255, 255, .75), transparent), var(--film-stage); -webkit-mask: radial-gradient(ellipse 20% 12% at 32% 26%, #000, transparent), radial-gradient(closest-side, transparent 86%, #000 97%, transparent 100%); mask: radial-gradient(ellipse 20% 12% at 32% 26%, #000, transparent), radial-gradient(closest-side, transparent 86%, #000 97%, transparent 100%); }
.lensing .lens { opacity: 1; }

/* ================= footer (§5.8) ================= */
.foot { padding: clamp(56px, 7vw, 96px) 0 28px; background: var(--night-0); border-top: 1px solid var(--gold-line); font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 56px; } }
.foot-about img { width: 72px; height: 72px; margin-bottom: 18px; }
.foot-about p { max-width: 36rem; }
.foot-h { margin-bottom: 14px; font: 600 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--gold-line); font-size: 13.5px; color: var(--ink-3); }

/* ================= comparsa all'ingresso: [data-reveal] → .in ================= */
/* .reveal-on la mette site.js (movimento ammesso e IntersectionObserver
   presente): senza, tutto è già visibile. */
.reveal-on [data-reveal] { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal-on [data-reveal]:not(.in):not(.farfalla) { opacity: 0; transform: translateY(12px); }
.reveal-on .bill[data-reveal] { transition: opacity .65s var(--ease-out), transform .65s var(--ease-out), border-color .4s; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s; }
.reveal-on .bill[data-reveal]:not(.in) { transform: translateY(28px); }
.reveal-on .review[data-reveal] { transition: opacity .8s var(--ease-out), transform .8s cubic-bezier(.2, .9, .25, 1.05); transition-delay: calc(var(--i, 0) * 160ms); }
.reveal-on .review[data-reveal]:not(.in) { transform: translateY(36px) scale(.97); }
.reveal-on .frame[data-reveal]:not(.in) { transform: translateY(24px); }
.reveal-on .mp-stage-art[data-reveal] { transition: transform 1.2s var(--ease-out); }
.reveal-on .mp-stage-art[data-reveal]:not(.in) { opacity: 1; transform: scale(1.04); }

/* ================= movimento ridotto ================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nav-star::before { animation: none; }
    .btn, .bill-img { transition: none; }
}

/* i credits (sites/partials/credits) */
.foot-credits a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot-credits a:hover { color: var(--ink); }
