:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --text: #102033;
  --muted: #66758a;
  --line: #dce5ee;
  --navy: #082b52;
  --navy-2: #0d3b6d;
  --blue: #1769e0;
  --teal: #0c9b8e;
  --gold: #d89b28;
  --red: #c83c3c;
  --green: #07845d;
  --violet: #6d52c7;
  --shadow: 0 22px 60px rgba(9, 38, 69, .10);
  --shadow-small: 0 10px 28px rgba(9, 38, 69, .08);
  --radius: 24px;
  --radius-small: 16px;
}

/* Base tipografica e variabili condivise tra tema chiaro e scuro. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.dark {
  --bg: #07111e;
  --surface: #0e1b2b;
  --surface-soft: #111f30;
  --text: #edf5ff;
  --muted: #a7b4c5;
  --line: #24364b;
  --navy: #0a2746;
  --navy-2: #123d69;
  --shadow: 0 22px 60px rgba(0, 0, 0, .24);
  --shadow-small: 0 10px 28px rgba(0, 0, 0, .20);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.14; }
p { margin-top: 0; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.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;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999; padding: 10px 14px;
  color: #fff; background: var(--navy); border-radius: 10px; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.trust-bar { color: #d9e8f7; background: #061f3b; font-size: .78rem; }
.trust-bar .container { display: flex; justify-content: flex-end; gap: 26px; padding: 7px 0; }
.trust-bar span::before { content: "•"; margin-right: 8px; color: #72d7c9; }

.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(220, 229, 238, .85);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  color: #fff; font-weight: 900; letter-spacing: -.04em;
  background: linear-gradient(145deg, var(--navy-2), var(--teal));
  box-shadow: 0 10px 24px rgba(12, 155, 142, .18);
}
.brand b { display: block; font-size: .98rem; }
.brand small { display: block; margin-top: -2px; color: var(--muted); font-size: .68rem; font-weight: 650; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 10px; border-radius: 10px; color: var(--muted); font-size: .88rem; font-weight: 700;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-2); background: var(--surface-soft); }
.dark .main-nav a:hover, .dark .main-nav a.active { color: #8dc3ff; }
.main-nav .pill, .pill {
  margin-left: 5px; padding: 10px 17px; color: #fff; border-radius: 999px;
  background: var(--navy-2); box-shadow: none;
}
.theme-toggle, .nav-toggle {
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
  border-radius: 12px; cursor: pointer;
}
.theme-toggle { width: 38px; height: 38px; margin-left: 5px; }
.nav-toggle { display: none; padding: 9px 12px; font-weight: 900; }

/* Hero e pannello dimostrativo della homepage. */
.hero {
  position: relative; overflow: hidden; padding: 76px 0 62px;
  background:
    radial-gradient(circle at 80% 12%, rgba(13, 155, 142, .16), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(23, 105, 224, .09), transparent 26%),
    linear-gradient(180deg, var(--surface), var(--bg));
}
.hero::after {
  content: ""; position: absolute; right: -130px; top: -170px; width: 420px; height: 420px;
  border: 1px solid rgba(12, 155, 142, .18); border-radius: 50%; box-shadow: 0 0 0 65px rgba(12, 155, 142, .035);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px;
  color: var(--navy-2); background: rgba(12, 155, 142, .11); font-size: .76rem; font-weight: 850;
  letter-spacing: .04em; text-transform: uppercase;
}
.dark .eyebrow { color: #8fe4d9; }
.eyebrow.light { color: #d9fff9; background: rgba(255, 255, 255, .09); }
.hero h1 { max-width: 720px; margin: 18px 0; font-size: clamp(2.65rem, 5.8vw, 5.35rem); letter-spacing: -.055em; }
.lead { max-width: 780px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px;
  border: 1px solid var(--navy-2); border-radius: 12px; color: #fff; background: var(--navy-2);
  box-shadow: 0 12px 28px rgba(8, 43, 82, .18); font-weight: 800; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(8, 43, 82, .22); }
.btn.secondary { color: var(--navy-2); background: var(--surface); border-color: var(--line); box-shadow: none; }
.dark .btn.secondary { color: #d7eaff; }
.btn.light { color: var(--navy); background: #fff; border-color: #fff; box-shadow: none; }
.btn.compact { min-height: 38px; padding: 8px 14px; font-size: .85rem; }
.btn.full { width: 100%; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 31px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust b { color: var(--teal); }

.hero-dashboard {
  position: relative; padding: 24px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 28px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: 0 30px 90px rgba(8, 43, 82, .18);
}
.dashboard-head, .goal-card, .dashboard-row, .mini-chart-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-head span, .goal-card span, .mini-chart-card span { display: block; color: var(--muted); font-size: .72rem; }
.dashboard-head strong, .goal-card strong, .mini-chart-card b { display: block; }
.live-chip { padding: 5px 10px; color: var(--green) !important; background: rgba(7, 132, 93, .11); border-radius: 999px; font-weight: 800; }
.goal-card { margin: 20px 0 14px; padding: 18px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--navy-2), #125a86); }
.goal-card strong { color: #fff; font-size: 1.18rem; }
.goal-card small { color: #cae4f5; }
.goal-ring {
  flex: 0 0 62px; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(#55d6c5 0 72%, rgba(255, 255, 255, .16) 72% 100%);
}
.goal-ring::before { content: ""; position: absolute; width: 48px; height: 48px; border-radius: 50%; background: #104a72; }
.goal-ring span { position: relative; z-index: 1; color: #fff; font-size: 1rem; font-weight: 900; }
.dashboard-row { align-items: stretch; }
.dashboard-row a { flex: 1; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.dashboard-row b, .dashboard-row small { display: block; }
.dashboard-row small { color: var(--muted); font-size: .7rem; }
.mini-icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 9px; font-weight: 900; }
.mini-icon.blue { color: var(--blue); background: rgba(23, 105, 224, .10); }
.mini-icon.teal { color: var(--teal); background: rgba(12, 155, 142, .10); }
.mini-chart-card { margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; }
.mini-chart-card .chart { width: 42%; height: 74px; }
.dashboard-note { margin: 12px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }

.market-strip { border-block: 1px solid var(--line); background: var(--surface); }
.market-strip-grid { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); align-items: stretch; }
.market-strip-grid > * { min-width: 0; padding: 16px 14px; border-right: 1px solid var(--line); }
.market-strip-grid > *:last-child { border-right: 0; }
.strip-title { display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 0 8px; }
.strip-title .status-dot { grid-row: 1 / 3; }
.strip-title small { color: var(--muted); font-size: .67rem; }
.market-strip a span, .market-strip a b, .market-strip a small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-strip a span { color: var(--muted); font-size: .68rem; }
.market-strip a b { font-size: .92rem; }
.market-strip a small { font-size: .7rem; font-weight: 900; }

/* Sezioni, griglie e card riutilizzate dalle pagine pubbliche. */
.section, .page-hero { padding: 66px 0; }
.page-hero { padding-bottom: 20px; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.page-hero h1 { max-width: 900px; margin: 16px 0; font-size: clamp(2.25rem, 5vw, 4.4rem); letter-spacing: -.045em; }
.section-soft { border-block: 1px solid var(--line); background: var(--surface-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 27px; }
.section-heading > div { max-width: 720px; }
.section-heading h2 { margin: 13px 0 0; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.04em; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); }
.section-heading.compact h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.text-link { color: var(--navy-2); font-weight: 850; white-space: nowrap; }
.dark .text-link { color: #88c3ff; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.path-card {
  position: relative; min-height: 255px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; overflow: hidden; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow-small);
}
.path-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -75px; bottom: -75px; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; }
.path-card.blue { background: linear-gradient(145deg, #0b3767, #135990); }
.path-card.teal { background: linear-gradient(145deg, #087d78, #0aa18f); }
.path-card.gold { background: linear-gradient(145deg, #8e6415, #c58f28); }
.path-number { font-size: .72rem; font-weight: 900; opacity: .75; }
.path-card small, .path-card h3, .path-card p { color: #fff; }
.path-card small { font-size: .74rem; text-transform: uppercase; font-weight: 850; letter-spacing: .06em; }
.path-card h3 { margin: 7px 0; font-size: 1.55rem; }
.path-card p { margin: 0; opacity: .82; font-size: .9rem; }
.path-arrow { position: absolute; right: 24px; top: 23px; font-size: 1.3rem; }

.card, .tool-card, .article-card, .news-card, .market-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small);
}
.card, .article-card, .news-card, .market-card { padding: 23px; }
.tool-card { min-height: 275px; display: flex; flex-direction: column; padding: 22px; transition: transform .2s, box-shadow .2s; }
.tool-card:hover, .article-card:hover, .market-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-card.featured { color: #fff; background: linear-gradient(150deg, var(--navy-2), #0d527c); border-color: transparent; }
.tool-card.featured h3, .tool-card.featured p, .tool-card.featured small, .tool-card.featured b { color: #fff; }
.tool-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 42px; border-radius: 14px; color: var(--teal); background: rgba(12,155,142,.11); font-weight: 900; }
.featured .tool-icon { color: #fff; background: rgba(255,255,255,.12); }
.tool-card small { color: var(--teal); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.tool-card h3 { margin: 6px 0 9px; font-size: 1.3rem; }
.tool-card p { color: var(--muted); font-size: .86rem; }
.tool-card b { margin-top: auto; color: var(--navy-2); font-size: .78rem; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .5fr); gap: 28px; align-items: start; }
.article-list { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 42px 1fr 42px; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.article-index { color: var(--muted); font-size: .72rem; font-weight: 850; }
.article-row h3 { margin: 8px 0 5px; font-size: 1.15rem; }
.article-row p { margin: 0; color: var(--muted); font-size: .86rem; }
.circle-link { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.news-panel { position: sticky; top: 100px; padding: 28px; border-radius: var(--radius); color: #dbeaff; background: linear-gradient(155deg, #071f3b, #0b3a61); box-shadow: var(--shadow); }
.news-panel h2 { margin: 14px 0; color: #fff; font-size: 2rem; }
.news-panel > p { color: #a9bfd5; }
.news-list { margin-top: 22px; }
.news-list article { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.13); }
.news-list span { color: #69d4c5; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.news-list h3 { margin: 5px 0; color: #fff; font-size: .98rem; }
.news-list small { color: #9fb5cb; }
.news-source-link { display: block; margin-top: 16px; }

.scam-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px; border: 1px solid rgba(200,60,60,.25); border-radius: var(--radius); background: rgba(200,60,60,.055); }
.scam-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: var(--red); font-size: 1.8rem; font-weight: 900; }
.scam-banner h2 { margin: 8px 0; }
.scam-banner p { margin: 0; color: var(--muted); }
.danger-label { color: var(--red); background: rgba(200,60,60,.10); }

.market-card { display: flex; flex-direction: column; }
.market-card-head { display: flex; justify-content: space-between; gap: 12px; }
.data-state { padding: 5px 9px; border-radius: 999px; font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.data-state.live { color: var(--green); background: rgba(7,132,93,.10); }
.data-state.demo { color: #996810; background: rgba(216,155,40,.13); }
.market-card h2 { margin: 18px 0 0; font-size: 1.35rem; }
.market-symbol { color: var(--muted); font-size: .75rem; }
.market-value { margin: 15px 0; font-size: 2rem; font-weight: 900; }
.market-card .chart { margin-bottom: 18px; }
.market-meta { margin: auto 0 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.market-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .75rem; }
.market-meta dt { color: var(--muted); }
.market-meta dd { margin: 0; text-align: right; }

.chart {
  position: relative; height: 140px; overflow: hidden; border-radius: 15px; color: var(--teal);
  background:
    linear-gradient(180deg, rgba(12,155,142,.13), transparent),
    repeating-linear-gradient(to right, transparent 0 39px, rgba(102,117,138,.1) 40px),
    repeating-linear-gradient(to bottom, transparent 0 34px, rgba(102,117,138,.09) 35px);
}
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge { display: inline-flex; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-2); background: var(--surface-soft); font-size: .68rem; font-weight: 850; }
.dark .badge { color: #a7d4ff; }
.up { color: var(--green); font-weight: 900; }
.down { color: var(--red); font-weight: 900; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.wide { grid-column: 1 / -1; }
.ticker-line { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }

/* Form accessibili con stato focus ben visibile. */
.input, select, textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); background: var(--surface); outline: 0; transition: border .2s, box-shadow .2s;
}
textarea { min-height: 100px; resize: vertical; }
.input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,224,.10); }
label { display: block; margin: 13px 0 6px; font-size: .82rem; font-weight: 800; }
.form-help { margin: 6px 0 14px; color: var(--muted); font-size: .76rem; }
.result-box { margin-top: 16px; padding: 18px; border: 1px solid rgba(12,155,142,.18); border-radius: 16px; background: rgba(12,155,142,.08); }
.notice { margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--gold); border-radius: 12px; background: rgba(216,155,40,.10); }
.notice.danger, .danger { border-left-color: var(--red); background: rgba(200,60,60,.09); }
.notice.success { border-left-color: var(--green); background: rgba(7,132,93,.09); }
.ghost { padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface); cursor: pointer; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
.video-box { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 17px; background: #000; }
.consent-embed, .embed-placeholder { min-height: 280px; margin-bottom: 18px; border-radius: 17px; overflow: hidden; }
.consent-embed { background: #071b31; }
.embed-placeholder { display: grid; place-items: center; align-content: center; gap: 8px; padding: 28px; color: #d9e9f7; background: linear-gradient(145deg, #071b31, #0b4269); text-align: center; }
.embed-placeholder > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); font-size: 1.4rem; }
.embed-placeholder strong { color: #fff; }
.embed-placeholder p { max-width: 460px; margin: 0 0 8px; color: #aac1d4; }
.article-layout { max-width: 920px; }
.article-meta { color: var(--muted); font-size: .82rem; }
.article-cover { width: 100%; max-height: 480px; margin-bottom: 25px; border-radius: 18px; object-fit: cover; }
.article-content { font-size: 1.04rem; }
.article-content h2, .article-content h3 { margin-top: 1.8em; }
.article-content a { color: var(--blue); text-decoration: underline; }
.article-content table { width: 100%; border-collapse: collapse; }
.article-content th, .article-content td { padding: 10px; border: 1px solid var(--line); }
.box-note, .box-warning, .box-example { margin: 20px 0; padding: 17px; border-left: 4px solid var(--blue); border-radius: 12px; background: rgba(23,105,224,.07); }
.box-warning { border-left-color: var(--red); background: rgba(200,60,60,.07); }
.box-example { border-left-color: var(--teal); background: rgba(12,155,142,.07); }
details { padding: 13px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; }

/* Chiusura editoriale e footer istituzionale. */
.pre-footer { padding: 42px 0; color: #fff; background: linear-gradient(135deg, var(--navy), #0a4a70); }
.pre-footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.pre-footer h2 { max-width: 800px; margin: 13px 0 0; color: #fff; font-size: clamp(1.7rem, 4vw, 3rem); }
.site-footer { padding: 58px 0 20px; color: #b8c9dc; background: #06192f; }
.site-footer h3 { color: #fff; font-size: .9rem; }
.site-footer a { display: block; margin: 8px 0; color: #d8e7f5; font-size: .86rem; }
.footer-cookie-button { display: block; margin: 8px 0; padding: 0; border: 0; color: #d8e7f5; background: transparent; font-size: .86rem; cursor: pointer; }
.site-footer p, .site-footer span { font-size: .82rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 44px; }
.footer-about > p { max-width: 450px; }
.footer-brand { margin-bottom: 18px; }
.footer-brand b { color: #fff; }
.footer-brand small { color: #9eb3ca; }
.footer-disclaimer { color: #8fa7bf; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }

.cookie-banner {
  position: fixed; z-index: 200; right: 20px; bottom: 20px; left: 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; max-width: 1120px; margin-inline: auto; padding: 19px 21px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.cookie-banner[hidden], .cookie-modal-backdrop[hidden] { display: none; }
.cookie-banner strong { display: block; }
.cookie-banner p { max-width: 660px; margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.cookie-modal-backdrop { position: fixed; z-index: 210; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,17,31,.72); }
.cookie-modal { width: min(650px, 100%); max-height: 90vh; overflow-y: auto; padding: 27px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.cookie-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.cookie-modal h2 { margin: 10px 0 0; }
.cookie-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--surface); font-size: 1.35rem; cursor: pointer; }
.cookie-options { display: grid; margin: 20px 0; border-top: 1px solid var(--line); }
.cookie-options label { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cookie-options strong, .cookie-options small { display: block; }
.cookie-options small { color: var(--muted); font-weight: 400; }
.cookie-options input { width: 21px; height: 21px; accent-color: var(--teal); }
.modal-open { overflow: hidden; }

/* Adattamento progressivo per tablet e smartphone. */
@media (max-width: 980px) {
  .trust-bar { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 66px; left: 18px; right: 18px; padding: 14px;
    border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .main-nav .pill { margin: 4px 0 0; text-align: center; }
  .theme-toggle { width: 100%; margin: 4px 0 0; }
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 38px; }
  .news-panel { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .path-grid { grid-template-columns: 1fr; }
  .market-strip-grid { grid-template-columns: repeat(3, 1fr); }
  .strip-title { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand small { display: none; }
  .hero { padding: 50px 0 42px; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .hero-dashboard { padding: 16px; }
  .dashboard-row { flex-direction: column; }
  .hero-trust { display: grid; }
  .section, .page-hero { padding: 48px 0; }
  .section-heading { display: block; }
  .section-heading > p, .section-heading .text-link { display: block; margin-top: 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .market-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .market-strip-grid > * { border-bottom: 1px solid var(--line); }
  .article-row { grid-template-columns: 32px 1fr; }
  .article-row .circle-link { display: none; }
  .scam-banner { grid-template-columns: 1fr; }
  .scam-icon { width: 50px; height: 50px; border-radius: 15px; }
  .pre-footer-grid, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .cookie-banner { align-items: stretch; flex-direction: column; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-about, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .card, .article-card, .news-card, .market-card { padding: 18px; }
  .table { min-width: 620px; }
}

@media print {
  .trust-bar, .site-header, .site-footer, .pre-footer, .cta-row, .ghost { display: none !important; }
  body { background: #fff; }
  .card, .market-card { box-shadow: none; }
}
