/* PartyBooth AI: sito v2, direzione "Notte di festa" (scelta utente 30/09).
   Luci vere di una sala: tungsteno, champagne, il corallo della pista. Niente viola ne' azzurro:
   per l'utente "gridano AI". Una sola famiglia, Bricolage Grotesque, stretta per i titoli. */
/* Il carattere e' ospitato da noi (licenza SIL OFL, vedi fonts/LICENZA.txt): la cookie policy
   dichiara che il browser non contatta Google Fonts. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg:    oklch(0.165 0.02 40);
  --bg-2:  oklch(0.195 0.022 40);
  --bg-3:  oklch(0.235 0.022 40);
  --riga:  oklch(0.32 0.02 45);
  --ink:   oklch(0.965 0.012 80);
  --muted: oklch(0.77 0.02 70);
  --ambra: oklch(0.8 0.13 72);
  --champ: oklch(0.88 0.07 85);
  --corallo: oklch(0.72 0.15 35);
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --pad:   clamp(16px, 5vw, 72px);
  --max:   1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px; line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ambra); outline-offset: 3px; border-radius: 4px; }
.salta { position: absolute; left: -9999px; }
.salta:focus { left: 16px; top: 12px; z-index: 60; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; }
.titolo { margin: 0; max-width: 18ch; font-weight: 770; font-stretch: 90%; font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96; }
.titolo em, .chiusura h2 em { font-style: normal; color: var(--ambra); }
.intro { margin: 20px 0 0; max-width: 54ch; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.2rem); text-wrap: pretty; }
/* nelle sezioni da leggere le lucine passano attenuate: dietro al testo disturbavano */
.sezione { padding: clamp(96px, 12vw, 160px) var(--pad); background: oklch(0.165 0.02 40 / .78); }
.dentro { max-width: var(--max); margin: 0 auto; }

/* Lucine di una sala fotografate fuori fuoco: le grandi piu' sfocate, cosi' sembrano lontane */
.bokeh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bokeh i { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; border-radius: 50%; opacity: var(--o);
  background: radial-gradient(circle, var(--c) 0 50%, color-mix(in oklch, var(--c) 55%, transparent) 63%, transparent 70%);
  filter: blur(var(--b)); will-change: transform; animation: fluttua var(--d) ease-in-out var(--r) infinite alternate; }
@keyframes fluttua { to { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: calc(var(--o) * .4); } }

/* ── Bottoni e testata ── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 650;
  font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.btn.primario { background: var(--ambra); color: oklch(0.2 0.03 60); box-shadow: 0 12px 34px -14px oklch(0.8 0.13 72 / .8); }
.btn.primario:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px oklch(0.8 0.13 72 / .9); }
.btn.secondario { color: var(--ink); border: 1px solid var(--riga); background: transparent; }
.btn.secondario:hover { border-color: var(--muted); }
.btn.grande { padding: 18px 34px; font-size: 18px; }
.testa { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 26px; padding: 14px var(--pad);
  background: oklch(0.165 0.02 40 / .82); backdrop-filter: blur(10px); border-bottom: 1px solid oklch(1 0 0 / .06); }
.marchio, .lingue summary, .testa .btn { white-space: nowrap; }
.marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 21px; letter-spacing: -0.02em; }
.marchio img { width: 34px; height: 34px; border-radius: 50%; }
.testa nav { display: flex; gap: 24px; white-space: nowrap; margin-left: auto; font-size: 15px; color: var(--muted); }
.testa nav a { text-decoration: none; transition: color .2s; }
.testa nav a:hover { color: var(--ink); }
.testa .btn { padding: 10px 18px; font-size: 14.5px; }
/* Lingue: menu nativo <details> in testa; nel piede gli stessi link in chiaro, che i motori di ricerca seguono */
.lingue { position: relative; font-size: 14.5px; }
.lingue summary { list-style: none; cursor: pointer; padding: 9px 13px; border: 1px solid var(--riga); border-radius: 999px; color: var(--muted); font-weight: 600; letter-spacing: .04em; transition: color .2s, border-color .2s; }
.lingue summary::-webkit-details-marker { display: none; }
.lingue summary::after { content: ""; display: inline-block; margin-left: 8px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.lingue summary:hover, .lingue[open] summary { color: var(--ink); border-color: var(--muted); }
.lingue div { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 156px; padding: 6px; background: var(--bg-2); border: 1px solid var(--riga); border-radius: 14px; box-shadow: 0 22px 44px -20px #000; }
.lingue div a { padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); }
.lingue div a:hover, .lingue div a[aria-current] { color: var(--ink); background: var(--bg-3); }
/* 980 e non 860: con le lingue in testa, sotto i 980 px le voci in spagnolo e portoghese andavano a capo */
@media (max-width: 980px) { .testa { gap: 12px; } .testa nav { display: none; } .testa .lingue { margin-left: auto; } }
@media (max-width: 480px) { .testa { gap: 8px; padding-inline: 12px; } .marchio { font-size: 17px; gap: 8px; } .marchio img { width: 30px; height: 30px; }
  .lingue summary { padding: 8px 10px; } .testa .btn { padding: 9px 12px; font-size: 13.5px; } }
@media (max-width: 345px) { .marchio { font-size: 0; gap: 0; } }

/* ── Apertura: scritte in alto, sotto la schermata vera di PartyBooth ── */
.eroe { position: relative; padding: clamp(44px, 7vw, 96px) var(--pad) 40px; text-align: center; }
.eroe h1 { margin: 0 auto; max-width: 15ch; font-weight: 780; font-stretch: 90%; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .96;
  letter-spacing: -0.035em; font-variation-settings: "opsz" 96; animation: appare 1s var(--ease) both; }
.eroe h1 em { font-style: normal; color: var(--ambra); }
.eroe-sotto { max-width: 52ch; margin: 26px auto 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); animation: appare 1s .2s var(--ease) both; }
.azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; animation: appare 1s .35s var(--ease) both; }
.nota { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.schermo { margin: clamp(44px, 6vw, 72px) auto 0; width: min(100%, 1200px); }
.finestra { position: relative; border-radius: 16px; overflow: hidden; background: #111;
  box-shadow: 0 0 0 10px oklch(0.2 0.01 45), 0 0 0 11px oklch(1 0 0 / .08), 0 80px 140px -50px oklch(0 0 0 / .95); }
.finestra > img { width: 100%; }
/* riquadro della foto grande nella schermata 1920x1080 */
.foto-app { position: absolute; left: 0.99%; top: 0.926%; width: 82.76%; height: 98.06%; overflow: hidden; }
.foto-app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.luce { position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0; background: oklch(0.97 0.05 85);
  box-shadow: 0 0 18px 4px oklch(0.85 0.13 75 / .8), 0 0 60px 12px oklch(0.8 0.13 72 / .35); }
.ui-sopra { position: absolute; }
.tasto-ai { position: absolute; left: 85.31%; top: 7.87%; width: 14.06%; height: 9.07%; border-radius: 14px; opacity: 0;
  box-shadow: 0 0 0 4px oklch(0.97 0.03 85), 0 0 30px 8px oklch(0.85 0.13 75 / .9); }
.festa { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.filmato .audio { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid oklch(1 0 0 / .25);
  background: oklch(0.15 0.01 45 / .72); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
.filmato .audio[aria-pressed="true"] { background: var(--ambra); color: oklch(0.2 0.03 60); border-color: transparent; }
.didascalia { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.postazione .didascalia { text-align: center; }
.didascalia b { color: var(--ink); }
@keyframes appare { from { opacity: 0; transform: translateY(14px); } }

/* ── La parete: colonne di risultati che salgono e scendono, inclinate come viste dal basso ── */
.parete { position: relative; height: clamp(560px, 86vh, 860px); overflow: hidden; display: grid; place-items: center; text-align: center;
  padding: 0 16px; margin-top: 40px;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
/* agganciato in alto: una colonna lunga almeno quanto la sezione la copre in ogni punto del giro */
.muro { position: absolute; left: 50%; top: -14%; display: flex; gap: 16px; transform-origin: 50% 0;
  transform: translateX(-50%) perspective(1600px) rotateX(16deg) rotate(-7deg) scale(1.15); }
.muro .col { width: clamp(150px, 15vw, 260px); animation: scorri-su var(--d) linear infinite; }
.muro .col.giu { animation-direction: reverse; }
/* margine sotto ogni foto e non gap: cosi' meta' colonna e' esattamente un giro e il salto non si vede */
.muro img { width: 100%; margin-bottom: 16px; border-radius: 10px; box-shadow: 0 20px 40px -20px oklch(0 0 0 / .9); }
@keyframes scorri-su { to { transform: translateY(-50%); } }
.parete::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 34% at 50% 50%, oklch(0.165 0.02 40 / .9), oklch(0.165 0.02 40 / .55) 60%, transparent 100%); }
.parete-testo { position: relative; z-index: 1; max-width: 640px; }
.parete h2 { margin: 0; font-weight: 780; font-stretch: 90%; font-size: clamp(2.3rem, 5.4vw, 4.8rem); line-height: .98; letter-spacing: -0.035em;
  text-shadow: 0 4px 30px oklch(0 0 0 / .7); }
.parete h2 em { font-style: normal; color: var(--ambra); white-space: nowrap; }
.parete p { margin: 18px auto 0; max-width: 42ch; font-size: 1.12rem; text-shadow: 0 2px 16px oklch(0 0 0 / .9); }

/* ── Effetti: i pack come li mostra il programma, dodici anteprime per volta. A sinistra i pack:
   l'attivo si accende, un clic lo sceglie; altrimenti girano da soli. ── */
.effetti-corpo { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 48px; }
.pack-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pack-lista button { width: 100%; display: grid; gap: 1px; text-align: left; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; background: transparent;
  color: var(--muted); font: inherit; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.pack-lista button b { font-size: 1.12rem; font-weight: 700; }
.pack-lista button span { font-size: .9rem; }
.pack-lista button:hover { background: oklch(1 0 0 / .04); }
.pack-lista button[aria-pressed="true"] { background: var(--bg-3); border-color: var(--riga); }
.pack-lista button[aria-pressed="true"] b { color: var(--ambra); }
/* la barra che si riempie dice che il giro e' automatico e quanto manca al pack successivo */
.pack-lista button { position: relative; overflow: hidden; }
.pack-lista button.va::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ambra);
  transform-origin: 0 50%; animation: pack-tempo 4.2s linear both; }
@keyframes pack-tempo { from { transform: scaleX(0); } }
.pack-palco { min-width: 0; }
.pack-griglia { display: none; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pack-griglia.on { display: grid; }
.pack-griglia figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--bg-3); animation: cella-su .5s var(--ease) both; }
.pack-griglia figure:nth-child(4n+2) { animation-delay: .05s; } .pack-griglia figure:nth-child(4n+3) { animation-delay: .1s; } .pack-griglia figure:nth-child(4n) { animation-delay: .15s; }
@keyframes cella-su { from { opacity: 0; transform: translateY(14px); } }
.pack-griglia img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pack-griglia figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 13.5px; font-weight: 650;
  background: linear-gradient(transparent, oklch(0.12 0.01 45 / .88)); }
@media (max-width: 860px) {
  .effetti-corpo { grid-template-columns: 1fr; gap: 16px; }
  .pack-lista { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; }
  .pack-lista li { flex: none; }
  .pack-lista button { width: auto; padding: 8px 14px; border-radius: 999px; border-color: var(--riga); }
  .pack-lista button span { display: none; }
  .pack-griglia { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pack-griglia figcaption { font-size: 11.5px; padding: 16px 6px 5px; }
}

/* ── La serata: la scena resta ferma mentre scorrono i quattro momenti ── */
.serata-corpo { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); margin-top: 56px; }
/* il palco e' alto quanto un passo (62vh) e sta a meta' schermo: cosi' resta allineato al passo
   attivo anche sul primo e sull'ultimo, dove la colonna dei passi inizia e finisce */
.serata-palco { position: sticky; top: 19vh; align-self: start; height: 62vh; display: flex; align-items: center; }
.serata-scena { position: relative; width: 100%; aspect-ratio: 5 / 4; }
.serata-passi { list-style: none; margin: 0; padding: 0; }
.serata-passi .passo { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); }
.serata-passi .passo.attivo { opacity: 1; }
.passo .num { font-weight: 700; color: var(--ambra); font-size: 1rem; font-variant-numeric: tabular-nums; }
.passo h3 { margin: 4px 0 10px; font-weight: 740; font-stretch: 92%; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.passo p { margin: 0; color: var(--muted); max-width: 40ch; font-size: 1.08rem; }
.sc { position: absolute; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.sc-foto { left: 4%; top: 12%; width: 92%; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px -30px oklch(0 0 0 / .9); }
.sc-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-dopo { clip-path: inset(0 0 100% 0); transition: clip-path 1.6s cubic-bezier(.45, 0, .35, 1); }
.sc-foto .luce { transition: top 1.6s cubic-bezier(.45, 0, .35, 1), opacity .2s; }
.sc-conta { position: absolute; inset: 0; display: grid; place-items: center; }
.sc-conta b { grid-area: 1 / 1; font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; color: #fff; opacity: 0; text-shadow: 0 6px 40px oklch(0 0 0 / .6); }
.sc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.sc-stampa { left: 12%; top: 4%; width: 76%; opacity: 0; }
.sc-stampa .fessura { position: relative; z-index: 2; height: 22px; margin: 0 -4%; border-radius: 10px;
  background: linear-gradient(oklch(0.3 0.02 45), oklch(0.21 0.02 45)); box-shadow: 0 10px 24px -8px oklch(0 0 0 / .8), inset 0 1px 0 oklch(1 0 0 / .08); }
.sc-stampa .fessura::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 5px; height: 3px; border-radius: 3px; background: oklch(0.08 0.01 45); }
.sc-uscita { overflow: hidden; margin-top: 2px; }
.sc-uscita img { width: 100%; background: #fff; box-shadow: 0 30px 60px -30px oklch(0 0 0 / .9); transform: translateY(-101%); transition: transform 2.2s cubic-bezier(.4, 0, .2, 1) .3s; }
.sc-telefono { right: 3%; bottom: 0; height: 88%; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 34px; background: oklch(0.12 0.01 45);
  box-shadow: 0 0 0 1px oklch(1 0 0 / .12), 0 50px 90px -30px oklch(0 0 0 / .95); opacity: 0; transform: translateY(18%); }
.sc-telefono .pagina { height: 100%; border-radius: 26px; overflow: hidden; background: oklch(0.97 0.01 80); color: oklch(0.2 0.02 45);
  display: flex; flex-direction: column; justify-content: center; gap: 8%; padding: 0 7%; }
.sc-telefono .pagina img { border-radius: 4px; box-shadow: 0 10px 24px -12px oklch(0 0 0 / .5); }
.sc-telefono .scarica { padding: 9% 4%; border-radius: 10px; background: oklch(0.62 0.16 150); color: #fff; font-size: clamp(9px, 1vw, 12px);
  font-weight: 700; text-align: center; letter-spacing: .02em; }
.sc-telefono .social { display: flex; justify-content: center; gap: 8%; }
.sc-telefono .social i { width: 18%; aspect-ratio: 1; border-radius: 50%; background: oklch(0.85 0.02 60); }
/* le quattro fasi */
.serata-scena[data-fase="1"] .sc-conta b { animation: conta 1s var(--ease) both; }
.serata-scena[data-fase="1"] .sc-conta b:nth-child(2) { animation-delay: 1s; }
.serata-scena[data-fase="1"] .sc-conta b:nth-child(3) { animation-delay: 2s; }
.serata-scena[data-fase="1"] .sc-flash { animation: flash .7s ease-out 3s both; }
@keyframes conta { 0% { opacity: 0; transform: scale(1.5); } 25% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.85); } }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.serata-scena[data-fase="2"] .sc-dopo, .serata-scena[data-fase="3"] .sc-dopo, .serata-scena[data-fase="4"] .sc-dopo { clip-path: inset(0); }
.serata-scena[data-fase="2"] .sc-foto .luce { top: 100%; opacity: 1; }
.serata-scena[data-fase="3"] .sc-foto, .serata-scena[data-fase="4"] .sc-foto { opacity: 0; transform: translateY(-6%) scale(.92); }
.serata-scena[data-fase="3"] .sc-stampa, .serata-scena[data-fase="4"] .sc-stampa { opacity: 1; }
.serata-scena[data-fase="3"] .sc-uscita img, .serata-scena[data-fase="4"] .sc-uscita img { transform: none; }
.serata-scena[data-fase="4"] .sc-stampa { transform: translate(-16%, 10%) scale(.8) rotate(-3deg); }
.serata-scena[data-fase="4"] .sc-telefono { opacity: 1; transform: none; transition-delay: .2s; }
@media (max-width: 860px) {
  .serata-corpo { grid-template-columns: 1fr; gap: 0; }
  .serata-palco { top: 64px; z-index: 2; height: auto; background: var(--bg); padding-bottom: 8px; box-shadow: 0 24px 24px -12px var(--bg); }
  /* passi bassi e fase decisa al 70% dello schermo: il testo attivo resta sempre sotto la scena */
  .serata-passi .passo { min-height: 38vh; }
}

/* ── Dietro la postazione ── */
.gruppi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px clamp(32px, 6vw, 96px); margin-top: 64px; }
.gruppo h3 { margin: 0 0 8px; font-weight: 740; font-stretch: 92%; font-size: 1.6rem; letter-spacing: -0.015em; color: var(--ambra); }
.gruppo ul { list-style: none; margin: 0; padding: 0; }
.gruppo li { padding: 18px 0; border-top: 1px solid var(--riga); color: var(--muted); }
.gruppo li b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.1rem; font-weight: 650; }
@media (max-width: 860px) { .gruppi { grid-template-columns: 1fr; gap: 44px; } }

/* ── Cosa serve per partire: il kit in quattro voci e le tre stampe come escono ── */
.kit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.kit b { display: block; padding-top: 16px; border-top: 1px solid var(--riga); margin-bottom: 6px; font-size: 1.15rem; font-weight: 700; }
.kit p { margin: 0; color: var(--muted); }
.stampe { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, .85fr); gap: 24px; align-items: end; margin-top: 56px; }
.stampe figure { margin: 0; }
.stampe img { width: 100%; border-radius: 4px; box-shadow: 0 30px 60px -28px oklch(0 0 0 / .9), 0 0 0 1px oklch(1 0 0 / .06); }
.stampe figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.stampe-nota { margin: 22px 0 0; color: var(--muted); }
@media (max-width: 860px) { .kit { grid-template-columns: 1fr 1fr; } .stampe { grid-template-columns: 1fr 1fr; } .stampe figure:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .kit { grid-template-columns: 1fr; } }

/* ── La libreria: i nomi degli effetti che scorrono ── */
.libreria { overflow: hidden; }
.nomi { margin: 64px calc(-1 * var(--pad)) 0; display: grid; gap: 10px; }
.riga-nomi { display: flex; width: max-content; animation: nastro-nomi 70s linear infinite; }
.riga-nomi.inversa { animation-direction: reverse; animation-duration: 84s; }
.riga-nomi span { padding: 0 .45em; font-weight: 760; font-stretch: 88%; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.15; letter-spacing: -0.03em; white-space: nowrap; }
.riga-nomi span:nth-child(3n+1) { color: var(--ambra); }
.riga-nomi span:nth-child(3n+2) { color: oklch(0.45 0.03 60); }
@keyframes nastro-nomi { to { transform: translateX(-50%); } }
.pack-fatti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.pack-fatti p { margin: 0; padding-top: 18px; border-top: 1px solid var(--riga); color: var(--muted); }
.pack-fatti b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.25rem; font-weight: 700; }
@media (max-width: 760px) { .pack-fatti { grid-template-columns: 1fr; gap: 20px; } }

/* ── Fondatore ── */
.fondatore .dentro { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1040px; }
.fondatore img { width: clamp(140px, 18vw, 220px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px var(--bg-2), 0 0 0 7px var(--riga); }
.fondatore blockquote { margin: 0; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.32; letter-spacing: -0.01em; }
.fondatore blockquote strong { color: var(--ambra); font-weight: 700; }
.fondatore cite { display: block; margin-top: 18px; font-style: normal; color: var(--muted); }
.fondatore cite a { color: var(--ambra); }
.consiglio { margin: 48px auto 0; max-width: 1040px; padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--bg-2); border: 1px solid var(--riga); }
.consiglio p { margin: 0; font-size: 1.12rem; }
.consiglio p + p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
@media (max-width: 700px) { .fondatore .dentro { grid-template-columns: 1fr; } }

/* ── Prezzi ── */
.prezzi { background: oklch(0.145 0.018 40 / .88); }
.senza { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0 0; padding: 0; list-style: none; }
.senza li { padding-top: 16px; border-top: 1px solid var(--riga); color: var(--muted); }
.senza b { display: block; color: var(--ink); font-size: 1.1rem; }
.licenze { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.licenza { padding: 26px; border-radius: 20px; background: var(--bg-3); border: 1px solid var(--riga); display: flex; flex-direction: column; }
.licenza.tutto { border-color: oklch(0.55 0.1 72); background: linear-gradient(165deg, oklch(0.3 0.05 65), var(--bg-3) 65%); }
.licenza h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.licenza .cifra { margin: 18px 0 6px; font-weight: 800; font-stretch: 92%; font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; }
.licenza span { color: var(--muted); font-size: .95rem; }
.licenza.tutto span { color: var(--champ); }
.crediti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.credito { padding: 22px 26px; border-radius: 18px; border: 1px solid var(--riga); }
.credito b { display: block; font-size: 1.1rem; }
.credito .euro { margin: 8px 0 2px; font-weight: 800; font-size: 2.1rem; letter-spacing: -0.03em; }
.credito span { color: var(--muted); font-size: .95rem; }
.prezzi-nota { margin: 28px 0 0; color: var(--muted); max-width: 72ch; }
.prezzi-nota b { color: var(--ink); }
.fondatori { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 32px; padding: 22px 26px;
  border-radius: 18px; border: 1px dashed oklch(0.55 0.1 72); }
.fondatori p { margin: 0; max-width: 64ch; color: var(--muted); }
.fondatori p b { color: var(--ink); }
@media (max-width: 1000px) { .licenze { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .senza, .crediti { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .licenze { gap: 10px; } .licenza { padding: 18px 16px; } .licenza .cifra { font-size: 2.3rem; } .licenza span { font-size: .88rem; } }

/* ── Fatto da chi sta dietro la postazione: le cose che alla festa succedono, e il confronto ── */
.verita { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); margin: 48px 0 0; }
.verita > div { padding: 22px 0; border-top: 1px solid var(--riga); }
.verita dt { font-weight: 720; font-stretch: 92%; font-size: 1.25rem; letter-spacing: -0.015em; color: var(--ambra); }
.verita dd { margin: 6px 0 0; color: var(--muted); }
.paragone { margin-top: 64px; }
.p-testa, .p-riga { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 0 28px; }
.p-testa { padding-bottom: 12px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.p-testa span:last-child { color: var(--ambra); padding-left: 16px; }
.p-riga { padding: 22px 0; border-top: 1px solid var(--riga); }
.p-riga b { font-weight: 700; }
.p-riga p { margin: 0; color: var(--muted); }
.p-riga p + p { color: var(--ink); padding-left: 16px; border-left: 2px solid var(--ambra); }
@media (max-width: 760px) {
  .p-testa { display: none; }
  .p-riga { grid-template-columns: 1fr; gap: 10px; }
  .p-riga p::before { content: attr(data-l) ": "; font-weight: 650; color: var(--muted); }
  .p-riga p + p::before { color: var(--ambra); }
}
.non-fa { margin: 40px 0 0; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--riga); color: var(--muted); max-width: 72ch; }
.non-fa b { color: var(--ink); }
@media (max-width: 860px) { .verita { grid-template-columns: 1fr; } }

/* ── Domande ── */
.faq .dentro { max-width: 900px; }
.faq details { border-top: 1px solid var(--riga); }
.faq details:last-of-type { border-bottom: 1px solid var(--riga); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-weight: 650; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); translate: 0 -70%; rotate: 45deg; transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 225deg; }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 70ch; }
.faq details a { color: var(--ambra); }

/* ── Chiusura, piede, finestra download ── */
.chiusura { padding: clamp(110px, 14vw, 190px) var(--pad); text-align: center; }
.chiusura h2 { margin: 0 auto; max-width: 16ch; font-weight: 780; font-stretch: 90%; font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; }
.chiusura p { color: var(--muted); margin: 22px auto 34px; max-width: 46ch; font-size: 1.1rem; }
.chiusura .wa { display: inline-block; margin-top: 22px; color: var(--muted); font-size: .98rem; }
.piede { padding: 48px var(--pad) 40px; border-top: 1px solid oklch(1 0 0 / .06); color: var(--muted); font-size: 14px; background: var(--bg); }
.piede .dentro { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.piede nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.piede nav a { text-decoration: none; }
.piede nav a:hover { color: var(--ink); }
.piede .lingue-piede { margin-left: 0; flex-basis: 100%; gap: 6px 18px; }
.lingue-piede a[aria-current] { color: var(--ink); }
.piede .legale { flex-basis: 100%; font-size: 13px; opacity: .85; }
.dl { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: oklch(0.1 0.01 45 / .7);
  backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.dl.show { opacity: 1; pointer-events: auto; }
.dl-card { position: relative; width: min(100%, 520px); padding: 34px; border-radius: 22px; background: var(--bg-3); border: 1px solid var(--riga);
  box-shadow: 0 40px 90px -30px oklch(0 0 0 / .9); translate: 0 16px; transition: translate .35s var(--ease); }
.dl.show .dl-card { translate: 0 0; }
.dl-card h3 { margin: 0 0 10px; font-size: 1.4rem; }
.dl-card p { margin: 0 0 22px; color: var(--muted); }
.dl-chiudi { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 22px; }
.dl-chiudi:hover { background: oklch(1 0 0 / .06); color: var(--ink); }
.dl-copia { margin: 0 0 0 10px; }

/* ── Comparsa allo scorrimento: solo dove il browser la sa fare, il contenuto e' sempre visibile ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv-in linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes rv-in { from { opacity: 0; transform: translateY(32px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
