@font-face{font-family:'Archivo';font-style:normal;font-weight:300 900;font-stretch:62% 125%;font-display:swap;src:url(assets/fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:300 900;font-stretch:62% 125%;font-display:swap;src:url(assets/fonts/archivo-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:'Grenze Gotisch';font-style:normal;font-weight:400 900;font-display:swap;src:url(assets/fonts/grenze-gotisch-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Grenze Gotisch';font-style:normal;font-weight:400 900;font-display:swap;src:url(assets/fonts/grenze-gotisch-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:'Phobos Brush';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/phobos-brush.woff2) format('woff2');}
/* ==========================================================================
   PHOBOS SCREAM PARK · landing lista d'attesa
   Tema unico scuro. Spigoli vivi. Tre momenti: locandina, attrazioni, lista.
   Livelli: loader 100 · grain 90 · nav 50 · dock 40 · contenuti 1-10
   ========================================================================== */

:root {
  --ink: #070505;
  --ink-2: #110c0b;
  --bone: #efe7dd;
  --mute: #a69c92;
  --line: rgba(239, 231, 221, .14);
  --red: #c8101b;
  --red-hot: #ff2433;

  --gothic: 'Grenze Gotisch', 'Times New Roman', serif;
  --brush: 'Phobos Brush', 'Times New Roman', serif;   /* il nostro font a pennello (font/strokes.py) */
  --ui: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
/* le punte del pennello escono dai titoli: non devono allargare la pagina */
html, body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
[hidden] { display: none !important; }

/* testo che sale da sotto una maschera */
.rise { display: inline-block; overflow: hidden; vertical-align: top; padding: .3em .45em .22em .2em; margin: -.3em -.45em -.22em -.2em; }
.rise > i { display: inline-block; font-style: normal; will-change: transform; }

/* ---------- bottoni ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 0; background: var(--red); color: var(--bone);
  font-family: var(--brush); font-weight: 400;
  font-size: 22px; letter-spacing: .03em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  isolation: isolate; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bone);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn > span { position: relative; transition: color .3s; }
@media (hover: hover) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover > span { color: var(--ink); }
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 19px; }
.btn--lg { min-height: 62px; padding: 0 38px; font-size: 27px; }
.btn--block { width: 100%; }
.btn.is-loading > span { opacity: .5; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--ink);
}
html:not(.js) .loader { display: none; }
.loader__mark { position: relative; width: 120px; height: 120px; --p: 0; }
.loader__mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* il simbolo vuoto, spento */
.loader__empty { filter: grayscale(1) brightness(.35); opacity: .55; }
/* il simbolo pieno, che sale dal basso come un liquido */
.loader__full { clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0); }
/* il bagliore sul contenitore, così il ritaglio del riempimento non lo taglia a quadrato */
.loader__mark { filter: drop-shadow(0 0 calc(var(--p) * 26px) rgba(255, 36, 51, calc(var(--p) * .55))); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background .4s;
}
.nav.is-solid { background: linear-gradient(rgba(7, 5, 5, .85), rgba(7, 5, 5, 0)); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.nav__brand img { width: 34px; height: 34px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 760vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__fallback, .hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__gl { opacity: 0; transition: opacity .6s; }
.hero-gl .hero__gl { opacity: 1; }
.hero-gl .hero__fallback { visibility: hidden; }
/* dopo l'ingresso il WebGL si spegne: si vede sempre la foto vera, che fa anche lo zoom */
.hero-gl-done .hero__gl { display: none; }
.hero-gl-done .hero__fallback { visibility: visible; }
.hero__fallback { will-change: transform; transform-origin: 50% 56%; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; visibility: hidden;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 56%), rgba(255, 92, 40, .95) 0, rgba(255, 50, 20, .55) 9%, rgba(180, 20, 10, .18) 26%, transparent 46%);
  mix-blend-mode: screen; will-change: opacity;
}
.grain { transition: opacity .8s; }
.grain.is-off { opacity: 0; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(7, 5, 5, .96) 0%, rgba(7, 5, 5, .7) 22%, rgba(7, 5, 5, 0) 48%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); z-index: 2;
  display: grid; justify-items: center; text-align: center;
  padding: 0 var(--gutter);
}
.hero__title { margin: 0; line-height: 0; }
.hero__info { display: grid; justify-items: center; width: 100%; will-change: transform, opacity; }
.hero__logo { position: relative; display: block; width: clamp(300px, 42vw, 700px); aspect-ratio: 1240 / 520; }
/* l'ombra sta su ogni pezzo e non sul contenitore: così quando la scritta si
   scompone ogni pezzo si muove già pronto, senza ricalcolare l'ombra a ogni frame */
.lg { position: absolute; background: url(assets/img/logo.webp) no-repeat; will-change: transform, opacity; filter: drop-shadow(0 14px 40px rgba(0, 0, 0, .9)); }
/* bagliore rosso del Φ: disegnato una volta, poi si cambia solo l'opacità */
.lg--phi::before { content: ""; position: absolute; inset: 0; background: inherit; filter: drop-shadow(0 0 40px rgba(255, 36, 51, .8)); opacity: var(--glow, 0); will-change: opacity; }
.lg--ph  { left: 0;     top: 0;   width: 33.7%; height: 73%; background-size: 296.7% 137%; background-position: 0 0; }
.lg--phi { left: 33.7%; top: 0;   width: 21.9%; height: 79%; background-size: 456.6% 126.6%; background-position: 43.15% 0; }
.lg--bos { left: 55.6%; top: 0;   width: 44.4%; height: 73%; background-size: 225.2% 137%; background-position: 100% 0; }
.lg--sp  { left: 0;     top: 73%; width: 100%;  height: 27%; background-size: 100% 370.4%; background-position: 0 100%; }
.gate__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.hero__claim {
  margin: 6px 0 0;
  font-family: var(--brush); font-weight: 400; line-height: 1.15;
  font-size: clamp(40px, 4.4vw, 76px); color: var(--bone);
}
.hero__claim .rise { overflow: visible; }
.hero__row { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: 26px; }
.hero__meta { margin: 0; display: flex; align-items: center; gap: 14px; font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: #d9cfc4; }
.hero__meta span + span::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--red-hot); vertical-align: middle; margin-right: 14px; }
.hero__enter {
  position: absolute; left: 0; right: 0; bottom: 12vh; z-index: 2; margin: 0;
  font-family: var(--brush); font-weight: 400; font-size: clamp(44px, 7vw, 120px); line-height: .9; text-align: center;
  opacity: 0; pointer-events: none;
  text-shadow: 0 0 60px rgba(255, 36, 51, .5);
  will-change: transform, opacity;
}

/* ---------- parco: colonne ---------- */
.parco { padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(80px, 10vw, 140px); max-width: var(--max); margin: 0 auto; }

/* ---------- haunted house: carosello orizzontale ---------- */
.hh {
  position: relative; overflow: hidden;
  padding: clamp(120px, 16vh, 200px) 0 clamp(80px, 10vw, 140px);
  /* parte dal rosso del rosone in cui si è appena entrati e scende nel buio */
  background: #ad2600;
}
.hh__head {
  max-width: var(--max); margin: 0 auto clamp(32px, 5vw, 56px); padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.hh__title { margin: 0; font-family: var(--brush); font-weight: 400; font-size: clamp(60px, 7.5vw, 132px); line-height: .86; }
.hh__title .rise { display: block; }
.hh__lead { margin: 0; max-width: 34ch; color: #e2d8cd; font-size: clamp(16px, 1.25vw, 19px); }
.hh__carousel { position: relative; z-index: 0; }
.hh__carousel::before {
  /* il rosso del rosone resta pieno dietro al titolo e scende nel nero dove partono le card */
  content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%);
  top: 0; bottom: -40vh;
  background: linear-gradient(rgba(173, 38, 0, 0) 0, #5a1203 18%, #1c0604 45%, var(--ink) 70%);
  pointer-events: none;
}
.hh__track {
  display: flex; gap: clamp(20px, 2.6vw, 40px);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* spazio extra sopra e sotto (compensato dai margini) perché ombre e bagliori non vengano tagliati */
  padding: 70px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 130px;
  margin: -42px 0 -90px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab; outline: none;
}
.hh__track::-webkit-scrollbar { display: none; }
.hh__track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
/* livelli già pronti: l'entrata (scorrimento + dissolvenza) non ridisegna ombre e testi a ogni frame */
.hh__card, .room__body, .hh__title i, .parco__title i { will-change: transform, opacity; }
.hh__card { flex: none; width: clamp(230px, 25vw, 376px); scroll-snap-align: start; outline: none; }
.hh__poster {
  position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; background: var(--ink-2);
  transform: rotate(var(--tilt, 0deg)); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.hh__card:nth-child(odd) .hh__poster { --tilt: -1.6deg; }
.hh__card:nth-child(even) .hh__poster { --tilt: 1.4deg; }
.hh__card:nth-child(3n) .hh__poster { --tilt: -.6deg; }
.hh__poster {
  /* copertina nera uguale per tutte: niente spoiler, solo il nome */
  background: linear-gradient(rgba(5, 4, 4, .5), rgba(5, 4, 4, .5)), #050404 url(assets/img/hh-cover.webp) center / cover no-repeat;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.hh__card:nth-child(2) .hh__poster { background-position: 0 0, 30% 70%; background-size: cover, 150%; }
.hh__card:nth-child(3) .hh__poster { background-position: 0 0, 80% 20%; background-size: cover, 140%; }
.hh__card:nth-child(4) .hh__poster { background-position: 0 0, 10% 40%; background-size: cover, 160%; }
.hh__mark { position: absolute; right: 22px; top: 20px; z-index: 3; width: 34px; height: auto; opacity: .75; }
.hh__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 5, 5, .96) 0%, rgba(7, 5, 5, .35) 45%, rgba(120, 10, 5, .15) 100%); pointer-events: none; }
.hh__poster::before { content: ""; position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(239, 231, 221, .14); pointer-events: none; }
@media (hover: hover) {
  .hh__card:hover .hh__poster, .hh__card:focus-visible .hh__poster { transform: rotate(0deg) translateY(-10px) scale(1.02); box-shadow: 0 50px 80px -24px rgba(200, 16, 27, .45); }
}
.is-scrolling .hh__card, .is-scrolling .room { pointer-events: none; }
.hh__num { position: absolute; left: 24px; top: 24px; z-index: 3; font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .22em; font-size: 10px; color: var(--red-hot); }
.hh__titleblock { position: absolute; left: 18px; right: 18px; top: 50%; transform: translateY(-50%); z-index: 3; text-align: center; }
.hh__name {
  margin: 0; font-family: var(--brush); font-weight: 400; text-transform: lowercase;
  font-size: clamp(42px, 4.3vw, 74px); line-height: .9; letter-spacing: .005em; color: var(--bone);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .9), 0 0 28px rgba(0, 0, 0, .95), 0 0 46px rgba(200, 16, 27, .35);
}
.hh__name::first-letter { text-transform: uppercase; }
.hh__name::after { content: ""; display: block; width: 44px; height: 2px; margin: 16px auto 0; background: var(--red-hot); box-shadow: 0 0 14px rgba(255, 36, 51, .6); }
.hh__collab { margin: 18px 0 0; display: grid; justify-items: center; gap: 4px; text-shadow: 0 0 18px rgba(0, 0, 0, .95); }
.hh__collab span { font-family: var(--ui); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #cbc1b6; }
.hh__collab strong { font-family: var(--ui); font-stretch: 112%; font-weight: 800; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--bone); }
.hh__text { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 3; margin: 0; color: #d6ccc1; font-size: 14px; line-height: 1.4; }
.hh__card--soon .hh__poster { background: radial-gradient(80% 60% at 50% 40%, #3a0806, var(--ink-2)); }
.hh__card--soon .hh__logo { position: absolute; left: 50%; top: 40%; width: 46%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 0 30px rgba(255, 36, 51, .5)); opacity: .85; }
.hh__card--soon .hh__name { color: var(--red-hot); }
.hh__arrow {
  position: absolute; top: 50%; z-index: 4; width: 64px; height: 64px; margin-top: -32px;
  display: grid; place-items: center; border: 1px solid rgba(239, 231, 221, .2);
  background: rgba(7, 5, 5, .85);
  cursor: pointer; transition: background .3s, border-color .3s, opacity .3s;
}
.hh__arrow span { width: 14px; height: 14px; border: solid var(--bone); border-width: 2px 2px 0 0; }
.hh__arrow--prev { left: var(--gutter); } .hh__arrow--prev span { transform: translateX(3px) rotate(-135deg); }
.hh__arrow--next { right: var(--gutter); } .hh__arrow--next span { transform: translateX(-3px) rotate(45deg); }
.hh__arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) { .hh__arrow:hover { background: var(--red); border-color: var(--red); } }
.parco__head { margin-bottom: clamp(36px, 5vw, 64px); }
.parco__eyebrow { margin: 0 0 14px; font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .24em; font-size: 12px; color: var(--red-hot); }
.parco__title { margin: 0; font-family: var(--brush); font-weight: 400; font-size: clamp(56px, 8vw, 132px); line-height: .9; }
.rooms { display: grid; gap: 10px; }
.room {
  position: relative; overflow: hidden; height: clamp(300px, 46vh, 480px);
  background: var(--ink-2);
}
.room img {
  position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; object-position: 70% 50%;
  will-change: transform;
}
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 5, 5, .95) 0%, rgba(7, 5, 5, .65) 35%, rgba(7, 5, 5, 0) 70%); pointer-events: none; }
.room::before { content: ""; position: absolute; left: 0; top: 0; z-index: 3; width: 2px; height: 100%; background: var(--red-hot); }
.room__body { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 2; padding: 0 clamp(24px, 4vw, 64px); max-width: 640px; }
.room__big {
  display: block; font-family: var(--brush); font-weight: 400;
  font-size: clamp(72px, 8.4vw, 150px); line-height: .9; color: var(--red-hot);
}
.room__title { font-family: var(--brush); font-weight: 400; font-size: clamp(34px, 3.4vw, 56px); line-height: .95; margin: 14px 0 0; }
.room__text { margin: 12px 0 0; max-width: 38ch; color: #d6ccc1; font-size: clamp(16px, 1.2vw, 18px); }

/* ---------- lista ---------- */
.lista { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; padding: clamp(110px, 14vw, 180px) var(--gutter); }
.lista__smoke { position: absolute; inset: 0; width: 100%; height: 100%; }
.lista__inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 100px); align-items: center;
  pointer-events: none;
}
.lista__inner > * { pointer-events: auto; }
.lista__intro { pointer-events: none !important; }
.lista__title {
  margin: 0;
  font-family: var(--brush); font-weight: 400;
  font-size: clamp(64px, 10.4vw, 186px); line-height: .92;
}
.lista__title .rise { display: block; }
/* spazio per le punte del pennello, che altrimenti la maschera dell'animazione taglia */
.lista__title .rise { padding: .3em .45em .22em .2em; margin: -.3em -.45em -.22em -.2em; }
.lista__title { text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.lista__title .rise:last-child { color: var(--red-hot); }
.lista__lead { margin: 28px 0 0; max-width: 42ch; color: #d4cabf; font-size: clamp(17px, 1.3vw, 20px); }
/* ---------- il tempo: l'orologio maledetto (render a strati, blender/build_clock.py) ---------- */
.tempo { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 160px) var(--gutter); background: radial-gradient(50% 55% at 50% 50%, rgba(140, 18, 8, .28), transparent 70%), var(--ink); }
.tempo__inner { max-width: var(--max); margin: 0 auto; display: grid; justify-items: center; }
.ck { position: relative; justify-self: center; width: min(100%, 560px); }
.ck img { position: absolute; display: block; max-width: none; }
.ck__body { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .85)); }
.ck__win { position: absolute; overflow: hidden; }
.ck__win img { inset: 0; width: 100%; height: 100%; }
.ck__hand { will-change: transform; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .85)); }
.ck__hand--s { transition: transform .35s cubic-bezier(.3, 1.7, .5, 1); }
.ck.is-jump .ck__hand { transition: none; }
.ck__glass { pointer-events: none; }
/* ck:auto — posizioni degli strati in percentuale, scritte da blender/clock_to_site.py */
.ck { aspect-ratio: 894 / 1700; }
.ck__body { inset: 0; width: 100%; height: 100%; }
.ck__hand--h { left: 32.103%; top: 41.212%; width: 35.794%; }
.ck__hand--m { left: 23.826%; top: 36.859%; width: 52.349%; }
.ck__hand--s { left: 22.036%; top: 35.918%; width: 55.928%; }
.ck__hub { left: 47.763%; top: 49.453%; width: 4.474%; }
.ck__glass { left: 19.351%; top: 34.512%; width: 61.298%; }
.ck__win:nth-of-type(1) { left: 25.280%; top: 69.353%; width: 14.094%; height: 8.765%; }
.ck__win:nth-of-type(2) { left: 42.953%; top: 69.353%; width: 14.094%; height: 8.765%; }
.ck__win:nth-of-type(3) { left: 60.626%; top: 69.353%; width: 14.094%; height: 8.765%; }
/* /ck:auto */

.book {
  /* niente vetro sfocato: sopra il fumo animato andrebbe ricalcolato a ogni frame */
  background: rgba(10, 7, 7, .8);
  border: 1px solid rgba(239, 231, 221, .12);
  box-shadow: inset 0 1px 0 rgba(239, 231, 221, .08), 0 40px 120px -30px rgba(200, 16, 27, .35);
  padding: clamp(24px, 3vw, 40px);
}
@media (prefers-reduced-transparency: reduce) { .book { background: var(--ink-2); } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.field .opt { font-stretch: 100%; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--mute); margin-left: 6px; }
.field input {
  width: 100%; height: 54px; padding: 0 16px;
  background: rgba(0, 0, 0, .45); color: var(--bone);
  border: 1px solid rgba(239, 231, 221, .18); border-radius: 0;
  font: 500 17px/1 var(--ui);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input:hover { border-color: rgba(239, 231, 221, .4); }
.field input:focus { outline: none; border-color: var(--red-hot); box-shadow: 0 0 0 3px rgba(255, 36, 51, .18); background: rgba(0, 0, 0, .6); }
.field input[aria-invalid="true"] { border-color: #ff5a64; }
.field__err, .form__err { margin: 0; color: #ff8d95; font-size: 14px; }
.field__err:empty, .form__err:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: #cfc5ba; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid rgba(239, 231, 221, .5); background: transparent; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--bone); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check input[aria-invalid="true"] { border-color: #ff5a64; }
.check a { color: var(--bone); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.signed { text-align: center; padding: 20px 0 6px; outline: none; }
.signed__mark { width: 80px; height: 80px; margin: 0 auto 18px; filter: drop-shadow(0 0 30px rgba(255, 36, 51, .5)); }
.signed__sig { margin: 0; font-family: var(--brush); font-weight: 400; font-size: clamp(56px, 6vw, 92px); line-height: .9; color: var(--red-hot); }
.signed__title { margin: 18px 0 0; font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 22px; }
.signed__text { margin: 8px auto 0; color: var(--mute); max-width: 34ch; }

/* ---------- faq ---------- */
.faq { max-width: 1000px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter); }
.faq__title { margin: 0 0 clamp(24px, 3vw, 40px); font-family: var(--brush); font-weight: 400; font-size: clamp(48px, 6vw, 96px); line-height: .9; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.2;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--red-hot), var(--red-hot)) center / 100% 2px no-repeat, linear-gradient(var(--red-hot), var(--red-hot)) center / 2px 100% no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
@media (hover: hover) { .faq summary:hover { color: var(--red-hot); } }
.faq details p { margin: 0 0 24px; color: var(--mute); max-width: 62ch; }

/* ---------- footer ---------- */
.foot { padding: 56px var(--gutter) calc(40px + env(safe-area-inset-bottom)); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.foot__logo { width: clamp(200px, 20vw, 280px); height: auto; }
.foot__cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 24px; color: var(--mute); font-size: 15px; }
.foot__cols p { margin: 0; }
.foot__cols nav { display: flex; gap: 24px; }
.foot__cols a { text-decoration: none; font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--bone); }
@media (hover: hover) { .foot__cols a:hover { color: var(--red-hot); } }
.foot__copy { margin: 36px 0 0; font-size: 13px; color: #7a7066; }

/* ---------- dock mobile ---------- */
.dock {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: center; min-height: 56px;
  background: var(--red); color: var(--bone); text-decoration: none;
  font-family: var(--brush); font-weight: 400; letter-spacing: .03em; font-size: 24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transform: translateY(150%); transition: transform .5s var(--ease);
}
.dock.is-on { transform: none; }

/* ---------- grain ---------- */
/* grana ferma e appena percettibile: dà materia al nero senza disturbare */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .03;
  background: url(assets/img/grain.webp) repeat; background-size: 256px;
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .lista__inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  :root { --nav-h: 60px; }
  .nav__brand span { display: none; }
  .nav .btn--sm { display: none; }
  .hero { height: 620vh; }
  .hero__logo { width: min(92vw, 440px); }
  .hero__claim { font-size: clamp(28px, 8.4vw, 38px); }
  .hero__row { flex-direction: column; gap: 16px; width: 100%; }
  .hero__info { width: 100%; }
  .hero__row .btn { width: 100%; }
  .hero__shade { background: linear-gradient(0deg, rgba(7, 5, 5, .98) 0%, rgba(7, 5, 5, .8) 34%, rgba(7, 5, 5, 0) 62%); }
  .hh__card { width: 64vw; }
  .hh__arrow { display: none; }
  .room { height: 380px; }
  .room::after { background: linear-gradient(0deg, rgba(7, 5, 5, .96) 0%, rgba(7, 5, 5, .6) 50%, rgba(7, 5, 5, .15) 85%); }
  .room__body { top: auto; bottom: 0; transform: none; padding: 24px; }
  .lista { padding-top: 110px; padding-bottom: 120px; }
  .lista__title { font-size: clamp(64px, 19vw, 110px); }
  .dock { display: flex; }
  .ck { width: min(86vw, 400px); }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
}

/* grana sporca dentro le scritte a pennello, come vernice su muro */
.hero__claim, .room__big, .lista__title {
  -webkit-mask-image: url(assets/img/grunge.webp); mask-image: url(assets/img/grunge.webp);
  -webkit-mask-size: 420px; mask-size: 420px;
}

.field-error input {
    border-color: #fd0035 !important;
}