/* Dietiva Pro — sito vetrina. Mondo visivo: atlante delle porzioni.
   Carta dell'atlante con griglia di misura, inchiostro petrolio, campi verde
   petrolio, un solo giallo per il dato che conta. */

/* Font serviti dal sito stesso (prima da Google Fonts: un server in più da
   contattare prima di disegnare la pagina, e indirizzi IP dei visitatori
   inviati a Google). Licenza SIL Open Font License. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/martian-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #e3eaef;
  --paper-2: #edf2f5;
  --sheet: #f7f9fa;
  --green: #16a34a;
  --green-2: #22c55e;
  --teal-2: #0d9488;
  --ink: #0b3b40;
  --ink-2: #3c5a5e;
  --ink-3: #4b6569;
  --teal: #0f766e;
  --teal-deep: #0b4a52;
  --teal-ink: #e8f6f3;
  --teal-ink-2: #b7ded8;
  --amber: #fbbf24;
  --amber-deep: #8a5a00;
  --rule: rgba(11, 59, 64, .22);
  --danger: #b42318;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Fondo: la carta grigio-azzurra con la luce dei due prodotti, il verde
   petrolio del gestionale e i verdi dell'app pazienti, più un filo di
   giallo. Resta fermo mentre la pagina scorre e respira piano. */
body::before {
  content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vmax 34vmax at 86% 8%, rgba(34, 197, 94, .20), transparent 70%),
    radial-gradient(48vmax 40vmax at 6% 34%, rgba(15, 118, 110, .17), transparent 70%),
    radial-gradient(38vmax 32vmax at 96% 72%, rgba(13, 148, 136, .15), transparent 70%),
    radial-gradient(30vmax 24vmax at 30% 104%, rgba(251, 191, 36, .13), transparent 70%),
    radial-gradient(34vmax 28vmax at 58% 52%, rgba(22, 163, 74, .07), transparent 70%);
  animation: ground-breathe 38s ease-in-out infinite alternate;
}
@keyframes ground-breathe {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5vmax, 1.5vmax, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--teal-deep); }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--teal) var(--paper-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--teal); border: 3px solid var(--paper-2); border-radius: 8px; }
input, select, textarea, button { font: inherit; color: inherit; }
input, textarea { caret-color: var(--teal); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--r); }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── tipografia ─────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -.04em; line-height: .98; }
h2 { font-size: clamp(34px, 4.4vw, 62px); letter-spacing: -.035em; }
h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.mono, .num { font-family: var(--mono); font-feature-settings: "tnum" on, "zero" on; letter-spacing: -.01em; }
.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }

/* ── pulsanti ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: var(--r);
  font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 4px 10px -6px rgba(0, 0, 0, .35); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: rgba(247, 249, 250, .6); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--sheet); }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: var(--amber); color: var(--ink); }
.btn-line-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-line-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn:active { transform: translateY(0); }

/* ── navigazione ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(227, 234, 239, .82);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); background: rgba(237, 242, 245, .92); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.02em; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: var(--r); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); background: rgba(11, 59, 64, .06); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 11px 16px; font-size: 15px; }
.nav-login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; }
.nav-login:hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--rule); border-radius: var(--r); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--paper-2); border-bottom: 1px solid var(--rule); padding: 12px var(--gutter) 20px;
  }
  .nav.open .nav-links a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--rule); border-radius: 0; }
}
@media (max-width: 560px) { .nav-login { display: none; } .nav-cta .btn { padding: 10px 12px; font-size: 14px; } .brand span { font-size: 16px; } }

/* ── avviso in cima ─────────────────────────────────────── */
.notice { background: var(--ink); color: #dfeeee; font-size: 14px; }
.notice .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.notice b { color: #fff; font-weight: 700; }

/* ── sezioni ────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: clamp(88px, 11vw, 168px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .lead { justify-self: end; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } .sec-head .lead { justify-self: start; } }
.field { background: var(--teal); color: #fff; }
.field .lead, .field p { color: var(--teal-ink); }
.field-deep { background: var(--teal-deep); color: #fff; }
.field {
  background-image:
    radial-gradient(70% 90% at 100% 0%, rgba(34, 197, 94, .30), transparent 65%),
    radial-gradient(60% 80% at 0% 100%, rgba(11, 74, 82, .55), transparent 70%);
}
.field-deep {
  background-image:
    radial-gradient(70% 90% at 0% 0%, rgba(13, 148, 136, .45), transparent 65%),
    radial-gradient(50% 70% at 100% 100%, rgba(22, 163, 74, .22), transparent 70%);
}
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); }

/* ── HERO: tavola dell'atlante ─────────────────────────── */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(72px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-terms { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--ink-2); list-style: none; padding: 0; margin: 0; }
.hero-terms li { display: flex; gap: 7px; align-items: center; }
.hero-terms svg { width: 16px; height: 16px; color: var(--teal); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.plate { position: relative; margin: 0; }
.plate-frame { position: relative; border-radius: var(--r); overflow: visible; }
.plate-frame picture, .plate-frame img { border-radius: var(--r); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plate-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none;
  background-image:
    linear-gradient(rgba(11,59,64,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,59,64,.10) 1px, transparent 1px);
  background-size: 8.333% 12.5%;
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 1px rgba(11,59,64,.18);
}
/* righello */
.ruler { position: absolute; left: 0; right: 0; top: -22px; height: 14px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 8.333%); opacity: .55; }
.ruler span { transform: translateX(-50%); }
.ruler span:first-child { transform: none; }
.ruler span:last-child { transform: translateX(-100%); }

/* etichette con linea di richiamo */
.lbl { position: absolute; z-index: 2; }
.lbl-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.lbl-line { position: absolute; height: 1.5px; background: var(--ink); transform-origin: 0 50%; }
.lbl-card {
  position: absolute; white-space: nowrap;
  background: var(--sheet); border: 1px solid var(--ink); border-radius: 3px;
  padding: 7px 10px 6px; line-height: 1.25;
  box-shadow: 0 6px 10px -8px rgba(11,59,64,.45);
}
.lbl-card b { display: block; font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.lbl-card span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); font-feature-settings: "tnum" on; }
.total {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px 16px 12px;
  display: grid; gap: 2px; box-shadow: 0 8px 12px -8px rgba(0,0,0,.5);
}
.total .tag { color: var(--teal-ink-2); }
.total strong { font-family: var(--mono); font-size: clamp(28px, 3vw, 40px); color: var(--amber); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-feature-settings: "tnum" on; }
.total small { font-family: var(--mono); font-size: 11px; color: var(--teal-ink-2); }
.stamp {
  display: inline-grid; gap: 1px; padding: 7px 10px 6px; border: 1.5px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.25; text-transform: uppercase; letter-spacing: .04em; color: var(--teal); background: rgba(247,249,250,.9);
}
.stamp b { font-weight: 700; font-size: 11.5px; }
.plate .stamp { position: absolute; left: 18px; top: 18px; z-index: 3; }
.plate-cap { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
@media (max-width: 720px) {
  .lbl-card { padding: 5px 7px 4px; }
  .lbl-card b { font-size: 12px; }
  .lbl-card span { font-size: 10px; }
  .total { right: 10px; bottom: 10px; padding: 10px 12px 9px; }
  .plate .stamp { left: 10px; top: 10px; font-size: 9px; }
}

/* ── fonti in fila ──────────────────────────────────────── */
.sources { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(247,249,250,.55); }
.sources ul { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sources li { padding: 20px 18px; border-left: 1px solid var(--rule); display: grid; gap: 3px; }
.sources li:first-child { border-left: 0; }
.sources b { font-size: 15px; letter-spacing: -.01em; }
.sources span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 900px) { .sources ul { grid-template-columns: repeat(3, 1fr); } .sources li:nth-child(4) { border-left: 0; } .sources li:nth-child(n+4) { border-top: 1px solid var(--rule); } }
@media (max-width: 520px) { .sources ul { grid-template-columns: repeat(2, 1fr); } .sources li { border-left: 0 !important; border-top: 1px solid var(--rule); } .sources li:nth-child(odd) { border-right: 1px solid var(--rule); } }

/* ── la porzione diventa una riga ───────────────────────── */
.transfer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
@media (max-width: 980px) { .transfer-grid { grid-template-columns: 1fr; } }
.transfer .plate-frame img { aspect-ratio: 1 / 1; object-position: 48% 50%; }
.plan {
  background: var(--sheet); border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 10px 14px -12px rgba(11,59,64,.5);
}
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--teal); color: #fff; }
.plan-head h3 { font-size: 17px; letter-spacing: -.01em; }
.plan-head .num { font-size: 13px; color: var(--teal-ink); }
.plan table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan th { text-align: right; font-family: var(--mono); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.plan th:first-child, .plan td:first-child { text-align: left; }
.plan td { padding: 11px 12px; border-bottom: 1px solid rgba(11,59,64,.1); text-align: right; font-family: var(--mono); font-size: 13px; font-feature-settings: "tnum" on; white-space: nowrap; }
.plan td:first-child { font-family: var(--sans); font-size: 14.5px; font-weight: 600; white-space: normal; }
.plan tr.row { transition: background .6s var(--ease); }
.plan tr.row.hit { background: rgba(251, 191, 36, .22); }
.src { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 6px 1px; border: 1px solid currentColor; border-radius: 2px; color: var(--teal); letter-spacing: .03em; }
.src.bda { color: #1d4f91; }
.plan tfoot td { background: var(--ink); color: #fff; font-weight: 600; border: 0; }
.plan tfoot td:first-child { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.plan tfoot .k { color: var(--amber); }
.plan-note { padding: 12px 18px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--rule); }
@media (max-width: 600px) { .plan .hide-s { display: none; } .plan td, .plan th { padding: 9px 8px; } }
.fly { position: fixed; z-index: 60; pointer-events: none; margin: 0; }

.points { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--rule); }
.points li { list-style: none; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.points svg { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.points b { display: block; font-size: 17px; margin-bottom: 3px; letter-spacing: -.01em; }
.points p { color: var(--ink-2); font-size: 15.5px; }
.points { padding: 0; margin-bottom: 0; }

/* ── schermata vera ─────────────────────────────────────── */
.screen { margin: clamp(56px, 7vw, 96px) 0 0; }
.screen-frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--ink); background: #0e1f24; box-shadow: 0 12px 16px -12px rgba(11,59,64,.55); }
.screen-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--ink); color: var(--teal-ink-2); font-family: var(--mono); font-size: 11.5px; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); display: block; }
.screen-bar span { margin-left: 10px; }
.screen figcaption { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* ── una giornata ───────────────────────────────────────── */
.day { counter-reset: none; }
.day-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.meal { position: relative; padding-top: 52px; }
.meal-time { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 10px; }
.meal-time .num { background: var(--ink); color: #fff; font-size: 13px; padding: 9px 11px 8px; border-radius: 3px; }
.meal-time .tag { color: var(--ink); font-weight: 600; }
.meal figure { margin: 0 0 16px; position: relative; }
.meal img { border-radius: var(--r); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.meal figure::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 12.5% 12.5%; box-shadow: inset 0 0 0 1px rgba(11,59,64,.2); }
.meal .kcal { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-family: var(--mono); font-size: 13px; background: var(--sheet); border: 1px solid var(--ink); border-radius: 3px; padding: 6px 8px 5px; font-feature-settings: "tnum" on; }
.meal ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.meal li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(11,59,64,.12); font-size: 14.5px; }
.meal li .num { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.day-sum { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; background: var(--ink); color: #fff; border-radius: var(--r); }
.day-sum .tag { color: var(--teal-ink-2); }
.day-sum strong { font-family: var(--mono); font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; color: var(--amber); letter-spacing: -.04em; line-height: 1; font-feature-settings: "tnum" on; }
.bar { display: flex; height: 12px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.1); }
.bar span { display: block; height: 100%; transform-origin: 0 50%; }
.bar-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--teal-ink-2); }
.bar-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 1px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 980px) { .day-track { grid-template-columns: repeat(2, 1fr); row-gap: 48px; } }
@media (max-width: 520px) { .day-track { grid-template-columns: 1fr; } .day-sum { grid-template-columns: 1fr; } }

/* ── niente nascosto: le fonti ──────────────────────────── */
.ledger { border-top: 1.5px solid #fff; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.22); align-items: baseline; }
.ledger-row h3 { font-size: clamp(22px, 2.3vw, 30px); color: #fff; }
.ledger-row p { color: var(--teal-ink); font-size: 16px; }
.ledger-row .num { color: #fff; font-size: 13px; text-align: right; }
.ledger-row .num b { display: block; font-size: clamp(26px, 2.8vw, 36px); color: #fff; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.field .stamp { color: #fff; background: transparent; }
@media (max-width: 820px) { .ledger-row { grid-template-columns: 1fr; gap: 8px; } .ledger-row .num { text-align: left; } }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r); }
.figures div { padding: 24px 22px; border-left: 1px solid rgba(255,255,255,.25); }
.figures div:first-child { border-left: 0; }
.figures strong { display: block; font-family: var(--mono); font-size: clamp(30px, 3.6vw, 50px); font-weight: 600; color: #fff; letter-spacing: -.05em; line-height: 1; margin-bottom: 10px; font-feature-settings: "tnum" on; }
.figures span { font-size: 14.5px; color: var(--teal-ink); line-height: 1.4; display: block; }
@media (max-width: 820px) { .figures { grid-template-columns: repeat(2, 1fr); } .figures div:nth-child(3) { border-left: 0; } .figures div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.25); } }

/* ── clinica ────────────────────────────────────────────── */
.clin-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.areas { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; border-top: 1px solid var(--rule); }
.areas li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 15.5px; }
.areas li .num { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { background: transparent; border: 1.5px solid var(--rule); color: var(--ink-2); border-radius: 999px; padding: 9px 15px; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .25s var(--ease); }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabpanel[hidden] { display: none; }
.tabpanel .screen { margin-top: 0; }
@media (max-width: 980px) { .clin-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .areas { columns: 1; } }

/* ── indice delle funzioni ──────────────────────────────── */
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.index-group h3 { font-size: 14px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--teal); padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.index-group { margin-bottom: 44px; }
.index-group ul { list-style: none; padding: 0; margin: 0; }
.index-group li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.index-group svg { width: 20px; height: 20px; color: var(--ink); margin-top: 3px; }
.index-group b { display: block; font-size: 16px; letter-spacing: -.01em; margin-bottom: 2px; }
.index-group p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.mark { background: linear-gradient(transparent 58%, rgba(251,191,36,.55) 58%); }
@media (max-width: 980px) { .index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .index { grid-template-columns: 1fr; } }

/* ── app pazienti ───────────────────────────────────────── */
.app-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.phones { position: relative; display: flex; justify-content: center; gap: clamp(14px, 2vw, 26px); }
.phone { width: min(44%, 280px); border-radius: 34px; padding: 9px; background: #0c1c20; box-shadow: 0 14px 18px -14px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12); }
.phone img { border-radius: 26px; width: 100%; }
.phone:nth-child(2) { transform: translateY(48px); }
.app-grid .points li { border-color: rgba(255,255,255,.2); }
.app-grid .points { border-color: rgba(255,255,255,.2); }
.app-grid .points svg { color: var(--teal-ink-2); }
.app-grid .points p { color: var(--teal-ink); }
.app-badge { display: flex; gap: 16px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.app-badge img { width: 48px; height: 48px; }
.app-badge small { color: var(--teal-ink-2); font-size: 13.5px; display: block; }
@media (max-width: 980px) { .app-grid { grid-template-columns: 1fr; } .phones { order: 2; padding-bottom: 48px; } }

/* ── sicurezza ──────────────────────────────────────────── */
.safe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.safe div { padding: 24px 22px 6px 0; }
.safe div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.safe svg { width: 26px; height: 26px; color: var(--teal); margin-bottom: 16px; }
.safe b { display: block; font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.safe p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .safe { grid-template-columns: repeat(2, 1fr); } .safe div:nth-child(3) { padding-left: 0; border-left: 0; } .safe div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 520px) { .safe { grid-template-columns: 1fr; } .safe div { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); } }

/* ── prezzi ─────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.calc { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); display: grid; gap: 26px; }
.calc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.price-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big strong { font-family: var(--mono); font-size: clamp(54px, 7vw, 96px); font-weight: 600; letter-spacing: -.06em; line-height: .9; font-feature-settings: "tnum" on; }
.price-big span { font-size: 17px; color: var(--ink-2); }
.range { display: grid; gap: 12px; }
.range label { display: flex; justify-content: space-between; font-weight: 600; }
.range output { font-family: var(--mono); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--teal) var(--p, 0%), rgba(11,59,64,.15) var(--p, 0%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(11,59,64,.15); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--teal); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); margin-top: -9px; box-shadow: 0 4px 10px -4px rgba(11,59,64,.5); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.calc dl { margin: 0; display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--rule); }
.calc dt, .calc dd { padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; font-size: 15px; }
.calc dd { font-family: var(--mono); font-size: 14px; text-align: right; font-feature-settings: "tnum" on; }
.calc .includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.calc .includes li { display: flex; gap: 8px; }
.calc .includes svg { width: 16px; height: 16px; color: var(--teal); flex: none; margin-top: 4px; }
.price-side { display: grid; gap: clamp(20px, 3vw, 40px); }
.pcard { border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 12px; align-content: start; }
.pcard h3 { font-size: 21px; }
.pcard .price-big strong { font-size: clamp(40px, 4.4vw, 58px); }
.pcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.pcard li { display: flex; gap: 8px; }
.pcard li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--teal-ink-2); }
.price-note { margin-top: 26px; font-size: 14px; color: var(--ink-3); max-width: 90ch; }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .calc .includes { grid-template-columns: 1fr; } }

/* ── chi siamo ──────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.about-grid h2 { font-size: clamp(32px, 3.8vw, 52px); }
.about-text p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.about-text p + p { margin-top: 20px; }
.about-sig { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.about-sig b { display: block; font-size: 17px; }
.about-sig span { font-size: 14px; color: var(--ink-3); }
.about-sig i { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-family: var(--mono); font-size: 15px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ── domande ────────────────────────────────────────────── */
.faq { border-top: 1.5px solid var(--ink); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 20px; align-items: center; padding: 22px 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; transition: transform .35s var(--ease); color: var(--teal); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .ans { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 16.5px; max-width: 72ch; }
.faq .ans p + p { margin-top: 10px; }

/* ── contatti ───────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-list svg { width: 20px; height: 20px; color: var(--teal); margin-top: 3px; }
.contact-list b { display: block; }
.contact-list a { font-weight: 600; }
form.sheet { padding: clamp(22px, 3vw, 38px); display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
form .full { grid-column: 1 / -1; }
.f { display: grid; gap: 7px; }
.f label { font-weight: 600; font-size: 14.5px; }
.f label small { font-weight: 400; color: var(--ink-3); }
.f input, .f select, .f textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--rule); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--ink-3); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,118,110,.14); }
.f input[aria-invalid="true"] { border-color: var(--danger); }
.f textarea { min-height: 120px; resize: vertical; }
.f .err { color: var(--danger); font-size: 13.5px; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot p { font-size: 13px; color: var(--ink-3); max-width: 50ch; }
.form-msg { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--r); font-size: 15px; }
.form-msg.ok { background: rgba(15,118,110,.1); color: var(--teal-deep); border: 1px solid rgba(15,118,110,.3); }
.form-msg.ko { background: rgba(180,35,24,.08); color: var(--danger); border: 1px solid rgba(180,35,24,.3); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form.sheet { grid-template-columns: 1fr; } }

/* ── chiusura ───────────────────────────────────────────── */
.close { overflow: hidden; }
.close-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.close h2 { color: #fff; font-size: clamp(38px, 5.4vw, 76px); }
.close .lead { color: var(--teal-ink); margin: 22px 0 32px; }
.close .hero-actions { margin: 0; }
.close-plate { position: relative; }
.close-plate img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 440px; margin-left: auto; box-shadow: 0 14px 18px -14px rgba(0,0,0,.55); }
@media (max-width: 900px) { .close-grid { grid-template-columns: 1fr; } .close-plate img { margin: 0 auto; max-width: 320px; } }

/* ── piè di pagina ──────────────────────────────────────── */
.foot { background: var(--ink); color: #c9dedd; padding: 72px 0 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.foot .brand { color: #fff; margin-bottom: 16px; }
.foot p { max-width: 38ch; color: #a9c5c4; }
.foot h3 { font-family: var(--mono); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-ink-2); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { color: #e3f1f0; text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #8fb0ae; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ── movimento: contenuto sempre visibile, il movimento lo accompagna ── */
.js .rise { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rise.in { opacity: 1; transform: none; filter: none; }
.js .hero .lbl { opacity: 0; transition: opacity .6s var(--ease); transition-delay: var(--d, 0s); }
.js .hero .lbl .lbl-line { transform: scaleX(0); transition: transform .7s var(--ease); transition-delay: calc(var(--d, 0s) + .1s); }
.js .hero .lbl .lbl-card { transform: translateY(6px); transition: transform .7s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
.js .hero.ready .lbl { opacity: 1; }
.js .hero.ready .lbl .lbl-line { transform: scaleX(1); }
.js .hero.ready .lbl .lbl-card { transform: none; }
.js .bar span { transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .day-sum.in .bar span { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .hero .lbl, .js .hero .lbl .lbl-line, .js .hero .lbl .lbl-card, .js .bar span { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ── pagine di lettura (guida, documentazione, changelog, stato) ── */
.doc-hero { padding: clamp(56px, 7vw, 104px) 0 clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.doc-hero h1 { font-size: clamp(40px, 5.4vw, 76px); max-width: 18ch; }
.doc-hero .lead { margin-top: 18px; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 22px; display: flex; gap: 8px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }

/* direzione delle linee di richiamo */
.lbl { width: 0; height: 0; }
.lbl-line { top: -.75px; width: var(--len, 80px); }
.lbl[data-dir="r"] .lbl-line { left: 0; transform-origin: 0 50%; }
.lbl[data-dir="l"] .lbl-line { right: 0; transform-origin: 100% 50%; }
.lbl[data-dir="r"] .lbl-card { left: var(--len, 80px); top: 0; transform: translateY(-50%); }
.lbl[data-dir="l"] .lbl-card { right: var(--len, 80px); top: 0; transform: translateY(-50%); }
.js .hero .lbl[data-dir] .lbl-card { transform: translateY(calc(-50% + 6px)); }
.js .hero.ready .lbl[data-dir] .lbl-card { transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { .js .hero .lbl[data-dir] .lbl-card { transform: translateY(-50%) !important; } }
.lbl-dot { left: 0; top: 0; }
/* righe del piano in attesa della porzione */
.js .transfer .plan tr.row { opacity: .28; transition: opacity .5s var(--ease), background .8s var(--ease); }
.js .transfer .plan tr.row.landed { opacity: 1; }
.js .transfer .plan tfoot td { transition: opacity .6s var(--ease); }
.js .transfer .plan:not(.done) tfoot td { opacity: .35; }
.fly .lbl-card { position: static; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .transfer .plan tr.row, .js .transfer .plan tfoot td { opacity: 1 !important; } }
@media (max-width: 720px) { .hero .lbl[data-dir="r"] { --len: 14px !important; } .hero .lbl[data-dir="l"] { --len: 22px !important; } }
@media (max-width: 720px) { .total strong { font-size: 24px; } .total small { display: none; } .total .tag { font-size: 10px; } }
.brand span, .nav .btn { white-space: nowrap; }
@media (max-width: 380px) { .brand span { display: none; } }

.foot .brand:hover { color: #fff; }
.lbl-card span { color: var(--ink-2); }

/* un solo timbro, quadrato, inchiostrato */
.stamp { width: 92px; aspect-ratio: 1; place-content: center; text-align: center; padding: 6px; }
/* numeri come righe di registro, non come cartellone */
.tally { margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1.5px solid #fff; }
.tally div { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.tally dt { font-size: 16px; color: var(--teal-ink); }
.tally div::after { content: ""; flex: 1; order: 1; border-bottom: 1.5px dotted rgba(255,255,255,.55); transform: translateY(-5px); }
.tally dd { order: 2; margin: 0; font-family: var(--mono); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: #fff; letter-spacing: -.04em; font-feature-settings: "tnum" on; }
/* prezzi nel carattere del testo: la virgola del monospazio si allargava */
.price-big strong { font-family: var(--sans); font-weight: 700; letter-spacing: -.045em; font-feature-settings: "tnum" on; }
/* chiusura a una colonna */
.close-grid { grid-template-columns: 1fr; max-width: 900px; }
@media (max-width: 720px) { .hero .lbl-opt { display: none; } }
.plate .stamp { left: auto; right: 18px; }
@media (max-width: 720px) { .plate .stamp { right: 10px; width: 72px; } }
/* le cifre tabellari di Schibsted allargano anche la virgola: solo dove servono colonne allineate */
.plan td:first-child, .price-big strong { font-feature-settings: normal; }
.t-short { display: none; }
@media (max-width: 720px) {
  .plate .stamp { width: auto; aspect-ratio: auto; font-size: 9.5px; padding: 5px 7px; }
  .total small.t-short { display: block; }
}
@media (max-width: 720px) { .plate .total { position: static; margin-top: 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } }

/* prima schermata + piano: la tavola resta ferma mentre il piano sale */
.hero-grid { grid-template-areas: "copy plate" "plan plate"; align-items: start; }
.hero-copy { grid-area: copy; min-height: calc(100svh - 190px); display: flex; flex-direction: column; justify-content: center; }
#hero-plate { grid-area: plate; position: sticky; top: 104px; align-self: start; margin-top: clamp(24px, 6vh, 72px); }
.transfer-inline { grid-area: plan; padding: clamp(80px, 14vh, 160px) 0 0; }
.transfer-inline h2 { margin-bottom: 18px; }
.transfer-inline .lead { margin-bottom: 32px; }
.js .hero .lbl.sent .lbl-card { opacity: .38; transition: opacity .6s var(--ease); }
.js .hero .lbl.sent .lbl-line, .js .hero .lbl.sent .lbl-dot { opacity: .5; }
.js .hero .plan tr.row { opacity: .28; transition: opacity .5s var(--ease), background .8s var(--ease); }
.js .hero .plan tr.row.landed { opacity: 1; }
.js .hero .plan:not(.done) tfoot td { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .js .hero .plan tr.row, .js .hero .plan tfoot td { opacity: 1 !important; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-areas: "copy" "plate" "plan"; }
  .hero-copy { min-height: 0; }
  #hero-plate { position: relative; top: 0; margin-top: 0; }
  .transfer-inline { padding-top: 64px; }
}
@media (min-width: 981px) {
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .transfer-inline h2 { font-size: clamp(30px, 3.1vw, 46px); }
  .hero .plan td:first-child, .hero .plan tfoot td:first-child { white-space: nowrap; }
  .hero .plan td, .hero .plan th { padding-left: 10px; padding-right: 10px; }
}

/* ══ Tema petrolio scuro (27/10/2026, scelta dell'utente) ══════════════════
   La pagina sta su un verde petrolio profondo e morbido; i testi della
   pagina sono chiari. I «fogli» (piano, calcolatore, modulo, etichette sul
   piatto, schede prezzo chiare) restano chiari con l'inchiostro scuro, come
   carta appoggiata sul tavolo. --ink resta l'inchiostro scuro dei fogli e
   delle superfici scure; i testi della pagina usano --pg-*. */
:root {
  --paper: #0e2e33;
  --paper-2: #12383e;
  --pg: #e4efed;
  --pg-2: #b9d0cc;
  --pg-3: #94b2ae;
  --pg-rule: rgba(228, 239, 237, .16);
  --accent: #5fd3c1;
  --ink-2: var(--pg-2);
  --ink-3: var(--pg-3);
  --rule: var(--pg-rule);
  color-scheme: dark;
}
/* dentro i fogli chiari tornano i valori dell'inchiostro scuro */
.sheet, .plan, .calc, .lbl-card, .meal .kcal, .stamp, form.sheet, .pcard.sheet {
  --ink-2: #3c5a5e;
  --ink-3: #4b6569;
  --rule: rgba(11, 59, 64, .22);
  color: var(--ink);
  color-scheme: light;
}
body { color: var(--pg); }
body::before {
  background:
    radial-gradient(46vmax 36vmax at 88% 4%, rgba(34, 197, 94, .10), transparent 70%),
    radial-gradient(52vmax 42vmax at 4% 36%, rgba(20, 150, 140, .14), transparent 70%),
    radial-gradient(40vmax 34vmax at 98% 74%, rgba(13, 148, 136, .10), transparent 70%),
    radial-gradient(30vmax 24vmax at 30% 104%, rgba(251, 191, 36, .05), transparent 70%);
}
a { color: var(--accent); }
a:hover { color: #9ae6da; }
.sheet a, .plan a, .calc a, form.sheet a { color: var(--teal); }
::selection { color: #0b3b40; }
:focus-visible { outline-color: var(--accent); }

.nav { background: rgba(14, 46, 51, .82); }
.nav.scrolled { background: rgba(12, 40, 45, .94); }
.brand, .nav-login { color: var(--pg); }
.nav-login:hover { color: var(--accent); }
.nav-links a { color: var(--pg-2); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-toggle { color: var(--pg); }
.btn-ghost { color: var(--pg); border-color: rgba(228, 239, 237, .32); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { color: #fff; border-color: var(--pg); background: rgba(255, 255, 255, .09); }
.sheet .btn-ghost, form.sheet .btn-ghost { color: var(--ink); border-color: rgba(11, 59, 64, .22); background: transparent; }
.notice { background: #0a2327; border-bottom: 1px solid var(--pg-rule); }
.skip { background: #fff; color: #0b3b40; }

.hero h1 em { color: var(--accent); }
.hero-terms svg, .points svg, .safe svg, .contact-list svg, .faq summary svg { color: var(--accent); }
.index-group h3 { color: var(--accent); border-bottom-color: var(--pg); }
.index-group svg { color: var(--pg); }
.safe, .faq { border-top-color: var(--pg); }
.meal-time .num { background: #e4efed; color: #0b3b40; }
.meal-time .tag { color: var(--pg); }
.meal li { border-bottom-color: var(--pg-rule); }
.day-sum { background: #0a2327; border: 1px solid var(--pg-rule); }
.sources { background: rgba(255, 255, 255, .035); }
.tab { color: var(--pg-2); border-color: rgba(228, 239, 237, .28); }
.tab:hover { color: #fff; border-color: var(--pg); }
.tab[aria-selected="true"] { background: var(--pg); border-color: var(--pg); color: #0b3b40; }
.screen-frame { border-color: rgba(228, 239, 237, .22); box-shadow: 0 16px 28px -18px rgba(0, 0, 0, .7); }
.phone { box-shadow: 0 16px 26px -16px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.about-sig i { background: var(--accent); color: #0b3b40; }
.mark { background: linear-gradient(transparent 58%, rgba(251, 191, 36, .38) 58%); }
.form-msg.ok { color: #0b4a52; }
.foot { background: #081f23; border-top: 1px solid var(--pg-rule); }
/* bande verde petrolio: più profonde, per staccarsi dal fondo scuro */
.field { background-color: #0f5f58; }
.field-deep { background-color: #0a3b41; }
.plate-frame img, .meal img, .close-plate img { box-shadow: 0 14px 24px -16px rgba(0, 0, 0, .7); }
html { scrollbar-color: var(--accent) var(--paper-2); }
::-webkit-scrollbar-thumb { background: #2a7f77; border-color: var(--paper-2); }
