/* Sito Dojo Media — prototipo a scorrimento "cinematografico".
   Colori e misure principali qui sotto: cambiare questi per ritoccare tutto. */

/* caratteri ospitati nel sito (licenza SIL Open Font License), latino + latino esteso */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(font/inter-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: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(font/inter-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: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(font/jetbrains-mono-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: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(font/jetbrains-mono-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; }

:root {
  --nero: #000;
  --fondo-2: #090909;
  --rosso: #ed1c24;
  --rosso-chiaro: #ff4d54;
  --bianco: #ffffff;
  --testo: #f5f7fa;
  --grigio: #8f8f8f;
  --linea: rgba(255, 77, 84, .2);
  --vetro: rgba(10, 10, 10, .62);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --larghezza: min(1180px, calc(100vw - 48px));
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--nero);
  color: var(--testo);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- elementi comuni ---------- */
.titolo-grande {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.sfumato {
  background: linear-gradient(100deg, var(--bianco) 0%, var(--rosso-chiaro) 40%, var(--rosso) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.capitolo {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rosso-chiaro);
  margin-bottom: 18px;
}
.capitolo span {
  display: inline-block;
  margin-right: 12px;
  padding: 2px 7px;
  border: 1px solid var(--linea);
  border-radius: 4px;
  color: var(--grigio);
}
.sopratitolo { font-family: var(--mono); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--rosso-chiaro); }

/* le icone della brochure, usate come maschere e colorate di bianco e rosso */
.icona, .logo-maschera {
  display: inline-block;
  flex: none;
  -webkit-mask: var(--img) center / contain no-repeat;
  mask: var(--img) center / contain no-repeat;
  background: linear-gradient(160deg, var(--bianco), var(--rosso));
}
.icona { width: 56px; height: 56px; filter: drop-shadow(0 0 10px rgba(237,28,36,.55)); }
.icona.piccola { width: 34px; height: 34px; }
.logo-maschera { width: 26px; height: 22px; background: #fff; }
.logo-maschera.grande { width: 92px; height: 80px; filter: drop-shadow(0 0 24px rgba(237,28,36,.6)); }

/* la scritta DOJO MEDIA vera (bianca, pallino della "j" rosso) */
.scritta { display: block; height: 30px; width: auto; }

.bottone {
  display: inline-flex; align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--rosso);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  transition: background .2s, transform .2s;
}
.bottone:hover { background: #ff3b42; transform: translateY(-1px); }
.bottone.secondario { background: transparent; color: var(--rosso-chiaro); box-shadow: inset 0 0 0 1px var(--linea); }
.bottone.piccolo { padding: 6px 14px; font-size: 13px; }

/* ---------- barra in alto ---------- */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 52px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: var(--vetro);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.barra-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; }
.barra-menu { display: flex; gap: 24px; margin-left: auto; color: #cccccc; }
.barra-menu a:hover, .barra-menu a.attivo { color: #fff; }
/* scelta della lingua: IT · EN · ES */
.lingue { display: flex; gap: 2px; font: 600 11px var(--mono); letter-spacing: .08em; }
.lingue a { padding: 4px 6px; border-radius: 6px; color: var(--grigio); }
.lingue a:hover { color: #fff; }
.lingue a[aria-current="page"] { color: #fff; box-shadow: inset 0 0 0 1px var(--linea); }

/* icona WhatsApp dentro i pulsanti */
.icona-wa { width: 1.15em; height: 1.15em; margin-right: 9px; fill: currentColor; flex: none; }
.barra-avanzamento {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--rosso), var(--rosso-chiaro));
  transform-origin: left; transform: scaleX(var(--avanzamento, 0));
  box-shadow: 0 0 8px var(--rosso);
}

/* ---------- motore delle scene ---------- */
.scena { position: relative; height: calc(var(--altezza) * 1vh); }
.palco {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.palco.centro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intestazione {
  position: absolute; left: 0; right: 0; top: 13vh;
  text-align: center; padding: 0 24px;
  will-change: transform, opacity;
}
.intestazione.sinistra { text-align: left; left: max(24px, calc((100vw - 1180px) / 2)); right: auto; padding: 0; }

/* ---------- 0. intro ---------- */
#intro .palco { background: radial-gradient(ellipse at 50% 45%, #160506 0%, #000 65%); }
.intro-testi {
  position: absolute; left: 0; right: 0; bottom: 9vh;
  text-align: center; pointer-events: none;
}
.intro-titolo { margin: 0 0 18px; line-height: 0; font-weight: inherit; }
.intro-titolo .sopratitolo { display: block; line-height: 1.4; margin-bottom: 12px; }
.intro-titolo img {
  height: clamp(76px, 9vw, 128px); width: auto;
  filter: drop-shadow(0 0 28px rgba(237,28,36,.35));
}
/* il claim: "Reinventing" sottile, "CUTS" pieno e rosso, come un taglio netto */
.claim {
  display: block; margin-top: 16px;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1;
  font-weight: 300; letter-spacing: .01em; color: var(--bianco);
}
.claim b {
  font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(100deg, var(--rosso-chiaro), var(--rosso));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-sotto { font-size: clamp(17px, 1.8vw, 22px); color: #bdbdbd; line-height: 1.4; }
/* pulsanti "chiedi disponibilità": l'unica parte cliccabile dei testi d'apertura */
.intro-azioni {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 22px; pointer-events: auto;
}
.intro-azioni .bottone { padding: 11px 20px; font-size: 15px; }
/* schermi bassi: via la frase secondaria, così la testa ninja non tocca i testi */
@media (max-height: 880px) {
  .intro-sotto { display: none; }
  .intro-testi { bottom: 7vh; }
}
.intro-frase {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 24px; opacity: 0; pointer-events: none;
}
.scorri {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--grigio);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scorri span { width: 1px; height: 34px; background: linear-gradient(var(--rosso-chiaro), transparent); animation: goccia 1.8s ease-in-out infinite; }
@keyframes goccia { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 1. manifesto (si apre con due pannelli shoji) ---------- */
.manifesto-testo {
  max-width: 980px;
  font-size: clamp(30px, 4.6vw, 62px);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.12;
}
[data-parole] .parola { opacity: var(--luce, .14); transition: opacity .15s linear; }
.manifesto-testo .parola.accento { color: var(--rosso-chiaro); }
.shoji { --legno: #2b1f15; position: absolute; inset: 0; z-index: 3; display: flex; pointer-events: none; }
.anta {
  flex: 1; height: 100%;
  background:
    repeating-linear-gradient(90deg, var(--legno) 0 5px, transparent 5px 25%),
    repeating-linear-gradient(0deg, var(--legno) 0 5px, transparent 5px 16.66%),
    radial-gradient(ellipse at 50% 45%, #f6ecd6 0%, #e2d2ae 70%, #c9b58c 100%);
  box-shadow: inset 0 0 0 16px var(--legno), inset 0 0 60px rgba(90,60,20,.35);
  will-change: transform;
}
.anta.destra { box-shadow: inset 0 0 0 16px var(--legno), inset 0 0 60px rgba(90,60,20,.35), -18px 0 40px rgba(0,0,0,.35); }

/* ---------- 2. sale montaggio ---------- */
.timeline {
  position: absolute; left: 50%; top: 52%;
  width: min(1080px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  padding: 34px 0 18px 64px;
  border-radius: 18px;
  background: linear-gradient(180deg, #111111, #080808);
  box-shadow: 0 0 0 1px var(--linea), 0 40px 120px rgba(237,28,36,.18);
  will-change: transform, opacity;
}
.timeline-righello {
  position: absolute; left: 64px; right: 0; top: 0; height: 26px;
  border-bottom: 1px solid var(--linea);
  background: repeating-linear-gradient(90deg, rgba(255,77,84,.35) 0 1px, transparent 1px 40px) bottom / 100% 8px no-repeat;
}
.timeline-tracce { position: relative; display: flex; flex-direction: column; gap: 8px; }
.traccia { position: relative; height: 44px; }
.traccia::before {
  content: attr(data-nome);
  position: absolute; left: -52px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 11px; color: var(--grigio);
}
.traccia.audio { height: 32px; }
.clip {
  position: absolute; top: 0; bottom: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(237,28,36,.75), rgba(237,28,36,.35));
  box-shadow: inset 0 0 0 1px rgba(255,77,84,.45);
  font-family: var(--mono); font-size: 10px; color: #ffffff;
  padding: 5px 7px; overflow: hidden; white-space: nowrap;
  will-change: transform, opacity;
}
.clip.alt { background: linear-gradient(180deg, rgba(255,77,84,.55), rgba(180,20,28,.3)); }
.clip.audio {
  background: rgba(160,20,26,.35);
  -webkit-mask: linear-gradient(#000, #000);
}
.clip.audio::after {
  content: ""; position: absolute; inset: 4px 6px;
  background: repeating-linear-gradient(90deg, rgba(255,77,84,.8) 0 2px, transparent 2px 4px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .7;
}
.timeline-testina {
  position: absolute; top: 0; bottom: 0; left: 64px; width: 2px;
  background: var(--rosso-chiaro); box-shadow: 0 0 12px var(--rosso);
  will-change: transform;
}
.timeline-testina span {
  position: absolute; top: 2px; left: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--rosso-chiaro);
  background: #080808; padding: 1px 4px; border-radius: 3px;
}
.specifiche {
  position: absolute; left: 50%; top: 50%;
  width: var(--larghezza);
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center; opacity: 0; pointer-events: none;
}
.spec b {
  display: block;
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 800; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, #fff, var(--rosso-chiaro) 70%, var(--rosso));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.spec span { display: block; margin-top: 10px; color: var(--grigio); font-size: 17px; }
.spec-nota { grid-column: 1 / -1; margin-top: 30px; font-size: clamp(18px, 2vw, 24px); color: #cccccc; }
.confronto {
  position: absolute; left: 50%; top: 50%;
  width: var(--larghezza);
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  opacity: 0; pointer-events: none;
}
.scheda {
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(28,28,28,.75), rgba(10,10,10,.9));
  box-shadow: inset 0 0 0 1px var(--linea);
  will-change: transform, opacity;
}
.scheda h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; margin: 22px 0 8px; }
.scheda-sotto { color: var(--grigio); font-size: 17px; line-height: 1.45; margin-bottom: 22px; }
.scheda li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 16px; color: #e2e2e2; }

/* ---------- 3. storage ---------- */
#storage .palco { background: radial-gradient(ellipse at 35% 60%, #150607 0%, #000 60%); }
.pila-scena {
  position: absolute; left: 31%; top: 66%;
  width: 0; height: 0;
  perspective: 1600px;
}
.pila {
  position: absolute; left: 0; top: 0;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-36deg);
}
.lama-server {
  position: absolute;
  width: 360px; height: 230px; left: -180px; top: -115px;
  transform-style: preserve-3d;
  will-change: transform;
}
.lama-server .sopra {
  position: absolute; inset: 0;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255,77,84,.10) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #1a1a1a, #0a0a0a);
  box-shadow: inset 0 0 0 1px rgba(255,77,84,.35);
}
.lama-server .fronte {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  transform-origin: bottom; transform: rotateX(-90deg);
  background: linear-gradient(180deg, #1c1c1c, #101010);
  box-shadow: inset 0 0 0 1px rgba(255,77,84,.4);
  display: flex; align-items: center; gap: 7px; padding: 0 12px;
}
.lama-server .lato {
  position: absolute; top: 0; bottom: 0; right: 0; width: 26px;
  transform-origin: right; transform: rotateY(90deg);
  background: #0c0c0c;
  box-shadow: inset 0 0 0 1px rgba(255,77,84,.25);
}
.led { width: 6px; height: 6px; border-radius: 50%; background: var(--rosso-chiaro); box-shadow: 0 0 8px var(--rosso-chiaro); animation: led 1.4s infinite steps(2); }
.led.lento { animation-duration: 2.3s; }
.led.spento { background: #3a3a3a; box-shadow: none; animation: none; }
.fronte .nome { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--rosso-chiaro); letter-spacing: .1em; }
@keyframes led { 50% { opacity: .25; } }
.pila-etichette {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  top: 50%; transform: translateY(-40%);
  width: min(420px, 42vw);
  display: flex; flex-direction: column; gap: 22px;
}
.pila-etichette li { opacity: 0; will-change: transform, opacity; padding-left: 18px; border-left: 2px solid var(--rosso); }
.pila-etichette b { display: block; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.01em; margin-bottom: 4px; }
.pila-etichette span { color: var(--grigio); font-size: 15px; line-height: 1.45; }

/* ---------- 4. color correction ---------- */
.monitor {
  position: absolute; left: 50%; top: 56%;
  width: min(1100px, calc(100vw - 32px), calc((100svh - 260px) * 16 / 9));
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  padding: 10px;
  background: #0e0e0e;
  box-shadow: 0 0 0 1px #222222, 0 50px 140px rgba(0,0,0,.8), 0 0 120px rgba(237,28,36,.12);
  will-change: transform;
}
.monitor .tela { position: relative; border-radius: 6px; }
.monitor figcaption {
  position: absolute; left: 0; right: 0; bottom: -30px; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--grigio);
}
.etichetta-log, .etichetta-grade {
  position: absolute; top: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  padding: 4px 9px; border-radius: 4px;
  background: rgba(0,0,0,.55); color: #fff;
}
.etichetta-log { right: 24px; }
.etichetta-grade { left: 24px; color: var(--rosso-chiaro); }
.colore-spec {
  position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%);
  width: var(--larghezza);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  opacity: 0;
}
.colore-spec > div, .ia-punti > div, .remoto-punti > div {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: start;
  padding: 22px; border-radius: 20px;
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.colore-spec .icona, .ia-punti .icona, .remoto-punti .icona { grid-row: span 2; }
.colore-spec b, .ia-punti b, .remoto-punti b { font-size: 17px; }
.colore-spec span:not(.icona), .ia-punti span:not(.icona), .remoto-punti span:not(.icona) { color: var(--grigio); font-size: 15px; line-height: 1.45; }
.remoto-punti strong { color: var(--bianco); font-weight: 600; }

/* ---------- 5. intelligenza artificiale ---------- */
.ia-griglia {
  position: absolute; left: 50%; top: 52%;
  width: var(--larghezza);
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px;
  opacity: 0;
}
.ia-quadro {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 120%, #2a0c0e, #050505 70%);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.ia-rec { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 11px; color: #cccccc; display: flex; align-items: center; gap: 8px; z-index: 2; }
.ia-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rosso-chiaro); box-shadow: 0 0 8px var(--rosso-chiaro); animation: led 1.2s infinite steps(2); }
.ia-quadro { container-type: inline-size; }
.persona {
  position: absolute; bottom: 0; left: var(--x);
  width: calc(23cqw * var(--s)); height: calc(32cqw * var(--s));
  transform: translateX(-50%);
}
.persona::before, .persona::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,77,84,.55) 1.2px, transparent 1.6px) 0 0 / 6px 6px;
}
.persona::before { top: 0; width: 46%; aspect-ratio: 1 / 1.2; border-radius: 50%; }
.persona::after { bottom: 0; width: 100%; height: 48%; border-radius: 48% 48% 0 0; }
.riquadro {
  position: absolute; left: var(--x); bottom: calc(18cqw * var(--s));
  width: calc(13.5cqw * var(--s)); height: calc(15.4cqw * var(--s));
  transform: translateX(-50%) scale(var(--zoom, 1.3));
  opacity: var(--op, 0);
  background:
    linear-gradient(var(--rosso-chiaro), var(--rosso-chiaro)) top left / 14px 2px no-repeat,
    linear-gradient(var(--rosso-chiaro), var(--rosso-chiaro)) top left / 2px 14px no-repeat,
    linear-gradient(var(--rosso-chiaro), var(--rosso-chiaro)) top right / 14px 2px no-repeat,
    linear-gradient(var(--rosso-chiaro), var(--rosso-chiaro)) top right / 2px 14px no-repeat,
    linear-gradient(var(--rosso-chiaro), var(--rosso-chiaro)) bottom left / 14px 2px no-repeat,
    linear-gradient(var(--rosso-chiaro), var(--rosso-chiaro)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--rosso-chiaro), var(--rosso-chiaro)) bottom right / 14px 2px no-repeat,
    linear-gradient(var(--rosso-chiaro), var(--rosso-chiaro)) bottom right / 2px 14px no-repeat;
  filter: drop-shadow(0 0 6px var(--rosso));
}
.riquadro span {
  position: absolute; left: 50%; top: -24px; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--mono); font-size: 10px;
  padding: 2px 6px; border-radius: 3px; background: var(--rosso); color: #fff;
}
.scansione {
  position: absolute; left: 0; right: 0; height: 2px; top: var(--y, -10%);
  background: linear-gradient(90deg, transparent, var(--rosso-chiaro), transparent);
  box-shadow: 0 0 18px var(--rosso);
}
.ia-trascrizione {
  border-radius: 18px; padding: 24px;
  background: rgba(10,10,10,.85);
  box-shadow: inset 0 0 0 1px var(--linea);
  display: flex; flex-direction: column;
}
.ia-titoletto { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rosso-chiaro); margin-bottom: 14px; }
.ia-righe { font-family: var(--mono); font-size: clamp(13px, 1.25vw, 16px); line-height: 1.65; color: #ebebeb; }
.ia-righe .parola.codice { color: var(--rosso-chiaro); }
.ia-tag { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.ia-tag span {
  font-family: var(--mono); font-size: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(237,28,36,.15); color: var(--bianco);
  box-shadow: inset 0 0 0 1px rgba(255,77,84,.3);
  opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .4s cubic-bezier(.3,1.6,.5,1);
}
.ia-tag span.visibile { opacity: 1; transform: none; }
.ia-punti {
  position: absolute; left: 50%; top: 50%;
  width: var(--larghezza);
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  opacity: 0; pointer-events: none;
}

/* ---------- 6. automazioni ---------- */
.auto-griglia {
  position: absolute; left: 50%; top: 50%;
  width: var(--larghezza);
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center;
}
.auto-numero { display: flex; align-items: center; gap: 18px; margin: 4px 0 20px; }
.auto-numero b {
  font-size: clamp(110px, 16vw, 220px); font-weight: 800; letter-spacing: -.06em; line-height: .9;
  background: linear-gradient(180deg, #fff, var(--rosso-chiaro) 60%, var(--rosso));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.auto-numero span { font-size: clamp(22px, 2.4vw, 32px); font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
.auto-descr { color: #bdbdbd; font-size: 18px; line-height: 1.5; max-width: 440px; }
.auto-icone { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.auto-icone li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e2e2e2; }
.lavori {
  display: flex; flex-direction: column; gap: 9px;
  padding: 22px; border-radius: 20px;
  background: rgba(10,10,10,.85);
  box-shadow: inset 0 0 0 1px var(--linea), 0 40px 120px rgba(237,28,36,.12);
}
.lavoro { display: grid; grid-template-columns: 150px 1fr 70px; gap: 14px; align-items: center; font-family: var(--mono); font-size: 12px; }
.lavoro .nome { color: #e2e2e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lavoro .barra-job { height: 6px; border-radius: 3px; background: rgba(255,77,84,.1); overflow: hidden; }
.lavoro .barra-job i {
  display: block; height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(var(--fatto, 0));
  background: linear-gradient(90deg, var(--rosso), var(--rosso-chiaro));
  box-shadow: 0 0 10px var(--rosso);
}
.lavoro .stato { text-align: right; color: var(--grigio); }
.lavoro.finito .stato { color: var(--rosso-chiaro); }

/* ---------- 7. remoto ---------- */
#remoto .palco { background: radial-gradient(ellipse at 62% 55%, #140507 0%, #000 60%); }
.remoto-punti {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%; transform: translateY(-50%);
  width: min(440px, calc(100vw - 48px));
  display: flex; flex-direction: column; gap: 14px;
}
.remoto-punti > div { opacity: 0; will-change: transform, opacity; }

/* ---------- 8. speak ---------- */
.speak-numero {
  font-size: clamp(110px, 22vw, 300px); font-weight: 800; letter-spacing: -.06em; line-height: 1;
  padding: .08em .06em 0;
  background: linear-gradient(180deg, #fff, var(--rosso-chiaro) 65%, var(--rosso));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.speak-testo { margin-top: 18px; font-size: clamp(20px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.onda-audio { display: flex; align-items: center; gap: 4px; height: 90px; margin-top: 46px; }
.onda-audio i { width: 4px; border-radius: 2px; background: linear-gradient(var(--rosso-chiaro), var(--rosso)); height: 4px; box-shadow: 0 0 6px rgba(237,28,36,.6); }

/* ---------- 9. gli spazi ---------- */
/* foto grande: posizione e misure le decide motore.js a ogni fotogramma */
.spazi-grande {
  position: absolute; overflow: hidden;
  background: var(--fondo-2);
  will-change: left, top, width, height;
}
.spazi-grande .segnaposto { width: 100%; height: 100%; transform-origin: 50% 60%; }
.spazi-grande img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 60%; }
.spazi-grande::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85) 100%);
  opacity: var(--velo, 0);
}
.spazi-didascalia {
  position: absolute; z-index: 1;
  left: max(24px, calc((100vw - 1180px) / 2)); bottom: 8vh;
  width: min(560px, calc(100vw - 48px));
  opacity: 0;
}
.spazi-didascalia h3 { font-size: clamp(40px, 6vw, 80px); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin-bottom: 14px; }
.spazi-didascalia p:last-child { font-size: clamp(16px, 1.6vw, 21px); color: #d6d6d6; line-height: 1.45; }

.spazi-testa {
  position: absolute; top: 12vh;
  left: max(24px, calc((100vw - 1180px) / 2)); right: max(24px, calc((100vw - 1180px) / 2));
  display: flex; justify-content: space-between; align-items: baseline;
  opacity: 0;
}
.spazi-contatore { font-family: var(--mono); font-size: 13px; color: var(--grigio); letter-spacing: .1em; }
.spazi-contatore b { color: var(--rosso-chiaro); font-weight: 600; }

.spazi-nastro {
  position: absolute; top: 50%; left: 0;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  display: flex; gap: 22px;
  opacity: 0;
  will-change: transform;
}
.locale { flex: none; width: min(620px, 44vw, 72vh); }
.locale-foto {
  aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  background: var(--fondo-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.locale-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.locale figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px 0; font-size: 15px; }
.locale figcaption b { font-weight: 600; }
.locale figcaption span { color: var(--grigio); text-align: right; }

/* segnaposto per le foto che mancano: testa ninja in filigrana e il suggerimento per lo scatto */
.segnaposto {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 14px, transparent 14px 28px),
    radial-gradient(ellipse at 50% 40%, #1a0608 0%, #070707 70%);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.segnaposto::before {
  content: ""; width: 74px; height: 64px;
  -webkit-mask: url(img/ninja-maschera.png) center / contain no-repeat;
  mask: url(img/ninja-maschera.png) center / contain no-repeat;
  background: linear-gradient(160deg, rgba(255,255,255,.3), rgba(237,28,36,.45));
}
html[lang="en"] .segnaposto::after { content: "Photo coming soon\A" attr(data-scatto); }
html[lang="es"] .segnaposto::after { content: "Foto próximamente\A" attr(data-scatto); }
.segnaposto::after {
  content: "Foto in arrivo\A" attr(data-scatto);
  white-space: pre-line;
  font: 12px/1.6 var(--mono); color: var(--grigio); letter-spacing: .04em;
  max-width: 34ch;
}

/* ---------- contatti ---------- */
.contatti {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 48px;
  background: radial-gradient(ellipse at 50% 30%, #1a0608 0%, #000 60%);
}
/* marchio completo: testa ninja + scritta, come nel logo ufficiale */
.contatti-marchio { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; }
.contatti-marchio .scritta { height: 80px; filter: drop-shadow(0 0 20px rgba(237,28,36,.3)); }
.contatti-sotto { margin: 18px 0 34px; font-size: 21px; color: #bdbdbd; }
.contatti-bottoni { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.contatti-indirizzi {
  display: grid; grid-template-columns: repeat(3, auto); gap: 56px;
  margin-top: 90px; text-align: left; color: var(--grigio); font-size: 14px; line-height: 1.6;
}
.contatti-indirizzi b { display: block; color: var(--testo); font-weight: 600; margin-bottom: 4px; }
.piccolissimo { margin-top: 70px; font-size: 12px; color: #555555; }

/* ---------- schermi piccoli ---------- */
@media (max-width: 900px) {
  .barra-menu { display: none; }
  .barra { gap: 14px; }
  .lingue { margin-left: auto; }
  .intro-sotto { display: none; }
  .intro-azioni { margin-top: 18px; }
  .specifiche { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .confronto, .colore-spec, .ia-punti { grid-template-columns: 1fr; gap: 12px; }
  .scheda { padding: 22px; }
  .scheda h3 { margin-top: 10px; }
  .scheda .icona { width: 36px; height: 36px; }
  .scheda li { padding: 8px 0; font-size: 14px; }
  .scheda-sotto { margin-bottom: 10px; font-size: 15px; }
  .timeline { padding-left: 44px; }
  .timeline-righello, .timeline-testina { left: 44px; }
  .traccia::before { left: -36px; }
  .pila-scena { left: 50%; top: 40%; transform: scale(.62); }
  .pila-etichette { left: 24px; right: 24px; top: auto; bottom: 5vh; width: auto; transform: none; gap: 12px; }
  .pila-etichette span { display: none; }
  .ia-griglia { grid-template-columns: 1fr; gap: 14px; top: 58%; }
  .ia-trascrizione { padding: 16px; }
  .ia-righe { font-size: 12px; }
  .auto-griglia { grid-template-columns: 1fr; gap: 20px; }
  .auto-numero { margin: 0; }
  .auto-numero b { font-size: 96px; }
  .auto-descr, .auto-icone { display: none; }
  .lavoro { grid-template-columns: 110px 1fr 54px; font-size: 11px; }
  .colore-spec > div, .ia-punti > div, .remoto-punti > div { padding: 14px; }
  .remoto-punti { top: auto; bottom: 5vh; transform: none; }
  .anta { box-shadow: inset 0 0 0 10px var(--legno), inset 0 0 40px rgba(90,60,20,.35); }
  .contatti-marchio { gap: 14px; }
  .contatti-marchio .logo-maschera.grande { width: 62px; height: 54px; }
  .contatti-marchio .scritta { height: 54px; }
  .contatti-indirizzi { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .locale { width: 78vw; }
  .locale figcaption { flex-direction: column; gap: 2px; }
  .locale figcaption span { text-align: left; }
  .segnaposto::before { width: 52px; height: 46px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .intestazione { top: 9vh; }
  .titolo-grande { font-size: clamp(36px, 5.6vw, 72px); }
}

/* ---------- scheda tecnica da scaricare (PDF) ---------- */
.scarica-scheda {
  display: inline-flex; align-items: center; gap: 12px; margin: 30px 0 34px;
  padding: 12px 22px; border-radius: 14px;
  font: 14px var(--mono); color: var(--testo);
  box-shadow: inset 0 0 0 1px var(--linea); transition: box-shadow .2s, background .2s;
}
.scarica-scheda span { color: var(--rosso-chiaro); font-size: 18px; }
.scarica-scheda small { color: var(--grigio); font-size: 12px; }
.scarica-scheda:hover { background: rgba(237, 28, 36, .08); box-shadow: inset 0 0 0 1px var(--rosso); }
.scarica-scheda + .gioco-invito { margin-top: 0; }

/* ---------- collegamento al gioco 3D (esplora.html) ---------- */
.barra-menu .voce-gioco { color: var(--rosso-chiaro); }
.gioco-invito {
  display: inline-flex; align-items: center; gap: 12px; margin: 24px 0 56px;
  padding: 12px 20px; border-radius: 14px;
  font: 14px var(--mono); color: var(--testo);
  background: rgba(237, 28, 36, .08); box-shadow: inset 0 0 0 1px var(--linea);
  transition: background .2s, box-shadow .2s;
}
.gioco-invito:hover { background: rgba(237, 28, 36, .16); box-shadow: inset 0 0 0 1px var(--rosso), 0 0 30px rgba(237, 28, 36, .25); }
.gioco-invito .logo-maschera { flex: none; }
