/* OrtoPro — sito vetrina.
 *
 * I colori sono quelli dell'app (lib/core/theme/app_colors.dart): verde
 * campo, giallo grano, azzurro strada, neutri grigi appena freddi. Il tema
 * scuro segue quello del telefono e si puo' forzare con data-theme.
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700 800;
  font-display: swap;
}

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-low: #fafbfc;
  --surface-high: #eceef1;
  --outline: #e5e7eb;
  --outline-strong: #d3d6dc;
  --text: #15181d;
  --muted: #5c6270;

  --primary: #0f7a4e;
  --primary-strong: #0a5a39;
  --on-primary: #ffffff;
  --primary-container: #dcf2e7;
  --on-primary-container: #0b4a30;

  --wheat: #8a6700;
  --wheat-container: #fff4cc;
  --on-wheat-container: #5c4600;

  --road: #1f6cb0;
  --road-container: #e2edf8;
  --on-road-container: #0b355a;

  --account-container: #ede7fb;
  --on-account-container: #34236e;

  --hero-1: #0a5a39;
  --hero-2: #0f7a4e;
  --hero-3: #35a367;
  --on-hero: #ffffff;
  --on-hero-muted: rgba(255, 255, 255, 0.85);

  --shadow: 0 18px 40px -18px rgba(11, 42, 28, 0.28);
  --shadow-soft: 0 8px 24px -12px rgba(11, 42, 28, 0.2);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --gutter: 16px;
  --max: 1160px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b0d;
    --surface: #15171a;
    --surface-low: #0f1113;
    --surface-high: #202328;
    --outline: #272b30;
    --outline-strong: #3a3f46;
    --text: #eceef2;
    --muted: #9aa1ac;
    --primary: #4fd08e;
    --primary-strong: #4fd08e;
    --on-primary: #04301c;
    --primary-container: #123527;
    --on-primary-container: #a9ebc8;
    --wheat: #f2cb4c;
    --wheat-container: #3a3215;
    --on-wheat-container: #ffe8a3;
    --road: #7fbcf5;
    --road-container: #16324d;
    --on-road-container: #cde4fb;
    --account-container: #2c2548;
    --on-account-container: #e3dbff;
    --hero-1: #082619;
    --hero-2: #0e3a27;
    --hero-3: #175a3a;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --shadow-soft: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0b0d;
  --surface: #15171a;
  --surface-low: #0f1113;
  --surface-high: #202328;
  --outline: #272b30;
  --outline-strong: #3a3f46;
  --text: #eceef2;
  --muted: #9aa1ac;
  --primary: #4fd08e;
  --primary-strong: #4fd08e;
  --on-primary: #04301c;
  --primary-container: #123527;
  --on-primary-container: #a9ebc8;
  --wheat: #f2cb4c;
  --wheat-container: #3a3215;
  --on-wheat-container: #ffe8a3;
  --road: #7fbcf5;
  --road-container: #16324d;
  --on-road-container: #cde4fb;
  --account-container: #2c2548;
  --on-account-container: #e3dbff;
  --hero-1: #082619;
  --hero-2: #0e3a27;
  --hero-3: #175a3a;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* --- Base ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-sm);
}
.skip-link:focus {
  top: 16px;
}

/* --- Navigazione --------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.nav.is-solid {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--outline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #35a367, #0f7a4e 55%, #0a5a39);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -6px rgba(10, 90, 57, 0.6);
}

.brand__mark svg {
  width: 19px;
  height: 19px;
  color: #fff;
}

.nav--hero .brand,
.nav--hero .nav__links a {
  color: var(--on-hero);
}
.nav--hero.is-solid .brand,
.nav--hero.is-solid .nav__links a {
  color: var(--text);
}

.nav__links {
  display: none;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav__links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav__links a:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.nav .btn {
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
  .nav .btn {
    margin-left: 8px;
  }
}

/* --- Pulsanti ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 220ms ease, background 220ms ease;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  box-shadow: var(--shadow);
}

.btn--light {
  background: #fff;
  color: #0a5a39;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* La "pillola" dello store: ancora senza link finche' l'app non e' pubblicata. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border-radius: 16px;
  background: #0a0b0d;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}
.store svg {
  width: 26px;
  height: 26px;
}
.store small {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.8;
}
.store strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  color: var(--on-hero);
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
  border-radius: 0 0 48px 48px;
  overflow: hidden;
  padding: 112px 0 56px;
}

.hero::before {
  /* puntini, come il motivo dei banner dell'app */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 95%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero {
    padding: 128px 0 72px;
    border-radius: 0 0 72px 72px;
  }
  .hero__grid {
    grid-template-columns: 1.02fr 1fr;
    gap: 24px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.eyebrow__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff4cc;
  color: #5c4600;
  display: grid;
  place-items: center;
}
.eyebrow__dot svg {
  width: 13px;
  height: 13px;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 6.4vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: #fff4cc;
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--on-hero-muted);
  max-width: 34em;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__facts {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15px;
  color: var(--on-hero-muted);
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__facts svg {
  width: 18px;
  height: 18px;
  color: #a9ebc8;
}

/* La scena 3D: tela WebGL, oppure i telefoni in CSS se WebGL non c'e'. */
.stage {
  position: relative;
  height: 560px;
  touch-action: pan-y;
}
@media (min-width: 980px) {
  .stage {
    height: 640px;
  }
}

.stage canvas {
  position: absolute;
  inset: -40px -20px;
  width: calc(100% + 40px) !important;
  height: calc(100% + 80px) !important;
  pointer-events: none;
}

.stage__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage.is-3d .stage__fallback {
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease, visibility 0s 500ms;
}

.stage__hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--on-hero-muted);
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.stage.is-3d .stage__hint {
  display: inline-flex;
}
.stage__hint svg {
  width: 16px;
  height: 16px;
}

/* Le schede che galleggiano attorno al telefono: notifiche "vere" dell'app. */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #15181d;
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.3;
  pointer-events: none;
  animation: bob 6s ease-in-out infinite;
}
.float-card strong {
  display: block;
  font-size: 14px;
}
.float-card span {
  color: #5c6270;
  font-size: 13px;
}
.float-card__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.float-card__icon svg {
  width: 20px;
  height: 20px;
}
.float-card--a {
  top: 14%;
  left: 0;
}
.float-card--b {
  top: 52%;
  right: 0;
  animation-delay: -2s;
}
.float-card--c {
  bottom: 9%;
  left: 6%;
  animation-delay: -4s;
}
.tone-green {
  background: #dcf2e7;
  color: #0b4a30;
}
.tone-wheat {
  background: #fff4cc;
  color: #5c4600;
}
.tone-road {
  background: #e2edf8;
  color: #0b355a;
}
.tone-violet {
  background: #ede7fb;
  color: #34236e;
}

@media (max-width: 520px) {
  .float-card {
    font-size: 13px;
    padding: 10px 12px 10px 10px;
  }
  .float-card--a {
    top: 6%;
  }
  .float-card--c {
    display: none;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --- Telefono in CSS ------------------------------------------------------
 * Proporzioni di un iPhone 15 Pro: schermo 393×852 punti, cornice sottile,
 * isola dinamica, barra di stato disegnata sopra la schermata. */

.phone {
  --w: 280px;
  position: relative;
  width: var(--w);
  /* Telefono di 150,0 × 71,9 mm. L'altezza la decide lo schermo, che ha
     esattamente le proporzioni della schermata (393 × 852 punti): con una
     cornice uguale sui quattro lati del 3,5% della larghezza il telefono
     esce 2,086 volte piu' alto che largo, cioe' 150 / 71,9. */
  border-radius: calc(var(--w) * 0.167);
  padding: calc(var(--w) * 0.035);
  background:
    linear-gradient(145deg, #5d6268, #2a2d31 30%, #43474d 55%, #1f2225 80%, #555a60);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    inset 0 0 0 calc(var(--w) * 0.012) #111315,
    0 40px 80px -30px rgba(0, 0, 0, 0.55),
    0 18px 36px -18px rgba(0, 0, 0, 0.4);
  flex: none;
}

.phone::before,
.phone::after {
  /* tasti laterali */
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2d31, #5d6268);
}
.phone::before {
  left: -2px;
  top: 22%;
  height: 7%;
  box-shadow: 0 calc(var(--w) * 0.19) 0 #3a3e43, 0 calc(var(--w) * 0.36) 0 #3a3e43;
}
.phone::after {
  right: -2px;
  top: 30%;
  height: 11%;
}

.phone__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 393 / 852;
  border-radius: calc(var(--w) * 0.133);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.phone__screen img {
  width: 100%;
  height: 100%;
}

/* Isola e barra di stato nelle misure di iOS, in frazioni della larghezza
   dello schermo (--s = 393 punti): isola 126×37 a 11 dal bordo, ora
   centrata a 64, icone che finiscono a 28 dal bordo destro. */
.phone__screen {
  --s: calc(var(--w) * 0.93);
}

.phone__island {
  position: absolute;
  top: calc(var(--s) * 0.028);
  left: 50%;
  width: calc(var(--s) * 0.3206);
  height: calc(var(--s) * 0.0941);
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
  z-index: 3;
}

.phone__status {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--s) * 0.15);
  font-size: calc(var(--s) * 0.0433);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  z-index: 2;
}
.phone__status--dark {
  color: #15181d;
}
.phone__status > span:first-child {
  position: absolute;
  top: calc(var(--s) * 0.075);
  left: calc(var(--s) * 0.163);
  transform: translate(-50%, -50%);
}
.phone__status > span:last-child {
  position: absolute;
  top: calc(var(--s) * 0.075);
  right: calc(var(--s) * 0.072);
  transform: translateY(-50%);
  display: flex;
  gap: calc(var(--s) * 0.014);
  align-items: center;
}
.phone__status svg {
  height: calc(var(--s) * 0.03);
  width: auto;
}
.phone__status svg:last-child {
  height: calc(var(--s) * 0.032);
}

.phone__glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.05));
  border-radius: inherit;
}

/* Il telefono inclinato in 3D: si raddrizza seguendo il puntatore. */
/* Il telefono appena ruotato, fermo: la prospettiva e' lunga perche' non
   schiacci le proporzioni. */
.tilt {
  transform: perspective(3000px) rotateY(-6deg) rotateX(2deg);
}
.tilt--right {
  transform: perspective(3000px) rotateY(6deg) rotateX(2deg);
}

/* --- Sezioni ------------------------------------------------------------- */

.section {
  padding: 88px 0;
}
@media (min-width: 980px) {
  .section {
    padding: 120px 0;
  }
}

.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
}

.section__lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}

/* Fiducia: quattro garanzie in fila sotto la testata. */
.trust {
  margin-top: -1px;
  padding: 32px 0 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) {
  .trust__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
.trust__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  line-height: 1.45;
}
.trust__item strong {
  display: block;
  font-size: 15px;
}
.trust__item span {
  color: var(--muted);
  font-size: 14px;
}
.trust__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.trust__icon svg {
  width: 21px;
  height: 21px;
}
:root[data-theme="dark"] .tone-green,
:root[data-theme="dark"] .tone-wheat,
:root[data-theme="dark"] .tone-road,
:root[data-theme="dark"] .tone-violet {
  filter: none;
}

/* Come funziona: tre passi con le illustrazioni del marchio. */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--surface-high);
  letter-spacing: -0.04em;
}
.step__art {
  height: 132px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 20px;
}
.step__art img {
  height: 100%;
  width: auto;
}
.step h3 {
  font-size: 22px;
  font-weight: 700;
}
.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* Funzioni: testo e telefono affiancati, a righe alterne. */
.feature {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding: 64px 0;
  }
  .feature--flip .feature__media {
    order: -1;
  }
}

.feature__media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.feature__media::before {
  /* l'alone colorato dietro al telefono */
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: var(--glow, var(--primary-container));
  filter: blur(48px);
  opacity: 0.9;
  z-index: -1;
}
.feature--wheat {
  --glow: var(--wheat-container);
}
.feature--road {
  --glow: var(--road-container);
}
.feature--violet {
  --glow: var(--account-container);
}

.feature h3 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}
.feature__text > p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.ticks li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}
.ticks svg {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 8px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.feature--wheat .ticks svg {
  background: var(--wheat-container);
  color: var(--on-wheat-container);
}
.feature--road .ticks svg {
  background: var(--road-container);
  color: var(--on-road-container);
}
.feature--violet .ticks svg {
  background: var(--account-container);
  color: var(--on-account-container);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Trasporti: un riquadro azzurro con il camion. */
.band {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 40px 28px;
  border-radius: 36px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #0b355a, #1f6cb0);
  color: #fff;
  overflow: hidden;
}
@media (min-width: 900px) {
  .band {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 64px;
  }
}
.band h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}
.band p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}
.band .ticks svg {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.band__art img {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.3));
}
.band__route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  flex-wrap: wrap;
}
.band__route span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

/* Galleria: le schermate in fila, si scorrono di lato. */
.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px var(--gutter) 40px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery figure {
  margin: 0;
  scroll-snap-align: center;
  flex: none;
  text-align: center;
}
.gallery .phone {
  --w: 236px;
}
.gallery figcaption {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
@media (min-width: 1100px) {
  .gallery {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }
}
.gallery__controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}
@media (min-width: 1100px) {
  .gallery__controls {
    display: none;
  }
}
.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Sicurezza: griglia di schede. */
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.card {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.card h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
}
.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Domande frequenti. */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  position: relative;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 220ms ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 16px;
}

/* Invito finale. */
.cta {
  position: relative;
  text-align: center;
  padding: 64px 24px;
  border-radius: 40px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(500px 260px at 15% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
}
.cta h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
}
.cta p {
  margin: 16px auto 0;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}
.cta__actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cta__art {
  position: absolute;
  width: 170px;
  opacity: 0.95;
  pointer-events: none;
}
.cta__art--l {
  left: -20px;
  bottom: -14px;
}
.cta__art--r {
  right: -10px;
  top: 10px;
  width: 130px;
}
@media (max-width: 720px) {
  .cta__art {
    display: none;
  }
}

/* --- Piede --------------------------------------------------------------- */

.footer {
  padding: 56px 0 40px;
  margin-top: 40px;
  border-top: 1px solid var(--outline);
  font-size: 15px;
  color: var(--muted);
}
.footer__grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
}
.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 14px;
}
.footer .brand {
  color: var(--text);
  margin-bottom: 12px;
}

/* --- Pagine di testo (privacy, termini, assistenza) ---------------------- */

.doc-hero {
  color: var(--on-hero);
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
  border-radius: 0 0 40px 40px;
  padding: 120px 0 48px;
}
.doc-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
}
.doc-hero p {
  margin-top: 12px;
  color: var(--on-hero-muted);
}

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px var(--gutter) 24px;
}
.doc h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 44px 0 12px;
}
.doc h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.doc p,
.doc li {
  font-size: 16.5px;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}
.doc p + p {
  margin-top: 12px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 12px 0;
  display: grid;
  gap: 6px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--outline);
  vertical-align: top;
}
.doc th {
  font-weight: 700;
  color: var(--text);
  background: var(--surface-low);
}
.doc .toc {
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.doc .toc ol {
  margin: 8px 0 0;
}
.doc .note {
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.doc .note p {
  color: inherit;
}

.support-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
@media (min-width: 720px) {
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Comparsa allo scorrimento ------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-card {
    animation: none;
  }
}

.band .kicker {
  color: #cde4fb;
}

@media (max-width: 520px) {
  .trust__item {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
}

.doc .toc {
  margin: 20px 0 8px;
}
