/* ==========================================================================
   Concierge: sito pubblico (piani, registrazione, accesso)
   Tema chiaro, neutri caldi, un solo accento rosso mattone. Colori in OKLCH.
   ========================================================================== */

:root {
  --h: 60;
  --bg: oklch(0.99 0.003 var(--h));
  --bg-2: oklch(0.972 0.005 var(--h));
  --bg-3: oklch(0.948 0.007 var(--h));
  --ink: oklch(0.19 0.012 var(--h));
  --ink-2: oklch(0.41 0.011 var(--h));
  --ink-3: oklch(0.52 0.009 var(--h));
  --line: oklch(0.912 0.006 var(--h));
  --line-2: oklch(0.86 0.008 var(--h));

  --accent: oklch(0.555 0.165 38);
  --accent-hover: oklch(0.505 0.16 36);
  --accent-soft: oklch(0.955 0.028 45);
  --accent-ink: oklch(0.44 0.14 36);

  --ch-booking: oklch(0.5 0.14 262);
  --ch-airbnb: oklch(0.66 0.165 18);
  --ch-site: oklch(0.64 0.12 158);
  --ok: oklch(0.58 0.13 155);
  --wa-out: oklch(0.935 0.06 145);
  --wa-bg: oklch(0.955 0.012 85);

  --dark: oklch(0.18 0.012 var(--h));
  --dark-2: oklch(0.25 0.012 var(--h));
  --on-dark: oklch(0.97 0.004 var(--h));
  --on-dark-2: oklch(0.76 0.008 var(--h));

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-lg: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg:
    0 1px 2px oklch(0.2 0.01 var(--h) / 0.06),
    0 12px 32px -12px oklch(0.2 0.01 var(--h) / 0.16),
    0 40px 80px -40px oklch(0.2 0.01 var(--h) / 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ── Barra di navigazione ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.99 0.003 var(--h) / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang {
  position: relative;
}

.lang select {
  appearance: none;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 5px 26px 5px 12px;
  cursor: pointer;
}

.lang::after {
  content: '';
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.link {
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
}

.link:hover {
  color: var(--ink);
}

/* ── Pulsanti ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 15px;
  font-size: 14px;
}

.btn-primary {
  background: var(--accent);
  color: oklch(0.99 0.004 40);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.25) inset,
    0 6px 16px -6px oklch(0.55 0.17 36 / 0.55);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark:hover {
  background: oklch(0.3 0.012 var(--h));
}

.btn-outline {
  border-color: var(--line-2);
  color: var(--ink);
  background: var(--bg);
}

.btn-outline:hover {
  border-color: var(--ink-3);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn .arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(2px);
}

/* ── Testata ─────────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(48px, 8vw, 104px);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Alone caldo dietro il prodotto. */
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(1400px, 140vw);
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, oklch(0.93 0.05 50 / 0.7), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  margin: 0 auto;
  font-size: clamp(40px, 6.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 15ch;
  text-wrap: balance;
}

.hero h1 .soft {
  color: var(--ink-3);
}

.hero .lead {
  margin: 24px auto 0;
  max-width: 54ch;
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-price {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

.hero-price strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Scena prodotto (pannello + telefono) ────────────────────────────────── */
.stage {
  position: relative;
  margin-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

/* La scena si disegna a 1120 px e viene scalata per stare nella pagina:
   resta identica e proporzionata a ogni larghezza. */
.stage-scale {
  --s: 1;
  width: calc(1120px * var(--s));
  height: calc(660px * var(--s));
  margin-inline: auto;
}

.stage-inner {
  width: 1120px;
  height: 660px;
  transform: scale(var(--s));
  transform-origin: top left;
  position: relative;
}

.window {
  width: 1000px;
  height: 560px;
  background: var(--bg);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px oklch(0.2 0.01 var(--h) / 0.08),
    var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 196px 1fr;
  text-align: left;
  font-size: 13px;
}

.side {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side .brand {
  font-size: 14px;
  padding: 2px 8px 16px;
}

.side .brand-mark {
  width: 20px;
  height: 20px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--ink-2);
  font-weight: 500;
}

.side-item svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink-3);
}

.side-item.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 2px oklch(0.2 0.01 var(--h) / 0.05);
}

.side-item.active svg {
  color: var(--accent);
}

.side-item .badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 650;
  background: var(--accent);
  color: oklch(0.99 0.004 40);
  border-radius: 999px;
  padding: 0 7px;
  line-height: 18px;
}

.side-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 9px 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px oklch(0.58 0.13 155 / 0.18);
  flex: none;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.main-head h4 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--bg);
  white-space: nowrap;
}

.main-head .spacer {
  flex: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 14px 22px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat-label {
  font-size: 12px;
  color: var(--ink-3);
}

.stat-value {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 4px;
  letter-spacing: 0;
}

.timeline {
  padding: 16px 22px 20px;
  flex: 1;
}

.tl-grid {
  display: grid;
  grid-template-columns: 116px repeat(14, minmax(0, 1fr));
  row-gap: 8px;
  position: relative;
}

.tl-day {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  padding-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.tl-day b {
  display: block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tl-day.today {
  color: var(--accent-ink);
  font-weight: 650;
}

.tl-unit {
  grid-column: 1;
  align-self: center;
  font-weight: 550;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.25;
}

.tl-unit small {
  display: block;
  font-size: 11px;
  font-weight: 450;
  color: var(--ink-3);
}

.tl-track {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(28, minmax(0, 1fr));
  height: 34px;
  border-radius: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--bg-2) 0,
    var(--bg-2) calc(100% / 14 - 1px),
    var(--bg) calc(100% / 14 - 1px),
    var(--bg) calc(100% / 14)
  );
}

.stay {
  grid-row: 1;
  margin: 3px 1px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 8px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  color: oklch(0.99 0.004 var(--h));
}

.stay.booking {
  background: var(--ch-booking);
}

.stay.airbnb {
  background: var(--ch-airbnb);
}

.stay.site {
  background: var(--ch-site);
}

.tl-today {
  position: absolute;
  top: 36px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}

.tl-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-2);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-right: 6px;
}

.dot.booking {
  background: var(--ch-booking);
}

.dot.airbnb {
  background: var(--ch-airbnb);
}

.dot.site {
  background: var(--ch-site);
}

/* Telefono con la conversazione WhatsApp. */
.phone {
  position: absolute;
  right: 0;
  top: 64px;
  width: 296px;
  height: 590px;
  border-radius: 46px;
  background: oklch(0.16 0.008 var(--h));
  padding: 10px;
  box-shadow:
    0 0 0 1px oklch(0.3 0.01 var(--h)),
    0 30px 70px -20px oklch(0.15 0.02 var(--h) / 0.45),
    0 60px 120px -60px oklch(0.15 0.02 var(--h) / 0.5);
}

.screen {
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--wa-bg);
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}

.notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 90px;
  height: 25px;
  border-radius: 999px;
  background: oklch(0.16 0.008 var(--h));
  transform: translateX(-50%);
  z-index: 2;
}

.wa-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 46px 14px 11px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.wa-avatar svg {
  width: 18px;
  height: 18px;
}

.wa-name {
  font-weight: 650;
  font-size: 13.5px;
  line-height: 1.2;
}

.wa-sub {
  font-size: 11px;
  color: var(--ink-3);
}

.wa-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 11px;
  font-size: 13px;
  line-height: 1.42;
}

.wa-day {
  align-self: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--bg);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 4px;
}

.bubble {
  max-width: 86%;
  padding: 7px 10px 5px;
  border-radius: 10px;
  box-shadow: 0 1px 0.5px oklch(0.2 0.01 var(--h) / 0.12);
}

.bubble time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.bubble.in {
  align-self: flex-start;
  background: var(--bg);
  border-top-left-radius: 3px;
}

.bubble.out {
  align-self: flex-end;
  background: var(--wa-out);
  border-top-right-radius: 3px;
}

.wa-input {
  margin: 0 10px 18px;
  background: var(--bg);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* Notifica sopra il pannello: l'avviso al gestore. */
.toast {
  position: absolute;
  left: 236px;
  top: 498px;
  width: 330px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.4;
  box-shadow:
    0 0 0 1px oklch(0.2 0.01 var(--h) / 0.08),
    0 18px 40px -16px oklch(0.2 0.01 var(--h) / 0.3);
  z-index: 3;
}

.toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.toast-icon svg {
  width: 16px;
  height: 16px;
}

.toast b {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.toast span {
  color: var(--ink-2);
}

/* ── Canali ──────────────────────────────────────────────────────────────── */
.channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 44px;
  padding-block: 30px;
  border-block: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}

.channels .names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink-2);
}

/* ── Sezioni ─────────────────────────────────────────────────────────────── */
.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section-head {
  max-width: 760px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-ink);
}

.section h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.section .intro {
  margin-top: 18px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 58ch;
  text-wrap: pretty;
}

.section-head.center .intro {
  margin-inline: auto;
}

/* ── Riquadri funzioni ───────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}

.tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 320px;
  overflow: hidden;
}

.tile.w2 {
  grid-column: span 2;
}

.tile.w4 {
  grid-column: span 4;
}

.tile h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tile p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 46ch;
}

.tile-visual {
  margin-top: auto;
}

/* Mini interfacce dentro i riquadri. */
.mini {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
  box-shadow: 0 10px 24px -18px oklch(0.2 0.01 var(--h) / 0.4);
}

.rows {
  display: grid;
  gap: 7px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--bg-2);
  min-width: 0;
}

.row b {
  font-weight: 600;
  white-space: nowrap;
}

.row .muted {
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.row .end {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.row .end .status-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.row code {
  font-family: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  flex: none;
  width: 40px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 2px 7px;
  flex: none;
}

.alert-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--accent-ink);
  padding: 2px 2px 10px;
}

.alert-top svg {
  width: 16px;
  height: 16px;
}

.alert-quote {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--bg-2);
  color: var(--ink-2);
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.switch {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--ok);
  position: relative;
  flex: none;
  margin-left: auto;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 1px 2px oklch(0.2 0.01 var(--h) / 0.3);
}

.switch.off {
  background: var(--line-2);
}

.switch.off::after {
  right: auto;
  left: 3px;
}

/* ── Prezzi ──────────────────────────────────────────────────────────────── */
.pricing {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.price-card {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  background: var(--bg);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-lg);
  overflow: hidden;
}

.pc-left {
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
}

.pc-right {
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
}

.field-label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 10px;
}

.toggle {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg-3);
  border-radius: 999px;
}

.toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.toggle button[aria-pressed='true'] {
  background: var(--bg);
  color: var(--ink);
  box-shadow:
    0 1px 2px oklch(0.2 0.01 var(--h) / 0.1),
    0 0 0 1px var(--line);
}

.save-tag {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 1px 8px;
}

.units {
  margin-top: 30px;
}

.units-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  background: var(--bg);
}

.stepper button {
  appearance: none;
  border: 0;
  background: var(--bg-2);
  width: 42px;
  font: inherit;
  font-size: 19px;
  color: var(--ink);
  cursor: pointer;
}

.stepper button:hover {
  background: var(--bg-3);
}

.stepper input {
  width: 66px;
  border: 0;
  border-inline: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  padding: 8px 4px;
  background: var(--bg);
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.range {
  flex: 1;
  min-width: 0;
}

input[type='range'] {
  --fill: 15%;
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--bg-3) var(--fill));
  cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  box-shadow: 0 2px 6px oklch(0.2 0.01 var(--h) / 0.25);
}

input[type='range']::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.units-hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

.incl {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 18px;
}

.incl li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.incl li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.incl li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 6.5px;
  width: 6px;
  height: 3.5px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.total-label {
  font-size: 14px;
  color: var(--ink-3);
}

.total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.total .amount {
  font-size: clamp(54px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.total .per {
  font-size: 17px;
  color: var(--ink-3);
}

.saving {
  margin-top: 10px;
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ok);
}

.lines {
  margin-top: 20px;
}

.line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 11px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.line dt {
  color: var(--ink-2);
}

.line dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.line.is-total {
  border-top-color: var(--ink);
}

.line.is-total dt,
.line.is-total dd {
  color: var(--ink);
  font-weight: 650;
  font-size: 15.5px;
}

.line[hidden] {
  display: none;
}

.pc-right .btn {
  margin-top: 22px;
  width: 100%;
}

.trust {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.trust li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trust svg {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  flex: none;
}

.fine {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ── Attivazione ─────────────────────────────────────────────────────────── */
.steps {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -11px;
  left: 0;
  background: var(--bg);
  padding-right: 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ── Domande ─────────────────────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(32px, 6vw, 96px);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-block: 20px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.plus {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
}

.plus::before,
.plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink-2);
  transition: transform 0.3s var(--ease);
}

.plus::after {
  transform: rotate(90deg);
}

details[open] .plus::after {
  transform: rotate(0deg);
}

.faq-list details p {
  padding-bottom: 22px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ── Chiusura e piede ────────────────────────────────────────────────────── */
.closing {
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
  padding-block: clamp(72px, 10vw, 120px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.closing::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -320px;
  width: 1000px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, oklch(0.6 0.165 38 / 0.35), transparent);
  z-index: -1;
}

.closing h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 18ch;
  margin-inline: auto;
  text-wrap: balance;
}

.closing p {
  margin-top: 18px;
  color: var(--on-dark-2);
  font-size: 17px;
}

.closing .btn {
  margin-top: 32px;
}

.footer {
  background: var(--dark);
  color: var(--on-dark-2);
  border-top: 1px solid var(--dark-2);
  padding-block: 28px;
  font-size: 13.5px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer .brand {
  color: var(--on-dark);
  font-size: 15px;
}

/* ── Barra prezzo fissa su telefono ──────────────────────────────────────── */
.mobile-bar {
  display: none;
}

@media (max-width: 760px) {
  .mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 999px;
    box-shadow: 0 16px 40px -12px oklch(0.15 0.01 var(--h) / 0.5);
    transform: translateY(150%);
    transition: transform 0.4s var(--ease);
  }

  .mobile-bar.show {
    transform: none;
  }

  .mb-price {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }

  .mb-price small {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--on-dark-2);
  }
}

/* ── Movimento ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s var(--ease) both;
    animation-delay: calc(var(--d, 0) * 80ms);
  }

  .stay {
    animation: grow 0.8s var(--ease) both;
    animation-delay: calc(450ms + var(--d, 0) * 45ms);
    transform-origin: left center;
  }

  .phone {
    animation: rise 1.1s var(--ease) 0.35s both;
  }

  .toast {
    animation: drop 0.8s var(--ease) 1.4s both;
  }

  .bubble.out {
    animation: rise 0.6s var(--ease) 1.1s both;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }

  @keyframes grow {
    from {
      opacity: 0;
      transform: scaleX(0.5);
    }
  }

  @keyframes drop {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.98);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ── Larghezze ridotte ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .tile.w4,
  .tile.w2 {
    grid-column: span 3;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .price-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .pc-left {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile.w2,
  .tile.w4 {
    grid-column: auto;
  }

  .tile {
    min-height: 0;
    padding: 22px;
  }

  .incl {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-end .btn {
    display: none;
  }

  .footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 520px) {
  .units-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stepper {
    align-self: flex-start;
  }

  .toggle {
    display: grid;
    width: 100%;
  }

  .toggle button {
    padding-inline: 10px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* ── Moduli (registrazione, accesso) ─────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-main {
  display: flex;
  flex-direction: column;
  padding: 22px clamp(20px, 5vw, 64px);
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-form {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding-block: 40px;
}

.auth-form h1 {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.1;
}

.auth-form .sub {
  margin-top: 10px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.form-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.input-label {
  display: block;
  font-weight: 550;
  font-size: 14px;
  margin-bottom: 7px;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.input:hover {
  border-color: var(--ink-3);
}

.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px oklch(0.2 0.01 var(--h) / 0.08);
}

.input[aria-invalid='true'] {
  border-color: oklch(0.55 0.18 28);
}

.input-hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

.form-error {
  padding: 11px 14px;
  border-radius: 10px;
  background: oklch(0.965 0.025 28);
  color: oklch(0.45 0.15 28);
  font-size: 14.5px;
}

.form-error[hidden] {
  display: none;
}

.form-success {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: oklch(0.96 0.03 155);
  color: oklch(0.36 0.08 155);
  font-size: 15px;
}

.auth-form .btn {
  width: 100%;
  margin-top: 4px;
  min-height: 48px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding-block: 10px;
}

.nojs {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14.5px;
}

.form-foot {
  margin-top: 24px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.8;
}

.form-foot a {
  font-weight: 600;
  color: var(--ink);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
}

.check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  flex: none;
}

.auth-aside {
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-aside::before {
  content: '';
  position: absolute;
  right: -200px;
  top: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, oklch(0.93 0.05 50 / 0.8), transparent);
  z-index: -1;
}

.summary {
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-lg);
  padding: 28px;
}

.summary h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
}

.summary .total .amount {
  font-size: 48px;
}

.summary-foot {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.summary-foot a {
  color: var(--ink);
  font-weight: 600;
}

.aside-quote {
  max-width: 420px;
  margin-inline: auto;
}

.aside-quote h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 700;
}

.aside-quote p {
  margin-top: 14px;
  color: var(--ink-2);
}

.aside-quote .mini {
  margin-top: 28px;
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .auth-aside.optional {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Su telefono la scena mostra solo il telefono con la conversazione, a
   grandezza reale: il pannello in miniatura non sarebbe leggibile. */
.stage.compact .stage-scale {
  width: calc(300px * var(--s));
  height: calc(600px * var(--s));
}

.stage.compact .stage-inner {
  width: 300px;
  height: 600px;
}

.stage.compact .window {
  display: none;
}

.stage.compact .phone {
  right: auto;
  left: 2px;
  top: 0;
}

.stage.compact .toast {
  left: -14px;
  top: 530px;
  width: 328px;
}

/* ── Collegamento "vai al contenuto" (tastiera) ──────────────────────────── */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ── Collegamenti legali nel piè di pagina ───────────────────────────────── */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  color: var(--on-dark);
  text-decoration: none;
  padding-block: 6px;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-size: 13px;
  color: var(--ink-3);
}

.auth-foot a {
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 8px;
}

.auth-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.check a {
  color: var(--ink);
  font-weight: 550;
  text-underline-offset: 2px;
}

/* ── Pagine legali ───────────────────────────────────────────────────────── */
.legal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 112px);
}

.legal-nav {
  position: sticky;
  top: 96px;
}

.legal-nav ul {
  margin-top: 12px;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.legal-nav a {
  display: block;
  margin-left: -1px;
  padding: 8px 0 8px 14px;
  border-left: 2px solid transparent;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--ink);
}

.legal-nav a[aria-current='page'] {
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.legal-doc {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}

.legal-doc:focus {
  outline: none;
}

.legal-doc .legal-meta {
  font-size: 13.5px;
  color: var(--ink-3);
}

.legal-doc h1 {
  margin-top: 10px;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

.legal-doc .legal-lead {
  margin-top: 16px;
  font-size: clamp(17px, 1.4vw, 18.5px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.legal-doc h2 {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--ink);
  scroll-margin-top: 88px;
}

.legal-doc p,
.legal-doc ul,
.legal-doc .table-wrap {
  margin-top: 14px;
}

.legal-doc ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  list-style: disc;
}

.legal-doc li::marker {
  color: var(--ink-3);
}

.legal-doc strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-doc a {
  color: var(--accent-ink);
  text-underline-offset: 2px;
}

.legal-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--ink);
}

.legal-doc mark.ph {
  padding: 0 4px;
  border-radius: 4px;
  background: oklch(0.93 0.11 95);
  color: oklch(0.3 0.06 80);
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}

.legal-doc th,
.legal-doc td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal-doc th {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
}

.legal-doc tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-nav {
    position: static;
  }

  .legal-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 0;
  }

  .legal-nav a {
    margin-left: 0;
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 14px;
  }

  .legal-nav a[aria-current='page'] {
    border-color: var(--ink);
  }

  /* Su telefono le tabelle diventano schede: niente scorrimento orizzontale. */
  .legal-doc .table-wrap {
    border: 0;
    overflow: visible;
  }

  .legal-doc thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .legal-doc tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }

  .legal-doc td {
    display: block;
    border-bottom: 1px solid var(--line);
  }

  .legal-doc td:first-child {
    background: var(--bg-2);
    color: var(--ink);
  }

  .legal-doc tr:last-child td:last-child,
  .legal-doc td:last-child {
    border-bottom: 0;
  }
}

/* ── Stampa: i documenti legali si stampano puliti ───────────────────────── */
@media print {
  .nav,
  .footer,
  .legal-nav,
  .skip,
  .mobile-bar {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .legal {
    display: block;
    padding: 0;
  }

  .legal-doc {
    max-width: none;
    color: #000;
    font-size: 11pt;
  }

  .legal-doc h2 {
    break-after: avoid;
  }

  .legal-doc tr {
    break-inside: avoid;
  }

  .legal-doc mark.ph {
    background: none;
    border: 1px solid #000;
  }
}

/* ── Invio in corso: il pulsante resta leggibile e "respira" ─────────────── */
.btn[aria-busy='true'] {
  cursor: progress;
}

@media (prefers-reduced-motion: no-preference) {
  .btn[aria-busy='true'] {
    animation: busy 1.1s ease-in-out infinite alternate;
  }
}

@keyframes busy {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 0.55;
  }
}
