/* Sito v2 · Simone De Sio
   Registri: buio (camera oscura), carta (stampa), viola profondo e lilla (i momenti di colore).
   Il segno: tratto a matita che si disegna mentre scorri. Un solo accento, il viola. */

:root {
  --ink: #12100E;
  --paper: #F2EEE6;
  --paper-2: #E7E2D8;
  --violet-deep: #1E1442;     /* sezione di colore scura */
  --lilac: #BBA7F2;           /* accento sul buio, pastello */
  --lilac-soft: #E4DCF5;      /* superfici pastello sulla carta */
  --violet: #5B3FB0;          /* accento sulla carta (AA) */
  --red: #C4321F;             /* solo per i segnaposto della bozza */
  --silver: #A39E96;          /* testo secondario sul buio (AA) */
  --muted: #625D56;           /* testo secondario sulla carta (AA) */
  --line-dark: rgba(242, 238, 230, .14);
  --line-paper: rgba(18, 16, 14, .16);

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --section: clamp(96px, 14vw, 184px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 640; text-wrap: balance; }

/* grana leggera su tutta la pagina */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--accent, var(--lilac)); outline-offset: 3px; }

/* ---------- registri ---------- */
.dark   { background: var(--ink);         color: var(--paper); --fg: var(--paper); --sub: var(--silver); --line: var(--line-dark);  --accent: var(--lilac);  --blob: rgba(187, 167, 242, .16); --fill: var(--ink); }
.paper  { background: var(--paper);       color: var(--ink);   --fg: var(--ink);   --sub: var(--muted);  --line: var(--line-paper); --accent: var(--violet); --blob: var(--lilac-soft);       --fill: var(--paper); }
.violet { background: var(--violet-deep); color: var(--paper); --fg: var(--paper); --sub: #BDB5D3;       --line: rgba(242, 238, 230, .16); --accent: var(--lilac); --blob: rgba(187, 167, 242, .14); --fill: var(--violet-deep); }
.lilac  { background: var(--lilac-soft);  color: var(--ink);   --fg: var(--ink);   --sub: var(--muted);  --line: rgba(91, 63, 176, .22); --accent: var(--violet); --blob: rgba(91, 63, 176, .1); --fill: var(--lilac-soft); }

/* griglia da marginatore, dietro alcune sezioni */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
section { padding-block: var(--section); position: relative; }

/* ---------- tipografia ---------- */
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; line-height: 1.5; }
/* le etichette sono i titoli dei capitoli: devono vedersi */
.label {
  font-family: var(--mono); font-weight: 500; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.label::before { content: ""; width: 32px; height: 2px; background: var(--accent); flex: none; }
.label--pill { display: inline-flex; padding: 8px 16px; border: 1px solid var(--accent); border-radius: 22px; line-height: 1.35; }
.label--pill::before { display: none; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 640;
  max-width: 16ch;
}
.h1 .serif { color: var(--accent); font-size: 1.08em; line-height: .9; }
.h1__soft { color: var(--sub); display: block; margin-top: .08em; }
.h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 19ch;
}
.h2 .serif { color: var(--accent); font-size: 1.1em; }
.h2--big { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 17ch; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 620; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--fg); max-width: 32em; opacity: .88; }
.lead__hook { display: block; font-weight: 600; margin-bottom: .35em; }
.intro { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 32em; margin-top: 28px; color: var(--sub); }
.prose { margin-top: 40px; max-width: 34em; }
.prose p + p { margin-top: 1.1em; }
.prose__strong { font-weight: 600; font-size: 1.2em; line-height: 1.35; }
.hint { color: var(--fg); opacity: .66; margin-top: 32px; }
.hint::before { content: "↳ "; color: var(--accent); opacity: 1; }

/* ---------- bottoni e link ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 14px 24px;
  font-weight: 600; font-size: 1rem; letter-spacing: -.005em; text-decoration: none;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--lilac); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--violet); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.link {
  font-size: .98rem; text-decoration: none; color: var(--fg);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.link:hover { border-color: var(--accent); }

.ph { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); border: 1px dashed currentColor; padding: 2px 6px; }

/* ---------- navigazione: resta visibile mentre scorri, su fondo pieno ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--paper); border-bottom: 1px solid var(--line-dark); transition: background .3s var(--ease); }
.js .nav { position: fixed; }
.nav.is-stuck { background: var(--ink); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 96px; transition: height .3s var(--ease); }
.nav.is-stuck .nav__inner { height: 72px; }
.nav__logo { display: flex; align-items: center; gap: 22px; text-decoration: none; font-weight: 660; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -.025em; white-space: nowrap; }
/* il payoff si sviluppa come l'immagine dell'apertura */
.nav__payoff { display: none; padding-left: 22px; border-left: 1px solid var(--line-dark); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.28rem; letter-spacing: -.005em; color: var(--lilac); animation: svela 2.8s cubic-bezier(.3, .1, .2, 1) both; }
@keyframes svela { from { opacity: 0; filter: blur(4px); } }
@media (min-width: 820px) { .nav__payoff { display: inline; } }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { text-decoration: none; font-size: 1.02rem; font-weight: 500; color: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav__link:hover { border-color: var(--lilac); }
.nav .btn--small { min-height: 46px; padding: 10px 20px; font-size: .96rem; }
section[id] { scroll-margin-top: 72px; }

/* ---------- la stampa (print) ---------- */
.print { margin: 0; }
.print__paper { background: var(--paper); padding: clamp(10px, 1.2vw, 16px); }
.print__paper img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.print__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--sub); }
.safelight { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* ---------- il segno: disegni a tratto ---------- */
.sketch { margin: 0; color: var(--fg); }
.sketch svg, .station__art svg { display: block; width: 100%; height: auto; overflow: visible; }
[data-draw] path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-draw] .blob { fill: var(--blob); stroke: none; }
[data-draw] .fill { fill: var(--fill); }
[data-draw] .accent { stroke: var(--accent); }
[data-draw] .soft { opacity: .55; }
[data-draw] text { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; fill: currentColor; }
[data-draw] .accent-text { fill: var(--accent); }
/* con JS: il tratto si disegna quando entra in scena */
.js [data-draw] path:not(.blob) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.js [data-draw] .blob, .js [data-draw] text { opacity: 0; transition: opacity .9s var(--ease) .5s; }
.js [data-draw].is-drawn path:not(.blob) { stroke-dashoffset: 0; }
.js [data-draw].is-drawn .blob, .js [data-draw].is-drawn text { opacity: 1; }
.js [data-draw].is-drawn .soft { opacity: .55; }

/* ---------- 1 · apertura ---------- */
.hero { padding-top: clamp(132px, 16vw, 188px); padding-bottom: clamp(88px, 10vw, 140px); }
.hero__grid { display: grid; gap: 56px; }
.hero__text .lead { margin-top: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 44px; }
/* l'etichetta: su una riga dove ci sta, se no va a capo solo dopo i due punti */
.hero .label--pill { display: inline-block; font-size: .78rem; }
@media (max-width: 479px) {
  /* sul telefono il carattere scende quel che basta perché l'elenco (39 caratteri) stia sulla seconda riga */
  .hero .label--pill { font-size: min(.72rem, calc((100vw - 72px) / 27.5)); letter-spacing: .1em; padding-inline: 14px; }
}
/* dove va a capo, la pillola si stringe sulla riga più lunga */
@media (max-width: 669px), (min-width: 900px) and (max-width: 1239px) {
  .hero .label--pill:has(.nowrap) { width: min-content; }
}
.print--hero img { object-position: 38% 50%; }

/* sviluppo: l'immagine latente */
.js .print--hero img { filter: grayscale(1) brightness(2.35) contrast(.22); }
.js .print--hero.is-developed img { filter: grayscale(1) brightness(1) contrast(1.06); transition: filter 2.8s cubic-bezier(.3, .1, .2, 1); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 72px; }
  .print--hero { max-width: 460px; justify-self: end; width: 100%; }
}

/* apertura senza foto (home v2): il titolo prende tutta la riga, sotto una linea con testo e bottoni affiancati */
.hero--solo .h1 { font-size: clamp(2.6rem, 7.4vw, 6.8rem); max-width: 15ch; line-height: .98; }
.hero__foot { display: grid; gap: 36px; margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.hero__foot .status { margin-top: 0; }
@media (min-width: 900px) { .hero__foot { grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; } }
.hero--inner .h1 { font-size: clamp(2.4rem, 5.4vw, 5rem); max-width: 20ch; line-height: 1.02; }

/* ---------- 2 · problema e le tre porte (si accende la luce) ---------- */
.problem .prose { color: var(--sub); }
.problem .prose__strong { color: var(--fg); }
.doors { margin-top: 20px; display: grid; gap: 12px; }
.door {
  position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px;
  padding: 20px 22px; border: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.door:hover { border-color: var(--fg); }
.door[aria-selected="true"] { background: var(--lilac-soft); border-color: transparent; }
.door__n { color: var(--accent); grid-row: span 2; padding-top: .3em; }
.door__t { font-size: clamp(1.15rem, 1.6vw, 1.3rem); font-weight: 620; letter-spacing: -.015em; line-height: 1.2; }
.door__s { color: var(--sub); margin-top: 6px; font-size: .92rem; line-height: 1.4; }
.door-panel { margin-top: 40px; }
.door-panel[hidden] { display: none; }
.js .door-panel.is-entering { animation: rise .6s var(--ease) both; }
@media (min-width: 900px) {
  .doors { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .door { grid-template-columns: 1fr; }
  .door__n { grid-row: auto; margin-bottom: 12px; }
}
/* segno a matita intorno alla porta scelta */
.mark { position: absolute; inset: -2px -4px; width: calc(100% + 8px); height: calc(100% + 4px); overflow: visible; pointer-events: none; }
.mark path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.door[aria-selected="true"] .mark path { stroke-dashoffset: 0; }

/* ---------- 3 · frasi ---------- */
.phrases { padding-top: 0; }
.phrases__list { margin-top: 44px; border-top: 1px solid var(--line); }
.phrases__list li { border-bottom: 1px solid var(--line); }
.phrase {
  width: 100%; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; gap: 12px;
  padding: 26px 0; color: var(--sub);
  transition: color .3s var(--ease);
}
.phrase:hover, .phrase[aria-pressed="true"] { color: var(--fg); }
.phrase__n { color: var(--sub); }
.phrase__t {
  position: relative; display: inline-block; justify-self: start;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 540;
}
.phrase__t svg { position: absolute; inset: -22% -3.5%; width: 107%; height: 144%; overflow: visible; pointer-events: none; }
.phrase__t path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.phrase[aria-pressed="true"] .phrase__t path { stroke-dashoffset: 0; }
.phrases__out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 44px; }
.phrases__count { color: var(--fg); font-size: 1.1rem; max-width: 30em; min-height: 1.6em; }
.phrases__count strong { color: var(--accent); font-weight: 650; }

/* ---------- 4 · grande idea (viola profondo) ---------- */
.statement {
  text-wrap: balance;
  font-size: clamp(2.3rem, 6.2vw, 5.8rem);
  line-height: 1; letter-spacing: -.04em; font-weight: 660;
  max-width: 18ch;
}
.statement .w { display: inline-block; }
.idea__sub { margin-top: clamp(24px, 3vw, 36px); max-width: 34ch; text-wrap: balance; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.18; color: var(--accent); }
.idea__grid { margin-top: clamp(64px, 8vw, 112px); display: grid; gap: 56px; align-items: center; }
.sketch--graph { max-width: 520px; }
.enemy { max-width: 30em; color: var(--sub); }
.enemy p + p { margin-top: 1.1em; }
.enemy__lead { color: var(--fg); font-size: 1.2rem; line-height: 1.45; }
.enemy__turn { color: var(--fg); font-weight: 600; }
@media (min-width: 900px) { .idea__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }

/* ---------- 5 · promessa ---------- */
.promise__list { margin-top: 56px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.promise__list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.promise__list .mono { color: var(--accent); }
.promise__list p { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.22; letter-spacing: -.015em; font-weight: 560; }
.promise__body { margin-top: 44px; }
.pull { margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; }
.pull p { max-width: 20ch; font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 620; }
.pull em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.12em; color: var(--accent); }
@media (min-width: 900px) {
  .promise__list { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 32px; }
  .promise__list li { grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 0; padding-top: 20px; }
}

/* ---------- 6 · metodo: quattro fasi disegnate ---------- */
.method { padding-bottom: clamp(72px, 10vw, 140px); }
.stations { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: relative; }
.station {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px 16px 20px; border: 1px solid transparent; background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.station:hover { border-color: var(--line); }
.station.is-active { background: rgba(255, 255, 255, .55); border-color: var(--line); }
.station__art { width: clamp(84px, 9vw, 112px); margin-bottom: 8px; color: var(--fg); opacity: .5; transition: opacity .4s var(--ease); }
.station.is-active .station__art, .station:hover .station__art { opacity: 1; }
.station__name { display: flex; align-items: baseline; gap: 10px; font-size: 1.15rem; font-weight: 620; letter-spacing: -.01em; }
.station__name .mono { color: var(--accent); }
.station__when { color: var(--sub); }
@media (min-width: 900px) {
  .stations { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  /* la linea che unisce le fasi */
  .stations::before { content: ""; position: absolute; left: 6%; right: 6%; top: 74px; border-top: 1.5px dashed var(--line); z-index: -1; }
}

.phase { display: grid; gap: 20px 64px; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.phase[hidden] { display: none; }
.phase__when { color: var(--accent); margin-bottom: 14px; }
.phase__head .h3 { max-width: 18ch; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.08; letter-spacing: -.028em; }
.phase__text > p { max-width: 32em; }
.phase__note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--sub); font-size: .95rem; }
.phase__note { color: var(--fg); }
.phase__note .mono { display: inline-block; background: var(--accent); color: var(--paper); padding: 2px 8px; margin-right: 10px; font-weight: 500; }
.js .phase.is-entering > * { animation: rise .7s var(--ease) both; }
.js .phase.is-entering > *:nth-child(2) { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .phase { grid-template-columns: 1fr 1.1fr; } }

/* la Stampa: dalla pellicola, un filo di stampe appese ad asciugare */
.sketch--copies { grid-column: 1 / -1; margin-top: 24px; }
.sketch--copies .copies-wide { display: none; }
.copies-wide, .copies-tall { max-width: 860px; }
.copies-tall { max-width: 400px; margin-inline: auto; }
.copies__caption { margin-top: 24px; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 560; letter-spacing: -.015em; line-height: 1.25; }
[data-draw] .ink { fill: currentColor; stroke: none; }
[data-draw] .hole { fill: var(--fill); stroke: none; }
[data-draw] .neg { stroke: var(--fill); }
[data-draw] .dash { stroke: var(--accent); stroke-dasharray: 6 5; }
.js [data-draw] .ink, .js [data-draw] .hole, .js [data-draw] path.dash { stroke-dashoffset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.js [data-draw] path.dash { stroke-dasharray: 6 5; }
.js [data-draw].is-drawn .ink, .js [data-draw].is-drawn .hole, .js [data-draw].is-drawn path.dash { opacity: 1; }
@media (min-width: 700px) {
  .sketch--copies .copies-wide { display: block; }
  .sketch--copies .copies-tall { display: none; }
}

/* ---------- 7 · prove: VZONE racconta il lavoro, gli altri rispondono a un dubbio ---------- */
.proof { border-top: 1px solid var(--line); }
.work { margin-top: clamp(48px, 6vw, 72px); }
.work__top { display: grid; gap: 40px; }
.work__name { display: flex; flex-direction: column; gap: 4px; }
.work__name strong { font-weight: 640; font-size: 1.2rem; letter-spacing: -.01em; }
.work__name .mono { color: var(--sub); }
.work__quote { margin-top: 28px; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 640; max-width: 13ch; }
.work__quote .serif { color: var(--accent); font-size: 1.08em; }
/* le copertine a colori: sono il lavoro consegnato. Sul telefono scorrono di lato */
.reels { display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reels li { flex: none; width: min(58vw, 240px); scroll-snap-align: center; }
.reels figure { margin: 0; }
.reels img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.reels figcaption { margin-top: 10px; color: var(--sub); }
.work__steps { margin-top: clamp(48px, 6vw, 72px); display: grid; border-top: 1px solid var(--line); }
.work__steps li { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-content: start; }
.work__steps .mono { color: var(--accent); padding-top: .4em; grid-row: span 2; }
.work__steps p { color: var(--sub); margin-top: 8px; line-height: 1.5; }
.work__bridge { margin-top: clamp(48px, 6vw, 72px); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.14; letter-spacing: -.025em; font-weight: 600; max-width: 30ch; text-wrap: balance; }
.work__bridge .serif { color: var(--accent); font-size: 1.08em; }
.work__note { margin-top: 20px; color: var(--sub); }
.case__media { overflow: hidden; background: var(--paper-2); }
.case__media img { width: 100%; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.case:hover .case__media img { filter: grayscale(0) contrast(1); transform: scale(1.02); }
.case__for { margin-top: 24px; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 620; }
.case__text { margin-top: 12px; color: var(--sub); line-height: 1.5; max-width: 34em; }
.case__name { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.case__name strong { font-weight: 640; }
.case__name .mono { color: var(--sub); }
.cases { margin-top: clamp(72px, 9vw, 120px); display: grid; gap: 56px; }
.cases .case__media img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) {
  .work__top { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: end; }
  .reels { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .reels li { width: clamp(150px, 15.5vw, 196px); }
  .work__steps { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 0; }
  .work__steps li { grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 0; }
  .work__steps .mono { grid-row: auto; margin-bottom: 14px; }
  .cases { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---------- 8 · chi sono e la striscia che scorre ---------- */
.about__grid { display: grid; gap: 48px; }
.print--about { max-width: 420px; }
.about__text .prose { color: var(--silver); }
.about__text .link { display: inline-block; margin-top: 36px; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: center; }
}
.marquee { margin-top: clamp(72px, 9vw, 120px); overflow: hidden; }
.marquee__track { display: flex; gap: 16px; width: max-content; }
.js .marquee__track { animation: scorri 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li { flex: none; }
.marquee figure { margin: 0; }
.marquee img { height: clamp(200px, 26vw, 320px); width: auto; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.marquee figure:hover img { filter: grayscale(0); }
.marquee figcaption { margin-top: 10px; color: var(--silver); }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ---------- 9 · positivo e negativo ---------- */
.fit__grid { margin-top: 48px; display: grid; }
.fit__col { padding: clamp(28px, 4vw, 48px); }
.fit__col--pos { background: var(--lilac-soft); color: var(--ink); }
.fit__col--neg { background: var(--ink); color: var(--paper); }
.fit__head { margin-bottom: 24px; font-weight: 500; }
.fit__col--pos .fit__head { color: var(--violet); }
.fit__col--neg .fit__head { color: var(--lilac); }
.fit__col ol { counter-reset: n; }
.fit__col li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; padding: 14px 0; border-top: 1px solid; line-height: 1.45; }
.fit__col--pos li { border-color: rgba(91, 63, 176, .2); }
.fit__col--neg li { border-color: var(--line-dark); color: #D9D4CB; }
.fit__col li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; padding-top: .35em; }
.fit__col--pos li::before { color: var(--violet); }
.fit__col--neg li::before { color: var(--lilac); }
@media (min-width: 900px) { .fit__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 10 · come si parte (lilla) ---------- */
.steps { margin: 48px 0 44px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-content: start; }
.steps__n { color: var(--accent); padding-top: .4em; grid-row: span 2; }
.steps p { color: var(--sub); margin-top: 8px; }
/* garanzie e posti: quattro tessere, si leggono a colpo d'occhio */
.terms { margin-bottom: 20px; display: grid; gap: 10px; }
.term { background: var(--ink); color: var(--paper); padding: 22px; display: flex; flex-direction: column; }
.term--seats { background: var(--violet); }
.term__tag { color: var(--lilac); font-weight: 500; }
.term--seats .term__tag { color: var(--paper); }
.term__big { margin-top: 12px; font-size: clamp(3.2rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.04em; font-weight: 660; }
.term__big span { font-size: .36em; letter-spacing: -.015em; font-weight: 600; }
.frames { display: flex; gap: 4px; margin-top: 14px; }
.frames i { display: block; width: 18px; height: 12px; border: 1.5px solid var(--lilac); }
.frames .on { background: var(--lilac); }
.term--seats .frames i { border-color: var(--paper); }
.term__text { margin-top: 14px; font-size: .95rem; line-height: 1.42; }
.terms__note { margin-bottom: 36px; color: var(--sub); }
@media (min-width: 620px) { .terms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .terms { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 32px; }
  .steps li { grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 0; }
  .steps__n { grid-row: auto; margin-bottom: 14px; }
}

/* ---------- 11 · FAQ ---------- */
.faq__list { margin-top: 44px; 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; gap: 24px; align-items: baseline;
  padding: 24px 0; font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 560; letter-spacing: -.012em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--accent); font-size: 1.2rem; transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 36em; color: var(--muted); }

/* ---------- 12 · chiusura e footer ---------- */
.close .h2--big { max-width: 20ch; }
.close__terms { margin: 36px 0 0; }
.close__terms + .close__cta { margin-top: 24px; }
.close__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 48px; }
.link--light { color: var(--paper); border-color: var(--line-dark); }
.ps { margin-top: clamp(72px, 9vw, 120px); max-width: 30em; color: var(--silver); font-style: italic; }
.ps .mono { font-style: normal; color: var(--accent); margin-right: 10px; }

.footer { padding-block: 56px; border-top: 1px solid var(--line-dark); }
.footer__inner { display: grid; gap: 24px; }
.footer__payoff { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 620; letter-spacing: -.03em; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--silver); }
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--paper); }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- toast (bozza) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 60; background: var(--paper); color: var(--ink);
  padding: 12px 16px; max-width: calc(100vw - 32px);
  outline: 1px solid var(--ink);
}

/* ---------- telefono ---------- */
@media (max-width: 600px) {
  .nav__link { display: none; }
  .nav__inner, .nav.is-stuck .nav__inner { height: 68px; }
  .nav .btn--small { min-height: 42px; padding: 8px 14px; font-size: .88rem; }
  .phrase { grid-template-columns: 34px 1fr; padding: 22px 0; }
  .promise__list li, .steps li, .door { grid-template-columns: 34px 1fr; }
  .print--hero { max-width: 88%; }
  .grid-bg::before { background-size: 56px 56px; }
  /* i nomi dei passi stanno su una riga anche in due colonne strette */
  .station { padding-inline: 12px; }
  .station__name { font-size: 1.04rem; gap: 8px; }
}
@media (max-width: 380px) {
  .station__name { font-size: .94rem; }
}

/* niente fessure tra sezioni dello stesso colore */
main > section + section { margin-top: -1px; }

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .print--hero img { filter: grayscale(1) contrast(1.06); }
  .js [data-draw] .ink, .js [data-draw] .hole, .js [data-draw] path.dash { opacity: 1; }
  .js [data-draw] path:not(.blob) { stroke-dashoffset: 0; }
  .js [data-draw] .blob, .js [data-draw] text { opacity: 1; }
  .marquee { overflow-x: auto; }
}

/* ---------- le note dei bottoni: qual è il tuo obiettivo se clicchi ---------- */
.cta { position: relative; display: inline-flex; }
.cta__note {
  position: absolute; top: calc(100% + 8px); left: 6px; z-index: 5;
  display: grid; grid-template-columns: 40px 1fr; gap: 6px; width: 290px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cta__arrow { width: 40px; height: 46px; overflow: visible; color: var(--accent); }
.cta__arrow path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease) .05s; }
.cta__text { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.cta__label { color: var(--accent); font-weight: 500; }
.cta__goal { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.15; color: var(--fg); }
.cta__how { font-size: .88rem; line-height: 1.4; color: var(--sub); }
@media (hover: hover) and (min-width: 700px) {
  .cta:hover .cta__note, .cta:focus-within .cta__note { opacity: 1; transform: none; }
  .cta:hover .cta__arrow path, .cta:focus-within .cta__arrow path { stroke-dashoffset: 0; }
}
/* sul telefono non si passa sopra, e in una finestra stretta la nota uscirebbe dallo schermo: le note restano visibili sotto i bottoni */
@media (hover: none), (max-width: 699px) {
  .cta { display: flex; flex-direction: column; align-items: flex-start; }
  .cta__note { position: static; opacity: 1; transform: none; width: auto; max-width: 340px; margin-top: 6px; }
  .cta__arrow path { stroke-dashoffset: 0; }
}

/* le note hanno aria sotto: niente testo a filo della sezione dopo, né sopra il PS */
@media (hover: hover) and (min-width: 700px) {
  .hero { padding-bottom: clamp(190px, 17vw, 250px); }
  .close .ps { margin-top: clamp(170px, 15vw, 220px); }
  .cta__note { width: 340px; top: calc(100% + 12px); }
}

/* gli schemi delle fasi: uno per ogni fase, sotto il testo */
.sketch--phase { grid-column: 1 / -1; margin-top: 28px; max-width: 520px; }
.sketch__labels { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 12px; }
.sketch__labels li { text-align: center; padding-inline: 2px; font-size: .64rem; line-height: 1.35; color: var(--fg); }

/* ---------- più ciccia, senza peso: sei settimane, icone dei passi, diaframma ---------- */
.strike { position: relative; display: inline-block; }
.strike__line { position: absolute; left: -2%; top: 40%; width: 104%; height: .4em; overflow: visible; }
.strike__line path { stroke-width: 3; }
.promise__bottom { display: grid; gap: 48px; }
.sketch--weeks { max-width: 480px; }
@media (min-width: 900px) { .promise__bottom { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; } }
.steps__art { display: none; }
@media (min-width: 900px) { .steps__art { display: block; width: 56px; margin-bottom: 18px; color: var(--fg); } }
.sketch--aperture { display: none; }
@media (min-width: 900px) {
  .close__wrap { position: relative; }
  .sketch--aperture { display: block; position: absolute; right: var(--gutter); top: -10px; width: clamp(220px, 22vw, 300px); }
  .sketch--aperture path { stroke-width: .9; }
}

/* ---------- pagine interne: la diagnosi, la storia, i testi legali ---------- */
.seen .terms { margin-top: clamp(40px, 5vw, 56px); }
.launch .work__steps { margin-top: clamp(40px, 5vw, 56px); }
.paths .fit__grid { margin-top: clamp(40px, 5vw, 56px); }
.paths .fit__col li { grid-template-columns: 1fr; }
.paths .fit__col li::before { content: none; }
.story { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.story__step { display: grid; gap: 14px 64px; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.story__when { color: var(--accent); }
.story__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.08; letter-spacing: -.028em; font-weight: 640; max-width: 18ch; margin-top: 8px; }
.story__text { max-width: 34em; color: var(--sub); }
.story__text p + p { margin-top: 1em; }
.story__text strong { color: var(--fg); font-weight: 600; }
.story__img { margin: 28px 0 0; max-width: 360px; }
.story__img img { width: 100%; filter: grayscale(1) contrast(1.06); }
.story__img figcaption { margin-top: 10px; color: var(--sub); }
@media (min-width: 900px) { .story__step { grid-template-columns: minmax(220px, 1fr) 2fr; } }
.strip { padding-bottom: clamp(72px, 9vw, 120px); }
.strip .marquee { margin-top: clamp(40px, 5vw, 64px); }
.thanks .steps { margin-bottom: 36px; }
.thanks__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.legal h2 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -.015em; line-height: 1.25; margin-top: 2.2em; }
.legal p, .legal ul { margin-top: .8em; max-width: 38em; color: var(--muted); }
.legal li + li { margin-top: .4em; }
.legal a { text-underline-offset: 3px; }
.pull--wide p { max-width: 32ch; }

/* revisione: con ?validare nell'indirizzo si vedono i testi ancora da approvare */
.mostra-validare [data-copy="da-validare"] { outline: 2px dashed #E3A33B; outline-offset: 6px; border-radius: 4px; }
.nowrap { white-space: nowrap; }

/* ---------- la spia in apertura: disponibile o lista d'attesa (data-stato nella home) ---------- */
.status { display: flex; align-items: center; gap: 12px; margin-top: 36px; color: var(--fg); }
.status + .hero__cta { margin-top: 22px; }
.status__led { position: relative; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--led); box-shadow: 0 0 10px var(--led); }
.status__led::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--led); opacity: 0; animation: led 2.4s var(--ease) infinite; }
@keyframes led { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.status[data-stato="disponibile"] { --led: #5BD38A; }
.status[data-stato="lista"] { --led: #F0B44C; }
.status[data-stato="lista"] .status__led::after { animation: none; }
.status[data-stato="disponibile"] .status__no, .status[data-stato="lista"] .status__si { display: none; }

/* Prenota (10/11/2026) · il calendario della call in grazie.html, da js/prenota.js */
.prenota { margin: 40px 0 48px; max-width: 760px; }
.prenota__nota { color: var(--sub); }
.prenota__nota a { color: var(--fg); }
.prenota__testa { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; font-weight: 600; margin-bottom: 8px; }
.prenota__avviso { margin-bottom: 28px; padding: 12px 16px; border-left: 2px solid var(--accent); background: rgba(255, 255, 255, .45); }
.prenota__orari { border: 0; padding: 0; margin: 0; min-width: 0; }
.prenota__orari legend { padding: 0; margin-bottom: 12px; }
.prenota__giorni { margin-top: 24px; border-top: 1px solid var(--line); }
.prenota__giorno { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prenota__data { font-weight: 600; }
.prenota__data::first-letter { text-transform: uppercase; }
.prenota__ore { display: flex; flex-wrap: wrap; gap: 10px; }
.prenota__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prenota__ora {
  display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 48px; padding: 10px 18px;
  border: 1px solid var(--line); font-family: var(--mono); font-size: .95rem; letter-spacing: .04em; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.prenota__ora:hover { border-color: var(--accent); }
.prenota__radio:focus-visible + .prenota__ora { outline: 2px solid var(--accent); outline-offset: 3px; }
.prenota__radio:checked + .prenota__ora { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.prenota__dati { display: grid; gap: 16px; margin-top: 32px; }
.prenota__campo { display: grid; gap: 8px; }
.prenota__campo span { color: var(--sub); }
.prenota__campo input {
  min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255, 255, 255, .55); border: 1px solid var(--line); border-radius: 0;
}
.prenota__campo input:focus { border-color: var(--accent); }
.prenota__trappola { position: absolute; left: -9999px; width: 1px; height: 1px; }
.prenota__scelta { margin: 28px 0 16px; color: var(--sub); }
.prenota__scelta strong { color: var(--fg); font-weight: 600; }
.prenota__errore { margin-top: 14px; font-weight: 600; }
.prenota__errore:empty { display: none; }
.prenota .btn[disabled] { opacity: .65; cursor: progress; }
.prenota__fatto { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); outline: none; }
.prenota__fatto .h3 { max-width: 34ch; margin-bottom: 12px; }
.prenota__fatto p + p { margin-top: 8px; }
@media (min-width: 640px) {
  .prenota__giorno { grid-template-columns: 220px 1fr; align-items: center; }
  .prenota__dati { grid-template-columns: 1fr 1fr; }
}
