/* Vohippo — sito pubblico
   Palette presa dal logo: blu profondo, azzurro e celeste delle tre "nuvole".
   Titoli Space Grotesk, testo Inter. */

:root {
  color-scheme: light;

  --brand-900: #013a56;
  --brand-800: #005f8f;
  --brand-600: #0089c9;
  --brand-400: #45b6e8;
  --brand-200: #a9ddf5;
  --brand-050: #eaf6fd;

  --ink: #071a26;
  --ink-soft: #3d5765;
  --ink-muted: #6b8494;

  --bg: #ffffff;
  --bg-soft: #f4f9fc;
  --surface: #ffffff;
  --surface-2: #f8fbfd;
  --line: #dceaf2;
  --line-strong: #c3dced;

  --shadow-sm: 0 1px 2px rgba(7, 26, 38, 0.06), 0 1px 3px rgba(7, 26, 38, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(7, 26, 38, 0.18);
  --shadow-lg: 0 36px 80px -40px rgba(1, 58, 86, 0.45);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --maxw: 1160px;
  --gutter: 20px;

  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Space Grotesk', var(--font-body);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --ink: #eaf4fa;
    --ink-soft: #b3c9d6;
    --ink-muted: #8aa4b4;
    --bg: #05131d;
    --bg-soft: #081a26;
    --surface: #0a1e2c;
    --surface-2: #0c2435;
    --line: #14364a;
    --line-strong: #1d4c66;
    --brand-050: #0a2a3d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Su iOS l'overflow-x sul solo body non blocca lo scorrimento laterale: serve anche qui.
     `clip` invece di `hidden` per non creare un contenitore di scorrimento (romperebbe
     l'header sticky). */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
.font-head {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
}

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

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  color: var(--brand-800);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  /* si restringe quando la barra è stretta, invece di spingere fuori il menu */
  flex: 0 1 auto;
  min-width: 0;
}

.brand img {
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* telefoni stretti (360 px e meno): logo e selettore lingua più compatti, così il
   pulsante del menu resta dentro lo schermo e la pagina non scorre di lato */
@media (max-width: 430px) {
  .site-header .wrap {
    gap: 10px;
    min-height: 64px;
  }

  .brand img {
    height: 24px;
  }

  .lang a {
    padding: 3px 8px;
    font-size: 0.75rem;
  }

  .burger {
    width: 38px;
    height: 38px;
  }

  .nav {
    inset-block-start: 64px;
  }
}

.brand .logo-dark,
.footer-brand .logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand .logo-light,
  :root:not([data-theme='light']) .footer-brand .logo-light {
    display: none;
  }
  :root:not([data-theme='light']) .brand .logo-dark,
  :root:not([data-theme='light']) .footer-brand .logo-dark {
    display: block;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.nav a.is-current {
  color: var(--brand-600);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  /* sempre a filo destro: sul telefono la barra di navigazione esce dal flusso e senza
     questo margine i pulsanti resterebbero appiccicati al logo */
  margin-inline-start: auto;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.lang a {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.lang a.is-current {
  background: var(--brand-600);
  color: #fff;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 940px) {
  .burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav a {
    padding: 12px 10px;
    font-size: 1.02rem;
  }

  .btn.header-cta {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(0, 137, 201, 0.9);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(0, 137, 201, 0.95);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--brand-400);
}

.btn-wa {
  background: #25d366;
  color: #04301a;
}

.btn-wa:hover {
  color: #04301a;
  background: #1fbe5b;
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 15% -10%, #0a6f9e 0%, transparent 60%),
    radial-gradient(900px 520px at 88% 8%, #0aa1d6 0%, transparent 58%), linear-gradient(160deg, #012a41 0%, #013a56 48%, #01536f 100%);
  color: #eaf7ff;
  padding: clamp(64px, 9vw, 116px) 0 clamp(70px, 10vw, 128px);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero .eyebrow {
  color: var(--brand-200);
}

.hero h1 {
  color: #fff;
  max-width: 14ch;
}

.hero p {
  color: #c8e6f6;
  max-width: 54ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: #9dcbe2;
}

/* decorazione dentro la scheda dell'hero: non deve mai sporgere oltre il bordo destro
   della pagina, o su telefono comparirebbe lo scorrimento orizzontale */
.hero-card .clouds {
  inset: -60px 0 auto auto !important;
  width: min(200px, 48%) !important;
}

/* nuvole animate del marchio */
.clouds {
  position: relative;
  aspect-ratio: 1 / 0.82;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

.clouds span {
  position: absolute;
  border-radius: 46% 46% 42% 42% / 58% 58% 42% 42%;
  animation: float 9s ease-in-out infinite;
}

.clouds span:nth-child(1) {
  inset: 8% 26% 20% 4%;
  background: rgba(196, 232, 248, 0.55);
}

.clouds span:nth-child(2) {
  inset: 14% 14% 14% 22%;
  background: rgba(105, 194, 234, 0.7);
  animation-delay: -3s;
}

.clouds span:nth-child(3) {
  inset: 22% 2% 8% 40%;
  background: rgba(20, 150, 210, 0.85);
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.hero-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.hero-card ul {
  display: grid;
  gap: 10px;
}

.hero-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #d6ecf8;
}

.hero-card li svg {
  flex: none;
  margin-top: 3px;
  width: 17px;
  height: 17px;
  color: var(--brand-200);
}

/* ---------- strip numeri ---------- */

.strip {
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.strip-item {
  background: var(--surface);
  padding: 22px 20px;
}

.strip-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--brand-800);
}

.strip-item span {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

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

/* fascia di apertura delle pagine interne: riempie lo spazio sopra senza rubare
   la scena all'hero scuro della home */
.page-hero {
  background: linear-gradient(180deg, var(--brand-050) 0%, transparent 100%);
  padding-bottom: clamp(30px, 4vw, 52px);
}

/* ---------- sezioni ---------- */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

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

.grid {
  display: grid;
  gap: 20px;
}

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

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--brand-050), color-mix(in srgb, var(--brand-200) 55%, transparent));
  color: var(--brand-800);
  border: 1px solid color-mix(in srgb, var(--brand-200) 70%, transparent);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.checks {
  display: grid;
  gap: 11px;
}

.checks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--ink-soft);
}

.checks li svg {
  flex: none;
  margin-top: 4px;
  width: 18px;
  height: 18px;
  color: var(--brand-600);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand-800);
  border: 1px solid color-mix(in srgb, var(--brand-200) 70%, transparent);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- listino ---------- */

.rates-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.code {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #04202f;
  color: #cfe9f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
}

.code .t {
  color: #7fd1f2;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(34px, 5vw, 62px);
  background: radial-gradient(760px 320px at 12% 0%, #0aa1d6 0%, transparent 62%), linear-gradient(140deg, #013a56, #01536f);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  color: #fff;
  max-width: 20ch;
}

.cta p {
  color: #c8e6f6;
  max-width: 58ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- form ---------- */

.form {
  display: grid;
  gap: 16px;
}

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-400) 28%, transparent);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-status {
  display: none;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
}

.form-status.ok {
  display: block;
  background: #e8f8ef;
  border: 1px solid #b6e6c9;
  color: #14532d;
}

.form-status.error {
  display: block;
  background: #fdecec;
  border: 1px solid #f3c2c2;
  color: #7f1d1d;
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(42px, 6vw, 72px) 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--brand-600);
}

.footer-brand img {
  height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- WhatsApp fisso ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #04301a;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.8);
  transition: transform 0.18s ease;
}

.wa-float:hover {
  transform: scale(1.06);
  color: #04301a;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* ---------- animazioni ---------- */

/* L'animazione di comparsa vale solo se il JavaScript è attivo: senza, il contenuto
   deve restare visibile (motori di ricerca, browser con JS disattivato). */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

  .clouds span {
    animation: none;
  }

  .btn:hover,
  .card:hover,
  .wa-float:hover {
    transform: none;
  }
}

/* ---------- anteprime del portale ----------
   Finestra finta che riproduce l'interfaccia del portale: dati inventati, nessuno
   screenshot con informazioni di clienti reali. --shell-accent si ridefinisce per
   mostrare lo stesso portale con un marchio diverso (pagina white label). */

.shell {
  --shell-accent: var(--brand-600);
  --shell-accent-soft: color-mix(in srgb, var(--shell-accent) 14%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
}

.shell-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.shell-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

.shell-url {
  margin-left: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-body {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 300px;
}

.shell-side {
  padding: 14px 10px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 2px;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--shell-accent);
  letter-spacing: -0.01em;
}

.shell-brand span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--shell-accent);
  flex: none;
}

.shell-side b {
  padding: 7px 9px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink-muted);
}

.shell-side b.on {
  background: var(--shell-accent-soft);
  color: var(--shell-accent);
  font-weight: 600;
}

.shell-main {
  padding: 16px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.shell-h {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mock-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--bg);
}

.mock-card.accent {
  background: radial-gradient(150px 90px at 0% 0%, color-mix(in srgb, #16a34a 16%, transparent), transparent 70%);
  border-color: color-mix(in srgb, #16a34a 30%, var(--line));
}

.mock-card i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--ink-muted);
}

.mock-card strong {
  font-family: var(--font-head);
  font-size: 18px;
  white-space: nowrap;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 92px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

/* barre trasparenti con bordo pieno, come nel portale */
.mock-chart span {
  flex: 1;
  border: 2px solid var(--shell-accent);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--shell-accent) 18%, transparent);
}

.mock-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr 0.8fr;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.mock-row:first-child {
  border-top: 0;
  background: var(--surface-2);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mock-row span:last-child {
  text-align: right;
}

.mock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--shell-accent-soft);
  color: var(--shell-accent);
}

.mock-badge.ok {
  background: #e8f8ef;
  color: #14532d;
}

.mock-badge.rec {
  background: #f1e9fe;
  color: #6b21a8;
}

.mock-badge.off {
  background: var(--surface-2);
  color: var(--ink-muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .mock-badge.ok {
    background: #0e2f1d;
    color: #86efac;
  }
  :root:not([data-theme='light']) .mock-badge.rec {
    background: #2a1840;
    color: #d8b4fe;
  }
}

/* catena di instradamento */
.mock-flow {
  display: grid;
  gap: 8px;
}

.mock-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.mock-step em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-muted);
  margin-left: auto;
}

.mock-step b {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--shell-accent-soft);
  color: var(--shell-accent);
  font-size: 11px;
}

@media (max-width: 820px) {
  .shell-body {
    grid-template-columns: 1fr;
  }

  .shell-side {
    display: none;
  }
}

@media (max-width: 620px) {

  .mock-stats {
    grid-template-columns: 1fr;
  }

  .mock-row {
    grid-template-columns: 1.4fr 0.9fr 0.7fr;
  }

  .mock-row span:nth-child(2) {
    display: none;
  }
}

/* bottoni di registrazione/accesso dentro il menu mobile: nella barra non ci stanno */
.nav-cta {
  display: none;
}

@media (max-width: 940px) {
  .nav-cta {
    display: block;
    margin-top: 10px;
    padding: 12px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    text-align: center;
  }

  .nav-cta:hover {
    color: #fff;
  }

  .nav-cta.ghost {
    margin-top: 8px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--ink);
  }
}

/* ---------- domande frequenti ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
}

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

.faq-item summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--brand-600);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-a {
  padding: 14px 18px 18px;
  color: var(--ink-soft);
}

.faq-a p {
  margin: 0;
}

/* ---------- guide ---------- */

.guide-body {
  max-width: 78ch;
}

.guide-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: 0;
}

.guide-body .code {
  margin-top: 16px;
}

.crumbs {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.card h3 a {
  color: inherit;
}

.card h3 a:hover {
  color: var(--brand-600);
}

/* ---------- striscia "funziona con" ----------
   Nomi dei dispositivi e dei software compatibili che scorrono lentamente, in
   monocromatico e in trasparenza: è una banda di contesto, non deve rubare
   l'attenzione al contenuto. */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  /* sfumatura ai bordi, così i nomi entrano ed escono invece di essere tagliati */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(36px, 6vw, 76px);
  padding-right: clamp(36px, 6vw, 76px);
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.38;
  filter: grayscale(1);
  transition: opacity 0.2s ease;
}

.marquee-item:hover {
  opacity: 0.7;
}

.marquee-item svg {
  width: 20px;
  height: 20px;
  flex: none;
  opacity: 0.8;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee-label {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

/* chi ha chiesto meno animazioni vede la striscia ferma, non un carosello */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    gap: 18px 34px;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- pagine legali ---------- */

.legal h2 {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  margin-top: 34px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  color: var(--ink-soft);
}

.legal .checks {
  margin: 14px 0 6px;
}
