/* =========================================================================
   Da quei ragazzi
   Colori e caratteri dalla brand identity (novembre 2026): Arancio Vivo #FF6400,
   Blu profondo #1D3D9B, fondo crema; Boldonse per logo e titoli, Archivo per i testi.
   Il motivo del sito resta il CERCHIO (l'occhio di bue del palco, e la Q del logo).
   ========================================================================= */
@font-face { font-family: "Boldonse"; src: url("../fonts/boldonse-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  /* Colore */
  --ground: #FBF8F3;      /* fondo crema della brand identity */
  --tone: #F3EEE4;        /* superficie un passo sopra il fondo */
  --tone-2: #E9E2D4;      /* superficie due passi sopra */
  --ink: #1D3D9B;         /* testo: il Blu profondo del brand (9:1 sul crema) */
  --muted: #4A5A8C;       /* testo secondario, sempre leggibile (6:1) */
  --stage: #1D3D9B;       /* il palco: campi blu */
  --stage-deep: #142C73;  /* il buio dietro il sipario */
  --stage-ink: #FFFFFF;   /* testo sul blu */
  --stage-muted: #D6DDF5; /* testo secondario sul blu (7:1) */
  --accent: #FF6400;      /* Arancio Vivo */
  --accent-ink: #0F2259;  /* testo sull'arancione: blu notte (5:1; bianco e blu brand non passano) */
  --accent-text: #B84800; /* arancione per scritte su fondo chiaro (5:1) */
  --curtain: #FF6400;     /* il sipario */
  --curtain-fold: #D45200;/* le pieghe del sipario */

  /* Caratteri */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Boldonse", "Archivo", ui-sans-serif, sans-serif;

  /* Cinque misure, non di più */
  --s-display: clamp(50px, 7vw, 116px);   /* Boldonse: maiuscole alte 1,2 volte la misura */
  --s-h2: clamp(30px, 3.6vw, 56px);
  --s-lead: clamp(21px, 1.75vw, 26px);
  --s-body: 18px;
  --s-small: 15px;

  /* Spazio */
  --margin: clamp(20px, 4vw, 64px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(112px, 15vw, 220px);

  /* Movimento */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-jump: cubic-bezier(.34, 1.56, .64, 1);
  --stagger-line: 90ms;
  --stagger-item: 80ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: var(--s-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; line-height: 1.3; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-inline: var(--margin); }
.lead { font-size: var(--s-lead); line-height: 1.35; }
.small { font-size: var(--s-small); }

/* ---------- Nota di bozza (si toglie al lancio) ---------- */
.draft-note {
  background: var(--ink); color: var(--stage-ink); font-size: var(--s-small);
  padding: 10px var(--margin); text-align: center;
}

/* ---------- Pulsanti: pieni, completamente tondi (il cerchio) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 52px;
  padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 700 var(--s-body)/1 var(--font); text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { transform: translateY(-2px); background: #FF7A24; }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ink { background: var(--accent-ink); color: var(--stage-ink); }
.btn--ink:hover { background: var(--stage-deep); }
.btn--light { background: var(--stage-ink); color: var(--ink); }
.btn--light:hover { background: #fff; }
.link { font-weight: 600; text-decoration: underline; transition: color .15s; }
.link:hover { color: var(--accent-text); }

/* ---------- Segnaposto per foto e video (si sostituiscono con i file veri) ---------- */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: var(--tone-2); color: var(--muted);
  font-size: var(--s-small); line-height: 1.35; text-align: center; padding: 16px;
}
.ph span { max-width: 26ch; }
.ph--stage { background: #2E4CA8; color: var(--stage-muted); }
.ph--warm { background: #FFD3B3; color: var(--accent-ink); }

/* ---------- Foto: riempiono la loro cornice ---------- */
.pic { position: relative; overflow: hidden; background: var(--tone-2); margin: 0; }
.pic img, .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Navigazione ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--ground);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding-inline: var(--margin);
}
.nav__logo { display: block; flex: none; }
.nav__logo svg { width: auto; height: 44px; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav__links a { text-decoration: none; font-weight: 600; }
.nav__links a:hover { text-decoration: underline; }
.nav__menu { display: none; }
.nav .btn { min-height: 44px; padding: 0 22px; }

/* ---------- 1. Apertura: il cerchio di luce che si allarga sul video ---------- */
.hero { --p: 0; --r0: min(37svh, 41vw); --cy: 46%; position: relative; height: 185svh; background: var(--stage); color: var(--stage-ink); }
.hero__stage { position: sticky; top: 72px; height: calc(100svh - 72px); overflow: hidden; }
.hero__window { position: absolute; inset: 0; clip-path: circle(calc(var(--r0) + (78vmax - var(--r0)) * var(--p)) at 50% var(--cy)); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.1 - var(--p) * .1)); }
.hero__veil { position: absolute; inset: 0; background: rgb(15 34 89 / .5); opacity: calc(1 - var(--p) * 1.2); }
.hero__ring {
  position: absolute; left: 50%; top: var(--cy); width: calc(var(--r0) * 2 + 40px); aspect-ratio: 1; border-radius: 50%;
  border: clamp(8px, .9vw, 14px) solid var(--accent); pointer-events: none;
  transform: translate(-50%, -50%) scale(calc(1 + var(--p) * 1.8)); opacity: calc(1 - var(--p) * 2.4);
}
.hero__copy {
  position: absolute; left: 0; right: 0; top: var(--cy); z-index: 2; text-align: center;
  transform: translateY(calc(-50% - var(--p) * 16vh)); opacity: calc(1 - var(--p) * 2);
}
.hero__title { width: min(78vw, 820px, 92svh); margin-inline: auto; }
.logo-anim { width: 100%; height: auto; overflow: visible; }
.logo-anim path { fill: var(--stage-ink); transform-box: fill-box; transform-origin: 50% 100%; }
/* scorrendo, ogni lettera di RAGAZZI salta per conto suo: "ognuna con il suo ritmo" */
.logo-anim__bot path { translate: 0 calc(var(--p) * var(--dy, 0) * 1%); }
.logo-anim__bot path:nth-child(1) { --dy: -60; } .logo-anim__bot path:nth-child(2) { --dy: 35; }
.logo-anim__bot path:nth-child(3) { --dy: -90; } .logo-anim__bot path:nth-child(4) { --dy: 55; }
.logo-anim__bot path:nth-child(5) { --dy: -45; }  .logo-anim__bot path:nth-child(6) { --dy: 75; }
.logo-anim__bot path:nth-child(7) { --dy: -75; }
.hero__sub { margin: clamp(24px, 4svh, 40px) auto 0; max-width: 34ch; font-size: var(--s-lead); line-height: 1.3; }
.hero__cta { margin-top: 28px; display: grid; justify-items: center; gap: 14px; }
.hero__date { font-size: var(--s-small); color: var(--stage-muted); }
.hero__date a { color: var(--stage-ink); font-weight: 700; }
/* Senza JavaScript o con meno movimento: il cerchio resta fermo, tutto leggibile */
html:not(.js) .hero, .hero.is-static { height: auto; }
html:not(.js) .hero__stage, .hero.is-static .hero__stage { position: relative; top: 0; }

/* ---------- 2. Missione: pannello del palco, ritratto nel cerchio ---------- */
.mission { padding: var(--section) 20px 0; }
.mission__panel {
  position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink);
  min-height: 108svh; padding: clamp(28px, 4vw, 64px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
}
.mission h2 { grid-column: 1 / span 7; font-size: var(--s-h2); max-width: 11ch; }
.mission__portrait {
  position: absolute; left: clamp(28px, 4vw, 64px); bottom: -8vw;
  width: 38vw; aspect-ratio: 1; border-radius: 50%;
}
.mission__goals { grid-column: 8 / span 5; display: grid; gap: 56px; align-content: start; padding-top: 8px; }
.mission__goals h3 { font-size: var(--s-lead); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.mission__goals h3::before { content: ""; flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--accent-ink); transform: translateY(-.05em); }
.mission__goals p { color: var(--accent-ink); }
.mission h2 { color: var(--accent-ink); }
.mission__goals .btn { justify-self: start; }

/* ---------- 3. Chi siamo: la storia e i cerchi con i nomi (la cosa viva) ---------- */
.who { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.who__head { grid-column: 1 / span 5; }
.who h2 { font-size: var(--s-h2); max-width: 10ch; }
.who__story { margin-top: 32px; display: grid; gap: 20px; max-width: 46ch; }
.who__quote { margin-top: 40px; font-size: var(--s-lead); line-height: 1.3; max-width: 30ch; font-weight: 500; }
.who__quote cite { display: block; margin-top: 12px; font-size: var(--s-small); font-style: normal; color: var(--muted); font-weight: 400; }
.who__photos { grid-column: 7 / span 6; position: relative; align-self: start; padding-bottom: 12%; }
.who__big { aspect-ratio: 4 / 5; border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.who__big img { object-position: 46% 40%; filter: grayscale(1) contrast(1.05); }
.who__small { position: absolute; left: -10%; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; outline: clamp(8px, .9vw, 14px) solid var(--accent); outline-offset: -1px; }
.who__small img { object-position: 42% 40%; }
.cast { grid-column: 7 / span 6; align-self: start; }
.cast__stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; background: var(--tone); padding: clamp(24px, 3vw, 44px); }
.cast__spot { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.cast__spot .ph { position: absolute; inset: 6%; width: 88%; height: 88%; border-radius: 50%; }
.cast__who h3 { font-size: var(--s-h2); }
.cast__who .cast__line { margin-top: 16px; font-size: var(--s-lead); line-height: 1.3; }
.cast__who .cast__role { margin-top: 12px; color: var(--muted); }
.cast__pick { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.cast__pick button {
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--tone); color: var(--ink); font: 500 var(--s-body)/1 var(--font);
  transition: background-color .18s, transform .18s var(--ease);
}
.cast__pick button:hover { background: var(--tone-2); transform: translateY(-2px); }
.cast__pick button[aria-pressed="true"] { background: var(--ink); color: var(--stage-ink); }
/* Senza JavaScript: tutti visibili in elenco */
.cast__list { display: grid; gap: 12px; margin-top: 20px; }
html.js .cast__list { display: none; }
html:not(.js) .cast__pick { display: none; }

/* ---------- 4. Cosa stiamo riuscendo a fare: tre numeri a gradini ---------- */
.done { padding-top: var(--section); }
.done__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: start; }
.done__tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; }
.done__tile strong { font-family: var(--display); font-size: var(--s-h2); font-weight: 400; text-transform: uppercase; line-height: 1.3; font-variant-numeric: tabular-nums; }
.done__tile p { max-width: 24ch; font-size: var(--s-body); }
.done__tile--a { grid-column: 1 / span 6; height: 76vh; background: var(--accent); color: var(--accent-ink); border-top-right-radius: 50% 22%; }
.done__tile--b { grid-column: 7 / span 3; height: 44vh; margin-top: max(28vh, 290px); background: var(--stage); color: var(--stage-ink); border-top-right-radius: 50% 30%; }
.done__tile--c { grid-column: 10 / span 3; height: 34vh; margin-top: max(40vh, 400px); background: var(--stage-deep); color: var(--stage-ink); border-top-right-radius: 50% 34%; }
.done__head { position: absolute; top: 0; left: calc(50% + 4px); right: 0; }
.done h2 { font-size: var(--s-h2); max-width: 12ch; }

/* I progetti: cartelle impilate */
.projects { padding-top: clamp(96px, 11vw, 160px); }
.projects > h3 { font-size: var(--s-h2); margin-bottom: 40px; }
.folder { position: relative; padding: 8px var(--margin) 56px; color: var(--ink); }
.folder + .folder { margin-top: 8px; }
.folder:nth-of-type(1) { background: var(--tone); }
.folder:nth-of-type(2) { background: #FFDCC2; }
.folder:nth-of-type(3) { background: #DCE3F6; }
.folder:nth-of-type(4) { background: var(--tone-2); }
.folder__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.folder__tab {
  display: inline-flex; align-items: center; height: 44px; padding: 0 26px;
  border-radius: 999px; background: var(--ink); color: var(--stage-ink); font-size: var(--s-lead); font-weight: 700; letter-spacing: -0.01em;
}
.folder__cat { font-size: var(--s-small); color: var(--muted); }
.folder__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 24px; }
.folder__body .pic { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.folder__art {
  grid-column: 1 / span 7; aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  display: grid; align-content: center; row-gap: .3em; padding: 0 clamp(24px, 4vw, 64px);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); text-transform: uppercase; font-size: clamp(46px, 6.6vw, 112px); line-height: 1.3;
}
.folder__art span:nth-child(2) { justify-self: end; color: var(--stage); }
.folder__art::after { content: ""; position: absolute; right: -6%; top: -18%; width: 34%; aspect-ratio: 1; border-radius: 50%; border: clamp(10px, 1.2vw, 18px) solid var(--stage-ink); }
.folder__text { grid-column: 9 / span 4; display: grid; gap: 20px; align-content: start; }

/* ---------- 5. Lo spettacolo: lastra quadrata con l'anello di luce ---------- */
.show { margin-top: var(--section); background: var(--tone); min-height: 88svh; display: grid; grid-template-columns: 1fr 1fr; }
.show__plate { position: relative; margin: 40px 24px 40px var(--margin); aspect-ratio: 1; align-self: center; }
.show__plate .pic { position: absolute; inset: 0; }
.show__plate img { object-position: 50% 45%; }
.show__ring { position: absolute; inset: 7%; border: 6px solid var(--accent); border-radius: 50%; pointer-events: none; }
.show__ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); }
.show__side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 40px var(--margin) 40px 24px; }
.show__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.show__tabs button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font: 600 var(--s-body)/1 var(--font);
  transition: background-color .18s;
}
.show__tabs button:hover { background: var(--tone-2); }
.show__tabs button[aria-selected="true"] { background: var(--ink); color: var(--stage-ink); }
.show h2 { font-size: var(--s-h2); max-width: 12ch; }
.show__desc { margin-top: 32px; max-width: 40ch; }
.show__panel[hidden] { display: none; }
.show__panel p + p { margin-top: 12px; }
.show__when { font-size: var(--s-lead); font-weight: 700; line-height: 1.25; }
.show__sold { display: inline-flex; align-items: center; min-height: 32px; margin-top: 12px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--stage-ink); font-size: var(--s-small); font-weight: 700; }
.show__credits { margin-top: 16px; max-width: 40ch; font-size: var(--s-small); color: var(--muted); }
.show__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.show__actions a {
  display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; font-weight: 700; text-align: center;
  transition: transform .18s var(--ease), background-color .18s;
}
.show__actions a:hover { transform: translateY(-2px); }
.show__actions .a1 { background: var(--accent); color: var(--accent-ink); }
.show__actions .a2 { background: var(--tone-2); color: var(--ink); }

/* ---------- 6. Parlano di noi: testate su tasselli ---------- */
.press { padding-top: var(--section); }
.press__board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.press__head { grid-column: span 2; background: var(--accent); color: var(--accent-ink); padding: 28px; min-height: 260px; border-top-left-radius: 140px 50%; }
.press__head h2 { font-size: var(--s-h2); text-align: right; }
.press__tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 260px; padding: 28px;
  background: var(--tone); text-decoration: none; transition: background-color .18s;
}
a.press__tile:hover { background: var(--tone-2); }
.press__tile header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.press__tile b { font-size: var(--s-lead); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.press__tile p { font-size: var(--s-lead); line-height: 1.3; }
.press__tile span { font-size: var(--s-small); color: var(--muted); }
.press__photo { min-height: 260px; }
.press__photo img { object-position: 50% 30%; }

/* ---------- 7. I nostri partner: nomi in colonne ---------- */
.partners { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.partners h2 { grid-column: 1 / span 4; font-size: var(--s-h2); max-width: 8ch; }
.partners__groups { grid-column: 5 / span 8; display: grid; gap: 36px; }
.partners__group h3 { font-size: var(--s-small); font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.partners__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ptile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 132px; padding: 20px; background: var(--tone); text-align: center; }
.ptile img { width: auto; height: auto; max-width: 82%; max-height: 52px; object-fit: contain; }
.ptile__name { font-size: var(--s-lead); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.ptile__where { font-size: var(--s-small); color: var(--muted); }
.ptile--mark { gap: 6px; }
.ptile--mark img { max-height: 84px; margin-bottom: 4px; }
.ptile--mark .ptile__name { font-size: var(--s-body); }
.ptile__square { border-radius: 10px; }
.partners__note { grid-column: 5 / span 8; margin-top: 28px; color: var(--muted); font-size: var(--s-small); }

/* ---------- 8. Diventa partner: la promessa, poi la parola-pulsante ---------- */
.partner { padding-top: var(--section); }
.partner__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.partner h2 { grid-column: 1 / span 5; font-size: var(--s-h2); max-width: 9ch; }
.partner__text { grid-column: 7 / span 6; display: grid; gap: 28px; }
.partner__photo { margin: clamp(48px, 6vw, 88px) var(--margin) 0; aspect-ratio: 21 / 9; border-radius: 0 0 50% 50% / 0 0 30% 30%; }
.partner__photo img { object-position: 50% 62%; }
.dots { display: grid; gap: 14px; }
.dots li { display: flex; gap: 14px; align-items: baseline; }
.dots li::before { content: ""; flex: none; width: .6em; height: .6em; border-radius: 50%; background: var(--accent); transform: translateY(.02em); }

/* ---------- 9. Collabora con noi: tre modi e il modulo ---------- */
.collab { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.collab__intro { grid-column: 1 / span 5; }
.collab h2 { font-size: var(--s-h2); max-width: 9ch; }
.collab__ways { margin-top: 40px; display: grid; gap: 28px; }
.collab__ways h3 { font-size: var(--s-lead); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 6px; }
.form { grid-column: 7 / span 6; display: grid; gap: 14px; align-content: start; background: var(--tone); padding: clamp(24px, 3vw, 44px); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: var(--s-small); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 2px solid transparent; border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 var(--s-body)/1.4 var(--font);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--s-small); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
p.check { display: block; color: var(--muted); }
.form__msg { font-size: var(--s-small); font-weight: 600; }
.form .btn { justify-self: start; margin-top: 6px; }

/* ---------- 10. Resta in contatto: il biglietto da staccare (newsletter) ---------- */
.ticket-wrap { padding-block: var(--section); }
.ticket {
  --notch: 30px;
  position: relative; display: grid; grid-template-columns: 46% 54%;
  min-height: 420px; background: var(--stage); color: var(--stage-ink); border-radius: 16px;
}
.ticket::before, .ticket::after { content: ""; position: absolute; left: 46%; width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); margin-left: calc(var(--notch) * -1); border-radius: 50%; background: var(--ground); }
.ticket::before { top: calc(var(--notch) * -1); }
.ticket::after { bottom: calc(var(--notch) * -1); }
.ticket__left { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 3.4vw, 52px); }
.ticket__left h2 { font-size: var(--s-h2); max-width: 10ch; }
.ticket__left p { color: #DADFEF; max-width: 36ch; }
.ticket__info { display: grid; gap: 28px; }
.ticket__seat { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.ticket__seat div { display: grid; gap: 2px; }
.ticket__seat dt { font-size: var(--s-small); color: #B9C0DA; }
.ticket__seat dd { font-size: var(--s-lead); font-weight: 700; line-height: 1.15; color: var(--accent); }
.ticket__perf {
  position: absolute; left: 46%; top: var(--notch); bottom: var(--notch); width: 0;
  border-left: 5px dotted var(--ground); transform: translateX(-2px);
}
.ticket form { display: grid; gap: 12px; align-content: center; padding: clamp(28px, 3.4vw, 52px); }
.ticket .field input { background: #26336A; color: var(--stage-ink); }
.ticket .field input::placeholder { color: #B9C0DA; }
.ticket .check a { color: var(--stage-ink); }
.ticket .btn { justify-self: stretch; justify-content: center; }

/* ---------- Piè di pagina ---------- */
.foot { background: var(--stage); color: var(--stage-ink); padding: 72px var(--margin) 32px; overflow: hidden; }
.foot__logo { --logo-a: var(--stage-ink); --logo-b: var(--accent); display: block; width: min(100%, 640px); }
.foot__logo svg { width: 100%; height: auto; }
.foot__row { margin-top: 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.foot__places { grid-column: 1 / span 5; display: grid; gap: 6px; }
.foot__places a { font-size: var(--s-lead); font-weight: 700; letter-spacing: -0.01em; color: var(--accent); text-decoration: none; }
.foot__places a:hover { text-decoration: underline; }
.foot__label { margin-top: 28px; font-size: var(--s-small); color: var(--stage-muted); }
.foot__social { display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot__places .foot__social a { display: inline-block; padding: 6px 0; font-size: var(--s-body); color: var(--stage-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.foot__places .foot__social a:hover { text-decoration-thickness: 2px; }
.foot__cols { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); font-size: var(--s-small); }
.foot__cols li + li { margin-top: 8px; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { text-decoration: underline; }
.foot__legal { margin-top: 96px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--s-small); color: var(--stage-muted); }

/* ---------- Pagina spettacolo ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 140px) clamp(72px, 10vw, 160px); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.page-hero h1 { grid-column: 1 / span 6; font-size: clamp(40px, 6vw, 96px); max-width: 8ch; position: relative; z-index: 1; }
.page-hero__next { grid-column: 1 / span 6; position: relative; margin-top: 36px; }
.page-hero__next p { font-size: var(--s-lead); line-height: 1.3; }
.page-hero__next .btn { margin-top: 28px; }
.page-hero__spot { position: absolute; right: -14vw; top: 50%; width: min(58vw, 820px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.page-hero__spot .pic { position: absolute; inset: 7%; border-radius: 50%; }
.page-hero__spot img { object-position: 62% 40%; }
.page-hero__spot video { object-position: 50% 42%; }
.dates { padding-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.dates h2 { grid-column: 1 / span 4; font-size: var(--s-h2); }
.dates__list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.date { display: grid; grid-template-columns: 1.6fr 1.2fr auto; gap: 24px; align-items: center; padding: 24px 28px; background: var(--tone); }
.date b { font-size: var(--s-lead); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.date .soldout { font-weight: 700; color: var(--muted); }
.date--next { background: var(--accent); color: var(--accent-ink); }
.date--next .btn { background: var(--accent-ink); color: var(--stage-ink); }
.about-show { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.about-show h2 { grid-column: 1 / span 6; font-size: var(--s-h2); max-width: 14ch; }
.about-show__text { grid-column: 7 / span 6; display: grid; gap: 20px; }
.about-show__strip { grid-column: 1 / -1; margin-top: 48px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.about-show__strip .pic { aspect-ratio: 4 / 5; }
.about-show__strip .pic:first-child { border-top-left-radius: 50% 30%; }
.about-show__strip .pic:last-child { border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.credits { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.credits h2 { grid-column: 1 / span 4; font-size: var(--s-h2); }
.credits dl { grid-column: 5 / span 8; display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 14px 32px; font-size: var(--s-lead); line-height: 1.3; }
.credits dt { color: var(--muted); }

/* ---------- Pagina privacy (bozza) ---------- */
.legal { padding-block: clamp(64px, 9vw, 140px); max-width: 72ch; }
.legal h1 { font-size: var(--s-h2); margin-bottom: 32px; }
.legal h2 { font-size: var(--s-lead); margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p + p { margin-top: 12px; }


/* ---------- Il sipario: si apre scorrendo, dietro ci sono i video ---------- */
.curtain { --open: 0; --reel-w: clamp(140px, 13vw, 210px); position: relative; height: 200vh; margin-top: var(--section); }
.curtain__sticky {
  position: sticky; top: 72px; height: calc(100svh - 72px);
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding-block: 8px 20px; overflow: hidden;
}
.curtain__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.curtain__head h2 { grid-column: 1 / span 7; font-size: var(--s-h2); }
.curtain__head p { grid-column: 8 / span 5; }
.curtain__stage { position: relative; min-height: 0; margin-inline: var(--margin); background: var(--stage-deep); overflow: hidden; }
.reel { position: absolute; inset: 0; display: flex; align-items: center; padding-top: 48px; }
.reel__track { display: flex; gap: 18px; width: max-content; padding-inline: 9px; animation: reel 70s linear infinite; }
.reel__item { flex: none; width: var(--reel-w); color: var(--stage-ink); }
.reel__frame { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 50% 50% 0 0 / 26% 26% 0 0; background: var(--stage); }
.reel__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__item p { margin-top: 10px; font-size: var(--s-small); font-weight: 700; line-height: 1.35; }

.reel:hover .reel__track, .reel:focus-within .reel__track, .curtain.is-paused .reel__track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.curtain__half { position: absolute; top: 0; bottom: 0; z-index: 2; width: 50.4%; display: flex; will-change: transform; }
.curtain__half--l { left: 0; transform-origin: left center; transform: scaleX(calc(1 - var(--open) * .88)); }
.curtain__half--r { right: 0; transform-origin: right center; transform: scaleX(calc(1 - var(--open) * .88)); }
.curtain__half i { flex: 1 1 0; background: var(--curtain); }
.curtain__half i:nth-child(odd) { flex-grow: .5; background: var(--curtain-fold); }
.curtain__valance { position: absolute; top: 0; left: 0; right: 0; z-index: 3; pointer-events: none; }
.curtain__valance b { display: block; height: clamp(26px, 4vh, 44px); background: var(--curtain-fold); }
.curtain__valance span { display: flex; margin-top: -1px; }
.curtain__valance span i { flex: 1 1 0; aspect-ratio: 2 / 1; background: var(--curtain-fold); border-radius: 0 0 999px 999px; }
.curtain__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.reel__pause {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--tone); color: var(--ink); font: 700 var(--s-small)/1 var(--font);
  transition: background-color .18s, transform .18s var(--ease);
}
.reel__pause:hover { background: var(--tone-2); transform: translateY(-2px); }
/* Senza JavaScript o con riduzione del movimento: sipario aperto, video fermi da scorrere a mano */
html:not(.js) .curtain, .curtain.is-static { --open: 1; height: auto; }
html:not(.js) .curtain__sticky, .curtain.is-static .curtain__sticky { position: static; height: auto; }
html:not(.js) .curtain__stage, .curtain.is-static .curtain__stage { min-height: 520px; }
html:not(.js) .reel, .curtain.is-static .reel { overflow-x: auto; }
html:not(.js) .reel__track, .curtain.is-static .reel__track { animation: none; }

html:not(.js) .curtain__half, html:not(.js) .curtain__valance span, .curtain.is-static .curtain__half { display: none; }


/* ---------- Le loro parole che scorrono ---------- */
.words { padding-top: var(--section); overflow: hidden; }
.words__row {
  display: flex; align-items: center; gap: .3em; width: max-content; white-space: nowrap;
  font-family: var(--display); font-size: var(--s-display); font-weight: 400; text-transform: uppercase; line-height: 1.32;
  transform: translate3d(calc(var(--x, 0) * 1px), 0, 0); will-change: transform;
}
.words__row--b { margin-top: .3em; color: #E85A00; } /* arancio del brand appena scurito: 3,3:1 sul crema */
.words__row i { flex: none; width: .3em; height: .3em; border-radius: 50%; background: var(--accent); }
.words__row--b i { background: var(--ink); }

/* ---------- Foto che si aprono, anello che si accende, lettere che salgono ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-shutter] { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-expo); }
  html.js [data-shutter].in { clip-path: inset(0 0 0 0); }
  html.js [data-pop] { scale: .55; opacity: 0; transition: scale 1.1s var(--ease-expo) .25s, opacity .5s ease .25s; }
  html.js [data-pop].in { scale: 1; opacity: 1; }
}

/* ---------- Numeri che salgono ---------- */
.roll { font-variant-numeric: tabular-nums; }

/* ---------- Titoli che salgono riga per riga ---------- */
[data-lines] .line { display: block; overflow: clip; padding-bottom: .22em; margin-bottom: -.22em; }
[data-lines] .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .is-split .line > span { transform: translateY(110%); }
  .is-split.is-in .line > span { transform: none; transition: transform 900ms var(--ease-expo) calc(var(--i) * var(--stagger-line)); }
}

/* =========================================================================
   Telefono
   ========================================================================= */
@media (max-width: 900px) {
  :root { --gap: 16px; --section: clamp(72px, 21vw, 120px); }
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--tone); color: var(--ink); font: 600 var(--s-small)/1 var(--font); cursor: pointer; }
  .nav.open .nav__links { display: grid; position: absolute; top: 72px; left: 0; right: 0; gap: 0; background: var(--ground); padding: 8px var(--margin) 20px; }
  .nav.open .nav__links a { padding: 12px 0; font-size: var(--s-lead); }
  .nav__right { display: flex; gap: 8px; align-items: center; }
  .nav { gap: 12px; }
  .nav .btn { padding: 0 16px; }
  .nav__name::before { width: 12px; height: 12px; }

  .hero { --cy: 45%; --r0: min(34svh, 56vw); height: 170svh; }
  .hero__cta { margin-top: 20px; gap: 18px; }
  .hero__sub { margin-top: 24px; font-size: var(--s-body); max-width: 30ch; }

  .mission { padding: var(--section) 10px 0; }
  .mission__panel { display: block; min-height: 0; padding: 28px 22px 0; }
  .mission__goals { margin-top: 36px; gap: 32px; }
  .mission__portrait { position: relative; left: auto; bottom: auto; width: 86vw; margin: 48px auto -21vw; }

  .who { display: block; }
  .who__photos { margin-top: 48px; }
  .cast { margin-top: 56px; }
  .cast__stage { grid-template-columns: 1fr; }
  .cast__spot { width: 72%; margin-inline: auto; }

  .curtain { height: 185vh; }
  .curtain__head { display: block; }
  .curtain__head p { margin-top: 16px; }
  .curtain { --reel-w: 40vw; }
  .curtain__foot { flex-wrap: wrap; }
  .done__grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .done__head { position: static; grid-column: 1 / -1; margin-bottom: 20px; }
  .done__tile--a { grid-column: 1 / -1; height: 50vw; min-height: 180px; }
  .done__tile--b { grid-column: 1; height: 56vw; }
  .done__tile--c { grid-column: 2; height: 56vw; }
  .done__tile { padding: 18px; }
  .done__tile--b { margin-top: 24px; }
  .done__tile--c { margin-top: 52px; }
  .projects { padding-top: 56px; }
  .projects > h3 { margin-bottom: 24px; }

  .folder { position: relative; top: auto; min-height: 0; padding-bottom: 32px; }
  .folder__bar { height: auto; padding-top: 20px; flex-wrap: wrap; }
  .folder__tab { height: 40px; font-size: var(--s-body); padding: 0 20px; }
  .folder__body { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }
  .folder__text { gap: 16px; }
  .folder__art { order: 2; }

  .show { grid-template-columns: 1fr; }
  .show__plate { margin: 20px var(--margin); }
  .show__side { gap: 40px; padding: 20px var(--margin) 48px; }
  .show__tabs { margin-bottom: 16px; }
  .show__actions { grid-template-columns: 1fr; gap: 10px; }
  .show__actions a { min-height: 60px; }

  .press__board { grid-template-columns: 1fr 1fr; gap: 6px; }
  .press__head { grid-column: 1 / -1; min-height: 120px; border-top-left-radius: 90px 70%; }
  .press__tile { min-height: 0; gap: 20px; padding: 18px; }
  .press__photo { min-height: 200px; }
  .press__tile header { flex-direction: column; gap: 4px; }

  .partners, .partner__top, .collab { display: block; }
  .partners__groups { margin-top: 28px; gap: 28px; }
  .partner__text { margin-top: 28px; gap: 24px; }
  .partner__photo { margin-top: 40px; }

  .collab__ways { margin-top: 32px; gap: 24px; }
  .collab__ways h3 { margin-bottom: 8px; }
  .form { margin-top: 36px; }
  .ticket { --notch: 20px; grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket__perf { position: relative; inset: auto; width: auto; height: 0; margin: 0 calc(var(--notch) + 6px); border-left: 0; border-top: 5px dotted var(--ground); transform: none; }
  .ticket__perf::before, .ticket__perf::after { content: ""; position: absolute; top: calc(var(--notch) * -1 - 3px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--ground); }
  .ticket__perf::before { left: calc(var(--notch) * -2 - 6px); }
  .ticket__perf::after { right: calc(var(--notch) * -2 - 6px); }
  .ticket__left { gap: 24px; }

  .foot { padding-top: 56px; }
  .foot__row { display: block; margin-top: 44px; }
  .foot__cols { display: block; columns: 2; column-gap: var(--gap); margin-top: 32px; }
  .foot__cols li + li { margin-top: 0; }
  .foot__cols a { display: inline-block; padding: 6px 0; }
  .foot__legal { margin-top: 48px; }
  .foot__name { flex-wrap: wrap; }

  .page-hero { display: block; padding-bottom: 8px; }
  .page-hero__spot { position: relative; right: auto; top: auto; transform: none; width: 110vw; margin: -24vw -30vw 36px auto; }
  .page-hero h1 { max-width: 7ch; }
  .dates, .about-show, .credits { display: block; }
  .dates { padding-top: var(--section); }
  .dates__list { margin-top: 24px; }
  .about-show__strip { margin-top: 36px; }
  .about-show__text, .credits dl { margin-top: 24px; }
  .page-hero__spot { width: min(110vw, 62svh); }
}
@media (max-width: 600px) {
  .date { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .date .btn, .date .soldout { justify-self: start; margin-top: 8px; }
  .credits dl { grid-template-columns: 1fr; gap: 4px; }
  .credits dd { margin-bottom: 14px; }
  .partners__grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ptile { min-height: 112px; padding: 16px; }
  .ptile__name { font-size: var(--s-body); }
  .ptile img { max-height: 44px; }
  .ptile--mark img { max-height: 68px; }
  .press__tile { justify-content: flex-start; padding: 16px; }
  .press__tile p { font-size: var(--s-body); }
  .press__tile span { white-space: nowrap; }
}
@media (max-width: 380px) {
  :root { --s-h2: 28px; }  /* i titoli lunghi restano su due righe anche sui telefoni stretti */
}

/* =========================================================================
   Movimento (solo trasformazioni e opacità; si spegne con riduzione movimento)
   ========================================================================= */
html.js [data-in] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--n, 0) * 80ms); }
html.js [data-in].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  /* il logo entra lettera per lettera: DA QUEI sale, RAGAZZI cade e si assesta storto, come nel disegno */
  html.js .logo-anim__top path { animation: logo-rise 650ms var(--ease-expo) both; animation-delay: calc(80ms + var(--k) * 40ms); }
  html.js .logo-anim__bot path { animation: logo-drop 700ms var(--ease-jump) both; animation-delay: calc(180ms + var(--k) * 50ms); }
  html.js .hero [data-load] { opacity: 0; translate: 0 14px; animation: load-rise 600ms var(--ease-expo) forwards; animation-delay: var(--d); }
  html.js .hero__window { scale: .82; animation: load-open 1100ms var(--ease-expo) 60ms forwards; }
  html.js .hero__ring { scale: .7; animation: load-open 1100ms var(--ease-expo) forwards; }
}
@keyframes logo-rise { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
@keyframes logo-drop { from { opacity: 0; transform: translateY(-80%) rotate(-12deg); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes load-rise { to { opacity: 1; translate: 0 0; } }
@keyframes load-open { to { scale: 1; } }
.cast__spot { transition: transform .5s var(--ease); }
.cast__spot.swap { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-in] { opacity: 1; transform: none; transition: none; }
  .btn, .cast__spot, .show__actions a, .cast__pick button, .reel__pause { transition: none; }
  .reel__track { animation: none; }
}

/* Pagina non trovata */
.notfound h1 { font-size: var(--s-display); }
.notfound p { font-size: var(--s-lead); line-height: 1.35; max-width: 36ch; }
.notfound .notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Telefoni e schermi bassi (anche Safari con la barra): niente aggancio, il palco ha l'altezza dei video più le scritte.
   Tenere uguale la condizione in site.js (pinOff). */
@media (max-width: 600px), (max-height: 700px) {
  .curtain { height: auto; }
  .curtain__sticky { position: relative; top: auto; height: auto; overflow: visible; }
  .curtain__stage { height: calc(var(--reel-w) * 16 / 9 + 104px); }
  html:not(.js) .curtain__stage, .curtain.is-static .curtain__stage { min-height: 0; }
}