:root {
  color-scheme: dark;
  --bg: #070a10;
  --bg-soft: #0c111a;
  --panel: #111822;
  --panel-2: #151e2a;
  --line: #263241;
  --line-soft: #1c2733;
  --ink: #f5f7fa;
  --muted: #aab5c3;
  --green: #91e657;
  --green-dark: #15280e;
  --red: #ff5b61;
  --amber: #ffbd59;
  --max: 1240px;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 87% 3%, rgba(145, 230, 87, .08), transparent 22rem),
    radial-gradient(circle at 4% 22%, rgba(255, 91, 97, .07), transparent 18rem),
    var(--bg);
  color: var(--ink);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--green); }
button { font: inherit; }
.shell { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .7rem 1rem; border-radius: 10px; background: var(--ink); color: var(--bg);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 10, 16, .9); backdrop-filter: blur(18px);
}
.header-row { min-height: 58px; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--green); color: #0a1206; font-size: .85rem; }
.brand small { color: var(--muted); font-weight: 650; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .45rem .7rem; border-radius: 9px; color: #dfe6ed; text-decoration: none; font-size: .9rem; font-weight: 720; }
.nav a[aria-current="page"], .nav a:hover { background: var(--panel-2); color: var(--ink); }
.menu-button { display: none; margin-left: auto; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }

.breadcrumb { padding-top: 1.4rem; color: var(--muted); font-size: .86rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; color: #657383; }
.breadcrumb a { color: #cdd6df; }

.hero { padding: 2rem 0 1.2rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr); gap: 1.1rem; align-items: stretch; }
.hero-main, .control-panel, .content-panel, .source-panel, .topic-card, .faq-panel {
  border: 1px solid var(--line); background: linear-gradient(155deg, rgba(21,30,42,.95), rgba(12,17,26,.96)); box-shadow: var(--shadow);
}
.hero-main { position: relative; overflow: hidden; min-height: 470px; padding: clamp(1.6rem, 4vw, 3.8rem); border-radius: 28px; }
.hero-main { padding-bottom: 5.4rem; }
.hero-main::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -100px; border-radius: 50%;
  border: 58px solid rgba(145,230,87,.07); pointer-events: none;
}
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--green); font-size: .77rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--green); box-shadow: 0 0 0 5px rgba(145,230,87,.1); }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
h1 { max-width: 920px; margin: 1.3rem 0 1.1rem; font-size: clamp(2.65rem, 6vw, 5.7rem); }
.hero-dek { max-width: 790px; margin: 0; color: #c8d1dc; font-size: clamp(1.06rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 800; }
.button.primary { border-color: var(--green); background: var(--green); color: #0a1206; }
.button.secondary { background: #111923; color: var(--ink); }
.independent-note { position: absolute; left: clamp(1.6rem, 4vw, 3.8rem); bottom: 1.6rem; display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .83rem; }
.independent-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.control-panel { padding: 1.2rem; border-radius: 28px; }
.panel-label { color: var(--muted); font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.control-panel h2 { margin: .65rem 0 1rem; font-size: 1.5rem; }
.task-list { display: grid; gap: .65rem; }
.task-link { display: grid; grid-template-columns: 40px 1fr; gap: .75rem; align-items: center; padding: .85rem; border: 1px solid var(--line-soft); border-radius: 15px; background: rgba(255,255,255,.025); text-decoration: none; }
.task-link:hover { border-color: #4d6840; background: rgba(145,230,87,.05); }
.task-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--green-dark); color: var(--green); font-weight: 900; }
.task-link strong { display: block; font-size: .93rem; line-height: 1.25; }
.task-link small { display: block; margin-top: .14rem; color: var(--muted); line-height: 1.35; }
.control-foot { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .82rem; }

.quick-answer { padding: 1.1rem 0 2rem; }
.answer-bar { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem 1.35rem; border: 1px solid #365027; border-radius: 18px; background: linear-gradient(90deg, rgba(145,230,87,.1), rgba(145,230,87,.02)); }
.answer-bar strong { color: var(--green); white-space: nowrap; }
.answer-bar p { margin: 0; color: #dce6d5; }

.topic-strip { padding: .2rem 0 2.5rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.topic-card { min-height: 230px; padding: 1.2rem; border-radius: var(--radius); text-decoration: none; }
.topic-card:hover { transform: translateY(-2px); border-color: #445566; color: var(--ink); }
.topic-tag { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.topic-card h3 { margin: .8rem 0 .6rem; font-size: 1.35rem; }
.topic-card p { margin: 0; color: var(--muted); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.2rem; align-items: start; padding-bottom: 3rem; }
.content-panel { padding: clamp(1.4rem, 4vw, 3.2rem); border-radius: 28px; }
.content-section { max-width: 780px; padding-bottom: 2.3rem; margin-bottom: 2.3rem; border-bottom: 1px solid var(--line-soft); }
.content-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.content-section h2 { margin-bottom: 1rem; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.content-section p { color: #d2dae3; }
.steps { counter-reset: step; display: grid; gap: .7rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 44px; padding: .75rem .8rem .75rem 3.3rem; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(255,255,255,.02); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: .75rem; top: .72rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 8px; background: var(--green-dark); color: var(--green); font-weight: 900; }
.article-rail { position: sticky; top: 80px; display: grid; gap: 1rem; }
.source-panel { padding: 1.1rem; border-radius: 20px; box-shadow: none; }
.source-panel h2 { margin: .3rem 0 .8rem; font-size: 1.2rem; }
.source-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.source-list a { display: block; color: #e5ebf1; font-weight: 760; }
.source-list small { display: block; color: var(--muted); line-height: 1.45; }
.source-date { margin: .9rem 0 0; color: #8694a3; font-size: .78rem; }
.rail-note { padding: 1rem; border: 1px solid rgba(255,91,97,.25); border-radius: 18px; background: rgba(255,91,97,.05); color: #d7c2c4; font-size: .88rem; }
.rail-note strong { display: block; color: #ff9ca0; }

.faq { padding: 0 0 4rem; }
.faq-panel { padding: clamp(1.3rem, 4vw, 2.7rem); border-radius: 28px; }
.faq-panel h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem .2rem; color: #ecf1f5; font-weight: 800; }
details p { max-width: 780px; margin: 0 0 1.2rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line-soft); background: #06090e; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; padding: 2.4rem 0; }
.footer-grid p { max-width: 650px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-content: start; justify-content: end; }
.footer-links a { color: #dce4eb; }
.footer-bottom { padding: 1rem 0 1.4rem; border-top: 1px solid var(--line-soft); color: #7f8b98; font-size: .82rem; }

.error-page { min-height: 68vh; display: grid; place-items: center; text-align: center; }
.error-page h1 { margin-bottom: .5rem; }
.error-page p { max-width: 620px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-main { min-height: 440px; }
  .article-rail { position: static; grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 1.25rem, var(--max)); }
  .header-row { min-height: 54px; }
  .brand small { display: none; }
  .menu-button { display: inline-flex; }
  .nav { display: none; position: absolute; left: .6rem; right: .6rem; top: 58px; padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: #0d131c; box-shadow: var(--shadow); }
  .nav[data-open="true"] { display: grid; }
  .nav a { padding: .7rem; }
  .hero { padding-top: 1.2rem; }
  .hero-main { min-height: 480px; padding: 1.35rem; border-radius: 22px; }
  .hero-main { padding-bottom: 5rem; }
  h1 { font-size: clamp(2.25rem, 11.5vw, 3.6rem); }
  .independent-note { left: 1.35rem; right: 1.35rem; bottom: 1.25rem; }
  .control-panel { border-radius: 22px; }
  .answer-bar { grid-template-columns: 1fr; gap: .35rem; }
  .topic-grid, .article-rail, .footer-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: auto; }
  .section-head { align-items: start; flex-direction: column; }
  .footer-links { justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Original editorial dashboard: compact masthead, topic rail, modular reading panels. */
:root { --bg:#080d1a; --panel:#101a30; --panel-2:#18243c; --line:#293855; --line-soft:#21304a; --green:#b9f578; --green-dark:#203324; --red:#ff536d; --muted:#a9b8d1; --max:1480px; }
body { background: radial-gradient(ellipse at 6% 8%,#17304166,transparent 35%),radial-gradient(ellipse at 94% 15%,#35235355,transparent 36%),#080d1a; }
.header-row { min-height:64px; }
.site-header { background:#11151eea; }
.brand-logo { width:218px; height:60px; object-fit:contain; object-position:left; }
.nav a { font-size:.9rem; }
.dashboard-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; align-items:start; padding-top:24px; }
.dashboard-body { min-width:0; }
.dashboard-nav { position:sticky; top:88px; max-height:calc(100dvh - 104px); overflow:auto; scrollbar-width:thin; border:1px solid var(--line); border-radius:22px; padding:22px 16px; background:linear-gradient(160deg,#172139,#0c1426); }
.sidebar-title { margin:.65rem 0 1.4rem; font-size:1.45rem; font-weight:800; line-height:1.2; letter-spacing:-.04em; }
.dashboard-nav nav { display:grid; gap:5px; margin:0 -7px 1.5rem; }
.dashboard-nav nav a { padding:10px 12px; border-radius:9px; font-weight:650; text-decoration:none; color:#d5e0f2; }
.dashboard-nav nav a[aria-current] { color:var(--green); background:#b9f57812; box-shadow:inset 3px 0 var(--green); }
.dashboard-nav nav a:hover { background:#ffffff08; }
.dashboard-nav nav.toc a { font-size:.875rem; line-height:1.45; font-weight:500; color:var(--muted); }
.sidebar-note { padding:13px; border:1px solid #b9f57833; border-radius:12px; background:#b9f57808; font-size:.875rem; color:#d6e8c6; }
.hero { padding:0 0 14px; }
.hero-grid { grid-template-columns:minmax(0,1fr) 285px; gap:16px; }
.hero-main,.control-panel,.content-panel,.source-panel,.topic-card,.faq-panel { background:linear-gradient(145deg,#152139ed,#10172bee); border-color:#344565aa; box-shadow:0 12px 35px #0002; }
.hero-main { min-height:480px; padding:30px 30px 80px; border-radius:24px; }
.hero-main::after { width:330px; height:330px; right:-150px; top:-140px; border-width:52px; border-color:#8b75ff0e; }
.eyebrow { color:#b9f578; font-size:.8rem; letter-spacing:.1em; }
.eyebrow::before { background:var(--red); box-shadow:none; border-radius:2px; width:6px; height:14px; }
h1 { font-size:clamp(2.4rem,3.5vw,3.8rem); margin:22px 0 20px; line-height:1.03; letter-spacing:-.055em; }
.hero-dek { font-size:1.05rem; line-height:1.75; color:#bdcce5; }
.hero-actions { margin-top:24px; gap:10px; }
.button { font-size:.9rem; border-radius:10px; padding:12px 16px; }
.button.primary { background:var(--green); }
.button.secondary { background:#1a2441; border-color:#3d4b70; }
.independent-note { left:30px; bottom:20px; font-size:.8rem; }
.control-panel { border-radius:24px; padding:20px; background:linear-gradient(155deg,#24213c,#111a30); }
.control-panel h2 { font-size:1.45rem; line-height:1.2; margin:12px 0 22px; }
.task-link { grid-template-columns:30px 1fr; padding:13px 10px; border-radius:12px; gap:10px; }
.task-icon { width:28px; height:32px; background:#9d8afa19; color:#b7a5ff; font-size:.85rem; border-radius:7px; }
.task-link small { font-size:.875rem; margin-top:6px; }
.control-foot { font-size:.8rem; line-height:1.7; }
.quick-answer { padding:0 0 30px; }
.answer-bar { border-color:#3c5844; background:linear-gradient(105deg,#172d2e,#12242b); grid-template-columns:1fr; gap:5px; padding:18px 22px; }
.answer-bar strong { font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; }
.answer-bar p { font-size:.94rem; color:#c9d9ce; }
.topic-strip { padding-bottom:28px; }
.section-head h2 { font-size:1.8rem; margin-top:5px; }
.guide-filters { display:flex; gap:5px; }
.guide-filters button { color:#bdcce5; padding:8px 12px; font-size:.875rem; border:1px solid #334464; border-radius:8px; background:#111b30; cursor:pointer; }
.guide-filters button[aria-pressed="true"] { color:#0b1620; background:#a6e6ee; border-color:#a6e6ee; }
.topic-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.topic-card { min-height:260px; border-radius:18px; padding:22px; display:flex; flex-direction:column; }
.topic-card:nth-child(2) { background:linear-gradient(155deg,#25203a,#131b30); }
.topic-card:nth-child(3) { background:linear-gradient(155deg,#152c34,#131b30); }
.topic-tag { font-size:.8rem; color:#a6e6ee; }
.topic-card h3 { font-size:1.35rem; line-height:1.15; }
.topic-card p { font-size:.94rem; line-height:1.65; }
.card-action { margin-top:auto; padding-top:20px; color:#e1eaf8; font-weight:750; font-size:.875rem; }
.filter-status:empty { display:none; }
.filter-status { color:var(--muted); font-size:.875rem; }
[hidden] { display:none !important; }
.article-layout { grid-template-columns:minmax(0,1fr) 260px; gap:16px; padding-bottom:24px; }
.content-panel { padding:30px; border-radius:22px; }
.content-section h2 { font-size:1.85rem; line-height:1.15; }
.content-section { scroll-margin-top:90px; }
.context-links { display:flex; gap:10px 16px; flex-wrap:wrap; margin-top:20px; }
.context-links a { font-size:.875rem; color:#a6e6ee; }
.source-panel { background:#10192b; }
.source-list a { font-size:.94rem; }
.source-list small { font-size:.8rem; margin-top:5px; }
.faq { padding-bottom:24px; }
.faq-panel { border-radius:22px; padding:30px; }
.editorial-panel { border-top:1px solid var(--line); padding:26px 8px 40px; color:var(--muted); }
.editorial-panel h2 { margin:12px 0; color:#e1eaf8; font-size:1.4rem; }
.editorial-panel p { max-width:900px; font-size:.94rem; }
.panel-label { font-size:.78rem; }
#guida,#fonti,#faq,#esplora,#metodo-editoriale { scroll-margin-top:88px; }
.menu-button { display:none; }
.guide-filters { display:none; }
.js-ready .guide-filters { display:flex; }
@media(min-width:681px) { .nav { display:flex; } }
@media(max-width:1200px) {
 .dashboard-layout { grid-template-columns:190px minmax(0,1fr); gap:16px; }
 .hero-grid { grid-template-columns:minmax(0,1fr); }
 .hero-main { min-height:0; }
 .control-panel { display:none; }
 .article-layout { grid-template-columns:1fr; }
 .article-rail { position:static; grid-template-columns:1fr 1fr; }
 .topic-card { padding:18px; }
}
@media(max-width:850px) {
 .dashboard-layout { grid-template-columns:1fr; }
 .dashboard-nav { position:static; display:none; }
 .hero-main { padding:26px 26px 75px; }
 .topic-grid { grid-template-columns:1fr 1fr; }
 .topic-card:last-child { grid-column:1/-1; min-height:0; }
}
@media(max-width:680px) {
 .header-row { flex-wrap:wrap; min-height:60px; gap:0; }
 .brand-logo { width:204px; height:56px; }
 .nav { display:flex; position:static; width:100%; margin:0 0 10px; padding:0; border:0; background:transparent; box-shadow:none; }
 .nav a { font-size:.875rem; }
 .js-ready .menu-button { display:block; }
 .js-ready .nav { display:none; }
 .js-ready .nav[data-open="true"] { display:flex; flex-wrap:wrap; }
 .dashboard-layout { padding-top:14px; }
 .hero-main { padding:24px 20px 68px; border-radius:20px; }
 h1 { font-size:clamp(2.2rem,9.5vw,3rem); }
 .hero-dek { font-size:1rem; line-height:1.7; }
 .hero-actions { margin-top:20px; }
 .independent-note { left:20px; right:20px; bottom:14px; font-size:.78rem; }
 .topic-grid,.article-rail { grid-template-columns:1fr; }
 .topic-card { min-height:0; }
 .content-panel,.faq-panel { padding:23px 20px; border-radius:20px; }
 .content-section h2 { font-size:1.6rem; }
 .section-head { gap:16px; }
 .answer-bar { padding:18px; }
}
