/* =========================================================================
   Common · foglio di stile unico del sito (direzione B2, "Capitoli a colori")
   Bottoni con angoli a 10px, schede a 16px. I campi di colore a tutta
   larghezza restano senza angoli: sono sezioni, non schede.
   Regola di copy: un paragrafo breve accanto ai titoli di sezione va bene;
   dentro schede ed elementi piccoli, di solito un titolo e una riga.
   ========================================================================= */

/* ---- Font (ospitati sul sito, licenza OFL: vedi fonts/LICENSE-*) ------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Token --------------------------------------------------------------- */
:root {
  --ink:    #0B1220;   /* hero, chiusure, testo */
  --ink-2:  #1A2333;   /* superfici su scuro */
  --paper:  #F3F2EE;   /* fondo */
  --cobalt: #2236E0;   /* campo "design", accento su chiaro */
  --pine:   #0D4A39;   /* campo "automazione" */
  --bone:   #E2DCCF;   /* schede secondarie */
  --bone-2: #ECE8DE;   /* schede su fondo carta */
  --lime:   #D9F55E;   /* solo azioni e un dato */
  --lime-h: #E6FA86;
  --muted:  #4C5566;   /* note su chiaro, 6,7:1 */
  --on-dark-2: #C8CCD6;/* testo secondario su scuro, 11,6:1 */
  --on-cobalt-2: #DCE0FA;
  --error:  #C0262D;

  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --m: clamp(20px, 3vw, 48px);
  --r-btn: 10px;
  --r-card: 16px;

  /* Nomi usati da cookie-consent.js */
  --font-body: var(--text);
  --font-display: var(--display);
  --color-surface: #FFFFFF;
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-text-on-dark: var(--paper);
  --color-border: rgba(11, 18, 32, 0.10);
  --color-border-input: rgba(11, 18, 32, 0.45);
  --color-bg-sunken: var(--bone-2);
  --color-cta: var(--lime);
  --color-cta-text: var(--ink);
  --color-accent-text: var(--cobalt);
  --color-success: var(--pine);
  --color-focus: var(--cobalt);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.12);
  --shadow-lg: 0 16px 48px rgba(11, 18, 32, 0.18);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--text); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .on-color :focus-visible { outline-color: var(--lime); }
.wrap { padding: 0 var(--m); max-width: 1680px; margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 12px 16px; border-radius: var(--r-btn); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Tipografia ------------------------------------------------------------ */
.d-xl { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 10.5vw, 196px); line-height: .88; letter-spacing: -0.045em; }
.d-l  { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 104px); line-height: .92; letter-spacing: -0.04em; }
.d-m  { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 50px); line-height: 1; letter-spacing: -0.03em; }
.d-s  { font-family: var(--display); font-weight: 700; font-size: clamp(21px, 1.8vw, 28px); line-height: 1.08; letter-spacing: -0.02em; }
.lede { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; max-width: 40ch; }
.dark .lede, .hero .lede { color: var(--on-dark-2); }
.note { font-size: 15px; color: var(--muted); }
.dark .note { color: var(--on-dark-2); }

/* ---- Bottoni e link -------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; border: 0; border-radius: var(--r-btn); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--lime-h); }
.btn:active { transform: translateY(1px); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ink:hover { background: #1C2638; }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link:hover { text-decoration-thickness: 3px; }

/* ---- Barra di navigazione --------------------------------------------------- */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px var(--m); max-width: 1680px; margin: 0 auto; }
.bar .brand { display: block; padding: 6px 0; }
.bar .brand img { height: 22px; width: auto; }
.bar nav ul { display: flex; gap: 32px; font-size: 16px; }
.bar nav a { text-decoration: none; padding: 10px 0; }
.bar nav a:hover, .bar nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.bar-right { display: flex; align-items: center; gap: 20px; }
.lang { font-size: 15px; font-weight: 600; text-decoration: none; padding: 12px 4px; }
.lang:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; border-radius: var(--r-btn); border: 0; background: rgba(243,242,238,.12); font-weight: 600; cursor: pointer; }
.light-bar .menu-btn { background: var(--bone-2); }
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper); padding: 20px var(--m) 40px; display: none; flex-direction: column; overflow-y: auto; }
.drawer.is-open { display: flex; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-top img { height: 22px; width: auto; }
.drawer nav { margin-top: 10vh; }
.drawer nav a { display: block; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.15; letter-spacing: -0.03em; text-decoration: none; padding: 6px 0; }
.drawer .btn { margin-top: auto; }
.drawer .lang { margin-top: 32px; align-self: flex-start; }

/* ---- Sezioni ----------------------------------------------------------------- */
.dark { background: var(--ink); color: var(--paper); }
.hero { padding-top: 8vh; padding-bottom: 10vh; }
.hero h1 { max-width: 12ch; }
.hero-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 7vh; }
.hero-row .lede { max-width: 36ch; }
.hero-solo .lede { margin-top: 6vh; max-width: 38ch; }
.sec { padding: 16vh 0 0; }
.sec-last { padding-bottom: 16vh; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; margin-bottom: 7vh; }
.head h2 { max-width: 14ch; }
.head.stack { grid-template-columns: 1fr; gap: 3vh; }
.head.stack h2 { max-width: 20ch; }
.head .lede { max-width: 38ch; }

/* Il problema */
.leak-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.leak-path li { background: var(--bone-2); border-radius: var(--r-card); padding: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.leak-path li:last-child { background: var(--ink); color: var(--paper); }
.leak-path .t { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 2.6vw, 44px); line-height: .95; letter-spacing: -0.03em; color: var(--cobalt); }
.leak-path li:last-child .t { color: var(--lime); }
.leak-path p { font-family: var(--display); font-weight: 700; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.1; letter-spacing: -0.02em; }

/* L'esempio a schede */
.reel { background: var(--cobalt); color: var(--paper); padding: 12vh 0; margin-top: 16vh; }
.reel-top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 6vh; }
.reel-top .lede { color: var(--on-cobalt-2); margin-top: 3vh; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tabs .lab { font-size: 15px; color: var(--on-cobalt-2); margin-right: 4px; }
.tabs button { font-size: 15px; font-weight: 500; line-height: 1; color: var(--paper); background: rgba(243,242,238,.14); border: 0; border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; transition: background .15s; }
.tabs button:hover { background: rgba(243,242,238,.24); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.reel-stage { display: grid; grid-template-columns: 7fr 3fr; gap: 3vw; align-items: end; }
.browser { background: #fff; color: var(--ink); border-radius: var(--r-card); overflow: hidden; }
/* La landing d'esempio: foto a tutta altezza a sinistra, nome dell'attività
   sopra la foto con una sfumatura scura per leggerlo, testo e modulo a destra */
.lp-card { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 480px; }
.lp-card .pic { position: relative; transition: background-color .3s; }
.lp-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-card .pic::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 45%; background: linear-gradient(rgba(11,18,32,.62), rgba(11,18,32,0)); pointer-events: none; }
.lp-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; font-size: 14px; }
.lp-nav b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; color: #fff; }
.lp-card .copy { padding: 84px 36px 40px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.lp-card .copy .t { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 2.6vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.lp-form { display: grid; gap: 8px; }
.lp-form span { display: block; background: var(--paper); border-radius: 10px; padding: 13px 14px; font-size: 14px; color: var(--muted); }
.lp-form .go { background: var(--ink); color: #fff; font-weight: 600; text-align: center; }
.phone { background: var(--paper); color: var(--ink); border-radius: 30px; padding: 22px 18px; font-size: 15px; line-height: 1.4; display: flex; flex-direction: column; gap: 9px; }
.phone .top { font-size: 13px; font-weight: 600; padding: 0 4px 8px; display: flex; justify-content: space-between; }
.phone .in { align-self: flex-start; background: #fff; padding: 11px 14px; border-radius: 18px 18px 18px 5px; max-width: 86%; }
.phone .out { align-self: flex-end; background: var(--cobalt); color: #fff; padding: 11px 14px; border-radius: 18px 18px 5px 18px; max-width: 86%; }
.slots { display: flex; gap: 8px; justify-content: flex-end; }
.slots span { background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.slots span.on { background: var(--lime); color: var(--ink); }
.reel .phone { margin-bottom: -2vh; }

/* Due mestieri */
.crafts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.craft { border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 56px); min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; color: var(--paper); }
.craft.c1 { background: var(--cobalt); }
.craft.c2 { background: var(--pine); }
.craft p { max-width: 44ch; color: #E4E7F5; margin-top: 18px; }
.craft ul { display: flex; flex-wrap: wrap; gap: 8px; }
.craft li { background: rgba(243,242,238,.14); border-radius: 999px; padding: 8px 14px; font-size: 15px; }

/* Cosa costruiamo */
.kit { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.piece { grid-column: span 3; background: var(--bone-2); border-radius: var(--r-card); padding: 24px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.piece.w6 { grid-column: span 6; }
.piece .obj { flex: 1; display: grid; place-items: center; }
.piece h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.05; letter-spacing: -0.02em; }
.piece.go { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; padding: 32px 36px; background: var(--ink); color: var(--paper); text-decoration: none; transition: background .2s; }
.piece.go:hover { background: #1C2638; }
.piece.go h3 { font-size: clamp(26px, 2.4vw, 38px); }
.piece.go svg { width: 56px; height: 56px; flex: none; color: var(--lime); transition: transform .2s; }
.piece.go:hover svg { transform: translateX(6px); }
.o-browser { width: 88%; background: #fff; border-radius: 10px; overflow: hidden; }
.o-browser i { display: block; height: 18px; background: var(--bone); }
.o-browser div { padding: 16px; display: grid; gap: 8px; }
.o-browser b { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; line-height: 1; }
.o-browser span { background: var(--cobalt); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 600; padding: 8px 10px; width: max-content; }
.o-bub { display: grid; gap: 6px; width: 90%; font-size: 13px; }
.o-bub span { padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: #fff; width: max-content; max-width: 100%; }
.o-bub span.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--cobalt); color: #fff; }
.o-bub em { font-style: normal; font-size: 12px; color: var(--muted); justify-self: end; }
.o-pills { display: grid; gap: 6px; font-size: 13px; width: 90%; }
.o-pills span { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 9px 12px; }
.o-pills svg { width: 14px; height: 14px; color: var(--pine); }
.o-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; width: 86%; }
.o-cal i { display: block; height: 26px; border-radius: 6px; background: #fff; }
.o-cal i.on { background: var(--pine); }
.o-note { background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 13px; width: 90%; display: grid; gap: 2px; }
.o-note b { font-size: 12px; color: var(--muted); font-weight: 500; }
.o-stars { display: flex; gap: 6px; color: var(--cobalt); }
.o-stars svg { width: 30px; height: 30px; }
.o-loop { width: 64px; height: 64px; color: var(--pine); }

/* Il confronto */
.vs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vs-card { border-radius: var(--r-card); padding: clamp(28px, 3vw, 44px); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: var(--bone-2); }
.vs-card.us { background: var(--lime); }
.vs-card p { font-size: clamp(19px, 1.5vw, 22px); max-width: 26ch; }

/* Per chi + chi c'è dietro */
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 56px); min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.card.bone { background: var(--bone); }
.card.ink { background: var(--ink); color: var(--paper); }
.card p { font-size: clamp(19px, 1.5vw, 22px); max-width: 34ch; }
.card.ink p { color: var(--on-dark-2); }
.card .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.card .mark { width: 96px; height: auto; }

/* Domande */
.faq .wrap { display: grid; grid-template-columns: 4fr 6fr; gap: 6vw; }
.faq .lede { margin-top: 3vh; max-width: 24ch; }
.faq details { background: var(--bone-2); border-radius: var(--r-card); margin-bottom: 8px; }
.faq summary { list-style: none; cursor: pointer; padding: 24px 28px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-radius: var(--r-card); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--text); font-weight: 500; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 28px 26px; max-width: 56ch; }

/* Capitoli (pagina del sistema): testo e oggetto si alternano a ogni capitolo */
.ch { padding: 16vh 0; }
.ch .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 6vw; align-items: center; width: 100%; }
.ch.flip .ch-text { order: 2; }
.ch .when { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 11vw, 200px); line-height: .82; letter-spacing: -0.05em; }
.c-paper .when, .c-bone .when { color: var(--cobalt); }
.c-cobalt .when, .c-ink .when, .c-pine .when { color: var(--lime); }
.ch h2 { margin-top: 4vh; max-width: 15ch; font-size: clamp(32px, 3.6vw, 60px); line-height: 1; letter-spacing: -0.035em; }
.steps { display: flex; gap: 6px; margin-top: 6vh; }
.steps li { width: 40px; height: 6px; border-radius: 3px; background: currentColor; opacity: .16; }
.steps li.on { opacity: 1; background: var(--cobalt); }
.c-cobalt .steps li.on, .c-ink .steps li.on, .c-pine .steps li.on { background: var(--lime); }
.step-name { margin-top: 12px; font-size: 15px; font-weight: 600; opacity: .75; }
.ch-obj { display: flex; justify-content: center; }
.ch-obj > * { transform: rotate(-1.5deg); }
.ch.flip .ch-obj > * { transform: rotate(1.5deg); }
.ch-obj .wide { transform: rotate(-1deg); }

/* Il percorso nell'hero del sistema */
.track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 9vh; }
.track a { display: flex; flex-direction: column; gap: 8px; min-height: 116px; justify-content: space-between; padding: 18px 20px; border-radius: 12px; background: var(--ink-2); text-decoration: none; transition: background .15s, transform .15s; }
.track a:hover { background: #253046; transform: translateY(-2px); }
.track .tt { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.7vw, 28px); line-height: 1; letter-spacing: -0.02em; color: var(--lime); }
.track .tn { font-size: 15px; color: var(--on-dark-2); }
.c-paper { background: var(--paper); }
.c-cobalt { background: var(--cobalt); color: var(--paper); }
.c-pine { background: var(--pine); color: var(--paper); }
.c-bone { background: var(--bone); }
.c-ink { background: var(--ink); color: var(--paper); }
.obj-c { width: min(500px, 100%); }
.obj-c.wide { width: 100%; }
.lp2 .bar2 { background: var(--pine); color: var(--paper); padding: 34px 30px; }
.lp2 .bar2 b { display: block; font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1; letter-spacing: -0.03em; max-width: 13ch; }
.lp2 .bar2 span { display: inline-block; margin-top: 18px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 8px; }
.lp2 .fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.lp2 .fields span { background: var(--paper); border-radius: 10px; padding: 14px; font-size: 14px; color: var(--muted); }
.qa { background: var(--paper); color: var(--ink); border-radius: var(--r-card); padding: 24px; display: grid; gap: 8px; }
.qa .q { display: flex; justify-content: space-between; gap: 16px; background: #fff; border-radius: 12px; padding: 18px 20px; font-size: 17px; }
.qa .q b { font-weight: 600; }
.qa .score { margin-top: 6px; background: var(--lime); border-radius: 12px; padding: 18px 20px; font-weight: 600; font-size: 17px; }
.ticket { background: var(--paper); color: var(--ink); border-radius: var(--r-card); padding: 28px; }
.ticket .big { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.03em; margin-bottom: 20px; }
.ticket .row { display: flex; justify-content: space-between; font-size: 17px; padding: 8px 0; }
.ticket .conf { margin-top: 18px; background: var(--lime); border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.review { background: #fff; border-radius: var(--r-card); padding: 26px; display: grid; gap: 14px; }
.review .g { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 16px 18px; font-weight: 600; font-size: 17px; text-align: center; }
.review .o-stars svg { width: 44px; height: 44px; }
.ch .phone { font-size: 17px; padding: 26px 22px; }
.ret { width: 100%; font-size: 16px; display: grid; gap: 8px; }
.ret li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 24px; background: var(--bone-2); border-radius: 12px; font-size: 18px; }
.ret .s { font-weight: 600; font-size: 14px; border-radius: 999px; padding: 4px 12px; background: var(--paper); white-space: nowrap; }
.ret .s.back { background: var(--ink); color: var(--lime); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side { border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 52px); }
.side.us { background: var(--ink); color: var(--paper); }
.side.you { background: var(--bone); }
.dots { margin-top: 28px; display: grid; gap: 14px; font-size: clamp(18px, 1.4vw, 21px); }
.dots li { padding-left: 24px; position: relative; }
.dots li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.side.you .dots li::before, .fit .dots li::before { background: var(--cobalt); }
.miss .dots li::before { background: var(--error); }

/* Per chi (pagina) */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector { background: var(--bone-2); border-radius: var(--r-card); padding: 28px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.sector p { font-size: 17px; }
.sector.go { background: var(--lime); text-decoration: none; transition: background .2s; }
.sector.go:hover { background: var(--lime-h); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit, .miss { border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 52px); }
.fit { background: var(--bone); }
.miss { background: var(--bone-2); }

/* Prenota */
.book { padding: 6vh 0 16vh; }
.book-head { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; margin-bottom: 6vh; }
.book-head h1 { max-width: 12ch; }
.wv-booking-frame { background: #fff; border-radius: var(--r-card); overflow: hidden; max-width: 960px; min-height: 700px; }
.wv-booking-frame iframe { display: block; width: 100%; border: 0; min-height: 700px; }
.wv-booking-fallback { margin-top: 20px; font-size: 15px; color: var(--muted); }
.wv-booking-fallback a { color: var(--cobalt); font-weight: 600; }

/* Pagine legali */
.legal { padding: 4vh 0 16vh; }
.legal .wrap { display: grid; grid-template-columns: 3fr 7fr; gap: 6vw; }
.legal-toc { position: sticky; top: 24px; align-self: start; font-size: 15px; display: grid; gap: 0; }
.legal-toc a { text-decoration: none; color: var(--muted); padding: 6px 0; display: block; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2vw, 32px); line-height: 1.1; letter-spacing: -0.02em; margin: 56px 0 16px; scroll-margin-top: 24px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 17px; line-height: 1.65; margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; list-style: disc; }
.legal-body a { color: var(--cobalt); font-weight: 600; }
.legal-body .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }

/* 404 */
.nf { min-height: 70svh; display: flex; align-items: center; }
.nf .row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6vh; }

/* ---- Chiusura e footer -------------------------------------------------------- */
.end { padding: 14vh 0 4vh; margin-top: 16vh; }
.end.flush { margin-top: 0; padding-top: 6vh; }
.end.flush .foot { margin-top: 0; border-top: 0; padding-top: 0; }
.end .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.end .row p { max-width: 17ch; }
.end .name { font-family: var(--display); font-weight: 800; font-size: 22vw; line-height: .78; letter-spacing: -0.06em; color: var(--cobalt); margin-top: 12vh; user-select: none; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-top: 8vh; padding-top: 32px; border-top: 1px solid rgba(243,242,238,.14); font-size: 15px; color: var(--on-dark-2); }
.foot h2 { font-family: var(--text); font-size: 13px; font-weight: 600; color: var(--paper); margin-bottom: 12px; }
.foot ul { display: grid; gap: 4px; }
.foot a, .foot button { text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; text-align: left; display: inline-block; }
.foot a:hover, .foot button:hover { color: var(--paper); text-decoration: underline; }
.foot .legal-line { grid-column: 1 / -1; font-size: 13px; padding-top: 16px; }

/* ---- Movimento ------------------------------------------------------------------ */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---- Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .leak-path, .sectors { grid-template-columns: 1fr 1fr; }
  .piece { grid-column: span 6; }
  .piece.w6, .piece.go { grid-column: span 12; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .bar nav, .bar-right .btn, .bar-right .lang { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero-row, .head, .crafts-grid, .vs-grid, .pair-grid, .faq .wrap, .reel-stage, .split-grid, .fit-grid, .book-head, .legal .wrap { grid-template-columns: 1fr; }
  .head { gap: 3vh; }
  .reel .phone { display: none; }
  .craft, .card, .vs-card, .sector { min-height: 0; }
  .ch { padding: 10vh 0; }
  .ch .wrap { grid-template-columns: 1fr; }
  .ch.flip .ch-text { order: 0; }
  .ch .when { font-size: 19vw; }
  .ch-obj > *, .ch.flip .ch-obj > * { transform: none; }
  .track { grid-template-columns: repeat(3, 1fr); }
  .legal-toc { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .leak-path, .sectors { grid-template-columns: 1fr; }
  .leak-path li { min-height: 0; padding: 24px; }
  .kit { gap: 10px; }
  .piece { grid-column: span 6; min-height: 200px; padding: 18px; }
  .piece.w6 { grid-column: span 12; min-height: 220px; }
  .piece h3 { font-size: 18px; }
  .piece .o-bub, .piece .o-pills, .piece .o-note { font-size: 11px; width: 100%; }
  .o-stars svg { width: 20px; height: 20px; }
  .piece.go { padding: 24px; }
  .piece.go svg { width: 40px; height: 40px; }
  .track { grid-template-columns: 1fr 1fr; }
  .track a { min-height: 92px; padding: 14px 16px; }
  .lp-card { grid-template-columns: 1fr; min-height: 0; }
  .lp-card .pic { aspect-ratio: 4 / 3; }
  .lp-card .copy { padding: 24px 20px; }
  .lp-nav { padding: 16px 18px; color: #fff; }
  .lp2 .fields { grid-template-columns: 1fr; }
  .lp2 .bar2 b { font-size: 28px; }
  .faq summary { font-size: 19px; padding: 20px; }
  .faq details p { padding: 0 20px 22px; }
  .foot { grid-template-columns: 1fr; }
  .wv-booking-frame { border-radius: 12px; }
}
