/* Rocca — sicurezza informatica · demo Wave Studio
   Colori: nero da terminale, ambra dei vecchi monitor, osso della pietra, rosso d'allarme. */
:root {
  --nero: #0b0c0d;
  --nero-2: #16171a;
  --osso: #ece6d8;
  --osso-2: #b8b2a5;
  --fumo: #6c675e;
  --rosso: #ff4d3d;
  --ambra: #ffb547;
  --ambra-2: #ffd28a;
  --serif: "Cinzel", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gotico: "Cinzel", serif;
  --bagliore: 0 0 .5em rgba(255, 181, 71, .35), .04em 0 0 rgba(255, 77, 61, .3), -.04em 0 0 rgba(120, 200, 230, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--nero);
  color: var(--osso);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--rosso); color: var(--nero); }
:focus-visible { outline: 2px solid var(--ambra-2); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- strati fissi ---------- */
.fondo { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(70% 45% at 50% 110%, rgba(255,181,71,.12), transparent 70%), radial-gradient(95% 75% at 50% 42%, #15161a 0%, var(--nero) 68%); }
.codice { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.sciame { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
main, .piede { position: relative; z-index: 3; }
.crt {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
    radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}
/* Osmo · Film Grain Effect (versione SVG, senza file esterni) */
.grain { pointer-events: none; z-index: 51; position: fixed; inset: 0; }
.grain__svg { position: fixed; width: 0; height: 0; overflow: hidden; }
.grain__layer-dark { position: fixed; inset: -10%; filter: url("#grain-filter"); opacity: .22; mix-blend-mode: multiply; }
.grain__layer-light { position: fixed; inset: -10%; filter: url("#grain-filter"); opacity: .09; mix-blend-mode: screen; }
[data-grain-animate="true"] :is(.grain__layer-dark, .grain__layer-light) { animation: grain 1s steps(5) infinite; }
@keyframes grain {
  0% { transform: translate(0%, 0%); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 2%); }
}

/* ---------- caricamento ---------- */
.loader {
  position: fixed; inset: 0; z-index: 60; background: var(--nero);
  display: grid; place-items: center; font-family: var(--mono); color: var(--osso-2);
  font-size: 12px; letter-spacing: .04em;
}
html:not(.js) .loader { display: none; }
.loader__box { width: min(78vw, 460px); display: grid; gap: 1.4em; justify-items: center; }
.loader__logo { font-family: var(--serif); font-weight: 700; letter-spacing: .08em; font-size: clamp(16px, 2.2vw, 22px); color: var(--osso); margin: 0; text-shadow: var(--bagliore); letter-spacing: -.01em; }
.loader__bar { width: 56%; height: 18px; position: relative; background: repeating-linear-gradient(90deg, rgba(255,181,71,.22) 0 2px, transparent 2px 4px); }
.loader__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, var(--ambra) 0 3px, rgba(255,181,71,.6) 3px 4px); box-shadow: 0 0 12px rgba(255,181,71,.5); }
.loader__row { width: 100%; display: flex; justify-content: space-between; text-transform: uppercase; }
.loader__pct { color: var(--ambra); font-size: 15px; }
.loader__foot { position: absolute; bottom: 4vh; left: 5vw; right: 5vw; display: flex; justify-content: space-between; gap: 2em; font-size: 10px; text-transform: uppercase; opacity: .7; }

/* ---------- etichetta a destra + marchio ---------- */
.segna { position: fixed; right: 14px; top: 0; height: 100vh; z-index: 40; pointer-events: none; }
.segna__t { position: absolute; right: 0; top: 8vh; font-family: var(--serif); font-weight: 700; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; color: var(--osso-2); text-shadow: var(--bagliore); white-space: nowrap; transition: color .4s; }
.marchio {
  font-weight: 900;
  position: fixed; left: 18px; top: 16px; z-index: 40; text-decoration: none;
  font-family: var(--gotico); font-size: 22px; color: var(--osso); letter-spacing: .02em; text-shadow: var(--bagliore);
  opacity: 0; transition: opacity .5s;
}
.marchio span { color: var(--ambra); margin: 0 .15em; font-family: var(--serif); }
.is-scrolled .marchio { opacity: 1; }

/* ---------- 1 apertura ---------- */
.hero { height: 100vh; height: 100svh; position: relative; display: grid; place-items: center; }
.hero__slot { position: absolute; left: 2.5%; right: 2.5%; top: 12%; height: 58%; }
.hero__fallback {
  margin: 0; font-family: var(--serif); text-transform: uppercase; font-size: clamp(80px, 18vw, 260px); line-height: 1; color: var(--osso);
  text-shadow: var(--bagliore); transform: translateY(-8%);
}
.has-sciame .hero__fallback { visibility: hidden; }
.hero__ui { position: absolute; inset: 0; display: grid; justify-items: center; pointer-events: none; }
.hero__ui > * { pointer-events: auto; }
.hero__meta { position: absolute; top: 4.2vh; left: 5vw; right: 5vw; display: flex; justify-content: space-between; align-items: start; font-size: 10.5px; line-height: 1.75; letter-spacing: .2em; text-transform: uppercase; color: var(--osso-2); }
.hero__meta span:last-child { text-align: right; }
.hero__meta-c { color: var(--ambra); font-size: 18px; text-shadow: 0 0 .6em rgba(255,77,61,.6); letter-spacing: 0; }
.hero__claim { position: absolute; top: 76%; margin: 0; padding: .35em .8em; text-align: center; font-family: var(--serif); font-weight: 700; font-size: clamp(18px, 2.1vw, 30px); background: rgba(11,12,13,.62); line-height: 1.1; color: var(--osso); text-shadow: var(--bagliore); }
.hero__claim em { color: var(--ambra); font-style: normal; text-shadow: 0 0 .45em rgba(255,181,71,.5); }
.hero__sub { position: absolute; top: calc(71% + clamp(46px, 5.4vw, 74px)); margin: 0; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--osso-2); opacity: .8; text-align: center; }
.hero__nav { position: absolute; bottom: 5.5vh; display: flex; align-items: center; gap: clamp(18px, 4vw, 44px); font-family: var(--serif); font-weight: 700; font-size: clamp(15px, 1.6vw, 20px); text-transform: uppercase; letter-spacing: .08em; }
.hero__nav a { text-decoration: none; color: var(--osso); background: rgba(11,12,13,.55); padding: .15em .4em; text-shadow: var(--bagliore); transition: color .3s; }
.hero__nav a:hover { color: var(--osso); }
.hero__nav span { color: var(--osso-2); font-size: .8em; }
.hero__giu { position: absolute; bottom: 2.5vh; font-size: 13px; line-height: .55; color: var(--osso-2); animation: giu 1.8s ease-in-out infinite; }
@keyframes giu { 50% { transform: translateY(5px); opacity: .5; } }

/* ---------- 2 chi siamo ---------- */
.chi { height: 230vh; position: relative; }
.chi__pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 6vw; }
.chi__testo { margin: 0; text-align: center; font-family: var(--mono); font-weight: 300; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.7; color: var(--osso); text-shadow: var(--bagliore); max-width: 40em; }
.chi__riga, .chi__dal { display: block; }
.chi__dal { margin-top: .8em; font-family: var(--serif); color: var(--ambra); letter-spacing: .2em; }

/* ---------- intro con box (stili, lavori) ---------- */
.intro { min-height: 150vh; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10vh 6vw 16vh; }
.intro__slot { width: min(92vw, 1100px); height: 80vh; margin-bottom: -12vh; }
.intro__box { width: min(100%, 560px); position: relative; padding: 18px 20px 20px; background: rgba(12,11,10,.74); backdrop-filter: blur(3px); align-self: flex-start; margin-left: max(0px, calc(50% - 520px)); }
.intro__titolo {
  --c: var(--ambra);
  margin: 0 0 1.1em; display: flex; align-items: center; gap: .55em;
  padding: .28em .5em; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em;
  color: var(--c); text-shadow: 0 0 .45em color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 5%, transparent);
}
.intro__ico { font-size: .72em; }
.intro__p { margin: 0; text-align: justify; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--c, var(--rosso)) 55%, var(--osso)); }
.intro--rosso { --c: var(--rosso); }
.intro--rosso .intro__titolo { --c: var(--rosso); }
.intro--ambra { --c: var(--ambra); }
.intro--ambra .intro__titolo { --c: var(--ambra); }
.intro__titolo--ambra { --c: var(--ambra-2); }

/* ---------- Osmo · Horizontal Scrolling Sections ---------- */
.oriz { display: flex; flex-flow: row; align-items: center; min-height: 100vh; overflow: hidden; gap: clamp(18px, 2.4vw, 36px); }
.oriz > * { flex: none; }
.oriz__pad { width: 8vw; }

/* schede degli stili */
.oriz--stili { perspective: 1300px; perspective-origin: 50% 45%; }
.stile { width: clamp(260px, 26vw, 360px); transform-style: preserve-3d; user-select: none; }
.stile__in { position: relative; background: rgba(30, 28, 26, .9); border: 1px solid rgba(236,230,216,.08); padding: 0 0 26px; height: 100%; display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.stile__top { transform: translateZ(30px); }
.stile__nome { transform: translateZ(64px); }
.stile__p { transform: translateZ(36px); }
.stile__incisione { transform: translateZ(14px); }
.stile__luce { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 50%), rgba(236,230,216,.13), rgba(255,77,61,.05) 35%, transparent 60%); mix-blend-mode: screen; transform: translateZ(70px); }
.stile__in.is-sopra .stile__luce { opacity: 1; }
.stile__in.is-sopra { border-color: rgba(255,77,61,.45); }
.stile__incisione { width: 100%; aspect-ratio: 1 / 1; display: block; background: transparent; cursor: crosshair; }
.stile__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; font-family: var(--serif); font-size: 15px; color: var(--osso-2); }
.stile__ico { color: var(--osso); font-size: 20px; font-family: var(--mono); }
.stile__nome { margin: 14px 22px 10px; font-family: var(--serif); font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--ambra); text-shadow: 0 0 .5em rgba(255,181,71,.45); letter-spacing: .01em; }
.stile__p { margin: 0 22px; font-size: 13.5px; line-height: 1.55; color: var(--osso); min-height: 8.5em; }

/* lavori: cilindro 3D (Osmo · 3D Image Carousel) */
.cilindro { position: relative; height: 118vh; display: grid; place-items: center; perspective: 1700px; perspective-origin: 50% 40%; overflow: clip; cursor: grab; touch-action: pan-y; }
.cilindro:active { cursor: grabbing; }
.cilindro__scena { position: relative; width: clamp(240px, 23vw, 360px); aspect-ratio: 3 / 5; transform-style: preserve-3d; }
.cilindro .arco { position: absolute; inset: 0; width: 100%; backface-visibility: visible; will-change: transform, opacity; }
.cilindro .arco__cornice { will-change: transform; }
.cilindro__aiuto { position: absolute; bottom: 9vh; left: 0; right: 0; margin: 0; text-align: center; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--osso-2); }
.cilindro__aiuto span { color: var(--ambra); font-size: 15px; margin-right: .4em; }
/* archi dei lavori */
.arco { margin: 0; width: clamp(230px, 22vw, 320px); text-align: center; user-select: none; }
.arco img { pointer-events: none; -webkit-user-drag: none; }
.arco__cornice {
  padding: 14px; border-radius: 999px 999px 0 0; position: relative;
  background: repeating-linear-gradient(115deg, rgba(236,230,216,.05) 0 1px, transparent 1px 4px), rgba(30,28,27,.85);
  box-shadow: 0 0 0 1px rgba(236,230,216,.05), 0 30px 60px -30px rgba(0,0,0,.8);
}
.arco__vetro {
  aspect-ratio: 3 / 4.3; border-radius: 999px 999px 0 0; overflow: hidden; position: relative;
  box-shadow: inset 0 0 0 1px rgba(236,230,216,.18), 0 0 26px rgba(255,181,71,.12);
}
.arco__vetro img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s; filter: contrast(1.05); }
.arco__vetro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px), radial-gradient(90% 70% at 50% 40%, transparent 55%, rgba(0,0,0,.55));
}
.arco:hover .arco__vetro img { transform: scale(1.14); filter: contrast(1.15) brightness(1.08); }
.arco figcaption { margin-top: 16px; font-family: var(--serif); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; color: var(--ambra); text-shadow: 0 0 .5em rgba(255,181,71,.5); }
.arco:nth-of-type(even) figcaption { color: var(--osso); text-shadow: var(--bagliore); }

/* ---------- 7 flash: Osmo · Draggable Stickers + sciame che ridisegna il bozzetto scelto ---------- */
.flash { min-height: 100vh; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 4vw; align-items: center; padding: 12vh 6vw; }
.flash__sinistra { display: flex; flex-direction: column; gap: 5vh; position: relative; z-index: 4; }
.flash__testo { max-width: 34em; }
.flash__kicker { margin: 0 0 1.2em; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ambra-2); }
.flash__titolo { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 92px); line-height: .98; letter-spacing: -.02em; color: var(--osso); text-shadow: var(--bagliore); }
.flash__titolo em { font-style: italic; color: var(--rosso); text-shadow: 0 0 .4em rgba(255,77,61,.4); }
.flash__p { margin: 1.4em 0 0; max-width: 30em; color: var(--osso-2); }
.flash__fogli { position: relative; height: 44vh; min-height: 300px; border: 1px dashed rgba(236,230,216,.16); background: repeating-linear-gradient(0deg, rgba(236,230,216,.025) 0 1px, transparent 1px 28px), rgba(12,11,10,.5); overflow: clip; }
.flash__fogli::before { content: "Banco · trascina o tocca"; position: absolute; left: 12px; bottom: 9px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--fumo); }
.adesivo {
  font: inherit; border: 0; display: block; color: inherit;
  position: absolute; width: clamp(92px, 8.6vw, 138px);
  padding: 10px; background: var(--osso); border-radius: 12px; cursor: grab; touch-action: none;
  box-shadow: 0 0 0 4px #f4efe4, 0 10px 24px -8px rgba(0,0,0,.7);
  rotate: var(--r, 0deg); transition: box-shadow .3s;
}
.adesivo:active { cursor: grabbing; }
.adesivo.is-scelto { box-shadow: 0 0 0 4px #f4efe4, 0 0 0 7px var(--rosso), 0 0 34px rgba(255,77,61,.55), 0 10px 24px -8px rgba(0,0,0,.7); }
.adesivo img { width: 100%; height: auto; pointer-events: none; user-select: none; display: block; }
.adesivo__prezzo { position: absolute; right: -10px; top: -12px; background: var(--rosso); color: var(--osso); font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 4px; rotate: 8deg; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.adesivo.is--1 { top: 9%; left: 5%; --r: -8deg; }
.adesivo.is--2 { top: 12%; left: 31%; --r: 6deg; width: clamp(118px, 11vw, 170px); }
.adesivo.is--3 { top: 8%; right: 6%; --r: 5deg; }
.adesivo.is--4 { bottom: 9%; left: 20%; --r: -6deg; }
.adesivo.is--5 { bottom: 8%; right: 22%; --r: 10deg; }
.flash__destra { position: relative; height: 86vh; display: flex; flex-direction: column; }
.flash__slot { flex: 1; min-height: 0; }
.flash__scheda { position: relative; z-index: 4; border-top: 1px solid rgba(236,230,216,.16); padding-top: 14px; display: grid; gap: 4px; background: linear-gradient(to bottom, rgba(12,11,10,.6), transparent); }
.flash__n { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ambra-2); }
.flash__n b { font-weight: 500; }
.flash__nome { margin: 0; font-family: var(--serif); font-size: clamp(28px, 2.8vw, 42px); line-height: 1.05; color: var(--osso); text-shadow: var(--bagliore); }
.flash__misura { margin: 0; font-size: 13px; color: var(--osso-2); }
.flash__riga { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.flash__prezzo { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 52px); color: var(--rosso); text-shadow: 0 0 .4em rgba(255,77,61,.4); }
.flash__prezzo b { font-weight: 400; }
.flash__voglio { font-family: var(--serif); font-size: 26px; color: var(--ambra); text-decoration: none; text-shadow: 0 0 .5em rgba(255,181,71,.45); border-bottom: 1px solid currentColor; }
.flash__voglio:hover { color: var(--osso); }

/* ---------- 8 prenota ---------- */
.prenota { position: relative; padding: 14vh 6vw 18vh; }
.prenota__lato { display: flex; flex-direction: column; gap: 3vh; }
.prenota__slot { width: 100%; height: 58vh; }
.prenota__didascalia { margin: -1vh 0 0; text-align: center; font-family: var(--serif); font-weight: 700; letter-spacing: .1em; font-size: 12px; color: var(--ambra-2); text-shadow: 0 0 .5em rgba(255,210,138,.4); }
.prenota__griglia { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 330px); gap: clamp(28px, 5vw, 80px); align-items: start; }
.modulo { background: rgba(30, 28, 27, .78); border: 1px solid rgba(236,230,216,.06); padding: clamp(22px, 3vw, 34px); backdrop-filter: blur(2px); }
.modulo__intro { margin: 0 0 2em; color: var(--ambra-2); font-size: 15px; }
.campo { display: grid; gap: .45em; margin-bottom: 1.2em; font-size: 13.5px; color: var(--osso-2); }
.campo input, .campo textarea {
  font: inherit; font-size: 15px; color: var(--osso); background: rgba(236,230,216,.07); border: 1px solid transparent;
  padding: .55em .7em; border-radius: 0; resize: vertical; transition: border-color .25s, background .25s;
}
.campo input::placeholder, .campo textarea::placeholder { color: var(--fumo); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--ambra-2); background: rgba(236,230,216,.1); }
.campo [aria-invalid="true"] { border-color: var(--rosso); }
.spunta { display: flex; gap: .6em; align-items: center; font-size: 13.5px; color: var(--osso-2); margin-bottom: 1.6em; cursor: pointer; }
.spunta input { accent-color: var(--rosso); width: 16px; height: 16px; }
.modulo__fondo { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.invia { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ambra); background: none; border: 0; padding: 0; display: flex; align-items: center; gap: .5em; cursor: pointer; text-shadow: 0 0 .5em rgba(255,181,71,.45); }
.invia__ico { font-family: var(--mono); font-size: .9em; }
.invia:hover { color: var(--osso); }
.invia[disabled] { opacity: .5; cursor: progress; }
.invia__linea { flex: 1; max-width: 90px; height: 4px; background: var(--rosso); box-shadow: 0 0 10px rgba(255,77,61,.6); transform-origin: right; transition: transform .5s; }
.invia:hover + .invia__linea { transform: scaleX(1.6); }
.modulo__esito { min-height: 1.4em; margin: 1.2em 0 0; font-size: 13.5px; color: var(--ambra-2); }
.modulo__esito.is-errore { color: var(--rosso); }

/* Osmo · Opening Hours, vestito da Veleno */
.orari { background: rgba(30, 28, 27, .78); border: 1px solid rgba(236,230,216,.06); padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 14px; backdrop-filter: blur(2px); }
.orari__top { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; }
.orari__titolo { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--osso); text-shadow: var(--bagliore); }
.orari__stato { display: flex; align-items: center; gap: .45em; color: var(--rosso); font-size: 12px; padding: .4em .7em; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .08em; }
[data-opening-hours-store-status="open"] .orari__stato { color: var(--ambra); }
.orari__punto { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.orari__p.is--aperto { display: none; }
[data-opening-hours-store-status="open"] .orari__p.is--chiuso { display: none; }
[data-opening-hours-store-status="open"] .orari__p.is--aperto { display: inline; }
.orari__tab { display: flex; flex-direction: column; gap: 2px; }
.orari__riga { display: flex; justify-content: space-between; padding: .45em 8px; font-size: 13.5px; color: var(--osso-2); border: 1px solid transparent; }
.orari__riga[data-opening-hours-current-day] { color: var(--osso); border-color: rgba(255,210,138,.35); background: rgba(255,210,138,.06); }
.orari__nota { margin: 4px 8px 0; font-size: 12px; color: var(--fumo); }

/* ---------- piede ---------- */
.piede { padding: 10vh 6vw 5vh; border-top: 1px solid rgba(236,230,216,.08); background: linear-gradient(to bottom, transparent, rgba(0,0,0,.4)); }
.piede__nome { margin: 0; font-family: var(--serif); font-weight: 900; letter-spacing: .04em; font-size: clamp(70px, 17vw, 260px); line-height: .9; color: var(--osso); text-shadow: var(--bagliore); }
.piede__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2em; margin-top: 4vh; font-size: 13.5px; color: var(--osso-2); }
.piede__info p { margin: 0; }
.piede__info a { text-decoration: none; border-bottom: 1px solid rgba(236,230,216,.25); }
.piede__info a:hover { color: var(--rosso); border-color: var(--rosso); }
.piede__nota { margin: 5vh 0 0; font-size: 11px; color: var(--fumo); }

/* ---------- telefono e tablet stretto ---------- */
@media (max-width: 767px) {
  body { font-size: 14px; }
  .segna { display: none; }
  .hero__slot { top: 25%; height: 28%; left: 8%; right: 8%; }
  .hero__claim { top: 56%; }
  .hero__sub { top: calc(56% + 4.4em); letter-spacing: .18em; font-size: 10px; padding: 0 6vw; }
  .hero__meta { font-size: 9px; letter-spacing: .14em; }
  .chi { height: 180vh; }
  .intro { min-height: 120vh; padding: 8vh 6vw 12vh; }
  .intro__slot { width: 96vw; height: 66vh; margin-bottom: -8vh; }
  .intro__box { margin-left: 0; }
  .oriz { flex-flow: column; min-height: 0; padding: 4vh 6vw; gap: 28px; }
  .oriz__pad { display: none; }
  .stile { width: 100%; max-width: 420px; }
  .cilindro { height: 92vh; }
  .cilindro__scena { width: 52vw; }
  .cilindro .arco figcaption { font-size: 14px; }
  .stile__p { min-height: 0; }
  .flash { grid-template-columns: 1fr; padding-top: 10vh; gap: 4vh; }
  .flash__fogli { height: 62vw; min-height: 260px; }
  .adesivo { width: 24vw; }
  .adesivo.is--2 { width: 28vw; }
  .flash__destra { height: 76vh; }
  .prenota__slot, .prenota__didascalia { display: none; }
  .prenota__griglia { grid-template-columns: 1fr; }
  .piede__info { grid-template-columns: 1fr; }
  .loader__foot { font-size: 9px; gap: 1em; }
}

@media (prefers-reduced-motion: reduce) {
  [data-grain-animate="true"] :is(.grain__layer-dark, .grain__layer-light), .hero__giu { animation: none; }
  .arco__vetro img { transition: none; }
}

/* ---------- cruscotto ---------- */
.hud { position: fixed; inset: auto 0 0 0; z-index: 45; pointer-events: none; display: flex; justify-content: space-between; padding: 0 18px 14px; font-size: 10px; line-height: 1.8; letter-spacing: .16em; text-transform: uppercase; color: var(--osso-2); font-variant-numeric: tabular-nums; }
.hud > div { display: grid; }
.hud__dx { text-align: right; }
.hud b { font-weight: 500; color: var(--osso); }
.hud__dx span:first-child b:last-child { color: var(--rosso); }
.hud__barra { display: block; width: 150px; height: 2px; margin-top: 4px; background: rgba(236,230,216,.15); }
.hud__barra i { display: block; height: 100%; background: var(--rosso); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 8px rgba(255,77,61,.7); }

/* ---------- nastri del marchio ---------- */
.nastro { position: relative; z-index: 3; overflow: hidden; margin: 8vh -3vw; padding: .38em 0; font-family: var(--serif); font-weight: 700; letter-spacing: .04em; font-size: clamp(20px, 2.6vw, 38px); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.nastro__in { display: inline-block; will-change: transform; }
.nastro i { font-style: normal; margin: 0 .4em; }
.nastro--ambra { background: var(--ambra); color: var(--nero); transform: rotate(-2deg); box-shadow: 0 0 40px rgba(255,181,71,.35); }
.nastro--osso { background: var(--osso); color: var(--nero); transform: rotate(1.6deg); }
.nastro--osso i { color: var(--rosso); }

/* ---------- dati sopra i titoli ---------- */
.intro__dati { display: flex; justify-content: space-between; gap: 1em; margin: 0 0 12px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, var(--osso)); font-variant-numeric: tabular-nums; }
.intro__dati b { font-weight: 500; color: var(--osso); }

@media (max-width: 767px) {
  .hud { display: none; }
  .nastro { font-size: 22px; margin: 5vh -4vw; }
  .intro__dati span:nth-child(2) { display: none; }
}

/* ---------- la rocca di codice ---------- */
.rocca { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.no-rocca .hero { background: url("img/rocca-scena.webp") center bottom / cover no-repeat; }
.hero__nome { position: absolute; left: 50%; top: 42%; width: min(78vw, 1000px); transform: translateX(-50%); overflow: visible; z-index: 4; pointer-events: none; }
.hero__nome text { font-family: var(--serif); font-weight: 700; font-size: 200px; letter-spacing: 26px; fill: var(--ambra); filter: drop-shadow(0 0 6px rgba(255,181,71,.8)) drop-shadow(0 0 34px rgba(255,140,40,.45)); }
.hero__ui { z-index: 4; }
.hero__meta { z-index: 4; }

/* ---------- il test ---------- */
.test { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5vw; align-items: center; padding: 14vh 6vw; }
.test__kicker { margin: 0 0 1.2em; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ambra-2); }
.test__titolo { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 3.5vw, 52px); overflow-wrap: anywhere; line-height: 1; text-transform: uppercase; color: var(--osso); text-shadow: var(--bagliore); }
.test__titolo em { font-style: normal; color: var(--ambra); text-shadow: 0 0 .4em rgba(255,181,71,.45); }
.test__p { margin: 1.4em 0 0; max-width: 30em; color: var(--osso-2); }
.terminale { position: relative; z-index: 4; background: rgba(13,14,16,.92); border: 1px solid rgba(255,181,71,.3); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 60px rgba(255,181,71,.08), 0 40px 80px -40px #000; }
.terminale__barra { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid rgba(255,181,71,.18); font-size: 11.5px; color: var(--ambra); }
.terminale__barra i { width: 9px; height: 9px; border-radius: 50%; background: rgba(236,230,216,.18); }
.terminale__barra i:first-child { background: var(--rosso); }
.terminale__barra span { margin-left: 8px; }
.terminale__domande { list-style: none; margin: 0; padding: 8px 0; counter-reset: d; }
.terminale__domande li { counter-increment: d; display: grid; grid-template-columns: 2.4em 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; font-size: 13.5px; color: var(--osso); border-bottom: 1px dashed rgba(236,230,216,.07); }
.terminale__domande li::before { content: counter(d, decimal-leading-zero) ">"; color: var(--fumo); }
.si-no { display: flex; gap: 6px; }
.si-no button { font: inherit; font-size: 12px; min-width: 44px; padding: 6px 10px; color: var(--osso-2); background: rgba(236,230,216,.05); border: 1px solid rgba(236,230,216,.15); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.si-no button:hover { border-color: var(--ambra); color: var(--ambra); }
.si-no button[aria-pressed="true"][data-r="1"] { background: var(--ambra); border-color: var(--ambra); color: var(--nero); }
.si-no button[aria-pressed="true"][data-r="0"] { background: var(--rosso); border-color: var(--rosso); color: var(--nero); }
.terminale__esito { padding: 18px 16px 20px; display: grid; gap: 10px; }
.mura { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 34px; align-items: end; }
.mura i { display: block; height: 100%; background: rgba(236,230,216,.06); border: 1px solid rgba(236,230,216,.1); transform-origin: bottom; transition: background .4s, transform .5s cubic-bezier(.2,.9,.2,1.3); transform: scaleY(.25); }
.mura i.is-su { background: var(--ambra); border-color: var(--ambra); transform: scaleY(1); box-shadow: 0 0 12px rgba(255,181,71,.45); }
.mura i:nth-child(odd).is-su { transform: scaleY(.82); }
.terminale__punti { margin: 0; font-size: 13px; color: var(--osso-2); font-variant-numeric: tabular-nums; }
.terminale__punti b { font-family: var(--serif); font-size: 34px; font-weight: 900; color: var(--ambra); margin-right: .1em; }
.terminale__punti span { margin-left: 1em; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--ambra-2); }
.terminale__consiglio { margin: 0; min-height: 3em; font-size: 13px; color: var(--osso); }

/* ---------- piede ---------- */
.piede { position: relative; }
.piede__slot { height: 70vh; margin-bottom: -8vh; }

@media (max-width: 767px) {
  .hero__nome { top: 44%; width: 96vw; }
  .hero__meta span:not(:first-child) { display: none; }
  .hero__claim { top: 68%; }
  .test { grid-template-columns: 1fr; }
  .terminale__domande li { grid-template-columns: 2em 1fr; }
  .si-no { grid-column: 2; }
  .piede__slot { height: 50vh; }
}

/* ---------- numeri di riga ---------- */
.riga { position: fixed; left: 0; top: 0; bottom: 0; width: 46px; z-index: 44; pointer-events: none; overflow: hidden; border-right: 1px solid rgba(255,181,71,.08); background: linear-gradient(to right, rgba(11,12,13,.7), rgba(11,12,13,0)); -webkit-mask: linear-gradient(to bottom, transparent 70px, #000 140px, #000 calc(100% - 120px), transparent calc(100% - 70px)); mask: linear-gradient(to bottom, transparent 70px, #000 140px, #000 calc(100% - 120px), transparent calc(100% - 70px)); }
.riga__in { will-change: transform; }
.riga__in span { display: block; height: 24px; line-height: 24px; padding-right: 9px; text-align: right; font-size: 10px; color: rgba(236,230,216,.22); font-variant-numeric: tabular-nums; }
.riga__in span.is-qui { color: var(--ambra); text-shadow: 0 0 8px rgba(255,181,71,.6); }
.riga__in span.is-qui::before { content: "▸ "; }

/* ---------- comandi digitati ---------- */
.prompt { margin: 0 0 14px; font-size: 12.5px; color: var(--osso-2); white-space: nowrap; }
.prompt__u { color: var(--ambra); }
.prompt__d { color: #7fb4d8; }
.prompt__c { color: var(--osso); }
.prompt__cur { display: inline-block; width: .6em; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--ambra); animation: cursore 1s steps(1) infinite; }
@keyframes cursore { 50% { opacity: 0; } }
.chi .prompt { margin-bottom: 22px; }
.chi__pin { flex-direction: column; display: flex; align-items: center; justify-content: center; }
.chi__pin > .chi__testo { position: relative; z-index: 2; background: radial-gradient(closest-side, rgba(11,12,13,.85), rgba(11,12,13,.55) 70%, transparent); padding: 2em 3em; }

/* ---------- registro delle sentinelle ---------- */
.registro { position: absolute; top: 9vh; bottom: 9vh; width: min(30vw, 440px); margin: 0; overflow: hidden; font-family: var(--mono); font-size: 10.5px; line-height: 1.75; color: rgba(236,230,216,.4); white-space: pre; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask: linear-gradient(to bottom, transparent, #000 35%); mask: linear-gradient(to bottom, transparent, #000 35%); }
.registro--sx { left: 5vw; }
.registro--dx { right: 4vw; text-align: left; }
.registro span:last-child { animation: nuova .5s ease-out; }
@keyframes nuova { from { background: rgba(255,181,71,.25); } }
.registro .r-no b { color: var(--rosso); font-weight: 600; }
.registro .r-no { color: rgba(255,150,130,.55); }
.registro .r-ok b { color: var(--ambra); font-weight: 600; }
.registro__nota { position: absolute; bottom: 5vh; left: 0; right: 0; margin: 0; text-align: center; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fumo); }

/* ---------- manifesto ---------- */
.manifesto { position: relative; height: 330vh; }
.manifesto__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.manifesto__tela { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; filter: drop-shadow(0 0 8px rgba(255,181,71,.35)); }
.manifesto__note { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.manifesto__note li { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--osso-2); opacity: 0; }
.manifesto__note b { color: var(--ambra); font-weight: 600; margin-right: 1em; }

@media (max-width: 767px) {
  .riga { display: none; }
  .registro { width: 44vw; font-size: 8px; opacity: .6; }
  .registro--sx { left: 2vw; } .registro--dx { right: 2vw; }
  .chi__pin > .chi__testo { padding: 1.5em 1em; }
  .manifesto { height: 260vh; }
  .manifesto__note li { font-size: 9.5px; letter-spacing: .06em; padding: 0 4vw; }
  .prompt { font-size: 11px; }
}
