/* Fadora Tech. Palette e caratteri ripresi da fadora.it (blu #2c3792, lime #cce310, Space Grotesk + Inter). */
:root {
  color-scheme: dark;
  --bg: #0a0e17;
  --surface: #111625;
  --surface-2: #181e31;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.2);
  --line-field: #6b7790; /* bordi di campi e schemi: almeno 3:1 sul fondo */
  --blue: #2c3792;
  --blue-hi: #6f8cff;
  --lime: #cce310;
  --lime-hi: #dcf03c;
  --ink: #f1f5f9;
  --ink-2: #c5cedb;
  --muted: #9aa7ba;
  --danger: #ff9a8e;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  /* curva di Emil Kowalski per entrate e uscite */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1320px;
  --nav-h: 72px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 12px 24px -12px rgb(0 0 0 / 0.6), 0 32px 64px -32px rgb(0 0 0 / 0.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #2b3454 var(--bg); scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  caret-color: var(--lime); accent-color: var(--lime);
  overflow-x: clip;
}
::selection { background: var(--lime); color: var(--bg); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2b3454; border-radius: 6px; border: 3px solid var(--bg); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; }
p, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--lime); color: var(--bg); padding: 12px 16px; border-radius: var(--r-s); font-weight: 600; transform: translateY(-200%); transition: transform 0.2s var(--ease-out); }
.skip:focus { transform: none; }

main, .footer { position: relative; }

/* ---------- Link e pulsanti: un solo stile per tipo ---------- */
.link { text-decoration: underline; text-decoration-color: rgb(204 227 16 / 0.55); text-decoration-thickness: 1px; text-underline-offset: 0.28em; transition: text-decoration-color 0.15s ease, color 0.15s ease; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--f-display); cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, translate 0.14s var(--ease-out), scale 0.14s var(--ease-out);
}
.btn:has(> .ico:last-child) { padding-right: 20px; }
.btn:active { scale: 0.96; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--solid { background: var(--lime); color: var(--bg); }
.btn--ghost { border-color: rgb(204 227 16 / 0.5); color: var(--lime); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: var(--lime); color: var(--lime); }
  .btn--solid:hover { background: var(--lime-hi); translate: 0 -1px; }
  .btn--ghost:hover { background: rgb(204 227 16 / 0.1); border-color: var(--lime); }
  .btn:hover .ico { translate: 3px 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 36px; padding-inline: var(--gutter);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-solid { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.nav__logo { display: flex; align-items: center; min-height: 44px; }
.nav__logo img { width: 152px; height: auto; }
.nav__links { display: flex; gap: 6px; margin-left: auto; font: 500 0.9375rem/1 var(--f-body); }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; border-radius: 999px; color: var(--ink); transition: color 0.15s ease, background-color 0.15s ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { background: rgb(255 255 255 / 0.08); } }
.nav__cta { min-height: 44px; }
.nav__burger { display: none; }

/* ---------- Tipografia: quattro misure di testo (17 / 15 / 14 / 12) e una scala di titoli ---------- */
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 20ch; }
.body { color: var(--ink-2); max-width: 62ch; }
.body + .body { margin-top: 1em; }

/* ---------- Il negozio ---------- */
.shop { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.shop canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.shop-on .shop canvas { opacity: 1; }
.hero__title { font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 18ch; }
.hero__lead { max-width: 46ch; color: var(--ink-2); font-size: 0.9375rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: no-preference) { .hero-wait .shop__intro > * { visibility: hidden; } }

/* riquadro d'ingresso e pannello del reparto: stessa entrata (250 ms) e stessa uscita, più breve (150 ms) */
.shop__intro {
  position: absolute; left: var(--gutter); bottom: clamp(20px, 5vh, 56px); z-index: 2;
  display: grid; gap: 16px; justify-items: start; max-width: min(23rem, 34vw); padding: 24px;
  border-radius: var(--r-l); background: rgb(13 17 29 / 0.94); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transition: opacity 0.25s var(--ease-out), translate 0.25s var(--ease-out), visibility 0.25s;
}
.shop.is-inside .shop__intro { opacity: 0; visibility: hidden; translate: 0 12px; transition-duration: 0.15s; }
.shop__still { display: none; }

/* etichette ancorate ai reparti: la scena le sposta a ogni frame */
.shop__pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pin {
  position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: auto;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 600 0.875rem/1 var(--f-display); white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.7), 0 2px 4px rgb(0 0 0 / 0.4);
  will-change: translate;
  transition: background-color 0.15s ease, scale 0.14s var(--ease-out);
}
.pin:active { scale: 0.96; }
@media (hover: hover) and (pointer: fine) { .pin:hover { background: var(--lime); } }

.shop__pause, .panel__back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; color: var(--ink-2); font: 500 0.875rem/1 var(--f-body); cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, scale 0.14s var(--ease-out);
}
.shop__pause { position: absolute; z-index: 2; left: calc(var(--gutter) - 14px); top: calc(var(--nav-h) + 4px); background: rgb(13 17 29 / 0.7); }
.shop__pause[hidden] { display: none; }
.shop__pause .ico { width: 18px; height: 18px; }
.shop__pause .ico--play, .shop__pause[aria-pressed="true"] .ico--pause { display: none; }
.shop__pause[aria-pressed="true"] .ico--play { display: block; }
/* solo su telefono: vedi "Schermi stretti" */
.dock, .flow, .callbar { display: none; }
.panel__back { align-self: flex-start; padding-left: 10px; }
.shop__pause:active, .panel__back:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) {
  .shop__pause:hover, .panel__back:hover { color: var(--ink); background: rgb(255 255 255 / 0.08); }
  .panel__back:hover .ico { translate: -3px 0; }
}

/* pannello del reparto: a destra su schermi larghi, in basso su telefono. Alto quanto il suo contenuto. */
.panel {
  position: absolute; z-index: 3; right: 16px; top: calc(var(--nav-h) + 8px); width: min(400px, calc(100% - 32px)); max-height: calc(100% - var(--nav-h) - 24px);
  display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r-l);
  background: rgb(13 17 29 / 0.96); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transition: opacity 0.25s var(--ease-out), translate 0.25s var(--ease-out), display 0.25s allow-discrete;
}
@starting-style { .panel { opacity: 0; translate: 12px 0; } }
.panel[hidden] { display: none; opacity: 0; translate: 12px 0; transition-duration: 0.15s; }
/* raggi concentrici: guscio 24, distanza 12, righe 12 */
.panel__body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0 4px; display: grid; gap: 16px; align-content: start; scrollbar-width: thin; }
.panel__body > :not(.choices, .list) { margin-inline: 12px; }
.panel h2 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; }
.panel h2:focus, .panel .say:focus { outline: none; }
.panel p { color: var(--ink-2); font-size: 0.9375rem; }
.panel .note { font-size: 0.875rem; color: var(--muted); padding: 10px 12px; border-radius: var(--r-s); background: rgb(255 255 255 / 0.04); }
.panel .price { color: var(--ink); font: 600 1.125rem/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.panel .tags { display: flex; gap: 6px; }
.panel .tag { font: 500 0.75rem/1 var(--f-body); padding: 6px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.08); color: var(--ink-2); }
.panel .actions { display: grid; gap: 8px; }
.panel .actions .btn { width: 100%; }
.panel .say { padding: 14px 16px; border-radius: 4px var(--r-m) var(--r-m) var(--r-m); background: var(--surface-2); color: var(--ink); font-size: 1.0625rem; }
.choices, .list { display: grid; gap: 8px; }
.choice, .list button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 16px; text-align: left; text-wrap: pretty;
  border: 0; border-radius: 12px; background: rgb(255 255 255 / 0.06); color: var(--ink); font: 500 0.9375rem/1.3 var(--f-body); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, scale 0.14s var(--ease-out);
}
.choice:active, .list button:active { scale: 0.98; }
.list button small { color: var(--muted); font-size: 0.875rem; }
.list button.is-hot { background: var(--lime); color: var(--bg); }
.list button.is-hot small { color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .choice:hover, .list button:hover { background: var(--lime); color: var(--bg); } .list button:hover small { color: var(--bg); } }
.stepsmini { display: grid; gap: 14px; counter-reset: s; }
.stepsmini li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; }
.stepsmini li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 0.08); font: 600 0.875rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stepsmini strong { font: 600 1rem/1.3 var(--f-display); }
.stepsmini span { color: var(--ink-2); font-size: 0.9375rem; text-wrap: pretty; }

/* senza 3D: un'intestazione normale */
.no-gl .shop { height: auto; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) var(--gutter) 48px; }
.no-gl .shop canvas, .no-gl .shop__pins, .no-gl .panel, .no-gl .shop__pause { display: none; }
.no-gl .shop__intro { position: relative; left: auto; bottom: auto; background: none; box-shadow: none; padding: 0; }
.no-gl .hero__title { font-size: clamp(2.25rem, 4.6vw, 4.5rem); line-height: 1.04; }
.no-gl .shop__still { display: block; position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: min(34vw, 420px); height: auto; }

/* ---------- Sezioni ---------- */
.sec { min-height: 100svh; display: flex; align-items: center; padding-block: clamp(96px, 14vh, 160px); background: var(--bg); }
.sec--band { background: var(--surface); }

/* chi siamo */
.origin__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px 7%; align-items: center; }
.origin .h2 { margin-bottom: 24px; }
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram__lines path { stroke: rgb(255 255 255 / 0.45); stroke-width: 1.5; }
.diagram__pulses circle { fill: var(--lime); opacity: 0; }
.diagram__node rect { fill: var(--bg); stroke: var(--line-field); }
.diagram__node--hub rect { stroke: var(--lime); stroke-width: 1.5; fill: var(--surface-2); }
.diagram__leaf rect { fill: var(--bg); stroke-width: 1.5; }
.diagram__leaf .leaf--lime { stroke: var(--lime); }
.diagram__leaf .leaf--blue { stroke: var(--blue-hi); }
.diagram__leaf .leaf--white { stroke: var(--ink); }
.diagram__leaf text { fill: var(--ink); font: 500 17px var(--f-display); }

/* ---------- Capitoli scritti ---------- */
.chapter { padding-block: clamp(96px, 14vh, 160px); background: var(--bg); }
.chapter--band { background: var(--surface); }
.chapter__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 8%; align-items: start; }
/* il titolo resta in vista mentre scorrono le voci */
.chapter__head { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 32px); }
.items { grid-column: 2; display: grid; gap: 40px; counter-reset: s; }
.item { display: grid; gap: 10px; }
.item h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; }
.item p { color: var(--ink-2); }
.items--steps .item { counter-increment: s; grid-template-columns: 36px 1fr; column-gap: 16px; }
.items--steps .item::before { content: counter(s); grid-row: span 2; font: 600 1rem/1 var(--f-display); color: var(--lime); font-variant-numeric: tabular-nums; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-field); }
.aside { grid-column: 2; display: grid; gap: 24px; justify-items: start; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.aside p { color: var(--ink-2); }
/* l'hardware rompe lo schema: titolo sopra, quattro voci su due colonne */
@media (min-width: 821px) {
  .chapter--band .chapter__text { grid-template-columns: 1fr; }
  .chapter--band .chapter__head { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 8%; align-items: end; }
  .chapter--band .items { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 8%; margin-top: 32px; }
}

/* contatti */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 7%; align-items: start; }
.contact .h2 { margin-bottom: 24px; }
.contact .body { margin-bottom: 40px; }
.contact__info { display: grid; gap: 12px; }
.contact__info div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; }
.contact__info dt { color: var(--muted); font-size: 0.875rem; }
.contact__info .link { display: inline-flex; align-items: center; min-height: 44px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-l); background: var(--bg); box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; min-width: 0; border: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label, .field legend { font: 500 0.875rem/1.2 var(--f-body); color: var(--ink-2); }
.field .opt { color: var(--muted); font-weight: 400; }
.field legend { margin-bottom: 10px; }
.field input:not([type="radio"], [type="checkbox"]), .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-s);
  background: var(--surface); border: 1px solid var(--line-field); color: var(--ink);
  font: 400 1rem/1.4 var(--f-body); resize: vertical;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--surface) inset; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
.field :is(input, textarea)[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 0.875rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-field); font: 500 0.9375rem/1 var(--f-body); color: var(--ink-2); transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, scale 0.14s var(--ease-out); }
.chips label:active span { scale: 0.96; }
.chips input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chips label:hover input:not(:checked) + span { border-color: var(--ink-2); color: var(--ink); } }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; min-height: 44px; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; }
.check span { text-wrap: pretty; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { color: var(--ink-2); font-size: 0.9375rem; }
.form__status.is-error { color: var(--danger); }

/* footer */
.footer { padding-block: 72px 32px; background: var(--bg); }
.footer__logo { width: min(100%, 880px); height: auto; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 40px; color: var(--muted); font-size: 0.9375rem; }
.footer__row .link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Schermi stretti ---------- */
@media (max-width: 1000px) {
  .origin__grid, .contact { grid-template-columns: 1fr; }
  .diagram { max-width: 560px; }
}
@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; gap: 6px; place-content: center; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .nav__burger span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease-out); }
  .nav.is-open { height: 100svh; flex-wrap: wrap; align-content: flex-start; background: var(--bg); padding-top: 10px; }
  .nav.is-open .nav__links { display: grid; order: 3; width: 100%; margin: 32px 0 0; gap: 0; font: 600 1.75rem/1 var(--f-display); }
  .nav.is-open .nav__links a { min-height: 60px; padding: 0; }
  .nav.is-open .nav__cta { display: inline-flex; order: 4; width: 100%; margin-top: 24px; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__logo img { width: 134px; }
  /* il riquadro d'ingresso lascia più spazio possibile alla stanza */
  .shop__intro { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); max-width: none; gap: 12px; padding: 16px; }
  .hero__title { max-width: none; font-size: 1.5rem; }
  .hero__lead span { display: none; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  /* i reparti si scelgono dai pulsanti in basso, a portata di pollice: le etichette appese nella stanza qui si accavallano */
  .hero__actions .btn--ghost, .shop__pins { display: none; }
  .dock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .dock__tile {
    display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 68px; padding: 10px 4px; border-radius: 12px;
    background: rgb(255 255 255 / 0.07); color: var(--ink); font: 600 0.8125rem/1 var(--f-display);
    transition: background-color 0.15s ease, scale 0.14s var(--ease-out);
  }
  .dock__tile .ico { color: var(--lime); width: 22px; height: 22px; }
  .dock__tile:active { scale: 0.96; background: rgb(255 255 255 / 0.12); }
  /* il menu resta leggibile sopra la stanza */
  .shop::before { content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1; height: 132px; pointer-events: none; background: linear-gradient(var(--bg) 30%, transparent); }
  /* pausa: un tondo con la sola icona, in alto a destra */
  .shop__pause { left: auto; right: 10px; top: calc(var(--nav-h) + 4px); width: 44px; padding: 0; justify-content: center; background: rgb(13 17 29 / 0.8); box-shadow: inset 0 0 0 1px var(--line); }
  .shop__pause span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* altezza fissa: cambiando contenuto il pannello non si ridimensiona e la stanza non si sposta */
  .panel { left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; height: 56svh; max-height: none; padding: 8px; }
  @starting-style { .panel { translate: 0 12px; } }
  .panel[hidden] { translate: 0 12px; }
  .panel .say { font-size: 0.9375rem; padding: 12px 14px; }
  .panel h2 { font-size: 1.25rem; }
  .list { grid-template-columns: 1fr 1fr; }
  .list button { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .pin { font-size: 0.8125rem; padding: 0 12px; }
  /* sezioni scritte: alte quanto il contenuto, con un ritmo più stretto e una riga tra una voce e l'altra */
  .sec { min-height: 0; padding-block: 72px; }
  .chapter { padding-block: 72px; }
  .h2 { font-size: 1.875rem; line-height: 1.08; }
  .origin .h2, .contact .h2 { margin-bottom: 16px; }
  .chapter__text { grid-template-columns: 1fr; gap: 0; }
  .chapter__head { position: static; gap: 16px; }
  .items, .aside { grid-column: 1; }
  .items { margin-top: 32px; gap: 0; }
  .item { padding-block: 20px; border-top: 1px solid var(--line); gap: 6px; }
  .item h3 { font-size: 1.1875rem; }
  .items--steps .item { grid-template-columns: 32px 1fr; column-gap: 14px; }
  .items--steps .item::before { width: 32px; height: 32px; font-size: 0.9375rem; }
  .aside { padding-top: 24px; gap: 20px; }
  .aside .btn { width: 100%; white-space: normal; text-align: center; padding-block: 12px; }
  .contact { gap: 32px; }
  .contact .body { margin-bottom: 24px; }
  .contact__info { gap: 4px; }
  .contact__info div { grid-template-columns: 80px 1fr; }
  .form { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; margin-inline: -4px; border-radius: 20px; }
  .form__foot .btn { width: 100%; }
  .no-gl .shop__still { display: none; }
  /* chiamare o scrivere: sempre a un tocco mentre si leggono le sezioni */
  .callbar {
    position: fixed; z-index: 40; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px;
    background: rgb(13 17 29 / 0.97); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-strong);
    opacity: 0; visibility: hidden; translate: 0 12px;
    transition: opacity 0.15s var(--ease-out), translate 0.15s var(--ease-out), visibility 0.15s;
  }
  .callbar.is-on { opacity: 1; visibility: visible; translate: none; transition-duration: 0.25s; }
  .callbar .btn { min-height: 44px; padding: 0 12px; }
  .footer { padding-block: 56px 32px; }
}
@media (max-width: 559px) {
  /* il testo d'ingresso lascia la scena al negozio: titolo e pulsanti bastano */
  .hero__lead { display: none; }
  /* lo schema largo qui avrebbe scritte da 9 px: lo sostituisce quello verticale */
  .diagram { display: none; }
  .flow { display: grid; justify-items: center; margin-top: 8px; }
  .flow__node { display: grid; place-items: center; min-width: 200px; padding: 18px 24px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-field); }
  .flow__node--hub { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--lime); }
  .flow__line { width: 1.5px; height: 28px; background: rgb(255 255 255 / 0.45); }
  .flow__leaves { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .flow__leaves span { padding: 12px 16px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); font: 500 0.9375rem/1 var(--f-display); }
  .flow__leaves span:first-child { box-shadow: inset 0 0 0 1.5px var(--lime); }
  .flow__leaves span:nth-child(2) { box-shadow: inset 0 0 0 1.5px var(--blue-hi); }
}

/* ---------- Meno movimento: restano colore e opacità, spariscono gli spostamenti ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .choice, .list button, .chips span, .pin, .shop__pause, .panel__back { transition-property: background-color, border-color, color; }
  .btn:active, .choice:active, .list button:active, .chips label:active span, .pin:active, .shop__pause:active, .panel__back:active { scale: none; }
  .ico, .skip, .nav__burger span { transition: none; }
  .btn:hover, .btn:hover .ico, .panel__back:hover .ico { translate: none; }
  .shop__intro, .panel, .callbar { transition-property: opacity, visibility, display; }
  .callbar { translate: none; }
  .dock__tile { transition-property: background-color; }
  .dock__tile:active { scale: none; }
  .shop.is-inside .shop__intro, .panel[hidden] { translate: none; }
  @starting-style { .panel { translate: none; } }
  .shop canvas { transition: none; }
}
