/* NOME_ · sito di presentazione. Un film che si scorre: scene ferme a tutto schermo che si fondono. */
:root {
  --bg: #EEF2EC;
  --bg-deep: #E2E9DF;
  --ink: #0B110E;
  --muted: #4E5A53;
  --line: rgba(11, 17, 14, .14);
  --green: #12B76A;
  --green-ink: #0A7A47;
  --night: #06100B;
  --bar-h: 64px;
  --pad: clamp(16px, 2.4vw, 32px);
  --display: "Martian Mono", ui-monospace, Menlo, monospace;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--green); color: var(--night); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
a { color: inherit; }
img, video, canvas { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: var(--pad); top: -60px; padding: 10px 14px; background: var(--ink); color: var(--bg); text-decoration: none; font: 400 12px/1 var(--display); text-transform: uppercase; }
.skip:focus { top: 10px; }

/* ---------- barra in alto ---------- */
.bar {
  position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--pad); background: var(--bg); border-bottom: 1px solid var(--line);
  font: 400 12px/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; justify-self: start; }
.brand__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18, 183, 106, .18); }
.bar__nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.bar__nav a, .foot a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .35s var(--ease); }
.bar__nav a:hover, .bar__nav a:focus-visible { background-size: 100% 1px; }
.bar__cta {
  justify-self: end; display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 10px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: background-color .25s, color .25s, transform .15s;
}
.bar__cta:hover { background: transparent; color: var(--ink); }
.bar__cta:active { transform: translateY(1px); }
.ring { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 50%; }

/* linee sottili della griglia, come un foglio tecnico */
.grid-lines { position: fixed; z-index: 40; inset: var(--bar-h) var(--pad) 0; pointer-events: none; display: flex; justify-content: space-between; }
.grid-lines i { width: 1px; background: rgba(255, 255, 255, .22); mix-blend-mode: difference; }
.grid-lines i:first-child, .grid-lines i:last-child { opacity: 0; }

/* ---------- scene ---------- */
.scene { position: relative; }
.scene__layer {
  position: relative; min-height: 100svh; padding-top: var(--bar-h);
  display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  background: var(--bg); overflow: hidden;
}
.scene__media { grid-area: 1 / 1; position: relative; overflow: hidden; background: var(--bg-deep); min-height: 52svh; }
.scene__media > img, .scene__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene__media > video { opacity: 0; transition: opacity .6s; }
.scene__media > video.is-playing { opacity: 1; }
.scene__media::after { /* velo leggero per leggere la scritta bianca */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 50%, rgba(6, 16, 11, .30), rgba(6, 16, 11, .06) 70%);
}
.scene__media--pale { background: var(--bg); }
.scene__media--pale::after, .scene--open .scene__media::after { opacity: var(--clear, 1); }

/* la nebbia chiara con i puntini verdi */
.fog { position: absolute; inset: 0; z-index: 2; background: radial-gradient(90% 80% at 50% 42%, #FBFCFA 0%, var(--bg) 55%, var(--bg-deep) 100%); }
.fog .dots { position: absolute; inset: 0; width: 100%; height: 100%; }

/* la parola gigante */
.word {
  grid-area: 1 / 1; z-index: 3; align-self: center; justify-self: center; margin: 0; width: calc(100% - 2 * var(--pad));
  font: 200 var(--word-size, 12vw) / .9 var(--display); font-stretch: 112.5%; text-transform: uppercase;
  letter-spacing: -.02em; text-align: center; white-space: nowrap; color: #fff; pointer-events: none;
}
.word--ink { color: var(--ink); }
.word .ch { display: inline-block; white-space: pre; will-change: transform, opacity; }

/* la fascia con le informazioni */
.band {
  grid-area: 2 / 1; position: relative; z-index: 4; background: var(--bg); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px var(--pad);
  padding: 22px var(--pad) 26px; min-height: 30svh; align-content: start;
}
.band__title { margin: 0; font: 400 clamp(21px, 2.1vw, 32px) / 1.08 var(--display); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.band__text { margin: 0; max-width: 42ch; color: var(--muted); font-size: 15.5px; }
.band__facts { margin: 0; display: grid; gap: 12px; align-content: start; }
.band__facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.band__facts dt { font: 400 11px/1.6 var(--display); text-transform: uppercase; color: var(--muted); }
.band__facts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* moduli */
input[type="email"], input[type="text"] {
  width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid rgba(11, 17, 14, .35); border-radius: 0;
  background: #fff; color: var(--ink); font: 400 16px var(--text); caret-color: var(--green-ink);
}
input::placeholder { color: #6B766F; }
input:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 0; border-color: var(--green-ink); }
button {
  height: 46px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--bg);
  font: 400 12px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; cursor: pointer;
  transition: background-color .25s, color .25s, transform .15s;
}
button:hover { background: var(--green); border-color: var(--green); color: var(--night); }
button:active { transform: translateY(1px); }
.quick { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-self: start; max-width: 460px; }
.quick input { border-right: 0; }

.band--form { grid-template-columns: 1fr 1fr 1.2fr; }
.signup { display: grid; gap: 12px; }
.signup__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.signup__pick { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.signup__pick label { cursor: pointer; }
.signup__pick input { position: absolute; opacity: 0; }
.signup__pick span { display: inline-block; padding: 10px 14px; border: 1px solid rgba(11, 17, 14, .35); font: 400 12px/1 var(--display); text-transform: uppercase; transition: background-color .2s, color .2s; }
.signup__pick input:checked + span { background: var(--green); border-color: var(--green); color: var(--night); }
.signup__pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.signup button { justify-self: start; }
.signup__msg { margin: 0; min-height: 1.5em; font-size: 14px; color: var(--green-ink); }
.signup__msg.is-error { color: #A3361C; }

.foot { position: relative; z-index: 45; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px var(--pad); background: var(--bg); border-top: 1px solid var(--line); font: 400 11px/1.5 var(--display); text-transform: uppercase; color: var(--muted); }
.foot p { margin: 0; }

/* ---------- modalità film (con JavaScript e movimento consentito) ---------- */
.reel-on .scene { height: var(--len, 240vh); }
.reel-on .scene--list { --len: 170vh; }
.reel-on .scene__layer {
  position: fixed; inset: 0; min-height: 0; visibility: hidden;
  clip-path: inset(calc((1 - var(--in, 1)) * 100%) 0 0 0);
}
.reel-on .scene__layer.is-live { visibility: visible; }
.reel-on .scene__media > img, .reel-on .scene__media > video { transform: scale(calc(1.08 - .08 * var(--in, 1) + .04 * var(--out, 0))); }
.reel-on .scene__media { filter: brightness(calc(1 - .35 * var(--out, 0))); }
.reel-on .band > * { opacity: var(--show, 1); transform: translateY(calc((1 - var(--show, 1)) * 14px)); }
.reel-on .fog { opacity: var(--fog, 1); }
.reel-on .foot { margin-top: 0; }

/* ---------- telefono ---------- */
@media (max-width: 860px) {
  :root { --bar-h: 56px; }
  .bar { grid-template-columns: 1fr auto; }
  .bar__nav { display: none; }
  .bar__cta { padding: 9px 11px; font-size: 11px; }
  .band, .band--form { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px var(--pad) 22px; min-height: 0; }
  .band__text { font-size: 15px; }
  .band__facts { gap: 8px; }
  .band__facts div { grid-template-columns: 8.5em 1fr; padding-bottom: 8px; }
  .quick { max-width: none; }
  .signup__row { grid-template-columns: 1fr; }
  .scene__media { min-height: 38svh; }
  .grid-lines { display: none; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .band__facts div:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene__media > video { display: none; }
}

.foot p + p { text-transform: none; font: 400 13px/1.5 var(--text); }
