/* Occhio Clinico - foglio di stile condiviso. Mobile first: le regole base sono per il telefono,
   gli @media (min-width) in fondo adattano a schermi piu' larghi. */

/* ---------- Colori (tema chiaro di default, scuro automatico) ---------- */
:root {
  --bg: #FFFBF4;
  --surface: #FFFFFF;
  --alt: #F3EEE3;
  --ink: #1E2A33;
  --muted: #5A6670;
  --line: #E3DCCB;
  --brand: #0E7C86;
  --brand-ink: #FFFFFF;
  --hi: #F2A93B;
  --ok: #1F8A5B;
  --bad: #C9402B;
  --mark: #F9DAD3;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10181C; --surface: #172228; --alt: #1A272D; --ink: #EAF0F2; --muted: #9DB0B8;
    --line: #2B3C44; --brand: #4CC3CE; --brand-ink: #08242A; --hi: #F5B84B;
    --ok: #5AD19B; --bad: #FF8B73; --mark: #5A2A22;
  }
}
:root[data-theme="dark"] {
  --bg: #10181C; --surface: #172228; --alt: #1A272D; --ink: #EAF0F2; --muted: #9DB0B8;
  --line: #2B3C44; --brand: #4CC3CE; --brand-ink: #08242A; --hi: #F5B84B;
  --ok: #5AD19B; --bad: #FF8B73; --mark: #5A2A22;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--brand); }
button, input, select { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--hi);
  outline-offset: 2px;
}
.wrap { max-width: 720px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Intestazione ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 960px; margin: 0 auto; padding: 10px 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 21px;
}
.brand svg { flex: none; }
.header-note { font-size: 14px; font-weight: 700; color: var(--muted); }
main { border-top: 1px solid var(--line); }
.page-test main, .page-expl main { border-top: 0; }

/* ---------- Pulsanti ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 14px;
  font-size: 17px; font-weight: 700; text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); font-weight: 600; }
.btn--pill {
  display: inline-flex; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border-color: var(--brand); color: var(--brand); font-size: 15px;
}
.btn--bad { background: var(--surface); border-color: var(--bad); color: var(--bad); }
.btn--ok { background: var(--surface); border-color: var(--ok); color: var(--ok); }
.btn--sm { min-height: 48px; font-size: 16px; font-weight: 600; }
.btn-stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }

/* ---------- Home: hero ---------- */
.hero { padding-top: 44px; padding-bottom: 40px; }
.pill {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px;
  border-radius: 999px; background: var(--alt);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.pill--outline { background: var(--surface); border: 1px solid var(--line); padding: 4px 12px; margin-bottom: 20px; }
.hero__title {
  margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 700; line-height: 1.08;
  font-size: clamp(36px, 9.5vw, 60px);
}
.hero__lead { margin-bottom: 28px; font-size: 19px; color: var(--muted); }

/* ---------- Sezioni ---------- */
.section { padding-top: 44px; padding-bottom: 24px; }
.section--first { padding-top: 52px; }
.band { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { padding-top: 44px; padding-bottom: 44px; }
.h2 {
  margin-bottom: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.1;
}
.section-lead { margin-bottom: 28px; color: var(--muted); }
.story p { margin-bottom: 16px; }
.story p:last-of-type { margin-bottom: 26px; }
.story__end {
  padding-left: 14px; border-left: 4px solid var(--hi);
  font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.3;
}

/* ---------- Schede (casi reali) ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card {
  flex: 1 1 280px; min-width: 0; padding: 22px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.card__meta { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.card__title { margin-bottom: 10px; font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.15; }
.card__text { margin-bottom: 14px; font-size: 16px; color: var(--muted); }
.card__fine { margin-bottom: 10px; font-size: 16px; }
.card__fine strong { color: var(--bad); }
.card__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }

/* ---------- Come funziona ---------- */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; align-items: flex-start; gap: 16px; }
.step__n {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.panel { margin-top: 32px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.panel__label { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.panel__main { margin-bottom: 4px; font-weight: 700; }
.panel__sub { font-size: 15px; color: var(--muted); }

.meter { display: flex; gap: 6px; margin-bottom: 10px; }
.meter__seg { flex: 1; height: 10px; border-radius: 5px; background: var(--line); }
.meter__seg.is-on { background: var(--brand); }
.meter--thin { gap: 4px; margin-bottom: 14px; }
.meter--thin .meter__seg { height: 8px; border-radius: 4px; }

.reward {
  display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 20px;
  background: var(--alt); border: 2px solid var(--hi); border-radius: 16px;
}
.reward svg { flex: none; }
.reward__title { margin-bottom: 2px; font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.2; }
.reward__text { font-size: 15px; color: var(--muted); }

/* ---------- Prova (demo nella home) ---------- */
.demo-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.round-btn {
  flex: none; width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.round-btn:disabled { opacity: .35; cursor: default; }
.demo-nav__center { text-align: center; }
.demo-nav__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dot.is-answered { background: var(--hi); }
.dot.is-current { background: var(--brand); }

/* Messaggio in stile "testo semplice" (demo nella home) */
.mail-plain {
  overflow: hidden; background: #FBFAF6; color: #1B1D21;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.mail-plain__bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #EAE7DD; border-bottom: 1px solid #D2CEC1;
  font-family: var(--font-mono); font-size: 12px; color: #4A4D52;
}
.mail-plain__bar i { width: 10px; height: 10px; border-radius: 50%; background: #B9B5A8; }
.mail-plain__bar span { margin-left: 8px; }
.mail-plain__body { padding: 16px 16px 20px; font-family: var(--font-mono); font-size: 14.5px; line-height: 1.55; }
.mail-plain__row { margin-bottom: 4px; overflow-wrap: anywhere; }
.mail-plain__row b { font-weight: 500; color: #5B5E63; }
.mail-plain__subject { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #D9D5C9; overflow-wrap: anywhere; }
.mail-plain__subject strong { font-weight: 500; }
.mail-plain__subject b { font-weight: 500; color: #5B5E63; }
.mail-plain__body p + p { margin-top: 10px; }

.answers { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.answers__q { font-weight: 700; }
.result { margin-top: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.result__title { margin-bottom: 4px; font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.1; }
.result__title.is-ok { color: var(--ok); }
.result__title.is-bad { color: var(--bad); }
.result__truth { margin-bottom: 14px; font-weight: 700; }
.result__lead { margin-bottom: 8px; font-size: 15px; color: var(--muted); }
.result__sign { margin-bottom: 10px; padding-left: 14px; border-left: 3px solid var(--hi); font-size: 16px; }
.demo-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
[hidden] { display: none !important; }

/* ---------- Modulo ---------- */
.signup { margin-top: 36px; background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signup .wrap { padding-top: 48px; padding-bottom: 48px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-weight: 700; }
.field .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; font-size: 16px;
}
fieldset.field { margin: 0; padding: 0; border: 0; gap: 4px; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.choice input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--brand); }
.consents { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.consent { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; font-size: 15px; }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.form-note { padding: 14px 16px; background: var(--surface); border: 2px solid var(--hi); border-radius: 12px; font-size: 15px; }

.share { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.share__title { margin-bottom: 6px; font-weight: 700; }
.share__text { margin-bottom: 14px; font-size: 15px; color: var(--muted); }

/* ---------- Piede ---------- */
.site-footer { max-width: 720px; margin: 0 auto; padding: 36px 20px 56px; font-size: 14px; color: var(--muted); }
.site-footer p { margin-bottom: 12px; }
.site-footer strong { color: var(--ink); }
.site-footer .link-row { display: inline-flex; align-items: center; min-height: 44px; }

/* =====================================================
   Pagina "messaggio" (cio' che si apre dal link nell'email)
   ===================================================== */
.page-test { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.page-test .site-header { width: 100%; }
.page-test main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 16px 24px; }
.brand--sm { font-size: 19px; }
.brand--sm svg { width: 30px; height: 30px; }
.test-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.test-head__title { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.15; white-space: nowrap; }
.test-head__week { font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; }
.test-intro { margin-bottom: 14px; font-size: 16px; color: var(--muted); }

/* Finestra di posta (volutamente generica, non imita nessun servizio reale) */
.mailapp {
  overflow: hidden; background: #FFFFFF; color: #202124;
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .09);
}
.mailapp__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; background: #F6F6F6; border-bottom: 1px solid #E6E6E6;
  font-size: 14px; font-weight: 600; color: #5F6368;
}
.mailapp__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 24px; }
.mailapp__content { padding: 18px 16px 8px; }
.mailapp__subject { margin-bottom: 16px; font-size: 21px; line-height: 1.3; font-weight: 600; }
.sender { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sender__avatar {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: #7A8CA3; color: #fff; font-weight: 700;
}
.sender__info { min-width: 0; flex: 1; }
.sender__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.sender__toggle {
  display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -8px; padding: 0;
  background: transparent; border: 0; color: #5F6368; font-size: 14px; cursor: pointer;
}
.sender__toggle span { margin-left: .4em; color: #1A73C8; font-weight: 600; }
.sender__time { flex: none; font-size: 13px; color: #5F6368; }
.sender__details {
  margin: 6px 0 4px; padding: 10px 12px; background: #F1F3F4; border-radius: 10px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere;
}
.sender__details b { font-weight: 400; color: #5F6368; }
.mailapp__text { padding: 16px 0 12px; font-size: 16px; line-height: 1.6; }
.mailapp__text p { margin-bottom: 14px; }
.fake-btn {
  display: inline-block; padding: 12px 22px; border-radius: 6px;
  background: #1A73C8; color: #fff; font-weight: 600; font-size: 15px;
}
.mailapp__foot { margin: 20px 0 0; padding-top: 12px; border-top: 1px solid #E6E6E6; font-size: 12.5px; color: #80868B; }
/* Link e pulsanti finti nei messaggi: al passaggio (o al tocco) mostrano l'indirizzo in basso a sinistra */
[data-href] { cursor: pointer; }
.fake-link { color: #1A73C8; text-decoration: underline; overflow-wrap: anywhere; }
.mailapp, .chatapp { position: relative; }
.linkpeek {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; max-width: calc(100% - 16px);
  padding: 4px 8px; background: #F1F3F4; color: #202124;
  border: 1px solid #DADCE0; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.linkpeek[hidden] { display: none; }

/* Allegati delle email */
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.attach {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px;
  border: 1px solid #DADCE0; border-radius: 10px; background: #F8F9FA; font-size: 14px;
}
.attach__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px; background: #5F6368; color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.attach__name { font-weight: 600; overflow-wrap: anywhere; }
.attach__size { color: #5F6368; font-size: 12.5px; }

/* Finestra di chat (SMS / WhatsApp), volutamente generica */
.chatapp {
  overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 12px rgba(0, 0, 0, .09);
  background: #FFFFFF; color: #202124;
}
.chatapp__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 4px; }
.chatapp__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 44px; font-size: 24px; }
.chatapp__avatar {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: #7A8CA3; color: #fff; font-weight: 700;
}
.chatapp__who { min-width: 0; }
.chatapp__name { font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.chatapp__sub { font-size: 12.5px; opacity: .8; }
.chatapp__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 18px; }
.chatapp__day {
  align-self: center; margin: 4px 0; padding: 3px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, .06); color: #5F6368;
}
.chatapp__notice {
  align-self: center; max-width: 92%; margin: 2px 0 6px; padding: 8px 12px; border-radius: 10px;
  background: #FFF6D6; color: #5C4B00; font-size: 13px; text-align: center;
}
.bubble {
  position: relative; max-width: 82%; padding: 7px 10px 18px; border-radius: 14px;
  font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere;
}
.bubble p + p { margin-top: 6px; }
.bubble__fwd { display: block; margin-bottom: 2px; font-size: 12.5px; font-style: italic; color: #5F6368; }
.chatapp__verified {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px;
  border-radius: 50%; background: #2FB463; color: #fff; font-size: 10px; vertical-align: 1px;
}
.bubble__time { position: absolute; right: 9px; bottom: 3px; font-size: 11px; opacity: .65; }
.bubble--in { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; border-bottom-right-radius: 4px; }
.chatapp__input {
  margin: 0 10px 10px; padding: 10px 14px; border-radius: 999px;
  font-size: 14px; color: #80868B;
}

/* SMS: toni grigi e blu */
.chatapp--sms .chatapp__bar { background: #F6F6F6; border-bottom: 1px solid #E6E6E6; }
.chatapp--sms .chatapp__body { background: #FFFFFF; }
.chatapp--sms .bubble--in { background: #ECEEF1; }
.chatapp--sms .bubble--out { background: #2F6FDB; color: #FFFFFF; }
.chatapp--sms .chatapp__input { background: #F1F3F4; }

/* WhatsApp: barra verde scuro, fondo chiaro caldo */
.chatapp--wa .chatapp__bar { background: #1F6E5F; color: #FFFFFF; }
.chatapp--wa .chatapp__body { background: #EFE7DC; }
.chatapp--wa .bubble--in { background: #FFFFFF; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.chatapp--wa .bubble--out { background: #D8F5C6; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.chatapp--wa .chatapp__day { background: #FFFFFF; }
.chatapp--wa .chatapp__input { margin: 0; padding: 0 10px 10px; border-radius: 0; background: #EFE7DC; }
.chatapp--wa .chatapp__input span { display: block; padding: 10px 14px; border-radius: 999px; background: #FFFFFF; }

.hint { margin-top: 14px; padding: 12px 14px; background: var(--alt); border-radius: 12px; font-size: 14px; color: var(--muted); }
.hint strong { color: var(--ink); }

.answerbar {
  position: sticky; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
}
.answerbar__inner { max-width: 640px; margin: 0 auto; }
.answerbar__q { margin-bottom: 8px; font-size: 14px; font-weight: 700; text-align: center; }
.answerbar__btns { display: flex; gap: 10px; }
.answerbar__btns .btn { flex: 1; padding: 0 10px; font-size: 16px; }

/* =====================================================
   Pagina "spiegazione"
   ===================================================== */
.page-expl main { width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; }
.preview-switch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 8px 10px; border: 1px dashed var(--line); border-radius: 12px;
  font-size: 13px; color: var(--muted);
}
.preview-switch a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border: 2px solid var(--line); border-radius: 999px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
body[data-esito="giusta"] .preview-switch a[data-set="giusta"],
body[data-esito="sbagliata"] .preview-switch a[data-set="sbagliata"] { border-color: var(--brand); background: var(--alt); }

.verdict { margin-bottom: 20px; padding: 22px 20px; background: var(--surface); border: 2px solid var(--ok); border-radius: 20px; }
body[data-esito="sbagliata"] .verdict { border-color: var(--bad); }
.verdict__count { margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.verdict__title { margin-bottom: 6px; font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1.05; color: var(--ok); }
body[data-esito="sbagliata"] .verdict__title { color: var(--bad); }
.verdict__truth { margin-bottom: 18px; font-size: 18px; font-weight: 700; }
.verdict__lead { margin-bottom: 12px; font-size: 16px; color: var(--muted); }
.verdict__score { font-size: 15px; font-weight: 700; }
.verdict__goal { margin-top: 2px; font-size: 14px; color: var(--muted); }

.only-lost { display: none; }
body[data-esito="sbagliata"] .only-won { display: none; }
body[data-esito="sbagliata"] .only-lost { display: block; }
body[data-esito="sbagliata"] .only-lost.is-flex { display: flex; }
body[data-esito="sbagliata"] .only-lost.is-inline { display: inline; }
.only-won.is-inline { display: inline; }

.h3 { margin-bottom: 6px; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.15; }
.lede { margin-bottom: 14px; font-size: 15px; color: var(--muted); }

.annot {
  margin-bottom: 22px; padding: 18px 16px; background: #FFFFFF; color: #202124;
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 12px rgba(0, 0, 0, .09);
}
.annot__subject { margin-bottom: 14px; font-size: 19px; line-height: 1.4; font-weight: 600; }
.annot__from { margin-bottom: 14px; font-size: 14px; line-height: 1.5; color: #5F6368; }
.annot__from code { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.annot p { margin-bottom: 12px; font-size: 15.5px; }
.annot p:last-child { margin-bottom: 0; }
.mark { padding: 1px 3px; background: #F9DAD3; border-radius: 4px; }
.n {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; margin-left: 6px; vertical-align: middle;
  border-radius: 50%; background: var(--bad); color: #fff;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; line-height: 1;
}
.n--lg { width: 26px; height: 26px; margin: 2px 0 0; font-size: 13px; }
.fake-btn--hl { outline: 3px solid #F2A93B; }
.annot__url { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 12.5px; color: #5F6368; overflow-wrap: anywhere; }
.annot__bubble { margin-bottom: 12px; padding: 8px 12px; background: #F1F3F4; border-radius: 12px; font-size: 15.5px; }

/* Soluzioni dei messaggi legittimi: elementi di affidabilità in verde */
.mark--ok { background: #D6F0E2; }
.n--ok { background: var(--ok); }

.signs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; list-style: none; padding: 0; }
.sign { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 16px; }
.tip { margin-bottom: 26px; padding: 18px; background: var(--alt); border-left: 5px solid var(--brand); border-radius: 16px; }
.tip__title { margin-bottom: 6px; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.tip p:last-child { font-size: 16px; }
.next-card { margin-bottom: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.next-card__label { margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.next-card__title { margin-bottom: 6px; font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.15; }
.next-card__text { font-size: 15px; color: var(--muted); }
.page-expl .btn-col { display: flex; flex-direction: column; gap: 10px; }
.page-expl .btn { min-height: 54px; }
.page-expl .legal { margin-top: 26px; font-size: 13px; color: var(--muted); }
.page-expl .legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Messaggi passati (/history) ---------- */
.history-score { margin: 16px 0 14px; }
.history { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.history__item {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  border: 2px solid var(--line); border-radius: 16px;
}
.history__meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.history__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.2; }
.history__state { font-size: 15px; font-weight: 700; }
.history__state::after { content: ' \203A'; }
.history__item--won { border-color: var(--ok); }
.history__item--won .history__state { color: var(--ok); }
.history__item--lost { border-color: var(--bad); }
.history__item--lost .history__state { color: var(--bad); }
.history__item--pending { border-color: var(--brand); }
.history__item--pending .history__state { color: var(--brand); }

/* ---------- Annulla iscrizione (/unsubscribe) ---------- */
.unsub-choice { margin: 16px 0 0; }
.unsub-choice .panel__sub { margin-bottom: 14px; }
.unsub-back { margin-top: 20px; }

/* ---------- Informativa privacy (/privacy) ---------- */
.doc h2 { margin: 30px 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.2; }
.doc section { scroll-margin-top: 16px; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; }
.doc p { margin-bottom: 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--brand); }
.doc__updated { font-size: 14px; color: var(--muted); }
.doc__toc { margin: 18px 0 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.doc__toc-title { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.doc__toc ol { margin: 0; padding-left: 22px; }
.doc__toc li { margin: 0; }
.doc__toc a { display: inline-block; padding: 6px 0; text-decoration: none; }
/* segnaposto da sostituire con i testi definitivi */
.ph { padding: 1px 4px; background: #FFF3CD; color: #5C4A00; border: 1px dashed #E0C36A; border-radius: 4px; }

/* ---------- Modal ---------- */
.modal {
  width: calc(100% - 32px); max-width: 460px; padding: 28px 24px;
  border: 0; border-radius: 16px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.modal::backdrop { background: rgba(14, 24, 28, .55); }
.modal__title { margin-bottom: 12px; font-family: var(--font-head); font-size: 24px; font-weight: 700; line-height: 1.25; }
.modal__text { margin-bottom: 12px; }
.modal__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.modal__actions form { margin: 0; }
.modal__actions .btn { width: 100%; }
.modal--error .modal__title { color: var(--bad); }

/* ---------- Schermi piu' larghi ---------- */
@media (min-width: 700px) {
  .hero { padding-top: 72px; padding-bottom: 56px; }
  .btn-stack { flex-direction: row; max-width: none; }
  .btn-stack .btn { flex: 0 0 auto; padding: 0 28px; }
  .answers { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .answers__q { flex-basis: 100%; }
  .answers .btn { flex: 1; }
  .demo-actions { flex-direction: row; }
  .page-expl .btn-col { flex-direction: row; }
  .page-expl .btn-col .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
