/* Bledo – bledofoto.it
   Direzione: "pinned poster". Anton per i titoli, Work Sans per il testo.
   Il colore forte lo portano le foto e i loro fondali; l'interfaccia resta su tre pietre. */

/* Roboto Flex: un solo file variabile con gli assi di larghezza (wdth) e di altezza delle maiuscole (YTUC).
   I titoli cambiano altezza e larghezza mentre si scorre (vedi site.js, "flex"). */
@font-face { font-family: 'Roboto Flex'; src: url('/static/fonts/roboto-flex.woff2') format('woff2'); font-weight: 100 1000; font-stretch: 25% 151%; font-display: swap; }

:root {
  --bg: #eeecea;
  --surface: #e3e0dc;
  --stone: #d3cdc5;
  --ink: #1f1e1d;
  --muted: #57534f;
  --accent: #f2c230;      /* giallo Bledo: solo sui pulsanti d'azione */
  --accent-ink: #1f1e1d;
  --inverse: #1f1e1d;
  --inverse-ink: #f3f1ee;

  --display: 'Roboto Flex', 'Arial Narrow', sans-serif;
  --text: 'Roboto Flex', system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.125rem, 1.1rem + 3.4vw, 4.25rem);
  --step-giant: clamp(3.5rem, 1rem + 7.8vw, 9.5rem);

  --m: clamp(16px, 2vw, 28px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 12vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--text); overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 16px; }
.skip:focus { top: var(--m); }

.h2 { font: 400 var(--step-head)/0.9 var(--display); text-transform: uppercase; letter-spacing: -0.01em; text-wrap: balance; }

/* ------------------------------------------------ pulsanti e link */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 0; text-decoration: none;
  font-weight: 600; font-size: var(--step-small); cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:hover { background: #ffd23f; }
.button:active { transform: translateY(1px) scale(0.98); }
.button--big { min-height: 56px; padding: 14px 28px; font-size: var(--step-body); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.link::after { content: ' →'; display: inline-block; transition: transform var(--t-hover) var(--ease-out); }
.link:hover::after { transform: translateX(4px); }

/* ------------------------------------------------ barra di navigazione */
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding: var(--m); position: relative; z-index: 20; }
.logo { display: block; width: 132px; aspect-ratio: 900 / 238; background: currentColor;
  -webkit-mask: url('/static/img/logo-mask.png') center / contain no-repeat; mask: url('/static/img/logo-mask.png') center / contain no-repeat; }
.bar__logo { color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: var(--step-small); font-weight: 600; }
.nav a:not(.button) { text-decoration: none; padding-block: 10px; position: relative; }
.nav a:not(.button)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease-out); }
.nav a:not(.button):hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.menu-toggle { display: none; min-height: 44px; padding: 8px 4px; background: none; border: 0; font-weight: 600; font-size: var(--step-body); cursor: pointer; }
.bar--home { position: absolute; top: 0; right: 0; left: auto; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

.menu { margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 0; background: var(--ink); color: var(--inverse-ink); }
.menu::backdrop { background: transparent; }
.menu__in { min-height: 100%; display: flex; flex-direction: column; gap: 32px; padding: var(--m); }
.menu__close { align-self: flex-end; min-height: 44px; background: none; border: 0; color: inherit; font-weight: 600; font-size: var(--step-body); cursor: pointer; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font: 400 clamp(3rem, 14vw, 5rem)/1 var(--display); text-transform: uppercase; text-decoration: none; }
.menu .button { align-self: flex-start; }
.menu__foot { margin-top: auto; font-size: var(--step-small); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__in { animation: menu-in var(--t-ui) var(--ease-out); }
  .menu[open] nav a { animation: rise 500ms var(--ease-out) both; }
  .menu[open] nav a:nth-child(2) { animation-delay: 40ms; } .menu[open] nav a:nth-child(3) { animation-delay: 80ms; }
  .menu[open] nav a:nth-child(4) { animation-delay: 120ms; } .menu[open] nav a:nth-child(5) { animation-delay: 160ms; }
}
@keyframes menu-in { from { opacity: 0; } }

/* ------------------------------------------------ HOME: nome diviso agli angoli */
.hero { position: relative; display: grid; grid-template-columns: 100%; }
.hero > .hero__stage { grid-row: 1; }
.hero > .hero__panel { grid-row: 2; }
.hero > .hero__panel--alt { grid-row: 3; }
.hero > * { grid-column: 1; min-width: 0; }
.hero__pin {
  position: sticky; top: 0; height: 100svh; grid-row: 1 / 4; align-self: start; z-index: 10; pointer-events: none;
  font: 400 var(--step-giant)/0.82 var(--display); text-transform: uppercase; letter-spacing: -0.01em; color: var(--ink);
}
.hero__a, .hero__b { position: absolute; }
.hero__a { top: var(--m); left: var(--m); }
.hero__b { bottom: var(--m); right: var(--m); }

.hero__stage { min-height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); }
.hero__copy { grid-column: 2 / 9; align-self: center; padding: 22vh 0 18vh; padding-left: calc(var(--m) * 2); max-width: 46rem; }
.hero__title { font: 400 var(--step-head)/0.9 var(--display); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 0.35em; }
.hero__lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.hero__photo { grid-column: 9 / 13; align-self: start; height: calc(100svh - var(--step-giant) * 0.82 - var(--m) * 3); background: var(--field); position: relative; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__panel { min-height: 100svh; background: var(--field); color: var(--field-ink); display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; padding: 18vh var(--m); }
.hero__claim { grid-column: 2 / 6; grid-row: 1; font-size: var(--step-lead); line-height: 1.35; max-width: 22ch; margin: 0; font-weight: 600; }
.hero__claim a { color: inherit; }
.hero__frame { grid-column: 6 / 11; grid-row: 1; justify-self: center; width: min(32vw, 44svh); }
.hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__frame figcaption { display: inline-block; margin-top: 12px; padding: 4px 10px; font-size: var(--step-small); background: var(--bg); color: var(--ink); }
.hero__panel--alt .hero__claim { grid-column: 9 / 13; padding-left: 40px; }
.hero__panel--alt .hero__frame { grid-column: 5 / 9; }

@media (max-width: 800px) {
  .hero__pin { position: relative; height: auto; grid-row: 1; display: flex; justify-content: flex-start; align-items: flex-end; padding: calc(var(--m) * 0.6) var(--m) 12px; font-size: 16vw; }
  .hero__a, .hero__b { position: static; }
  .hero > .hero__stage { grid-row: 2; } .hero > .hero__panel { grid-row: 3; } .hero > .hero__panel--alt { grid-row: 4; }
  .bar--home { position: absolute; top: 0; right: 0; padding-top: calc(var(--m) * 0.6 + 2vw); }
  .hero__photo { height: 56svh; align-self: auto; }
  .hero__stage { display: flex; flex-direction: column; min-height: auto; }
  .hero__photo { order: -1; }
  .hero__copy { padding: 28px var(--m) 56px; }
  .hero__panel { display: flex; flex-direction: column; gap: 20px; padding: 56px var(--m); min-height: 0; justify-content: center; }
  .hero__frame { width: 100%; }
  .hero__frame img { aspect-ratio: auto; height: 52svh; }
  .hero__claim { max-width: none; }
  .hero__panel--alt { flex-direction: column-reverse; }
}

/* ------------------------------------------------ LAVORI: pannelli interi, riga a metà altezza */
.works { position: relative; }
.work { position: relative; height: 100svh; overflow: hidden; background: var(--ink); }
.work__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.work__row {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); min-height: 120px;
  display: grid; grid-template-columns: 10% 1fr auto; align-items: center; gap: var(--gap); padding: 0 var(--m);
  background: rgba(20, 19, 18, 0.62); color: #f3f1ee; text-decoration: none;
}
.work__year, .work__fact { font-size: var(--step-small); }
.work__title { font: 400 var(--step-head)/0.9 var(--display); text-transform: uppercase; letter-spacing: 0; }
.work__row:hover .work__title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 800px) {
  .work { height: 82svh; }
  .work__row { grid-template-columns: 1fr auto; padding: 14px var(--m); }
  .work__title { grid-column: 1 / -1; grid-row: 1; }
  .work__year { grid-row: 2; }
  .work__fact { grid-row: 2; text-align: right; }
}

/* ------------------------------------------------ ARCHIVIO (galleria con filtro) */
.archive { padding: var(--section) var(--m); }
.archive--page { padding-top: 48px; }
.archive__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: 40px; }
.archive__text { grid-column: 1 / 6; align-self: end; }
.archive__text p { max-width: 36ch; margin-top: 20px; }
.archive__reel { grid-column: 7 / 13; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.archive__more { margin-top: 32px; }
.gal__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--bg); }
.chip { min-height: 44px; padding: 8px 16px; border: 0; background: var(--surface); font-weight: 600; font-size: var(--step-small); cursor: pointer; border-radius: 999px; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip span { font-weight: 400; margin-left: 4px; }
.chip:hover { background: var(--stone); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.gal__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; gap: clamp(8px, 1.4vw, 20px); align-items: center; }
.gal--big .gal__grid { grid-template-columns: repeat(4, 1fr); }
.gal__item--wide { grid-column: span 2; }
.gal__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal__btn img { width: 100%; height: auto; transition: opacity 500ms var(--ease-out), filter 500ms var(--ease-out), transform 400ms var(--ease-out); }
.gal__btn:hover img { transform: scale(1.02); }
.gal__item.is-off img { opacity: 0.22; filter: grayscale(1); }
.gal__item.is-off .gal__btn { cursor: default; }
.gal__label { margin: 40px 0 0; text-align: center; font: 400 var(--step-head)/0.9 var(--display); text-transform: uppercase; }
.gal__label sup { font: 600 var(--step-small)/1 var(--text); margin-left: 8px; vertical-align: top; position: relative; top: 0.4em; }
@media (max-width: 900px) { .gal__grid, .gal--big .gal__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .archive__head { display: block; } }
@media (max-width: 560px) {
  .gal__grid, .gal--big .gal__grid { grid-template-columns: repeat(2, 1fr); }
  .gal__item--wide { grid-column: span 2; }
  .archive__reel { margin-top: 24px; }
}

.lightbox { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: rgba(20, 19, 18, 0.96); color: #f3f1ee; }
.lightbox::backdrop { background: transparent; }
.lightbox__in { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: var(--m); gap: 12px; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); }
.lightbox button { min-height: 44px; min-width: 44px; background: none; border: 0; color: inherit; font-weight: 600; cursor: pointer; font-size: var(--step-body); }
.lightbox__fig { display: grid; place-items: center; min-height: 0; }
.lightbox__fig img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__nav { display: flex; justify-content: space-between; }

/* ------------------------------------------------ COME FUNZIONA: un verbo alla volta */
.verbs { position: relative; }
.verb { position: relative; height: 100svh; overflow: clip; }
.verb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verb__word { position: absolute; inset: 0; pointer-events: none; }
.verb__word { display: grid; place-items: center; }
.verb__word span { display: block; text-align: center; font: 400 var(--step-giant)/0.85 var(--display); text-transform: uppercase; color: var(--word-ink, #f3f1ee); }
.verb::after { content: ''; position: absolute; inset: 0; background: var(--scrim, rgba(20, 19, 18, 0.38)); pointer-events: none; }
.verb__word, .verb__text { z-index: 1; }
.verb__text {
  position: absolute; left: var(--m); bottom: var(--m); max-width: 40ch; margin: 0; padding: 18px 20px;
  background: rgba(20, 19, 18, 0.72); color: #f3f1ee; font-size: var(--step-body);
}
.verbs__more { padding: 32px var(--m) 0; }
@media (max-width: 800px) {
  .verb__word span { font-size: 22vw; }
  .verb__text { left: 0; right: 0; bottom: 0; max-width: none; padding: 16px var(--m) 20px; font-size: 1rem; }
}

/* ------------------------------------------------ PREZZO: il biglietto */
.price { padding: var(--section) var(--m); background: var(--surface); }
.price--page { background: var(--bg); padding-top: 24px; }
.price__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: 48px; }
.price__head .h2 { grid-column: 1 / 8; }
.price__head p { grid-column: 9 / 13; align-self: end; max-width: 36ch; }
.price__mobile { max-width: 60ch; margin: 40px auto 0; text-align: center; }

.ticket {
  --notch: 28px; --tbg: var(--surface);
  position: relative; display: grid; grid-template-columns: 7fr 3fr; grid-template-rows: auto auto; width: min(100%, 1100px); margin-inline: auto;
  background: var(--accent); color: var(--accent-ink);
}
.price--page .ticket { --tbg: var(--bg); }
.ticket::before, .ticket::after { content: ''; position: absolute; left: 70%; width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--tbg); transform: translateX(-50%); }
.ticket::before { top: calc(var(--notch) / -2); }
.ticket::after { bottom: calc(var(--notch) / -2); }
.ticket__main { padding: 40px; display: flex; flex-direction: column; gap: 28px; position: relative;
  background-image: radial-gradient(circle, var(--tbg) 3px, transparent 3.5px); /* taste-skill-ignore: perforazione del biglietto */ background-size: 6px 14px; background-repeat: repeat-y; background-position: right top; }
.ticket__title { font: 400 var(--step-head)/0.9 var(--display); text-transform: uppercase; }
.ticket__terms .ticket__note { grid-column: 1 / -1; margin-top: 10px; line-height: 1.45; max-width: 60ch; }
.ticket__terms .ticket__note::before { display: none; }
.checks sup { font-size: 0.8em; margin-left: 1px; }
.ticket__tag { margin: -14px 0 0; font-size: var(--step-body); color: var(--muted); max-width: 36ch; }
.ticket__controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; align-items: end; }
.ticket label, .ticket legend { display: block; font-size: var(--step-small); font-weight: 600; margin-bottom: 6px; padding: 0; }
.stepper__box { display: flex; align-items: stretch; height: 52px; background: rgba(255, 255, 255, 0.55); }
.stepper__box button { width: 48px; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.stepper__box button:hover { background: rgba(255, 255, 255, 0.6); }
.stepper__box button:active { transform: scale(0.92); }
.stepper__box input { width: 100%; min-width: 0; border: 0; background: transparent; text-align: center; font: 400 var(--step-lead)/1 var(--display); -moz-appearance: textfield; }
.stepper__box input::-webkit-outer-spin-button, .stepper__box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ticket select { width: 100%; height: 52px; border: 0; padding: 0 12px; background: rgba(255, 255, 255, 0.55); border-radius: 0; }
.ticket .checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; border: 0; margin: 0; padding: 0; }
.ticket .checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: var(--step-body); min-height: 44px; margin: 0; }
.ticket .checks legend { width: 100%; }
.ticket input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ink); }
.ticket__main { grid-column: 1; grid-row: 1; padding-bottom: 20px !important; }
.ticket__stub { grid-column: 2; grid-row: 1 / 3; }
.ticket__terms { grid-column: 1; grid-row: 2; padding: 0 40px 40px; background-image: radial-gradient(circle, var(--tbg) 3px, transparent 3.5px); /* taste-skill-ignore: perforazione */ background-size: 6px 14px; background-repeat: repeat-y; background-position: right top;
  list-style: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: var(--step-small); }
.ticket__terms li::before { content: ''; display: inline-block; width: 8px; height: 8px; background: currentColor; margin-right: 10px; vertical-align: 0.15em; }
.ticket__stub { padding: 40px 24px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; text-align: center; gap: 8px; }
.ticket__label { margin: 0; font-weight: 600; font-size: var(--step-small); }
.ticket__price { margin: 0; font: 400 var(--step-head)/0.95 var(--display); }
.ticket__price output { display: inline-block; }
.ticket__price output.is-bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 40% { transform: translateY(-6px); } }
.ticket__detail { margin: 0 0 16px; font-size: var(--step-small); }
.ticket__go { min-height: 56px; border: 0; background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; padding: 12px 16px; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.ticket__go:hover { background: #000; }
.ticket__go:active { transform: scale(0.98); }
@media (max-width: 900px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket__main { display: contents; }
  .ticket__main, .ticket__stub, .ticket__terms { grid-column: 1; grid-row: auto; }
  .ticket__title { order: 1; padding: 28px 20px 0; }
  .ticket__tag { order: 1; margin: 0; padding: 8px 20px 4px; }
  .ticket__stub { order: 2; }
  .ticket__controls { order: 3; padding: 0 20px 8px; }
  .ticket__terms { order: 4; }
  .ticket__terms { padding: 24px 20px 28px; background: none; }
  .ticket::before, .ticket::after { display: none; }
  .ticket__controls { grid-template-columns: 1fr 1fr; }
  .ticket .field--select { grid-column: 1 / -1; }
  .ticket__terms { grid-template-columns: 1fr; }
  .ticket__stub { padding: 20px 20px 28px; }
  .price__head { display: block; }
  .price__head p { margin-top: 16px; }
}

/* ------------------------------------------------ DIETRO IL SET: titolo fermo, foto che passano */
.behind { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--section) var(--m); align-items: start; }
.behind__pin { grid-column: 1 / 6; position: sticky; top: 10vh; }
.behind__title { font: 400 var(--step-giant)/0.85 var(--display); text-transform: uppercase; }
.behind__list { grid-column: 7 / 13; display: flex; flex-direction: column; gap: clamp(64px, 10vw, 140px); }
.behind__item { width: min(100%, 520px); }
.behind__item--r { align-self: flex-end; }
.behind__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.behind__item figcaption { margin-top: 14px; max-width: 40ch; font-size: var(--step-small); }
.behind__item strong { display: block; font-size: var(--step-body); }
.behind__item figcaption span { display: block; color: var(--muted); margin-bottom: 6px; }
.behind__end { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; margin: 28px 0 0; }
@media (max-width: 800px) {
  .behind { display: block; }
  .behind__pin { position: static; margin-bottom: 40px; }
  .behind__title { font-size: 17vw; }
  .behind__item { width: 86%; }
}

/* ------------------------------------------------ SERVIZI: foto ferma, lista attiva */
.svc { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--section) var(--m); align-items: start; }
.svc__media { grid-column: 1 / 6; position: sticky; top: 12vh; aspect-ratio: 4 / 5; }
.svc__pic { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms ease; }
.svc__pic.is-on { opacity: 1; }
.svc__pic img { width: 100%; height: 100%; object-fit: cover; }
.svc__list { grid-column: 7 / 13; }
.svc__list .h2 { margin-bottom: 48px; }
.svc__list ul { list-style: none; margin: 0; padding: 0; }
.svc__btn { width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--muted); }
.svc__name { font-size: var(--step-lead); font-weight: 600; transition: transform var(--t-hover) var(--ease-out); }
.svc__price { font-size: var(--step-small); white-space: nowrap; }
.svc__row.is-on .svc__btn { color: var(--ink); }
.svc__btn:hover .svc__name { transform: translateX(6px); }
.svc__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.svc__desc > div { overflow: hidden; }
.svc__desc p { max-width: 42ch; margin: 0 0 10px; }
.svc__desc .link { display: inline-block; margin-bottom: 20px; }
.svc__row.is-on .svc__desc { grid-template-rows: 1fr; }
@media (max-width: 800px) {
  .svc { display: block; padding-top: 0; }
  .svc__media { position: sticky; top: 0; aspect-ratio: 4 / 3; height: 38svh; width: calc(100% + var(--m) * 2); margin: 0 calc(var(--m) * -1) 24px; z-index: 2; }
  .svc__list .h2 { margin-bottom: 16px; }
}

/* ------------------------------------------------ BLOG in home */
.news { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--section) var(--m); background: var(--surface); }
.news > .h2 { grid-column: 1 / -1; margin-bottom: 24px; }
.news__lead { grid-column: 1 / 8; text-decoration: none; }
.news__lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 16px; transition: transform 500ms var(--ease-out); }
.news__lead:hover img { transform: scale(1.015); }
.news__meta { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; }
.news__title { font-size: var(--step-lead); line-height: 1.25; max-width: 32ch; }
.news__lead:hover .news__title { text-decoration: underline; }
.news__list { grid-column: 9 / 13; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.news__list a { text-decoration: none; display: block; }
.news__t { font-weight: 600; font-size: var(--step-body); line-height: 1.35; }
.news__list a:hover .news__t { text-decoration: underline; }
@media (max-width: 800px) { .news { display: block; } .news__list { margin-top: 40px; } }

/* ------------------------------------------------ CONTATTI: email come titolo */
.contact { background: var(--inverse); color: var(--inverse-ink); min-height: 100svh; padding: var(--section) var(--m) 64px; display: flex; flex-direction: column; gap: 56px; }
.contact a { color: inherit; }
.contact__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.contact__intro { grid-column: 1 / 6; }
.contact__lead { font-size: var(--step-lead); line-height: 1.2; font-weight: 600; max-width: 18ch; margin-bottom: 20px; }
.contact .form { grid-column: 7 / 13; }
.contact__mail { display: block; font: 400 var(--step-giant)/0.86 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: -0.005em; margin-top: auto; transition: color var(--t-hover) ease; overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--accent); }
.contact__mail span { display: block; }
.contact__corners { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); }
.contact__corners p { margin: 0; }
.contact__social { display: flex; gap: 20px; }
@media (max-width: 800px) {
  .contact__top { display: block; }
  .contact .form { margin-top: 32px; }
  .contact__mail { font-size: 13.5vw; }
  .contact__corners { flex-direction: column; gap: 12px; }
}

/* ------------------------------------------------ moduli */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field label, .form legend { display: block; font-size: var(--step-small); font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid transparent; border-radius: 0; background: var(--surface); color: var(--ink); transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.contact .field input, .contact .field textarea { background: #2d2b2a; color: var(--inverse-ink); }
.contact .field input:focus, .contact .field textarea:focus { border-color: var(--accent); background: #353331; }
.field--wide, .checks--wide { grid-column: 1 / -1; }
.form .checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.form .checks legend { width: 100%; }
.form .checks label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.form input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.contact .form input[type="checkbox"] { accent-color: var(--accent); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 20px 0; font-size: var(--step-small); }
.consent input { margin-top: 2px; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { margin: 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

.quote { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--section) var(--m); }
.quote > .h2 { grid-column: 1 / -1; margin-bottom: 24px; }
.quote .form { grid-column: 1 / 9; }
.quote__aside { grid-column: 10 / 13; }
.quote__aside h3 { font-size: var(--step-lead); margin-bottom: 12px; }
@media (max-width: 900px) { .quote { display: block; } .quote__aside { margin-top: 48px; } }

/* ------------------------------------------------ pagine interne: testata stile poster */
.phead { padding: clamp(32px, 6vw, 80px) var(--m) 0; }
.phead--tight { padding-bottom: 32px; }
.phead__title { font: 400 var(--step-giant)/0.86 var(--display); text-transform: uppercase; letter-spacing: -0.01em; max-width: 14ch; text-wrap: balance; }
.phead__title--post { font-size: var(--step-head); max-width: 22ch; }
.phead__meta { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--step-small); font-weight: 600; }
.phead__meta li { display: flex; align-items: center; gap: 10px; }
.phead__meta li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.phead__intro { margin: 28px 0 0; max-width: 52ch; font-size: var(--step-lead); line-height: 1.4; }
.phead__img { margin: clamp(32px, 5vw, 64px) calc(var(--m) * -1) 0; background: var(--field, var(--surface)); }
.phead__img img { width: 100%; max-height: 88svh; object-fit: cover; }
.wideimg img { width: 100%; max-height: 70svh; object-fit: cover; }

/* servizi estesi */
.svclong { padding: var(--section) 0 0; }
.svclong__item { display: grid; grid-template-columns: 1fr 1fr; background: var(--field); color: var(--field-ink); scroll-margin-top: 0; }
.svclong__img img { width: 100%; height: 100%; min-height: 70svh; object-fit: cover; }
.svclong__body { padding: clamp(32px, 6vw, 96px) clamp(24px, 5vw, 80px); align-self: center; }
.svclong__body .h2 { margin-bottom: 12px; }
.svclong__price { font: 400 var(--step-lead)/1 var(--display); text-transform: uppercase; }
.svclong__body > p:not(.svclong__price) { max-width: 44ch; }
.svclong__item--flip .svclong__img { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: 0.5em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; background: currentColor; }
@media (max-width: 800px) {
  .svclong__item { grid-template-columns: 1fr; }
  .svclong__item--flip .svclong__img { order: 0; }
  .svclong__img img { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
}

.faqsec { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--section) var(--m); }
.faqsec .h2 { grid-column: 1 / 6; align-self: start; position: sticky; top: 24px; }
.faq { grid-column: 7 / 13; }
.faq__item { background: var(--surface); margin-bottom: 8px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 20px; font-weight: 600; font-size: var(--step-body); position: relative; min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 2rem/1 var(--display); transition: transform var(--t-ui) var(--ease-out); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 20px 4px; max-width: 60ch; }
@media (max-width: 800px) { .faqsec { display: block; } .faqsec .h2 { position: static; margin-bottom: 24px; } }

.steps { padding: var(--section) var(--m); }
.steps .h2 { margin-bottom: 48px; }
.steps__list { list-style: none; margin: 0; padding: 0; }
.steps__list li { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: 28px 0; align-items: baseline; }
.steps__list li:nth-child(even) { background: var(--surface); margin-inline: calc(var(--m) * -1); padding-inline: var(--m); }
.steps__list h3 { grid-column: 1 / 6; font: 400 var(--step-lead)/1 var(--display); text-transform: uppercase; }
.steps__list p { grid-column: 7 / 12; margin: 0; max-width: 52ch; }
@media (max-width: 800px) { .steps__list li { display: block; } .steps__list h3 { margin-bottom: 10px; } }

.catlinks { padding: var(--section) var(--m); }
.catlinks .h2 { margin-bottom: 40px; }
.catlinks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); }
.catlinks a { display: block; position: relative; background: var(--field); color: var(--field-ink); text-decoration: none; overflow: hidden; }
.catlinks img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms var(--ease-out); }
.catlinks a:hover img { transform: scale(1.04); }
.catlinks span { position: absolute; left: 20px; bottom: 16px; font: 400 var(--step-lead)/1 var(--display); text-transform: uppercase; background: var(--field); padding: 8px 12px; }
@media (max-width: 800px) { .catlinks ul { grid-template-columns: 1fr; } }
.catnav { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 0 var(--m) var(--section); }

.prose { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--section) var(--m); }
.prose__col { grid-column: 1 / 8; max-width: 62ch; }
.prose__col .h2 { margin: 0.9em 0 0.4em; }
.prose__col .h2:first-child { margin-top: 0; }
.prose__aside { grid-column: 9 / 13; display: flex; flex-direction: column; gap: var(--gap); }
@media (max-width: 800px) { .prose { display: block; } .prose__aside { margin-top: 40px; } }

/* articolo */
.article { padding: clamp(40px, 6vw, 96px) var(--m) var(--section); }
.article__body { max-width: 68ch; margin-inline: auto; }
.article__body h2 { font: 400 var(--step-lead)/1.05 var(--display); text-transform: uppercase; margin: 1.6em 0 0.6em; }
.article__body h3 { font-size: var(--step-lead); margin: 1.4em 0 0.5em; }
.article__body ul, .article__body ol { padding-left: 1.2em; }
.article__body li { margin-bottom: 0.4em; }
.article__body blockquote { margin: 1.6em 0; padding: 24px 28px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-lead); line-height: 1.4; }
.article__body blockquote p { margin: 0; }
.article__body figure, .post-fig { margin: 2em 0; }
.article__body figure img, .article__body video { width: 100%; height: auto; }
.article__body figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 8px; }
.article__body a { font-weight: 600; }
.article--legal .article__body { font-size: 1rem; }
.article--legal .article__body h2, .article--legal .article__body h3 { font: 600 var(--step-lead)/1.3 var(--text); text-transform: none; }
.yt { position: relative; margin: 2em 0; aspect-ratio: 16 / 9; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 56px; padding: 12px 22px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.related { padding: 0 var(--m) var(--section); max-width: 68ch; margin-inline: auto; box-sizing: content-box; }
.related .h2 { margin-bottom: 24px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.related a { text-decoration: none; }
.related a:hover .news__t { text-decoration: underline; }

/* blog */
/* blog: il più recente in grande, poi righe alternate testo / foto */
.bloglist { padding: 24px var(--m) var(--section); display: flex; flex-direction: column; gap: clamp(56px, 7vw, 110px); }
.bpost a { text-decoration: none; color: inherit; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.bpost__img { grid-column: 1 / 7; background: var(--field, var(--surface)); overflow: hidden; border-radius: 18px; margin: 0; }
.bpost__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 600ms var(--ease-out); }
.bpost__text { grid-column: 8 / 13; }
.bpost:not(.bpost--lead):nth-child(odd) .bpost__img { grid-column: 7 / 13; grid-row: 1; }
.bpost:not(.bpost--lead):nth-child(odd) .bpost__text { grid-column: 1 / 6; grid-row: 1; }
.bpost a:hover img { transform: scale(1.03); }
.bpost__meta { font-size: var(--step-small); color: var(--muted); margin: 0 0 12px; }
.bpost__title { font: 400 clamp(1.75rem, 1rem + 1.8vw, 2.75rem)/1.02 var(--display); margin: 0 0 14px; text-wrap: balance; }
.bpost__desc { font-size: var(--step-body); line-height: 1.55; margin: 0; max-width: 46ch; color: var(--muted); }
.bpost a:hover .bpost__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* il più recente: foto larga, titolo grande */
.bpost--lead a { align-items: end; }
.bpost--lead .bpost__img { grid-column: 1 / 9; border-radius: 22px; }
.bpost--lead .bpost__img img { aspect-ratio: 16 / 10; }
.bpost--lead .bpost__text { grid-column: 9 / 13; }
.bpost--lead .bpost__title { font-size: var(--step-head); line-height: 0.95; }
@media (max-width: 800px) {
  .bloglist { gap: 56px; }
  .bpost a { display: block; }
  .bpost__img { margin-bottom: 18px; border-radius: 14px; }
  .bpost--lead .bpost__img img { aspect-ratio: 4 / 3; }
}

/* invito finale */
.cta { padding: var(--section) var(--m); background: var(--accent); color: var(--accent-ink); }
.cta__title { font: 400 var(--step-head)/0.9 var(--display); text-transform: uppercase; max-width: 16ch; margin-bottom: 20px; }
.cta p { max-width: 46ch; font-size: var(--step-lead); line-height: 1.4; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-top: 32px; }
.cta .button { background: var(--ink); color: var(--bg); }
.cta .button:hover { background: #000; }

/* ------------------------------------------------ footer: il nome per primo */
.foot { background: var(--stone); padding: clamp(48px, 6vw, 96px) var(--m) var(--m); overflow: hidden; }
.foot__name { margin: 0 0 72px; font: 400 var(--step-giant)/0.82 var(--display); text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; }
.foot__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.foot__places { grid-column: 1 / 6; list-style: none; margin: 0; padding: 0; font-size: var(--step-lead); line-height: 1.35; font-weight: 600; }
.foot__places a { text-decoration: none; }
.foot__places a:hover { text-decoration: underline; }
.foot__cols { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.foot__cols h2 { font-size: var(--step-small); margin-bottom: 10px; }
.foot__cols a { display: block; font-size: var(--step-small); padding: 6px 0; text-decoration: none; }
.foot__cols a:hover { text-decoration: underline; }
.foot__legal { display: flex; justify-content: space-between; gap: 24px; margin-top: 96px; font-size: var(--step-small); }
.foot__legal p { margin: 0; max-width: 90ch; }
@media (max-width: 800px) {
  .foot__name { margin-bottom: 40px; }
  .foot__row { display: block; }
  .foot__places { margin-bottom: 40px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__legal { flex-direction: column; margin-top: 56px; padding-bottom: 72px; }
}

/* barra azioni su telefono */
.actionbar { display: none; }
@media (max-width: 800px) {
  .actionbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); padding: 8px var(--m); gap: 12px; align-items: center; justify-content: space-between; transform: translateY(110%); transition: transform var(--t-ui) var(--ease-out); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .actionbar.is-on { transform: none; }
  .actionbar__wa { color: var(--inverse-ink); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
}

/* ------------------------------------------------ movimento */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise-in var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero__photo img { animation: settle 1400ms var(--ease-out) both; }
  .js .hero__a, .js .hero__b { animation: rise-in 900ms var(--ease-out) both; }
  .js .hero__b { animation-delay: 120ms; }
  .work__img { transition: transform 1.2s var(--ease-out); }
  .work.is-in .work__img { transform: scale(1.04); }
  .verb__img { animation: drift 18s ease-in-out infinite alternate; }
}
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes settle { from { transform: scale(1.08); opacity: 0.4; } }
@keyframes drift { to { transform: scale(1.06) translateX(-1.5%); } }
.article__body video, .post-fig img { max-height: 85svh; width: auto; max-width: 100%; margin-inline: auto; }


/* ------------------------------------------------ TITOLI VARIABILI: altezza e larghezza seguono lo scorrimento */
.hero__pin, .h2, .hero__title, .work__title, .verb__word span, .ticket__title, .ticket__price, .behind__title,
.contact__mail, .foot__name, .phead__title, .gal__label, .menu nav a, .svclong__price, .steps__list h3, .catlinks span,
.article__body h2, .bpost__title, .cta__title, .stepper__box input, .ribbon__label, .pill {
  font-family: var(--display);
  font-variation-settings: "wght" 640, "wdth" var(--wd, 104), "YTUC" var(--yt, 712), "YTLC" var(--yl, 514), "opsz" 144;
  letter-spacing: 0.005em;
  text-transform: none;
  line-height: 1.02;
}
.hero__pin { text-transform: uppercase; font-variation-settings: "wght" 720, "wdth" var(--wd, 100), "YTUC" var(--yt, 712), "opsz" 144; line-height: 0.9; }
.pill { text-transform: none; font-variation-settings: "wght" 560, "wdth" 104, "opsz" 32; }
.work__title { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); }
.verb__word span { font-size: clamp(3.5rem, 1rem + 8vw, 9rem); }
body { font-variation-settings: "wdth" 100, "opsz" 16; }
strong, b, .button, .link, .nav, .chip, h3, .news__t, .faq__item summary, label, legend { font-variation-settings: "wdth" 100, "opsz" 16; }

/* logo grande nella prima schermata */
.logo--hero { width: clamp(240px, 31vw, 520px); color: var(--ink); }
@media (max-width: 800px) { .logo--hero { width: 46vw; } .hero__pin { gap: 14px; align-items: center; } }

/* foto che si alternano nella colonna destra */
.hero__photo { isolation: isolate; }
.hero__slide { position: absolute; inset: 0; background: var(--field); opacity: 0; transition: opacity 900ms ease; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-on { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-on img { animation: slide-zoom 4.2s ease-out both; }
}
@keyframes slide-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* cornice mirino sulle foto dei pannelli */
.hero__frame { position: relative; }
.vf { position: absolute; inset: -18px; pointer-events: none; color: var(--field-ink); }
.vf i { position: absolute; width: 34px; height: 34px; border: 0 solid currentColor; }
.vf i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf b { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); }
.vf b::before, .vf b::after { content: ''; position: absolute; background: currentColor; }
.vf b::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.vf b::after { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__frame .vf i { transition: transform 900ms var(--ease-out); }
  .js .hero__frame:not(.is-in) .vf i:nth-child(1) { transform: translate(-14px, -14px); }
  .js .hero__frame:not(.is-in) .vf i:nth-child(2) { transform: translate(14px, -14px); }
  .js .hero__frame:not(.is-in) .vf i:nth-child(3) { transform: translate(-14px, 14px); }
  .js .hero__frame:not(.is-in) .vf i:nth-child(4) { transform: translate(14px, 14px); }
}
.hero__frame img { transition: transform 600ms var(--ease-out); }
.vf { transition: opacity 300ms ease; }
.hero__frame:hover .vf { opacity: 0; }
.hero__frame:hover img { transform: scale(1.075); }
.hero__claim { font-size: clamp(1.375rem, 1rem + 1vw, 2rem); line-height: 1.2; max-width: 20ch; font-variation-settings: "wght" 700, "wdth" 90, "opsz" 48; }

/* ------------------------------------------------ ARCHIVIO: nastro di foto in movimento */
.ribbon { padding: var(--section) 0; overflow: hidden; }
.ribbon__head { padding: 0 var(--m); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px var(--gap); margin-bottom: clamp(40px, 6vw, 88px); }
.ribbon__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { min-height: 56px; padding: 10px 26px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); text-transform: none; line-height: 1; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.pill:hover { background: var(--stone); }
.pill:active { transform: scale(0.96); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pill__w { display: inline-block; white-space: nowrap; }
.pill__w .ch { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .pill:hover .ch, .pill:focus-visible .ch { animation: wobble 420ms var(--ease-out) both; animation-delay: calc(var(--n) * 28ms); }
}
@keyframes wobble {
  30% { transform: translate(var(--dx, 0), var(--dy, -4px)) rotate(var(--rot, -8deg)); }
  100% { transform: none; }
}
.ribbon__band { transform: rotate(-3deg); margin: 40px -4vw; display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 20px); }
.ribbon__row { overflow: hidden; }
.ribbon__track { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(10px, 1.4vw, 20px); width: max-content; will-change: transform; }
.ribbon__item { flex: none; height: clamp(180px, 26vw, 380px); transition: opacity 500ms var(--ease-out), filter 500ms var(--ease-out), transform 500ms var(--ease-out); }
.ribbon__btn { display: block; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ribbon__btn img { height: 100%; width: auto; transition: transform 400ms var(--ease-out); }
.ribbon__btn:hover img { transform: scale(1.03); }
.ribbon__item.is-off { opacity: 0.2; filter: grayscale(1); }
.ribbon__item.is-off .ribbon__btn { cursor: default; }
.ribbon__item.is-hit { transform: translateY(-10px); }
.ribbon__foot { padding: 0 var(--m); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 32px; margin-top: 40px; }
.ribbon__label { margin: 0; font-size: var(--step-head); line-height: 1; text-transform: none; }
.ribbon__label sup { font: 600 var(--step-small)/1 var(--text); margin-left: 10px; vertical-align: top; position: relative; top: 0.4em; }
@media (max-width: 800px) {
  .ribbon__band { transform: rotate(-4deg); }
  .ribbon__item { height: 34vw; }
  .pill { min-height: 48px; padding: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon__row { overflow-x: auto; }
}

/* ------------------------------------------------ RITOCCO: confronto prima / dopo */
.verb--cmp .cmp { position: absolute; inset: 0; }
.cmp__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.cmp__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #f3f1ee; pointer-events: none; z-index: 2; }
.cmp__knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: #f3f1ee; color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 1.125rem; letter-spacing: 0.1em; }
.cmp__tag { position: absolute; top: 22%; z-index: 2; padding: 6px 12px; background: #f3f1ee; color: var(--ink); font-weight: 600; font-size: var(--step-small); pointer-events: none; }
.cmp__tag--l { left: var(--m); }
.cmp__tag--r { right: var(--m); }
.cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; touch-action: pan-y; }
.cmp__range:focus-visible + .cmp__line, .cmp:focus-within .cmp__knob { outline: 3px solid var(--accent); }
.verb__word--top { place-items: start center; padding-top: 6vh; z-index: 5; pointer-events: none; }
.verb--cmp .verb__text { z-index: 4; }

/* ------------------------------------------------ APERTURA v2: fondale a tutto schermo, si sceglie il colore */
.hero__pin { color: var(--pin-ink, var(--ink)); transition: color 400ms ease; }
.logo--hero { color: inherit; }
.bar--home { color: var(--pin-ink, var(--ink)); transition: color 400ms ease; }
.bar--home .button { background: var(--pin-ink, var(--ink)); color: var(--field-now, var(--bg)); }

.hero__stage {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: var(--field); color: var(--hink); transition: color 500ms ease;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto; gap: 0 var(--gap);
  padding: calc(var(--step-giant) * 0.9 + var(--m) * 2) var(--m) calc(var(--step-giant) * 0.9 + var(--m) * 2);
}
.hero__flood { position: absolute; inset: 0; z-index: -1; background: var(--flood, transparent); clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%)); }
.hero__shot { grid-column: 6 / 10; grid-row: 1 / 3; align-self: center; justify-self: center; position: relative; width: min(30vw, 50svh); aspect-ratio: 4 / 5; margin: 0; }
.hero__img { position: absolute; inset: 0; opacity: 0; transform: scale(0.96); transition: opacity 600ms ease, transform 900ms var(--ease-out); }
.hero__img.is-on { opacity: 1; transform: none; z-index: 1; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__shot .vf { color: var(--hink); z-index: 2; }
.hero__copy { grid-column: 1 / 6; grid-row: 1 / 3; align-self: center; padding: 0 0 0 calc(var(--m) * 2); max-width: 36rem; }
.hero__lead { max-width: 30ch; }
.hero__actions .link { color: inherit; }
.button--hero { background: var(--hink); color: var(--field); }
.button--hero:hover { background: var(--hink); opacity: 0.9; }
.hero__swatches { grid-column: 10 / 13; grid-row: 1 / 3; align-self: center; justify-self: end; }
.hero__swlabel { font-size: var(--step-small); font-weight: 600; margin: 0 0 12px; }
.hero__swrow { display: flex; flex-direction: column; gap: 4px; }
.sw { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 12px 4px 4px; border: 0; background: none; color: inherit; cursor: pointer; font-size: var(--step-body); border-radius: 999px; text-align: left; }
.sw__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--hink); /* taste-skill-ignore: anello del campione */ transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-hover) ease; }
.sw:hover .sw__dot { transform: scale(1.12); }
.sw[aria-checked="true"] .sw__dot { box-shadow: 0 0 0 2px var(--field), 0 0 0 5px var(--hink); /* taste-skill-ignore */ }
.sw[aria-checked="true"] .sw__name { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }
.hero__cue { position: absolute; left: 50%; bottom: var(--m); transform: translateX(-50%); font-size: var(--step-small); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .hero__shot { animation: shot-in 1100ms var(--ease-out) both 200ms; }
}
@keyframes shot-in { from { opacity: 0; transform: translateY(30px) scale(0.94); } }

@media (max-width: 900px) and (min-width: 801px) {
  .hero__shot { grid-column: 6 / 11; width: min(38vw, 48svh); }
  .hero__swatches { grid-column: 1 / 6; grid-row: 2; justify-self: start; margin-top: 24px; }
  .hero__swrow { flex-direction: row; }
  .sw__name { display: none; }
}
@media (max-width: 800px) {
  .hero__pin { justify-content: space-between; }
  .hero__b { display: none; }
  .hero__stage { display: flex; flex-direction: column; padding: 8px var(--m) 48px; min-height: auto; }
  .hero__shot { order: 1; width: min(100%, 52svh * 0.8); margin: 20px auto 0; }
  .hero__swatches { order: 2; align-self: stretch; justify-self: auto; margin-top: 28px; }
  .hero__swlabel { margin-bottom: 8px; }
  .hero__swrow { flex-direction: row; justify-content: space-between; gap: 0; }
  .sw { padding: 0; min-width: 44px; justify-content: center; }
  .sw__name { display: none; }
  .hero__copy { order: 3; padding: 32px 0 0; }
  .hero__pin { background: var(--pin-bg, transparent); transition: background-color 600ms ease, color 400ms ease; }
}
.hero__title .line { white-space: nowrap; width: max-content; max-width: none; }
.hero__stage .hero__title { font-size: clamp(2.25rem, 1rem + 3vw, 3.75rem); }

/* pannelli con fondale: testo e foto al centro, lontani da logo e FOTO fissati agli angoli */
@media (min-width: 801px) {
  .hero__panel, .hero__panel--alt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding: 14vh var(--m); }
  .hero__panel .hero__claim, .hero__panel--alt .hero__claim { order: 0; max-width: 26ch; text-align: center; padding: 0; }
  .hero__panel .hero__frame, .hero__panel--alt .hero__frame { order: 1; width: min(30vw, 46svh); }
}
.sw { padding: 4px; }
.hero__swrow { gap: 8px; }

/* ------------------------------------------------ LAVORI: tre settori, quello sotto il puntatore si allarga */
.sectors { display: flex; gap: clamp(8px, 1vw, 14px); padding: 40px var(--m) var(--section); height: min(86svh, 820px); }
.sector { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--field); color: var(--field-ink); text-decoration: none;
  transition: flex-grow 700ms var(--ease-in-out); display: block; }
.sectors:hover .sector { flex-grow: 0.7; }
.sectors .sector:hover, .sectors .sector:focus-visible { flex-grow: 2.4; }
.sector__img { position: absolute; inset: 0; }
.sector__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.sector:hover .sector__img img { transform: scale(1.04); }
.sector__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: var(--field); }
.sector__n { font-size: var(--step-small); font-weight: 600; }
.sector__name { font-size: var(--step-head); line-height: 1; white-space: nowrap; }
.sector__text { max-width: 36ch; font-size: var(--step-body); display: none; }
.sector__thumbs { display: none; gap: 8px; }
.sector__thumbs img { height: 72px; width: auto; }
.sector__go { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }
.sector__go::after { content: ' →'; }
.sector:hover .sector__text, .sector:focus-visible .sector__text { display: block; }
.sector:hover .sector__thumbs, .sector:focus-visible .sector__thumbs { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .sector:hover .sector__text, .sector:hover .sector__thumbs { animation: rise 500ms var(--ease-out) both 120ms; }
}
@media (max-width: 900px) {
  .sectors { flex-direction: column; height: auto; }
  .sector { height: 78svh; }
  .sectors:hover .sector, .sectors .sector:hover { flex-grow: 1; }
  .sector__text, .sector__thumbs { display: flex; }
  .sector__text { display: block; }
}
.sector { display: flex; flex-direction: column; }
.sector__img { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.sector__body { position: relative; }
.sector__name { font-size: clamp(1.75rem, 1rem + 1.9vw, 3.25rem); white-space: normal; text-wrap: balance; }
@media (max-width: 900px) { .sector { flex: none; } }

/* ------------------------------------------------ LAVORI su computer: serie che cambiano scorrendo (stile foto sparse) */
.series { display: none; }
@media (min-width: 901px) {
  .sectors { display: none; }
  .series { display: block; position: relative; height: calc(var(--sets, 3) * 65svh + 35svh); }
  .series__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .series__set { position: absolute; inset: 0; pointer-events: none; }
  .series__set.is-on { pointer-events: auto; }
  .series__ph { position: absolute; display: block; overflow: hidden; z-index: 2;
    opacity: 0; transform: translateY(40px) scale(0.96); transition: opacity 350ms ease, transform 650ms var(--ease-out); }
  .series__ph img { width: 100%; height: auto; display: block; transition: transform 700ms var(--ease-out); }
  .series__ph:hover img { transform: scale(1.05); }
  .series__set.is-on .series__ph { opacity: 1; transform: none; }
  .series__set.is-on .series__ph--1 { transition-delay: 0ms; }
  .series__set.is-on .series__ph--2 { transition-delay: 50ms; }
  .series__set.is-on .series__ph--3 { transition-delay: 100ms; }
  .series__set.is-on .series__ph--4 { transition-delay: 30ms; }
  .series__set.is-on .series__ph--5 { transition-delay: 80ms; }
  .series__ph--1 { right: 7%; top: 9%; width: 21vw; }
  .series__ph--2 { left: 6%; top: 10%; width: 15vw; }
  .series__ph--3 { left: 56%; top: 57%; width: 18vw; }
  .series__ph--4 { left: 24%; top: 66%; width: 11vw; }
  .series__ph--5 { left: 42%; top: 5%; width: 13vw; }
  .series__name { position: absolute; left: var(--m); right: var(--m); top: 50%; transform: translateY(-50%); z-index: 1; text-decoration: none; color: var(--sc);
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .series__name span { font-family: var(--display); font-variation-settings: "wght" 700, "wdth" 112, "opsz" 144; font-size: clamp(4rem, 1rem + 9vw, 11rem); line-height: 0.9; letter-spacing: -0.01em;
    opacity: 0; transform: translateY(24px); transition: opacity 350ms ease, transform 600ms var(--ease-out); }
  .series__name small { font-size: var(--step-body); font-weight: 600; color: var(--ink); opacity: 0; transition: opacity 500ms ease 200ms; text-decoration: underline; text-underline-offset: 0.25em; }
  .series__set.is-on .series__name span, .series__set.is-on .series__name small { opacity: 1; transform: none; }
  .series__name:hover small { color: var(--sc); }
  .series__dots { position: absolute; right: var(--m); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; z-index: 3; }
  .series__dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--stone); transition: background-color 300ms ease, transform 300ms var(--ease-out); }
  .series__dots li.is-on { background: var(--ink); transform: scale(1.3); }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .series__ph, .series__name span { transition: opacity 200ms ease; transform: none; }
}
/* serie a colore pieno, titolo bianco */
@media (min-width: 901px) {
  .series__bg { position: absolute; inset: 0; background: var(--sc); opacity: 0; transition: opacity 450ms ease; z-index: 0; }
  .series__set.is-on .series__bg { opacity: 1; }
  .series__name { color: #f6f4f1; }
  .series__name small { color: #f6f4f1; }
  .series__name:hover small { color: #fff; }
  .series__dots li { background: rgba(246, 244, 241, 0.4); }
  .series__dots li.is-on { background: #f6f4f1; }
}
@media (min-width: 901px) {
  .series__stage { background: var(--stage-c, #c8372d); transition: background-color 600ms ease; }
  .series__name { color: #f6f4f1; }
  .series__name small, .series__name:hover small { color: #f6f4f1; }
  .series__dots li { background: rgba(246, 244, 241, 0.4); }
  .series__dots li.is-on { background: #f6f4f1; }
}

/* ------------------------------------------------ COME FUNZIONA: il viaggio del pacco, guidato dallo scorrimento */
.journey { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: 40px var(--m) var(--section); }
.journey__stage { grid-column: 1 / 7; position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.journey__svg { width: min(100%, 78svh); height: auto; overflow: visible; }
.journey__route { fill: none; stroke: var(--stone); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.journey__trail { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.st__bg { fill: var(--bg); stroke: var(--stone); stroke-width: 3; transition: fill 400ms ease, stroke 400ms ease; }
.st__ic * { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke 400ms ease; }
.st__ic { transition: transform 500ms var(--ease-out); transform-box: fill-box; transform-origin: center; }
.st text { font: 600 22px/1 var(--text); fill: var(--muted); transition: fill 400ms ease; }
.st.is-done .st__bg { fill: var(--ink); stroke: var(--ink); }
.st.is-done .st__ic * { stroke: var(--bg); }
.st.is-done text { fill: var(--ink); }
.st.is-on .st__bg { fill: var(--accent); stroke: var(--ink); }
.st.is-on .st__ic * { stroke: var(--ink); }
.st.is-on .st__ic { transform: scale(1.18); }
.st.is-on text { fill: var(--ink); }
.st__knob { fill: var(--accent) !important; }
.st__flash { fill: #fff; opacity: 0; pointer-events: none; }
.st.is-on .st__flash { animation: flash 1.6s ease-out infinite; }
@keyframes flash { 0% { opacity: 0.9; transform: scale(0.5); } 40% { opacity: 0; transform: scale(1.15); } 100% { opacity: 0; } }
.st__flash { transform-box: fill-box; transform-origin: center; }
.parcel rect { fill: var(--accent); stroke: var(--ink); stroke-width: 3; }
.parcel line { stroke: var(--ink); stroke-width: 3; }
.journey__steps { grid-column: 8 / 13; list-style: none; margin: 0; padding: 30svh 0 30svh; }
.jstep { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: 0.35; transition: opacity 400ms ease; }
.jstep.is-on { opacity: 1; }
.jstep__title { font-family: var(--display); font-variation-settings: "wght" 640, "wdth" 104, "opsz" 144; font-size: var(--step-head); line-height: 1.02; }
.jstep p { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; margin: 0; }
.jstep .button { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .jstep { opacity: 1; } }
@media (max-width: 900px) {
  .journey { display: block; padding-top: 0; }
  .journey__stage { height: 46svh; top: 0; z-index: 2; background: var(--bg); }
  .journey__svg { width: auto; height: 42svh; }
  .st text { font-size: 26px; }
  .journey__steps { padding: 4svh 0 10svh; }
  .jstep { min-height: 52svh; }
  .jstep p { font-size: var(--step-body); }
}

/* foto dei passaggi: testo più grande e leggibile */
@media (min-width: 801px) {
  .verb__text { left: var(--m); bottom: var(--m); max-width: 34ch; padding: 26px 30px; font-size: var(--step-lead); line-height: 1.4; background: rgba(20, 19, 18, 0.84); }
}

/* modulo come approdo fisso */
.landing { background: var(--surface); padding-top: var(--section); scroll-margin-top: 0; }
.landing .price--page { background: var(--surface); }
.landing .price--page .ticket { --tbg: var(--surface); }
.fixcta { position: fixed; right: var(--m); bottom: var(--m); z-index: 25; min-height: 56px; padding: 16px 26px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
  transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease; }
.fixcta:hover { background: #000; }
.fixcta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-width: 800px) { .fixcta { display: none; } }

/* ---------- come funziona: un unico set, quattro fotogrammi ---------- */
.proc { position: relative; height: calc(var(--steps) * 100svh); background: var(--ink); color: #f3f1ee; }
.proc__stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; padding: 0 var(--m); }
.proc__frame { grid-column: 1 / 8; position: relative; height: 78svh; }
.proc__shot { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; visibility: hidden; }
.proc__shot.is-on { opacity: 1; visibility: visible; }
.proc__shot > img, .proc__cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proc__shot > img { transform: scale(calc(1.08 - var(--t, 0) * 0.08)); transform-origin: 50% 60%; }
.proc__cmp { position: absolute; inset: 0; }
.proc__vf { inset: -14px; color: #f3f1ee; z-index: 4; }
.proc__vf i { transition: transform 420ms var(--ease-out); }
.proc.is-snap .proc__vf i:nth-child(1) { transform: translate(14px, 14px); }
.proc.is-snap .proc__vf i:nth-child(2) { transform: translate(-14px, 14px); }
.proc.is-snap .proc__vf i:nth-child(3) { transform: translate(14px, -14px); }
.proc.is-snap .proc__vf i:nth-child(4) { transform: translate(-14px, -14px); }
/* otturatore a tendina: due lamelle che si chiudono e si riaprono sul nuovo fotogramma */
.proc__shutter { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.proc__shutter i { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); transition: transform 260ms cubic-bezier(0.7, 0, 0.3, 1); }
.proc__shutter i:first-child { top: 0; transform: translateY(-101%); }
.proc__shutter i:last-child { bottom: 0; transform: translateY(101%); }
.proc.is-snap .proc__shutter i { transform: none; }

.proc__copy { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 40px; }
.proc__steps { display: grid; }
.proc__step { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity 380ms ease, transform 560ms var(--ease-out); pointer-events: none; }
.proc__step.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 120ms; }
.proc__verb { margin: 0 0 22px; font: 400 clamp(3.25rem, 1rem + 5vw, 7rem)/0.86 var(--display); text-transform: uppercase; color: #f3f1ee; }
.proc__n { display: block; font: 600 var(--step-lead)/1 var(--text); color: var(--accent); margin-bottom: 14px; letter-spacing: 0.02em; }
.proc__text { margin: 0; font-size: var(--step-lead); line-height: 1.45; max-width: 32ch; color: #e7e3dd; }
.proc__sheet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps), 1fr); gap: 10px; }
.proc__thumb { display: block; width: 100%; padding: 0; border: 0; background: none; color: #bdb7af; cursor: pointer; text-align: left; font: 600 var(--step-small)/1.2 var(--text); }
.proc__thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; outline: 3px solid transparent; outline-offset: 3px; opacity: 0.5; filter: grayscale(1); transition: opacity 300ms ease, filter 300ms ease, outline-color 300ms ease; }
.proc__thumb span { display: block; margin-top: 10px; }
.proc__thumb.is-on { color: #f3f1ee; }
.proc__thumb.is-on img { opacity: 1; filter: none; outline-color: var(--accent); }
.proc__thumb:hover img { opacity: 0.9; filter: none; }
.proc__thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.proc__cta { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) {
  .proc__shutter { display: none; }
  .proc__shot > img { transform: none; }
}
@media (max-width: 900px) {
  .proc__stage { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; padding: 14px var(--m) calc(76px + env(safe-area-inset-bottom)); }
  .proc__frame { height: 46svh; flex: none; }
  .proc__vf { inset: -8px; }
  .proc__vf i { width: 22px; height: 22px; }
  .proc__copy { gap: 18px; flex: 1; justify-content: space-between; }
  .proc__verb { font-size: clamp(2.75rem, 13vw, 4rem); margin-bottom: 10px; }
  .proc__n { font-size: 1rem; margin-bottom: 8px; }
  .proc__text { font-size: 1.0625rem; line-height: 1.45; }
  .proc__sheet { gap: 8px; }
  .proc__thumb span { margin-top: 6px; font-size: 0.8125rem; }
  .proc__cta { display: none; }
}

/* ---------- come funziona: il percorso del pacco attraverso i cinque passaggi ---------- */
.route { position: relative; padding: 24px var(--m) var(--section); }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.route__base { fill: none; stroke: var(--stone); stroke-width: 4; stroke-dasharray: 2 14; stroke-linecap: round; }
.route__trail { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.route__parcel rect { fill: var(--accent); stroke: var(--ink); stroke-width: 3; }
.route__parcel path { fill: none; stroke: var(--ink); stroke-width: 3; }
.route__list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(120px, 18vh, 220px); }
.rstep { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.rstep__vis { grid-column: 1 / 7; position: relative; z-index: 1; }
.rstep__copy { grid-column: 8 / 12; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.rstep:nth-child(even) .rstep__vis { grid-column: 7 / 13; grid-row: 1; }
.rstep:nth-child(even) .rstep__copy { grid-column: 2 / 6; grid-row: 1; }
.rstep__n { margin: 0; font: 600 var(--step-lead)/1 var(--text); }
.rstep__n::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 12px; background: var(--accent); border: 2px solid var(--ink); vertical-align: 0; }
.rstep__title { margin: 0; font: 400 clamp(3rem, 1rem + 5vw, 6.5rem)/0.86 var(--display); text-transform: uppercase; }
.rstep__text { margin: 0; font-size: var(--step-lead); line-height: 1.45; max-width: 32ch; }

/* 01 preventivo: un foglio che si compila */
.qdoc { position: relative; max-width: 520px; margin-inline: auto; background: #fff; padding: clamp(24px, 3vw, 40px); border: 2px solid var(--ink); }
.qdoc__head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 22px; font-size: var(--step-small); color: var(--muted); }
.qdoc__head b { font: 400 2.25rem/1 var(--display); text-transform: uppercase; color: var(--ink); }
.qdoc__rows { list-style: none; margin: 0; padding: 0; }
.qdoc__rows li, .qdoc__total { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--surface); font-size: var(--step-body); }
.qdoc__total { margin: 10px 0 0; border: 0; font-size: var(--step-lead); align-items: baseline; }
.qdoc__total b { font: 400 clamp(2.25rem, 1.5rem + 2vw, 3.25rem)/1 var(--display); }
.qdoc__stamp { position: absolute; left: 40%; top: 47%; padding: 6px 16px; border: 3px solid #c8372d; color: #c8372d; font: 700 1.375rem/1.2 var(--text); text-transform: uppercase; letter-spacing: 0.06em; transform: rotate(-12deg); }

/* 02 ritiro: il furgone arriva, carica il pacco e riparte */
.pick { display: block; width: 100%; height: auto; overflow: hidden; background: var(--bg); }
.pick * { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.pick text { stroke: none; fill: var(--ink); font: 700 15px/1 var(--text); letter-spacing: 0.08em; }
.pick__ground { fill: none; }
.pick__door rect { fill: var(--surface); }
.pick__door rect + rect { fill: #fff; }
.pick__box { transform: translate(300px, 310px); }
.pick__box > rect:first-child { fill: var(--accent); }
.pick__flap, .pick__tape { fill: none; }
.pick__label { fill: #fff; stroke-width: 2; }
.pick__body { fill: #fff; }
.pick__line { fill: none; stroke-width: 2.5; }
.pick__lamp { fill: var(--accent); stroke-width: 2; }
.pick__lamp--r { fill: #c8372d; }
.pick__hub { fill: var(--stone) !important; }
.pick__spoke { fill: none; stroke-width: 2.5; }
.pick__win { fill: var(--surface); }
.pick__wheel { fill: var(--ink); }
.pick__van text { fill: var(--ink); font-size: 14px; }

/* 03 scatto: foto vera del set, lampo e mirino */
.snap { position: relative; }
.snap img { display: block; width: 100%; height: auto; }
.snap__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.snap__vf { inset: -14px; color: var(--ink); }
.snap__vf b { color: #fff; }

/* 04 ritocco */
.rstep__cmp { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.rstep__cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 05 consegna: i file arrivano uno alla volta */
.dl { background: #fff; border: 2px solid var(--ink); padding: clamp(16px, 2vw, 24px); }
.dl__bar { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 16px; font-size: var(--step-small); color: var(--muted); }
.dl__bar b { font: 400 2rem/1 var(--display); text-transform: uppercase; color: var(--ink); }
.dl__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dl__grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.dl__meter { margin: 16px 0 0; height: 10px; background: var(--surface); }
.dl__meter span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; }

@media (prefers-reduced-motion: no-preference) {
  .js .qdoc__rows li { opacity: 0; transform: translateX(-12px); transition: opacity 400ms ease, transform 500ms var(--ease-out); }
  .js .qdoc__total { opacity: 0; transition: opacity 400ms ease 900ms; }
  .js .qdoc__stamp { opacity: 0; transform: rotate(-12deg) scale(1.8); transition: opacity 200ms ease 1300ms, transform 300ms cubic-bezier(0.3, 1.6, 0.5, 1) 1300ms; }
  .js .is-in .qdoc__rows li { opacity: 1; transform: none; }
  .js .is-in .qdoc__rows li:nth-child(2) { transition-delay: 150ms; }
  .js .is-in .qdoc__rows li:nth-child(3) { transition-delay: 300ms; }
  .js .is-in .qdoc__rows li:nth-child(4) { transition-delay: 450ms; }
  .js .is-in .qdoc__total { opacity: 1; }
  .js .is-in .qdoc__stamp { opacity: 1; transform: rotate(-12deg); }

  .js .is-in .pick__van { animation: van 6s var(--ease-in-out) infinite; }
  .js .is-in .pick__box { animation: box 6s var(--ease-in-out) infinite; }
  .js .is-in .pick__flap--l { animation: flapl 6s ease infinite; transform-origin: -42px -36px; }
  .js .is-in .pick__flap--r { animation: flapr 6s ease infinite; transform-origin: 42px -36px; }
  .js .is-in .pick__wheel { animation: wheel 6s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
  .pick__van { transform: translateX(-340px); }

  .js .is-in .snap__flash { animation: flash1 900ms ease-out 300ms 1 both; }
  .js .snap__vf i { transition: transform 900ms var(--ease-out); }
  .js .rstep--shoot:not(.is-in) .snap__vf i:nth-child(1) { transform: translate(-22px, -22px); }
  .js .rstep--shoot:not(.is-in) .snap__vf i:nth-child(2) { transform: translate(22px, -22px); }
  .js .rstep--shoot:not(.is-in) .snap__vf i:nth-child(3) { transform: translate(-22px, 22px); }
  .js .rstep--shoot:not(.is-in) .snap__vf i:nth-child(4) { transform: translate(22px, 22px); }

  .js .dl__grid li { opacity: 0; transform: translateY(14px); transition: opacity 400ms ease, transform 500ms var(--ease-out); }
  .js .is-in .dl__grid li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 260ms + 200ms); }
  .js .dl__meter span { transform: scaleX(0); transition: transform 1800ms linear 200ms; }
  .js .is-in .dl__meter span { transform: none; }
}
/* il furgone entra da destra, si ferma, il pacco si chiude e sale, il furgone riparte a sinistra */
@keyframes van { 0%, 8% { transform: translateX(-340px); } 30%, 62% { transform: translateX(330px); } 92%, 100% { transform: translateX(700px); } }
@keyframes box { 0%, 38% { transform: translate(300px, 310px); opacity: 1; } 50% { transform: translate(430px, 236px); opacity: 1; } 54%, 100% { transform: translate(430px, 266px); opacity: 0; } }
@keyframes flapl { 0%, 6% { transform: none; } 16%, 100% { transform: rotate(125deg); } }
@keyframes flapr { 0%, 10% { transform: none; } 20%, 100% { transform: rotate(-125deg); } }
@keyframes wheel { 0%, 8% { transform: rotate(0); } 30%, 62% { transform: rotate(1080deg); } 92%, 100% { transform: rotate(1800deg); } }
@keyframes flash1 { 0% { opacity: 0; } 8% { opacity: 0.95; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .route { padding: 8px var(--m) 96px calc(var(--m) + 34px); }
  .route__list { gap: 96px; }
  .rstep { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .rstep__copy { gap: 12px; }
  .rstep__title { font-size: clamp(2.75rem, 13vw, 4rem); }
  .rstep__text { font-size: 1.125rem; }
  .qdoc__stamp { left: 36%; font-size: 1.125rem; }
}

/* 05: il furgoncino riporta i prodotti, verso la tua sede */
.back { display: block; width: min(100%, 420px); height: auto; overflow: hidden; margin: 6px 0 4px; }
.back * { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.back .pick__ground { fill: none; stroke-width: 2.5; }
.back .pick__door rect { fill: var(--surface); stroke-width: 2.5; }
.back .pick__door rect + rect { fill: #fff; }
.back .pick__body { fill: #fff; stroke-width: 7; }
.back .pick__win { fill: var(--surface); stroke-width: 6; }
.back .pick__line { fill: none; stroke-width: 6; }
.back .pick__lamp { fill: var(--accent); stroke-width: 5; }
.back .pick__lamp--r { fill: #c8372d; }
.back .pick__wheel circle { fill: var(--ink); stroke-width: 6; }
.back .pick__hub { fill: var(--stone) !important; }
.back .pick__spoke { stroke-width: 6; fill: none; }
.back__van { transform: translateX(56px); }
@media (prefers-reduced-motion: no-preference) {
  .js .back__van { transform: translateX(430px); }
  .js .is-in .back__van { animation: backvan 3.2s var(--ease-out) 1.9s both; }
}
@keyframes backvan { from { transform: translateX(430px); } to { transform: translateX(56px); } }

.route__more { margin-top: calc(var(--section) * -0.6); padding-bottom: var(--section); }
.route__title { position: relative; z-index: 1; margin: 0 0 clamp(56px, 9vh, 110px); }
@media (min-width: 901px) and (max-width: 1100px) { .hero__stage .hero__title { font-size: 2.6rem; } }
/* servizi su desktop: la prima foto (la scarpa) affiora già sotto il titolo, per invitare a scorrere */
@media (min-width: 901px) {
  .phead:has(+ .svclong) { padding-top: 40px; }
  .phead:has(+ .svclong) .phead__title { max-width: 20ch; font-size: calc(var(--step-giant) * 0.82); }
  .phead + .svclong { padding-top: 48px; }
}

/* servizi: la punta del soggetto scontornato supera il bordo della sezione sopra.
   La foto resta identica nella sua fascia; lo scontorno, sovrapposto al millimetro, mostra
   solo la parte che sporge in una finestra stretta. Lo script calcola posizioni e finestra. */
.svclong__item { position: relative; }
.svclong__img--pop { position: relative; min-height: 70svh; }
.pop__frame { position: absolute; inset: 0; overflow: hidden; }
.pop__frame img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; min-height: 0; max-width: none; object-fit: cover; }
.pop__win { position: absolute; display: none; overflow: hidden; z-index: 3; pointer-events: none; }
.pop__win img { position: absolute; max-width: none; min-height: 0; }
.svclong__img--pop.is-ready .pop__win { display: block; }
@media (min-width: 901px) {
  /* sotto il testo della sezione precedente resta posto per ciò che sporge */
  .svclong__item:has(+ .svclong__item .svclong__img--pop) .svclong__body { padding-bottom: 120px; }
}
.svclong__img--cmp { position: relative; min-height: 70svh; }
.svclong__img--cmp .cmp { position: absolute; inset: 0; }
.svclong__img--cmp img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
@media (max-width: 900px) {
  .svclong__img--pop, .svclong__img--cmp { min-height: 0; aspect-ratio: 4 / 5; }
  /* spazio sotto il testo, dove arriva il soggetto della sezione dopo */
  .svclong__item:has(+ .svclong__item .svclong__img--pop) .svclong__body { padding-bottom: 96px; }
}

/* titoli di pagina lunghi (con le parole cercate): due righe su computer, più piccoli su telefono */
.phead--long .phead__title { max-width: 22ch; font-size: calc(var(--step-giant) * 0.72); }
@media (max-width: 800px) { .phead--long .phead__title { font-size: clamp(2.4rem, 10vw, 3.4rem); } }
/* pagine di settore: testo e domande sotto la galleria */
.catcopy { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--section) var(--m) 0; }
.catcopy .h2 { grid-column: 1 / 7; align-self: start; }
.catcopy__text { grid-column: 7 / 13; font-size: var(--step-body); line-height: 1.6; }
.catcopy__text p { margin: 0 0 1em; max-width: 60ch; }
@media (max-width: 800px) { .catcopy { display: block; } .catcopy .h2 { margin-bottom: 20px; } }
