/* ---------- La Guida ---------- */
.g-loading { padding: 60px 16px; text-align: center; color: var(--muted); }
.g-brand { display: flex; flex-direction: column; }
.g-brand small { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); }
.g-home { padding-bottom: 32px; }
.section-title { margin: 0; }
.g-sub { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }

.g-btn { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; text-align: center; border: none; cursor: pointer; }
.g-btn.gold { background: var(--gold); color: var(--ink); }
.g-btn.gold:hover { background: #D6B25E; color: var(--ink); }
.g-btn.ghost { border: 1.5px solid #5C7395; color: #fff; }
.g-btn.ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.g-btn.blue { background: var(--blue); color: #fff; }
.g-btn.blue:hover { background: var(--blue-dark); color: #fff; }
.g-btn.line { border: 1.5px solid var(--blue); color: var(--blue); background: #fff; }
.g-btn.white { background: #fff; color: var(--blue-dark); }
.g-pill { align-self: flex-start; display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.eyebrow-gold { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-ink); }
.g-pbar { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.g-pbar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .3s; }

/* Hero */
.g-hero { position: relative; overflow: hidden; margin: 4px 0 16px; padding: 30px 22px 26px; border-radius: 24px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 16px; }
.g-hero-fly { position: absolute; right: -40px; top: -22px; width: 165px; height: auto; transform: rotate(12deg); pointer-events: none; }
.g-kicker { position: relative; margin: 0; max-width: 200px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #D9BB72; }
.g-hero h1 { position: relative; margin: 0; max-width: 300px; font-family: var(--serif); font-size: 42px; line-height: 1.02; }
.g-hero-text { position: relative; margin: 0; max-width: 620px; font-size: 15px; line-height: 1.55; color: #C9D3E0; }
.g-hero-cta { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
@media (min-width: 720px) {
  .g-hero { padding: 52px 48px 44px; }
  .g-hero-fly { width: 270px; right: 30px; top: 18px; }
  .g-hero h1 { max-width: 620px; font-size: 60px; }
  .g-kicker { max-width: none; }
  .g-hero-cta { flex-direction: row; }
}

/* Countdown + errori */
.g-top-grid, .g-bottom-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-bottom: 16px; }
.g-cd { padding: 20px; border-radius: 20px; background: #fff; border: 1.5px solid var(--gold); display: flex; flex-direction: column; gap: 12px; }
.g-cd-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.g-live { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--danger); }
.g-live span { width: 8px; height: 8px; border-radius: 999px; background: var(--danger); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.g-cd h2 { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.g-cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.g-cd-grid div { padding: 10px 0; border-radius: 12px; background: var(--bg); text-align: center; }
.g-cd-grid b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.g-cd-grid span { font-size: 11px; font-weight: 700; color: var(--muted); }
.cd-status { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.cd-note { margin: 0; font-size: 13px; color: var(--muted); }
.g-errors { padding: 20px; border-radius: 20px; background: var(--gold-paper); border: 1px solid #E2D3AE; display: flex; flex-direction: column; gap: 12px; }
.g-errors h2 { margin: 0; font-family: var(--serif); font-size: 26px; }
.g-err { display: flex; gap: 12px; align-items: flex-start; }
.g-err span { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--danger); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.g-err p { margin: 0; font-size: 14px; line-height: 1.5; color: #3E3214; }
.g-link-gold { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--gold-ink); }

/* Prossime scadenze */
.g-deadlines { padding: 20px; border-radius: 20px; background: var(--gold-paper); border: 1px solid #E2D3AE; display: flex; flex-direction: column; gap: 10px; }
.g-deadlines h2 { margin: 0; font-family: var(--serif); font-size: 26px; }
.g-dl-sub { margin: 0; font-size: 13px; color: #5A4718; }
.g-deadlines ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.g-deadlines li { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; }
.g-dl-date { flex: none; width: 52px; min-height: 54px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.g-dl-date b { font-size: 20px; line-height: 1; }
.g-dl-date span { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #D9BB72; }
.g-deadlines li.tba .g-dl-date { background: var(--bg); color: var(--muted); }
.g-dl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-dl-main b { font-size: 15px; line-height: 1.3; }
.g-dl-when { font-size: 12px; color: var(--muted); }
.g-deadlines li.dated .g-dl-when { font-weight: 700; color: var(--danger); }
.g-dl-kind { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.g-dl-kind.sale { background: var(--gold); color: var(--ink); }
.g-dl-kind.addon { background: var(--blue-soft); color: var(--blue-dark); }
.g-dl-kind.address { background: #FCEBEA; color: #8C1D18; }
.g-dl-kind.other { background: var(--bg); color: var(--muted); }

/* Roadmap */
.g-roadmap { margin: 28px 0; }
.g-roadmap ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.g-roadmap li { display: flex; gap: 14px; position: relative; padding-bottom: 14px; }
.g-roadmap li:not(.last)::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.g-roadmap li.now::before { background: var(--gold); }
.g-rm-dot { flex: none; position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.g-roadmap li.now .g-rm-dot { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.g-rm-card { flex: 1; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.g-rm-card:hover { color: var(--ink); box-shadow: 0 4px 14px rgba(22,38,61,.1); }
.g-rm-card b { font-size: 16px; }
.g-rm-card span:not(.g-pill) { font-size: 13px; color: var(--muted); }
.g-roadmap li.last .g-rm-card { background: var(--blue-soft); }

/* Capitoli */
.g-chapters { margin: 8px 0 28px; }
.g-groups { display: grid; gap: 22px; margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g-group h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; }
.g-group-list { display: flex; flex-direction: column; gap: 8px; }
.g-ch { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.g-ch:hover { color: var(--ink); box-shadow: 0 4px 14px rgba(22,38,61,.1); }
.g-ch.urgent { border: 1.5px solid var(--gold); box-shadow: none; }
.g-ch-num { font-size: 13px; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.g-ch-ic { color: var(--blue); display: flex; }
.g-ch-title { flex: 1; font-size: 15px; font-weight: 600; }
.g-ch-arrow { color: var(--blue); display: flex; }

/* Checklist e community */
.g-cklite { padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.g-cklite-head { display: flex; justify-content: space-between; align-items: baseline; }
.g-cklite h2, .g-community h2 { margin: 0; font-family: var(--serif); font-size: 26px; }
.g-cklite b { color: var(--blue); }
.g-cklite p, .g-community p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.g-community { padding: 22px 20px; border-radius: 20px; background: var(--blue); color: #fff; display: flex; flex-direction: column; gap: 12px; }
.g-community p { color: var(--blue-soft); }
.g-link-white { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; }
.g-link-white:hover { color: #fff; }

/* Footer */
.g-foot { margin-top: 20px; padding: 26px 0 40px; background: #fff; border-top: 2px solid var(--gold); }
.g-foot .brand-name { font-size: 20px; }
.g-foot p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 680px; }
.g-foot p.small { font-size: 12px; color: var(--soft-text); }

/* ---------- Pagina capitolo ---------- */
.g-bar { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid #E1E6ED; }
.g-bar-in { max-width: 820px; margin: 0 auto; padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.g-back { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.g-back:hover { background: var(--bg); color: var(--ink); }
.g-bar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g-bar-title small { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); }
.g-bar-title span { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-bar .langs a { min-width: 34px; min-height: 34px; font-size: 12px; }
.g-bar-progress { height: 3px; background: var(--bg); }
.g-bar-progress span { display: block; height: 100%; background: var(--gold); }
@media (max-width: 420px) { .g-bar .langs { display: none; } }

.g-chapter { max-width: 820px; margin: 0 auto; padding: 0 16px 30px; }
.g-ch-head { padding: 26px 2px 6px; display: flex; flex-direction: column; gap: 12px; }
.g-ch-head h1 { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1.05; }
.g-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
@media (min-width: 720px) { .g-ch-head h1 { font-size: 52px; } }

.g-cover { margin: 10px 0 6px; border-radius: 20px; overflow: hidden; background: var(--blue-soft); }
.g-cover img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.g-figure { margin: 18px 0; }
.g-figure img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.g-figure figcaption { margin-top: 6px; font-size: 13px; color: var(--soft-text); text-align: center; }
.g-short { margin: 16px 0; padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.g-short h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.g-short ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.g-short li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.g-short li svg { flex: none; margin-top: 2px; color: var(--gold); stroke-width: 2.4; }

.g-body { font-size: 16px; line-height: 1.7; color: #23344D; }
.g-body h2 { margin: 34px 0 10px; font-family: var(--serif); font-size: 30px; line-height: 1.15; color: var(--ink); }
.g-body h3 { margin: 22px 0 6px; font-size: 18px; color: var(--ink); }
.g-body p { margin: 0 0 12px; }
.g-body ul, .g-body ol { margin: 0 0 14px; padding-left: 22px; }
.g-body li { margin: 0 0 6px; }
.g-body li::marker { color: var(--gold-text); font-weight: 700; }
.g-body strong { color: var(--ink); }
.g-body a { overflow-wrap: anywhere; }

.g-callout { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.55; }
.g-callout p { margin: 0; }
.g-callout svg { flex: none; margin-top: 2px; }
.g-callout.warn { background: #FCEBEA; color: #5C1712; }
.g-callout.warn svg { color: var(--danger); }
.g-callout.tip { background: var(--gold-paper); border: 1px solid #E2D3AE; color: #3E3214; }
.g-callout.tip svg { color: var(--gold-text); }
.g-callout.info { background: var(--blue-soft); color: #13365C; }
.g-callout.info svg { color: var(--blue); }

.g-table { margin: 14px 0 18px; overflow-x: auto; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.g-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.g-table th { text-align: left; padding: 10px 12px; background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; }
.g-table td { padding: 10px 12px; border-top: 1px solid #EDF1F5; vertical-align: top; }
.g-table td.first { font-weight: 600; color: var(--ink); min-width: 110px; }
.g-table tbody tr:nth-child(even) td { background: #FAFBFC; }

.g-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 30px 0 14px; }
.g-pager a { padding: 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.g-pager a.next { background: var(--blue); color: #fff; text-align: right; }
.g-pager small { font-size: 12px; opacity: .8; }
.g-pager b { font-size: 14px; line-height: 1.3; }
.g-ask { padding: 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; text-align: center; }

/* ---------- Checklist interattiva ---------- */
.g-checklist { margin-top: 18px; }
.ck-head { position: sticky; top: 64px; z-index: 5; padding: 14px; margin-bottom: 14px; border-radius: 16px; background: #fff; box-shadow: 0 2px 12px rgba(22,38,61,.08); display: flex; flex-direction: column; gap: 12px; }
.ck-progress-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.ck-progress-top b { color: var(--blue); }
.ck-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); }
.ck-filters button { min-height: 40px; border: none; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ck-filters button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(22,38,61,.15); }
.ck-cat { margin-bottom: 16px; }
.ck-cat h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; }
.ck-cat ul { margin: 0; padding: 0; list-style: none; border-radius: 14px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.ck-cat li { position: relative; border-top: 1px solid #EDF1F5; }
.ck-cat li:first-child { border-top: none; }
.ck-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-cat label { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 14px; cursor: pointer; }
.ck-box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #B9C6D4; display: flex; align-items: center; justify-content: center; color: transparent; }
.ck-box svg { stroke-width: 3; }
.ck-cat input:checked + label .ck-box { background: var(--blue); border-color: var(--blue); color: #fff; }
.ck-cat input:checked + label .ck-text > span { text-decoration: line-through; color: var(--soft-text); }
.ck-cat input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: -3px; }
.ck-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.ck-text small { font-size: 12px; color: var(--soft-text); }
.ck-ess { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.ck-reset { display: block; margin: 8px auto 0; min-height: 44px; padding: 0 16px; border: none; background: none; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .g-live span { animation: none; } .g-pbar span { transition: none; } }
