/* Stili condivisi da index.html e privacy/index.html (feedoreader.it). */
/* Font serviti da questo dominio (niente Google Fonts: nessun dato ai terzi). */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }

/* Stessi token dell'app (frontend/src/styles/app.css): se cambia il marchio, cambiare insieme. */
:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --surface-high: #eef1f5;
  --border: #dfe4eb;
  --text: #1a1c1e;
  --muted: #44474e;
  --blue: #1a6dbd;
  --blue-dark: #145a9e;
  --on-blue: #ffffff;
  --accent-soft: #e3eefa;
  --accent-on-soft: #145a9e;
  --green: #15803d;
  --green-soft: #e3f5e9;
  --red: #c33333;
  --red-soft: #fde8e8;
  --inverse-bg: #1e2227;
  --inverse-text: #f2f4f7;
  --inverse-muted: #a9b1bc;
  --shadow: 0 4px 16px rgba(20, 20, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(20, 40, 80, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-headline: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
/* Scuro: segue il sistema, a meno che il visitatore abbia scelto il chiaro; oppure scelto a mano. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #30343b;
    --panel: #373b43;
    --surface-high: #3f444c;
    --border: #474c55;
    --text: #e3e6ea;
    --muted: #b3bac4;
    --blue: #66b0f2;
    --blue-dark: #4f9be0;
    --on-blue: #1b1f24;
    --accent-soft: #28466a;
    --accent-on-soft: #bcdcfa;
    --green: #7fd4a0;
    --green-soft: #2b4a3a;
    --red: #f2a3a3;
    --red-soft: #553538;
    --inverse-bg: #484d56;
    --inverse-text: #f2f4f7;
    --inverse-muted: #c4cad3;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #30343b;
  --panel: #373b43;
  --surface-high: #3f444c;
  --border: #474c55;
  --text: #e3e6ea;
  --muted: #b3bac4;
  --blue: #66b0f2;
  --blue-dark: #4f9be0;
  --on-blue: #1b1f24;
  --accent-soft: #28466a;
  --accent-on-soft: #bcdcfa;
  --green: #7fd4a0;
  --green-soft: #2b4a3a;
  --red: #f2a3a3;
  --red-soft: #553538;
  --inverse-bg: #484d56;
  --inverse-text: #f2f4f7;
  --inverse-muted: #c4cad3;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-headline); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* Pulsanti come .ui-btn dell'app */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-high); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.is-scrolled { border-bottom-color: var(--border); }
.top-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 19px/1 var(--font-headline); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--surface-high); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.login-ico { display: none; }
@media (max-width: 560px) { .login-ico { display: block; } }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--panel); }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 13px/1 var(--font); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-on-soft); }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 560px) {
  .top-actions .btn { padding-inline: 16px; }
  .top-actions .btn-login { width: 44px; padding: 0; }
  .top-actions .btn-login span { display: none; }
  .brand span { display: none; }
}

/* Hero */
.hero { padding: 64px 0 24px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-on-soft); font-weight: 600; font-size: 14px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; margin: 22px auto 0; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
/* Plus Jakarta Sans ha punteggiatura molto larga: nei titoli grandi la si avvicina alla parola. */
.pt { margin-left: -0.09em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em; margin: 22px auto 0; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.facts { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 14px; list-style: none; padding: 0; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts svg { color: var(--green); flex: none; }

/* Schermate */
.stage { position: relative; margin: 56px auto 0; max-width: 1080px; }
.window { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow-lg); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-high); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--panel); border-radius: 999px; padding: 3px 14px; }
.phone { border-radius: 34px; overflow: hidden; border: 8px solid #1b1f24; background: #1b1f24; box-shadow: var(--shadow-lg); }
.stage .phone { position: absolute; width: 24%; right: -3%; bottom: -8%; }
@media (max-width: 720px) { .stage .phone { display: none; } .stage { margin-top: 40px; } }

/* Sezioni */
section { padding: 96px 0; }
.sec-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { color: var(--blue); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-top: 10px; }
.sec-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-on-soft); margin-bottom: 18px; }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* Regole */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; margin-top: 10px; }
.split > div > p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--font-headline); border: 2px solid currentColor; }
.num.g { color: var(--green); } .num.r { color: var(--red); } .num.b { color: var(--blue); }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.chip.g { background: var(--green-soft); color: var(--green); }
.chip.r { background: var(--red-soft); color: var(--red); }
.chip.b { background: var(--accent-soft); color: var(--accent-on-soft); }

/* Telefono */
.alt { background: var(--panel); border-block: 1px solid var(--border); }
.phones { display: flex; gap: 28px; justify-content: center; align-items: flex-start; }
.phones .phone { width: min(300px, 44vw); }
.phones .phone:last-child { margin-top: 56px; }
@media (max-width: 520px) { .phones { gap: 14px; } .phones .phone { border-width: 5px; border-radius: 24px; } .phones .phone:last-child { margin-top: 32px; } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { color: var(--blue); flex: none; margin-top: 3px; }

/* Passi */
.how { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }
.how li { counter-increment: s; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.how li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--on-blue); font: 800 17px/1 var(--font-headline); margin-bottom: 16px; }
.how h3 { font-size: 19px; font-weight: 700; }
.how p { color: var(--muted); margin-top: 6px; font-size: 16px; }

/* Chiusura */
.final { padding: 40px 0 96px; }
.final-box { background: var(--inverse-bg); color: var(--inverse-text); border-radius: 32px; padding: clamp(36px, 6vw, 72px); text-align: center; }
.final-box h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.final-box p { color: var(--inverse-muted); font-size: 18px; margin: 14px auto 0; max-width: 34em; }
.final-box .btn--ghost { color: var(--inverse-text); border-color: color-mix(in srgb, var(--inverse-text) 30%, transparent); }
.final-box .btn--ghost:hover { background: color-mix(in srgb, var(--inverse-text) 10%, transparent); }

footer { border-top: 1px solid var(--border); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* Schermate: versione chiara o scura secondo il tema attivo. */
.td { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .td { display: block; }
  :root:not([data-theme="light"]) .tl { display: none; }
}
:root[data-theme="dark"] .td { display: block; }
:root[data-theme="dark"] .tl { display: none; }

.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme-btn:hover { background: var(--surface-high); }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }


/* Donazioni */
.nav .nav-support { color: var(--accent-on-soft); background: var(--accent-soft); font-weight: 600; }
.nav .nav-support:hover { color: var(--accent-on-soft); filter: brightness(0.97); }
#sostieni { padding-top: 24px; }
.donate { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--panel))); border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--border)); box-shadow: var(--shadow); }
@media (max-width: 860px) { .donate { grid-template-columns: 1fr; } .donate-art { order: -1; } }
.donate h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-top: 10px; }
.donate-text > p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.donate-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.donate-list li { display: flex; gap: 10px; align-items: flex-start; }
.donate-list svg { color: var(--blue); flex: none; margin-top: 3px; }
.donate-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.donate-note { color: var(--muted); font-size: 14px; }
.btn--coffee { background: #cf3a37; color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, #cf3a37 35%, transparent); }
.btn--coffee:hover { background: #b3302d; }
.donate-art { position: relative; min-height: 260px; display: grid; place-items: center; }
.cup { width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; font-size: 96px; background: var(--panel); box-shadow: var(--shadow-lg); }
.bubble { position: absolute; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); white-space: nowrap; }
.b1 { top: 12%; right: 8%; }
.b2 { bottom: 10%; left: 4%; }
@media (max-width: 520px) { .cup { width: 140px; height: 140px; font-size: 72px; } .donate-art { min-height: 220px; } .b2 { left: 0; font-size: 13px; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
