/* DMHertz, sito vetrina.
   Palette e carattere dal brand book (Ni©k × DMHertz, 2026): Regency Purple, Berry Violet, Inter Bold.
   Ogni sezione è un capitolo a tutto campo con il suo colore, come una fila di manifesti. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/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: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/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;
}

:root {
  /* brand */
  --regency: #33215d;
  --berry: #8b6ca2;
  --lavender: #9da0c7;
  --night: #08060c;
  --paper: #f3f0f7;

  /* type: five steps plus the poster size of the big words */
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.08rem + 0.55vw, 1.625rem);
  --step-head: clamp(2.125rem, 1.1rem + 3.7vw, 5rem);
  --step-display: clamp(3.25rem, 9.6vw, 9.75rem);
  --step-poster: clamp(5.5rem, 15vw, 15rem);

  /* frame */
  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --header-h: 4.25rem;
  --chapter-top: calc(var(--header-h) + clamp(2.5rem, 9svh, 5.5rem));
  --chapter-bottom: clamp(3rem, 9svh, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fields: each chapter colour brings its own inks */
.field-berry    { --bg: var(--berry);    --ink: var(--night); --ink-2: var(--paper);    --soft: var(--night); --btn: var(--night); --btn-ink: var(--paper); --tone: #7d6094; --disc: var(--paper); }
.field-night    { --bg: var(--night);    --ink: var(--paper); --ink-2: var(--lavender); --soft: #b9b2c9;      --btn: var(--paper); --btn-ink: var(--night); --tone: #191322; --disc: var(--berry); }
.field-lavender { --bg: var(--lavender); --ink: var(--night); --ink-2: var(--regency);  --soft: var(--regency); --btn: var(--night); --btn-ink: var(--paper); --tone: #b4b6d6; --disc: var(--paper); }
.field-paper    { --bg: var(--paper);    --ink: var(--night); --ink-2: var(--regency);  --soft: #4b4359;      --btn: var(--night); --btn-ink: var(--paper); --tone: #e2ddea; --disc: var(--berry); }
.field-regency  { --bg: var(--regency);  --ink: var(--paper); --ink-2: var(--lavender); --soft: #cbc4de;      --btn: var(--paper); --btn-ink: var(--night); --tone: #432d77; --disc: var(--berry); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button, input { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; hyphens: none; }
::selection { background: var(--regency); color: var(--paper); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.chapter, .product, .tile, .plate, .about-mark, .menu-sheet { background-color: var(--bg); color: var(--ink); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; z-index: 100;
  left: var(--margin); top: -6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--paper); color: var(--night);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--margin); }

/* ---------- shared pieces ---------- */
.section-title {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: 0.8em 1.55em;
  border: 0; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink);
  font-size: var(--step-body); font-weight: 700; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-soft { background: var(--tone); color: var(--ink); }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.1em; transition: color 0.25s; }
.text-link:hover { color: var(--ink-2); }

/* ---------- header: takes the colours of the chapter beneath it ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-inline: var(--margin);
}
.header-bg {
  position: absolute; inset-block: 0; z-index: -1;
  background-color: var(--bg);
  transition: background-color 0.3s ease;
}
.header-bg-l { left: 0; width: calc(100% * 5 / 12); }
.header-bg-r { left: calc(100% * 5 / 12); right: 0; }
.brand, .header-r { color: var(--ink); transition: color 0.3s ease; }
.brand { display: block; padding-block: 0.5rem; }
.brand-logo { width: clamp(7rem, 9.5vw, 9.5rem); height: auto; fill: currentColor; }
.header-r { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav ul { display: flex; gap: clamp(1rem, 1.8vw, 1.75rem); }
.nav a { font-weight: 600; text-decoration: none; padding-block: 0.5rem; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 0.12em; }
.bag-count { font-variant-numeric: tabular-nums; }
.bag-count::before { content: "("; }
.bag-count::after { content: ")"; }
.bag-link.is-bumped .bag-count { display: inline-block; animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
.btn-header { min-height: 2.75rem; padding: 0.55em 1.15em; }
.header-bag { font-weight: 600; text-decoration: none; padding-block: 0.5rem; }
.header-bag:hover { text-decoration: underline; text-decoration-thickness: 0.12em; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 0.25rem;
  border: 0; background: none;
  font-weight: 700; cursor: pointer;
}
.menu-toggle-disc {
  width: 1.6rem; height: 1.6rem;
  --vinyl: var(--ink); --groove: var(--bg); --label: var(--bg); --label-ink: var(--ink); --hole: var(--ink);
  transition: transform 0.6s var(--ease);
}
.menu-toggle:hover .menu-toggle-disc { transform: rotate(200deg); }

/* ---------- the menu: the whole screen, the pages as poster lines, a record that finds your place ---------- */
.menu-sheet {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: 0 var(--margin) calc(var(--margin) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  contain: layout paint;
  /* always laid out, parked above the screen: opening is only a slide, done by the graphics card */
  visibility: hidden;
  transform: translate3d(0, -100%, 0);
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.menu-sheet.is-open {
  visibility: visible;
  transform: none;
  transition: transform 0.5s var(--ease), visibility 0s;
}
.menu-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.menu-brand { display: block; padding-block: 0.5rem; }
.menu-close { min-height: 2.75rem; border: 0; background: none; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-thickness: 0.12em; text-underline-offset: 0.25em; }
.menu-nav { margin-block: auto; padding-block: clamp(1.5rem, 4svh, 3rem); }
.menu-links { display: grid; }
.menu-links li {
  opacity: 0;
  transform: translate3d(0, 0.5em, 0);
  font-size: clamp(3rem, 10.4vw, 10rem);
  transition: opacity 0.4s ease, transform 0.55s var(--ease);
  transition-delay: calc(0.1s + var(--i, 0) * 50ms);
}
.menu-sheet.is-open .menu-links li { opacity: 1; transform: none; }
.menu-sheet:not(.is-open) .menu-links li { transition-delay: 0s; }
.menu-link {
  --vinyl: var(--berry); --groove: #7d6094; --label: var(--paper); --label-ink: var(--night); --hole: var(--night);
  display: grid;
  grid-template-columns: 0.86em minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.14em;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-decoration: none;
}
/* the record rolls in from the left of the line you are on, and spins while you stay there
   (the spin turns the whole svg, so it stays on the graphics card instead of repainting) */
.menu-vinyl {
  display: block;
  width: 0.8em; height: 0.8em;
  opacity: 0;
  transform: translateX(-0.9em) rotate(-240deg) scale(0.6);
  transition: opacity 0.35s ease, transform 0.6s var(--ease);
}
.menu-vinyl svg { display: block; width: 100%; height: 100%; animation: spin 1.9s linear infinite; animation-play-state: paused; }
.menu-link:hover .menu-vinyl, .menu-link:focus-visible .menu-vinyl, .menu-link[aria-current] .menu-vinyl { opacity: 1; transform: none; }
.menu-sheet.is-open .menu-link:hover .menu-vinyl svg, .menu-sheet.is-open .menu-link:focus-visible .menu-vinyl svg, .menu-sheet.is-open .menu-link[aria-current] .menu-vinyl svg { animation-play-state: running; }
.menu-link[aria-current] { --vinyl: var(--lavender); --groove: #8a8db8; }
.menu-word { transition: color 0.25s, transform 0.5s var(--ease); }
.menu-link:hover .menu-word, .menu-link:focus-visible .menu-word { color: var(--ink-2); transform: translateX(0.08em); }
.menu-link:focus-visible { outline: none; }
.menu-link:focus-visible .menu-word { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.08em; }
.menu-note {
  font-size: var(--step-body);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  text-align: right;
}
.menu-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.menu-small { font-weight: 700; text-decoration: none; padding-block: 0.4rem; }
.menu-small:hover { text-decoration: underline; text-decoration-thickness: 0.12em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 1. hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  row-gap: clamp(0.5rem, 2svh, 1.5rem);
  padding: calc(var(--header-h) + clamp(1.25rem, 5svh, 3.5rem)) var(--margin) clamp(1.25rem, 4svh, 2.5rem);
}
.hero-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  min-height: 0;
}
/* the symbol in 3D: the canvas fills the stage, the SVG stays until it is ready */
.symbol-stage {
  grid-column: 1 / span 8;
  align-self: stretch;
  position: relative;
  min-height: clamp(14rem, 34svh, 24rem);
}
.symbol-fallback {
  position: absolute; left: 6%; top: 8%;
  width: 88%; height: 84%;
  fill: var(--paper);
  transition: opacity 0.6s ease;
}
.symbol-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  cursor: grab;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.symbol-canvas:focus-visible { outline-offset: -6px; }
.symbol-stage.is-grabbing .symbol-canvas { cursor: grabbing; }
.symbol-stage.is-3d .symbol-canvas { opacity: 1; }
.symbol-stage.is-3d .symbol-fallback { opacity: 0; }
.symbol-hint { position: absolute; left: 0; bottom: 0; color: var(--night); }
.symbol-stage.is-3d .symbol-hint { display: block; }
.hero-title {
  align-self: start;
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
}
.hero-logo { width: 100%; height: auto; fill: var(--paper); }
.hero-logo-split { display: none; }
.hero-word {
  display: block;
  width: max-content;
  margin-top: 0.07em;
  color: var(--night);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: calc((100vw - 2 * var(--margin)) / 7.2);
}
.hero-lead {
  grid-column: 9 / -1;
  align-self: end; justify-self: end;
  width: max(18rem, 27vw);
  max-width: 30ch;
  font-size: var(--step-lead);
  line-height: 1.35;
  color: var(--night);
}

/* ---------- 2. la serata: un manifesto ---------- */
.event {
  min-height: 90svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--chapter-top) var(--margin) var(--chapter-bottom);
}
.poster-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--gutter);
}
.poster-item {
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.poster-row:hover .poster-item { color: var(--ink-2); }
.poster-detail {
  flex: none;
  max-width: 40%;
  text-align: right;
  font-size: var(--step-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
a.poster-detail { text-decoration: underline; text-decoration-thickness: 0.1em; }
a.poster-detail:hover { color: var(--ink-2); }
.event-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 6svh, 3.5rem);
}

/* ---------- 3. sotto cassa: stampe tra le parole ---------- */
.prints {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  --top: calc(var(--header-h) + clamp(1.25rem, 5svh, 3rem));
  --bottom: clamp(1.5rem, 5svh, 3rem);
  --word: calc(var(--step-poster) * 0.84);
}
.prints-title {
  font-size: var(--step-poster);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--regency);
}
.prints-word { position: absolute; z-index: 1; }
.prints-word-1 { top: var(--top); left: var(--margin); }
.prints-word-2 { bottom: var(--bottom); right: var(--margin); }
.prints-stack {
  position: absolute;
  left: var(--margin); right: var(--margin);
  top: calc(var(--top) + var(--word) + 1rem);
  bottom: calc(var(--bottom) + var(--word) + 1rem);
}
.print { position: absolute; margin: 0; transform: translate3d(0, var(--dy, 0px), 0); will-change: transform; }
.print-paper {
  display: block;
  padding: clamp(5px, 0.55vw, 9px);
  background: var(--paper);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.45s var(--ease);
}
.print img { width: 100%; height: auto; }
.print:hover { z-index: 5; }
.print:hover .print-paper { transform: rotate(0deg) scale(1.03); }
.print-1 { --r: -7deg; left: 22%; top: 0; height: 100%; aspect-ratio: 937 / 1159; }
.print-2 { --r: 5deg; left: 39%; top: 6%; height: 96%; aspect-ratio: 1150 / 1534; z-index: 2; }
.print-3 { --r: -3deg; left: 61%; top: 26%; width: min(17vw, 17rem); z-index: 3; }
.print-1 .print-paper, .print-2 .print-paper { height: 100%; width: max-content; }
.print-1 img, .print-2 img { height: 100%; width: auto; }
.prints-note {
  position: absolute; z-index: 1;
  left: var(--margin); bottom: var(--bottom);
  max-width: 30ch;
  color: var(--night);
  font-weight: 600;
}

/* ---------- 4. impianti: lastra quadrata e testo asciutto ---------- */
.systems {
  min-height: 88svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: var(--chapter-top) var(--margin) var(--chapter-bottom);
}
.plate {
  position: relative;
  width: min(100%, 76svh);
  aspect-ratio: 1;
  overflow: hidden;
}
.plate-oval {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  fill: none;
  stroke: var(--paper);
  stroke-width: 8px;
  vector-effect: non-scaling-stroke;
}
.plate-img {
  position: absolute;
  left: 9%; top: 7%;
  width: 82%; height: 86%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}
.plate-img.is-active { opacity: 1; transform: none; }
.systems-text {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 2.5rem;
  padding-block: 0.5rem;
}
.tabs { display: flex; gap: 1.5rem; margin-top: 1.25rem; }
.tab {
  min-height: 2.75rem; padding: 0;
  border: 0; background: none;
  color: var(--soft);
  font-size: var(--step-lead); font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 0.3em;
  transition: color 0.2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 4px; }
.panel-title { font-size: var(--step-lead); font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; }
.panel p { max-width: 34ch; }
.panel[hidden] { display: none; }
.systems-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- 5. su misura: righe a scala ---------- */
.steps {
  min-height: 90svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-content: center;
  padding: var(--chapter-top) var(--margin) var(--chapter-bottom);
}
.steps-list { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.step { grid-column: var(--from) / -1; }
@supports not (grid-template-columns: subgrid) {
  .steps-list { display: block; }
  .steps-list .step { padding-left: calc((var(--from) - 1) * 100% / 12); }
}
.step + .step, .steps-list .step { margin-top: clamp(2rem, 5.5svh, 3.5rem); }
.step-line {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}
.step-line-accent { color: var(--ink-2); }
.step-note { margin-top: 0.75rem; max-width: 36ch; color: var(--soft); }
.step-cta { margin-top: 1.75rem; }

/* ---------- 6. merch: due prodotti, due campi ---------- */
.merch { display: grid; grid-template-columns: 5fr 7fr; }
/* The name runs across the top, the words sit on the left, the object hangs in the "spot" on the right
   and the price closes the field. The canvas covers the whole field so the chain and the hook can rise
   behind the name; shop3d.js frames the object inside the spot. */
.product {
  position: relative;
  min-height: max(100svh, 46rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "name name" "info spot" "price price";
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: clamp(1.25rem, 3.5svh, 2rem);
  padding: calc(var(--header-h) + clamp(1rem, 4svh, 2.5rem)) clamp(1.25rem, 2.6vw, 2.5rem) clamp(1.25rem, 4svh, 2.25rem);
  overflow: hidden;
}
.product-tee { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
.product-keychain { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.product-stage { position: absolute; inset: 0; }
.product-spot { grid-area: spot; position: relative; min-height: 18rem; pointer-events: none; }
.product-spot .drag-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.product-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transform-origin: 50% 8%;
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.product-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  touch-action: pan-y;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.product-canvas:focus-visible { outline-offset: -6px; }
.product-stage.is-grabbing .product-canvas { cursor: grabbing; }
.product-stage.is-3d .product-canvas { opacity: 1; }
.product.is-3d .product-fallback { opacity: 0; pointer-events: none; }
.product-name, .product-info, .price-row { position: relative; z-index: 1; pointer-events: none; }
.product-info a, .product-info label, .product-info fieldset, .price-row button { pointer-events: auto; }
.product-name {
  grid-area: name;
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.product-info { grid-area: info; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.product-lead { max-width: 24ch; font-size: var(--step-lead); line-height: 1.3; }
.product-included { max-width: 36ch; }
.drag-hint { display: none; color: var(--soft); font-size: var(--step-small); font-weight: 600; }
.product.is-3d .drag-hint { display: block; }
.choice { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0; border: 0; min-width: 0; }
.choice legend { float: left; margin-right: 0.5rem; font-size: var(--step-small); font-weight: 700; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--tone); color: var(--ink);
  font-size: var(--step-small); font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip.is-checked { background: var(--ink); color: var(--bg); }
.chip:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch { width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--dot); }
.price-row { grid-area: price; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.price {
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 7. chi siamo ---------- */
.about { padding: var(--chapter-top) var(--margin) var(--chapter-bottom); }
.about-head, .about-tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.about-head .section-title { grid-column: 1 / -1; }
.about-lead { grid-column: 1 / span 7; margin-top: 1.5rem; font-size: var(--step-lead); font-weight: 500; line-height: 1.35; max-width: 46ch; }
.about-tiles { margin-top: clamp(3rem, 8svh, 4.5rem); align-items: start; }
.about-film {
  grid-column: 1 / span 8;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--regency);
}
.about-video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
  mix-blend-mode: screen;
}
.about-card {
  position: absolute; top: 0; right: 0;
  width: min(21rem, 62%);
  padding: 1.25rem;
  background: var(--paper); color: var(--night);
}
.about-side { grid-column: 9 / -1; }
.about-mark {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  padding: 1rem;
}
.mark { width: 70%; height: auto; fill: var(--paper); }
.mark-name { position: absolute; font-weight: 700; font-size: var(--step-body); color: var(--ink); }
.mark-name-d { left: 15%; top: 12%; }
.mark-name-m { right: 12%; top: 12%; }
.mark-caption { position: absolute; left: 1rem; bottom: 0.9rem; right: 1rem; font-size: var(--step-small); font-weight: 600; color: var(--soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; margin-top: 1.5rem; }
.facts dt { font-size: var(--step-small); font-weight: 600; }
.facts dd { font-weight: 700; }

/* ---------- 8. contatti: righe da manifesto ---------- */
.contact { padding: var(--header-h) 0 0; }
.contact-rows li:nth-child(odd) .contact-row { background: var(--tone); }
.contact-row {
  display: flex; align-items: flex-end; gap: 0.35em;
  min-height: clamp(5.25rem, 15svh, 9.5rem);
  padding: 0 var(--margin) 0.55em;
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
  transition: color 0.25s;
}
.contact-head { color: var(--ink-2); justify-content: space-between; align-items: center; padding-block: 0.3em; }
.contact-photo { flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; object-fit: cover; }
a.contact-row:hover { color: var(--ink-2); }
.contact-greet { justify-content: flex-start; align-items: center; padding-block: 0.4em; }
.round-btn {
  display: inline-grid; place-items: center;
  flex: none;
  width: 0.9em; height: 0.9em;
  border-radius: 50%;
  background: var(--paper); color: var(--night);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.round-btn svg { width: 52%; height: 52%; }
.round-btn:hover { transform: rotate(-30deg) scale(1.06); background: var(--lavender); }

/* ---------- 9. footer a tessere ---------- */
.site-footer { padding: 8px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(13.75rem, auto) 20rem;
  gap: 8px;
}
.tile {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  text-decoration: none;
}
.tile-statement { grid-column: 1 / span 4; }
.tile-nav { grid-column: 5 / span 3; }
.tile-next { grid-column: 8 / span 2; }
.tile-mail { grid-column: 10 / span 3; }
.tile-wordmark { grid-column: 1 / span 8; align-items: center; justify-content: center; }
.tile-wordmark svg { width: min(82%, 56rem); height: auto; fill: currentColor; }
.tile-invite { grid-column: 9 / span 4; transition: background-color 0.3s; }
.tile-invite:hover { background-color: var(--paper); }
.tile-lead { font-size: var(--step-lead); font-weight: 700; line-height: 1.25; }
.tile-text { font-weight: 600; color: var(--soft); }
.tile-legal { font-size: var(--step-small); color: var(--soft); max-width: 46ch; }
.tile-nav ul { display: grid; gap: 0.25rem; }
.tile-nav a { font-weight: 600; text-decoration: none; }
.tile-nav a:hover, .tile-mail a:hover { text-decoration: underline; }
.tile-mail a { text-decoration: none; overflow-wrap: anywhere; }
.tile-arrow { align-self: flex-end; width: clamp(3rem, 5vw, 4.5rem); height: auto; transition: transform 0.4s var(--ease); }
.tile-invite:hover .tile-arrow { transform: translateX(8px); }

/* ---------- the vinyl O (brand book, p. 23): the letter stays, a disc with its hole covers it ---------- */
.vo { position: relative; color: transparent; }
.vo::before, .vo::after {
  content: "";
  position: absolute; left: 50%;
  border-radius: 50%;
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
}
.vo::before { top: var(--vo-top, 0.26em); width: 0.72em; height: 0.72em; margin-left: -0.36em; background: var(--disc); }
.vo::after { top: calc(var(--vo-top, 0.26em) + 0.28em); width: 0.16em; height: 0.16em; margin-left: -0.08em; background: var(--bg); }
a:hover .vo::before { transform: scale(1.1); }
.reveal-ready [data-reveal] .vo::before, .reveal-ready [data-reveal] .vo::after,
.reveal-ready [data-reveal].vo::before { transition-delay: 0.35s; }
.reveal-ready [data-reveal]:not(.is-in) .vo::before,
.reveal-ready [data-reveal]:not(.is-in) .vo::after { transform: scale(0.6) rotate(-40deg); opacity: 0; }

/* ---------- the pages: a hero with the page's name ---------- */
.page-hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: var(--chapter-top) var(--margin) var(--chapter-bottom);
}
.page-title {
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.page-lead { margin-top: clamp(1.25rem, 3svh, 2rem); max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }

/* one item per poster line, its detail at the right */
.date-list, .shop-index { margin-top: auto; padding-top: clamp(2rem, 6svh, 4rem); display: grid; gap: clamp(0.5rem, 1.5svh, 1rem); }
.date-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--gutter);
  text-decoration: none;
}
.date-name {
  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.date-row:hover .date-name { color: var(--ink-2); }
.date-when { flex: none; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.date-when time { display: block; font-size: var(--step-lead); font-weight: 700; }
.shop-index .date-when { font-size: var(--step-lead); font-weight: 700; }

/* ---------- serate: Totem, the poster beside its facts ---------- */
.night-split, .altitude, .attitude, .oval-split, .shop-hero, .hertz, .teaser {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
  min-height: 92svh;
  padding: var(--chapter-top) var(--margin) var(--chapter-bottom);
}
.night-poster { grid-column: 1 / span 5; }
.night-poster img { width: auto; max-width: 100%; max-height: 76svh; }
.night-text { grid-column: 7 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.25rem, 3svh, 2rem); }
.night-lead { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.night-facts, .rig-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; width: 100%; max-width: 40rem; }
.night-facts dt, .rig-facts dt { font-size: var(--step-small); font-weight: 600; }
.night-facts dd, .rig-facts dd { margin: 0.15rem 0 0; font-weight: 700; }
.night-facts a, .rig-facts a { text-decoration: underline; text-decoration-thickness: 0.1em; }
.night-facts a:hover, .rig-facts a:hover { color: var(--ink-2); }

/* ---------- serate: Altitude Calling, the climb and the painted boards ---------- */
.altitude-text { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.25rem, 3svh, 2rem); }
.climb { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; align-items: end; }
.climb-mountain { grid-row: 1 / span 2; width: clamp(5.5rem, 9vw, 8.5rem); height: auto; fill: var(--regency); }
.climb-figure { font-weight: 700; }
.climb-big { display: block; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.035em; }
.climb-note { max-width: 30ch; margin-top: 0.5rem; }
.altitude-prints { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
.tall-print img { width: 100%; height: auto; padding: clamp(5px, 0.55vw, 9px); background: var(--paper); }
.tall-print figcaption { margin-top: 0.6rem; font-size: var(--step-small); font-weight: 600; }
.tall-print-2 { margin-top: clamp(3rem, 12svh, 8rem); }

.attitude { align-items: start; row-gap: clamp(2rem, 6svh, 3.5rem); }
.attitude-head { grid-column: 1 / span 8; }
.attitude-lead { margin-top: 1.25rem; max-width: 36ch; font-size: var(--step-lead); line-height: 1.35; }
.rules { grid-column: 1 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4svh, 2.75rem) clamp(1.5rem, 3vw, 3rem); }
.rule-title { font-size: var(--step-lead); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 0.5rem; }
.rules p { max-width: 34ch; }
.attitude-print { grid-column: 9 / -1; grid-row: 1 / span 2; align-self: center; }
.attitude-print img { width: 100%; height: auto; transform: rotate(3deg); }

/* ---------- the oval as a frame for a photograph (brand book, p. 11) ---------- */
.oval-photo { position: relative; aspect-ratio: 4 / 3; background: var(--berry); }
.oval-frame {
  position: absolute; left: 6%; right: 6%; top: 17%; bottom: 17%;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(-10deg);
}
.oval-frame img {
  position: absolute; left: -8%; top: -24%;
  width: 116%; height: 148%;
  max-width: none;
  object-fit: cover;
  transform: rotate(10deg) scale(var(--zoom, 1));
  transition: transform 0.8s var(--ease);
}
.oval-photo:hover .oval-frame img { --zoom: 1.06; }
.oval-split { align-items: start; row-gap: var(--gutter); }
.oval-text { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.oval-photo { grid-column: 6 / -1; grid-row: 1 / span 2; }
.oval-flyer { grid-column: 1 / span 3; align-self: end; }
.oval-flyer img { width: 100%; height: auto; padding: clamp(5px, 0.55vw, 9px); background: var(--paper); }

/* ---------- impianti: each rig by name ---------- */
.rig-names { margin-top: auto; padding-top: clamp(1.5rem, 4svh, 3rem); display: grid; }
.rig-name {
  display: flex; align-items: center; justify-content: space-between; gap: var(--gutter);
  font-size: clamp(4rem, 13vw, 13rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s;
}
.rig-name:hover { color: var(--ink-2); }
.rig-name img { flex: none; height: 0.95em; width: auto; transition: transform 0.5s var(--ease); }
.rig-name:hover img { transform: rotate(-6deg) scale(1.06); }
.rig {
  min-height: 92svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: var(--chapter-top) var(--margin) var(--chapter-bottom);
}
.rig-flip .plate { order: 2; justify-self: end; }
.rig-text { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.25rem, 3svh, 2rem); }
.rig-title {
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.rig-lead { max-width: 32ch; font-size: var(--step-lead); line-height: 1.3; }

/* ---------- shop: the stickers, a pile that grows with the number ---------- */
.stickers-wrap { display: block; }
.product-stickers { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: max(100svh, 50rem); }
.product-stickers .product-fallback { padding: 12%; }
.art-choice { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; max-width: 34rem; }
.art-choice legend { width: 100%; margin-bottom: 0.5rem; font-size: var(--step-small); font-weight: 700; }
.art-chip {
  position: relative;
  display: grid; justify-items: center; gap: 0.3rem;
  width: 5.5rem;
  padding: 0.5rem 0.4rem 0.45rem;
  background: var(--tone);
  font-size: var(--step-small); font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.art-chip:hover { transform: translateY(-2px) rotate(-2deg); }
.art-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.art-chip img { width: 100%; height: auto; background: #fff; }
.art-chip.is-checked { background: var(--ink); color: var(--bg); }
.art-chip:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.art-mix { position: relative; display: block; width: 100%; aspect-ratio: 85 / 55; }
.art-mix img { position: absolute; width: 82%; }
.art-mix img:first-child { left: 0; top: 0; transform: rotate(-6deg); }
.art-mix img:last-child { right: 0; bottom: 0; transform: rotate(5deg); }
.price-each { display: block; margin-top: 0.6rem; font-size: var(--step-body); font-weight: 600; letter-spacing: 0; }

/* ---------- shop: the hero, the prints at their real scale ---------- */
.shop-hero-text { grid-column: 1 / span 6; align-self: stretch; display: flex; flex-direction: column; }
.shop-photo { grid-column: 7 / -1; background: var(--regency); }
.btn-small { min-height: 2.75rem; padding: 0.55em 1.15em; font-size: var(--step-small); }

.prints-shop {
  min-height: 100svh;
  display: flex; flex-direction: column;
  gap: clamp(2.5rem, 7svh, 4.5rem);
  padding: var(--chapter-top) var(--margin) var(--chapter-bottom);
}
.prints-shop-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); row-gap: 1.25rem;
  align-items: end;
}
.prints-shop-head .section-title { grid-column: 1 / span 7; }
.prints-shop-lead { grid-column: 1 / span 6; max-width: 40ch; }
.format { grid-column: 8 / -1; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.format-option {
  position: relative;
  display: grid; gap: 0.2rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--tone);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.format-option:hover { transform: translateY(-2px); }
.format-option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.format-option.is-checked { background: var(--paper); color: var(--night); }
.format-option:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.format-name { font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.format-size { font-weight: 600; }
.format-price { font-size: var(--step-lead); font-weight: 700; }
.poster-wall {
  --sheet: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter); row-gap: 2.5rem;
  align-items: end;
}
.poster-wall[data-format="A4"] { --sheet: 70.7%; }
.poster { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
/* the sheet keeps the ratio of an A sheet, with the poster centred on it and paper all round */
.poster-sheet {
  position: relative;
  width: var(--sheet);
  aspect-ratio: 1 / 1.4142;
  margin-bottom: 0.5rem;
  background: var(--paper);
  transition: width 0.7s var(--ease);
}
.poster-sheet img { position: absolute; left: 6%; top: 5%; width: 88%; height: 90%; object-fit: contain; }
.poster-name { font-size: var(--step-lead); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; }
.poster-meta { font-size: var(--step-small); font-weight: 600; }

/* ---------- home: a taste of the prints ---------- */
.teaser-text { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.25rem, 3svh, 1.75rem); }
.teaser-lead { max-width: 30ch; font-size: var(--step-lead); line-height: 1.35; }
.teaser-price { font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.teaser-wall { grid-column: 6 / -1; position: relative; height: min(72svh, 46rem); }
.teaser-print { position: absolute; width: 40%; height: auto; padding: clamp(5px, 0.55vw, 9px); background: var(--paper); transform: rotate(var(--r, 0deg)); }
.teaser-print-1 { --r: -6deg; left: 2%; top: 14%; }
.teaser-print-2 { --r: 3deg; left: 30%; top: 0; z-index: 2; }
.teaser-print-3 { --r: 7deg; right: 2%; top: 22%; z-index: 3; }

/* ---------- chi siamo ---------- */
.who-title { font-size: clamp(2.5rem, 9.6vw, 9.75rem); text-transform: none; }
.who-foot {
  margin-top: auto; padding-top: clamp(2rem, 5svh, 3rem);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end;
}
.who-foot .page-lead { grid-column: 1 / span 5; }
.who-mark { grid-column: 7 / -1; position: relative; padding-top: 2.5rem; }
.who-mark .mark { width: 100%; fill: var(--paper); }
.who-mark .mark-name-d { left: 22%; top: 0; }
.who-mark .mark-name-m { right: 22%; top: 0; }

.symbol-parts { min-height: 92svh; padding: var(--chapter-top) var(--margin) var(--chapter-bottom); }
.parts { margin-top: clamp(2.5rem, 7svh, 4rem); display: grid; gap: clamp(2rem, 5svh, 3rem); }
.part {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
}
.part-shape { grid-column: 1 / span 3; grid-row: 1 / span 2; width: 62%; height: auto; fill: var(--regency); transition: transform 0.6s var(--ease); }
.part:nth-child(2) .part-shape { margin-left: 18%; }
.part:hover .part-shape { transform: rotate(-8deg); }
.part-ring { width: 86%; fill: none; stroke: var(--regency); stroke-width: 16px; }
.part-title { grid-column: 5 / -1; align-self: end; font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.part p { grid-column: 5 / span 6; align-self: start; margin-top: 0.75rem; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }

.specimen { min-height: 92svh; padding: var(--chapter-top) var(--margin) var(--chapter-bottom); display: flex; flex-direction: column; }
.specimen-alphabet {
  margin: clamp(2rem, 6svh, 3.5rem) 0;
  font-size: clamp(2.6rem, 11vw, 11rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.specimen-alphabet > span { display: block; }
.specimen-note { margin-top: auto; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }

.hertz-text { grid-column: 1 / span 5; }
.hertz-lead { margin-top: 1.5rem; max-width: 32ch; font-size: var(--step-lead); line-height: 1.35; }
.hertz-film { grid-column: 6 / -1; aspect-ratio: 16 / 10; overflow: hidden; background: var(--berry); }
a.poster-item { text-decoration: none; }
a.poster-item:hover { color: var(--ink-2); }
.panel-more { display: inline-block; margin-top: 1.25rem; }

/* ---------- borsa ---------- */
.bag {
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  margin: 1rem 1rem auto auto;
  padding: 1.5rem;
  border: 0;
  background: var(--paper); color: var(--night);
}
.bag::backdrop { background: rgb(8 6 12 / 0.55); }
.bag-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.bag-title { font-size: var(--step-lead); font-weight: 700; }
.bag-close { min-height: 2.75rem; border: 0; background: none; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }
.bag-list { display: grid; gap: 0.5rem; }
.bag-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 1rem;
  padding: 0.9rem 1rem;
  background: var(--tone);
}
.bag-item-name { font-weight: 700; }
.bag-item-meta { grid-column: 1; color: var(--soft); font-size: var(--step-small); font-weight: 600; }
.bag-item-price { grid-column: 2; grid-row: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.bag-qty { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 0.35rem; }
.bag-qty button {
  width: 2.25rem; height: 2.25rem;
  border: 0; border-radius: 50%;
  background: var(--paper);
  font-weight: 700; cursor: pointer;
}
.bag-qty output { min-width: 1.5ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.bag-total { display: flex; justify-content: space-between; margin-top: 1.25rem; font-size: var(--step-lead); }
.bag-note { margin-top: 0.75rem; color: var(--soft); font-size: var(--step-small); }
.bag-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* ---------- borsa: il pagamento online ---------- */
.checkout { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.checkout[hidden] { display: none; }
.checkout-title { font-size: var(--step-body); font-weight: 700; }
.field { display: grid; gap: 0.35rem; margin: 0; padding: 0; border: 0; min-width: 0; font-size: var(--step-small); font-weight: 700; }
.field-opt { font-weight: 600; }
.field input {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--tone);
  border-radius: 0;
  background: #fff;
  color: var(--night);
  font-size: 1rem; font-weight: 500;
}
.field input:focus { outline: none; border-color: var(--night); }
.field input:user-invalid { border-color: #b3261e; }
.pickup legend { margin-bottom: 0.35rem; }
.radio, .check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step-small); font-weight: 600; line-height: 1.4; cursor: pointer; }
.radio + .radio { margin-top: 0.4rem; }
.radio input, .check input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.1rem 0 0; accent-color: var(--night); }
.check a { text-decoration: underline; }
.checkout-pay { justify-self: stretch; }
.checkout-pay.is-busy { opacity: 0.6; cursor: progress; }
.checkout-error { padding: 0.7rem 0.9rem; background: #f6d7d5; color: #5b1410; font-size: var(--step-small); font-weight: 600; }
.checkout-error[hidden] { display: none; }
.bag-actions .btn-soft { background: var(--tone); color: var(--night); }

/* ---------- condizioni e privacy: testo da leggere ---------- */
.legal { padding: var(--chapter-top) var(--margin) var(--chapter-bottom); }
.legal-title { font-size: clamp(2.75rem, 7vw, 7rem); }
.legal-lead { margin-top: 1.25rem; max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; }
.legal-body { max-width: 68ch; margin-top: clamp(2.5rem, 6svh, 4rem); }
.legal-body h2 { margin: 2.25rem 0 0.6rem; font-size: var(--step-lead); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.legal-body p + p { margin-top: 0.8rem; }
.legal-body a { text-decoration: underline; }
.legal-form { margin: 1rem 0 0; padding: 1.25rem 1.5rem; background: var(--tone); }
.legal-form p + p { margin-top: 0.6rem; }
.legal-date { margin-top: 2.5rem; font-size: var(--step-small); font-weight: 600; }
.tile-legal a { text-decoration: underline; }

/* ---------- l'esito dell'ordine ---------- */
.order-facts { margin-top: clamp(2rem, 5svh, 3rem); }
.order-facts[hidden] { display: none; }
.order-lines { margin-top: 1.5rem; display: grid; gap: 0.35rem; font-weight: 600; }
.order-status .event-actions { margin-top: auto; padding-top: 2.5rem; }

/* ---------- motion: entrances ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.7s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready .print-paper[data-reveal] { transform: translate3d(0, 40px, 0) rotate(var(--r, 0deg)); }
.reveal-ready .print-paper[data-reveal].is-in { transform: rotate(var(--r, 0deg)); }
.reveal-ready .teaser-print[data-reveal] { transform: translate3d(0, 40px, 0) rotate(var(--r, 0deg)); }
.reveal-ready .teaser-print[data-reveal].is-in { transform: rotate(var(--r, 0deg)); }
.reveal-ready .print:hover .print-paper[data-reveal].is-in { transform: rotate(0deg) scale(1.03); transition-delay: 0s; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .menu-note { display: none; }
  .menu-link { grid-template-columns: 0.86em minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero-logo-full { display: none; }
  .hero-logo-split { display: grid; row-gap: 0.06em; }
  .hero-logo-dmh { width: calc(100% * 422.5 / 479.25); }
  .hero-word { margin-top: 0.12em; }
  .hero-lead { justify-self: start; width: auto; max-width: 30ch; }

  .prints { display: flex; flex-direction: column; gap: 1rem; min-height: 0; padding: var(--top) var(--margin) var(--bottom); }
  .prints-title { display: contents; }
  .prints-word { position: static; }
  .prints-word-1 { order: 1; align-self: flex-start; }
  .prints-stack { order: 2; position: relative; inset: auto; height: min(96vw, 62svh); }
  .prints-word-2 { order: 3; align-self: flex-end; }
  .prints-note { order: 4; position: static; max-width: 34ch; }
  .print { transform: none; }
  .print-1 { left: 3%; top: 0; height: 62%; }
  .print-2 { left: auto; right: 3%; top: 9%; height: 62%; }
  .print-3 { left: 36%; top: auto; bottom: 0; width: 28%; }

  .systems { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .plate { width: 100%; max-width: 34rem; }
  .systems-text { gap: 2rem; }
  .merch { grid-template-columns: 1fr; }
  .product, .product-tee {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "info" "spot" "price";
  }
  .product-spot { min-height: min(64svh, 36rem); }
  .product-spot .drag-hint { top: 0; bottom: auto; }
  .product-stage { position: relative; inset: auto; grid-area: spot; }
  .header-bg-l { width: 100%; }
  .header-bg-r { display: none; }
  .about-lead { grid-column: 1 / -1; }
  .about-film, .about-side { grid-column: 1 / -1; }
  .about-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
  .facts { margin-top: 0; }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none; }
  .tile { min-height: 11rem; }
  .tile-wordmark { grid-column: 1 / -1; min-height: 12rem; order: -2; }
  .tile-invite { grid-column: 1 / -1; order: -1; }
  .tile-statement { grid-column: 1 / -1; }
  .tile-nav, .tile-next, .tile-mail { grid-column: span 3; }
  .tile-next { grid-column: span 3; }

  .symbol-stage { grid-column: 1 / -1; min-height: clamp(13rem, 30svh, 20rem); }
  .hero-foot { row-gap: 1.5rem; }
  .hero-lead { grid-column: 1 / -1; }

  .night-split, .altitude, .attitude, .oval-split, .shop-hero, .hertz, .teaser { row-gap: 2.5rem; }
  .night-poster, .night-text, .altitude-text, .altitude-prints, .attitude-head, .rules, .attitude-print,
  .oval-text, .oval-photo, .oval-flyer, .shop-hero-text, .shop-photo, .hertz-text, .hertz-film,
  .teaser-text, .teaser-wall { grid-column: 1 / -1; grid-row: auto; }
  .night-poster img { max-height: 70svh; }
  .attitude-print { max-width: 26rem; }
  .oval-flyer { max-width: 16rem; }
  .teaser-wall { height: min(92vw, 60svh); }
  .rig { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .rig .plate { width: 100%; max-width: 34rem; }
  .rig-flip .plate { order: 0; justify-self: start; }
  .prints-shop-head .section-title, .prints-shop-lead, .format { grid-column: 1 / -1; grid-row: auto; }
  .poster-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-foot .page-lead, .who-mark { grid-column: 1 / -1; }
  .who-mark { max-width: 34rem; margin-top: 2rem; }
  .part-shape { grid-column: 1 / span 3; width: 80%; }
  .part-title, .part p { grid-column: 5 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 599px) {
  :root { --header-h: 3.75rem; }
  .brand-logo { width: 6.25rem; }
  .btn-header { padding: 0.55em 0.95em; font-size: var(--step-small); }
  .header-bag { display: none; }
  .menu-toggle-disc { display: none; }
  .menu-links li { font-size: 12.4vw; }

  .hero { padding-top: calc(var(--header-h) + 9svh); }
  .hero-lead { width: auto; max-width: none; }

  .poster-row { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .poster-row + .poster-row, .poster-list .poster-row { margin-top: 1.1rem; }
  .poster-item { font-size: 12vw; line-height: 0.92; }
  .poster-detail { max-width: none; text-align: left; }

  .prints-stack { height: min(112vw, 60svh); }
  .print-1 { left: 0; top: 0; height: 74%; }
  .print-2 { right: 0; top: 22%; height: 74%; }
  .print-3 { display: none; }

  .steps { grid-template-columns: 1fr; }
  .step { grid-column: 1; padding-left: calc((var(--from) - 1) * 6vw); }
  .step-line { font-size: var(--step-head); }

  .product { padding-inline: var(--margin); }
  .price { font-size: var(--step-poster); }
  .price-row { flex-direction: column; align-items: stretch; gap: 1rem; }

  .about-side { grid-template-columns: 1fr; }
  .about-card { position: static; width: auto; }
  .about-film { aspect-ratio: auto; }
  .about-video { aspect-ratio: 4 / 3; height: auto; }

  .contact-row { font-size: var(--step-head); min-height: 5.25rem; }
  .contact-photo { width: 1.5em; height: 1.5em; }
  .contact-greet { background: var(--lavender); color: var(--night); justify-content: space-between; }
  .contact-greet .round-btn { width: 3.5rem; height: 3.5rem; background: var(--night); color: var(--paper); }

  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tile-nav, .tile-mail { grid-column: span 1; }
  .tile-next, .tile-statement { grid-column: 1 / -1; }
  .tile-next { order: 1; }
  .specimen, .symbol-parts { min-height: 0; }
  .specimen-note { margin-top: 0; }
  .tile-statement { order: 2; }

  .symbol-stage { min-height: 32svh; }
  .date-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .date-when { text-align: left; }
  .date-when time { display: inline; margin-right: 0.4em; }
  .date-name { font-size: 12vw; }
  .rig-name { font-size: 17vw; }
  .rig-name img { height: 0.85em; }
  .night-facts, .rig-facts { grid-template-columns: 1fr; }
  .altitude-prints { grid-template-columns: 1fr 1fr; }
  .tall-print-2 { margin-top: 3rem; }
  .rules { grid-template-columns: 1fr; }
  .format-name { font-size: var(--step-head); }
  .poster-wall { column-gap: 0.75rem; }
  .poster-name { font-size: var(--step-body); }
  .teaser-print { width: 46%; }
  .who-mark .mark-name-d { left: 12%; }
  .who-mark .mark-name-m { right: 12%; }
  .part { row-gap: 1rem; }
  .part-shape { grid-column: 1 / span 4; grid-row: auto; width: 100%; }
  .part:nth-child(2) .part-shape { margin-left: 0; }
  .part-title { grid-column: 6 / -1; grid-row: 1; align-self: center; }
  .part p { grid-column: 1 / -1; margin-top: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-vinyl svg { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .reveal-ready .print-paper[data-reveal] { transform: rotate(var(--r, 0deg)); }
  .print { transform: none; }
  .reveal-ready .teaser-print[data-reveal] { transform: rotate(var(--r, 0deg)); }
  .reveal-ready [data-reveal]:not(.is-in) .vo::before, .reveal-ready [data-reveal]:not(.is-in) .vo::after { transform: none; }
}
