/* CasinoItalia.net — design system
   Tema "tavolo verde": feltro da casinò + oro + tricolore.
   Doppio tema (chiaro/scuro) via [data-theme] sul root; i componenti
   usano solo i token semantici qui sotto. */

:root {
  color-scheme: light;
  --green-900: #0b2b26;
  --green-800: #10362f;
  --green-700: #14463c;
  --green-600: #1c6b57;
  --green-500: #1f8a6d;
  --green-050: #eafaf3;
  --gold-600: #b8860b;
  --gold-500: #d4af37;
  --gold-400: #f2c94c;
  --gold-300: #ecd589;
  --red-700: #9e1119;
  --red-600: #c11224;
  --danger: #b42318;
  --tricolore: linear-gradient(90deg, #008c45 0 33.4%, #f2f4f0 33.4% 66.7%, #cd212a 66.7% 100%);

  --ink-900: #12211d;
  --ink-700: #33463f;
  --ink-500: #5c6f68;
  --line: #e2e8e4;
  --bg: #ffffff;
  --bg-alt: #f4f8f5;
  --bg-card: #ffffff;
  --tint: #eafaf3;
  --tint-border: #b9e3cf;
  --warn-bg: #fdeef0;
  --warn-border: #f0c3c0;
  --header-bg: rgba(255, 255, 255, .92);
  --link: #1c6b57;
  --bonus: var(--red-600);

  --gold-cta: linear-gradient(180deg, #f6cf45, #ddab1b);
  --gold-cta-hover: linear-gradient(180deg, #ffd84f, #e6b41f);
  --cta-ink: #17281f;

  --hero-suits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190'%3E%3Cg fill='%230b2b26' fill-opacity='.05' font-size='32'%3E%3Ctext x='16' y='46'%3E%E2%99%A0%3C/text%3E%3Ctext x='108' y='100' font-size='24'%3E%E2%99%A5%3C/text%3E%3Ctext x='38' y='158' font-size='26'%3E%E2%99%A3%3C/text%3E%3Ctext x='146' y='42' font-size='22'%3E%E2%99%A6%3C/text%3E%3C/g%3E%3C/svg%3E");
  --hero-grad: linear-gradient(180deg, #e3f5eb, #ffffff 78%);
  --hero-h1: var(--ink-900);
  --hero-accent: var(--red-600);
  --hero-lead: var(--ink-700);
  --eyebrow-bg: #ffffff;
  --eyebrow-border: var(--line);
  --eyebrow-ink: var(--gold-600);
  --hero-chip-bg: #ffffff;
  --hero-chip-border: var(--line);
  --hero-chip-ink: var(--ink-700);

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 43, 38, .06), 0 1px 3px rgba(11, 43, 38, .08);
  --shadow-md: 0 6px 24px rgba(11, 43, 38, .10);
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink-900: #ecf5f0;
  --ink-700: #c6d8cf;
  --ink-500: #96afa4;
  --line: rgba(255, 255, 255, .10);
  --bg: #0c1613;
  --bg-alt: #101d18;
  --bg-card: #152622;
  --tint: rgba(31, 138, 109, .14);
  --tint-border: rgba(31, 138, 109, .40);
  --warn-bg: rgba(224, 52, 74, .13);
  --warn-border: rgba(224, 52, 74, .40);
  --header-bg: rgba(10, 18, 15, .88);
  --link: #3dbd92;
  --bonus: #ff5d6e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .5);

  --hero-suits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190'%3E%3Cg fill='%23f2c94c' fill-opacity='.055' font-size='32'%3E%3Ctext x='16' y='46'%3E%E2%99%A0%3C/text%3E%3Ctext x='108' y='100' font-size='24'%3E%E2%99%A5%3C/text%3E%3Ctext x='38' y='158' font-size='26'%3E%E2%99%A3%3C/text%3E%3Ctext x='146' y='42' font-size='22'%3E%E2%99%A6%3C/text%3E%3C/g%3E%3C/svg%3E");
  --hero-grad: radial-gradient(130% 140% at 50% -20%, #175a46 0%, #0f3d31 48%, #0b2b26 100%);
  --hero-h1: #ffffff;
  --hero-accent: var(--gold-400);
  --hero-lead: #cfe3d9;
  --eyebrow-bg: rgba(255, 255, 255, .08);
  --eyebrow-border: rgba(255, 255, 255, .18);
  --eyebrow-ink: #f0d778;
  --hero-chip-bg: rgba(255, 255, 255, .07);
  --hero-chip-border: rgba(255, 255, 255, .16);
  --hero-chip-ink: #e8f2ec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink-900); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
strong { font-weight: 700; }

/* ---------- Age bar ---------- */
.age-bar {
  background: var(--green-900);
  color: #dbeee6;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
}
.age-bar b { background: var(--gold-500); color: var(--green-900); border-radius: 6px; padding: 1px 7px; margin-right: 6px; font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; display: block; height: 3px; background: var(--tricolore); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--green-800); }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--gold-600); }
.brand img { height: 42px; width: auto; display: block; }
[data-theme="dark"] .brand img { background: #fff; border-radius: 9px; padding: 3px 8px; height: 44px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--gold-300); display: grid; place-items: center; font-size: 18px; font-weight: 900;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-700); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--link); text-decoration: none; }
.nav-cta {
  background: var(--gold-cta); color: var(--cta-ink) !important;
  padding: 10px 17px; border-radius: 10px; font-weight: 800;
  border: 1px solid #c79a15; box-shadow: 0 4px 14px rgba(212, 175, 55, .3);
}
.nav-cta:hover { background: var(--gold-cta-hover); }
.theme-btn {
  background: var(--bg-card); border: 1px solid var(--line); color: var(--ink-900);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  font-size: 17px; line-height: 1; display: grid; place-items: center; flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--gold-500); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink-900); margin: 4px 0; border-radius: 2px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg-card); }
.mobile-nav a { display: block; padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--ink-900); font-weight: 600; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .mobile-nav.open { display: block; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-500); padding: 14px 0 0; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb span { color: var(--link); font-weight: 600; }

/* ---------- Hero: chiaro di giorno, tavolo verde in dark ---------- */
.hero {
  background-image: var(--hero-suits), var(--hero-grad);
  border-bottom: 1px solid rgba(212, 175, 55, .4);
}
.hero-inner { padding: 54px 0 48px; max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--eyebrow-bg); border: 1px solid var(--eyebrow-border);
  color: var(--eyebrow-ink); font-weight: 700; font-size: 13px;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold-500); animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%,100% { transform: scale(2.4); opacity: 0; } }
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); margin: 0 0 14px; color: var(--hero-h1); letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--hero-accent); }
.hero .lead { font-size: 19px; color: var(--hero-lead); margin: 0 0 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-border);
  border-radius: 10px; padding: 8px 13px; font-size: 14px; font-weight: 600; color: var(--hero-chip-ink);
}
.trust-chip .i { font-size: 16px; }

/* ---------- Byline autore ---------- */
.byline {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--eyebrow-bg); border: 1px solid var(--eyebrow-border);
  border-radius: 999px; padding: 6px 16px 6px 6px; margin: 0 0 18px;
  font-size: 13.5px; color: var(--hero-lead);
}
.byline img { width: 34px; height: 34px; border-radius: 50%; }
.byline b { color: var(--hero-h1); font-weight: 800; }

/* ---------- Sections ---------- */
section.block { padding: 46px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 10px; }
.block h3 { font-size: 21px; margin: 26px 0 8px; }
.block p { color: var(--ink-700); margin: 0 0 14px; }
.section-intro { max-width: 760px; }
.updated-note { font-size: 13px; color: var(--ink-500); font-weight: 600; }

/* ---------- Operator cards ---------- */
.op-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.op-card {
  display: grid; grid-template-columns: 58px 1.4fr 1.6fr auto auto; align-items: center; gap: 20px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); position: relative;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.op-card:hover { border-color: var(--gold-500); box-shadow: var(--shadow-md); }
.op-card.top { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500), 0 10px 32px rgba(212, 175, 55, .22); }
.op-rank {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-600); color: #fff; font-weight: 900;
  display: grid; place-items: center; font-size: 19px;
  border: 2px dashed rgba(255,255,255,.75);
  box-shadow: 0 0 0 3px var(--green-600), 0 2px 6px rgba(11,43,38,.25);
}
.op-card.top .op-rank {
  background: var(--gold-500); color: var(--green-900);
  border-color: rgba(11,43,38,.45);
  box-shadow: 0 0 0 3px var(--gold-500), 0 2px 6px rgba(11,43,38,.25);
}
.op-name { font-weight: 800; font-size: 18px; margin: 0; }
.op-logo { display: block; height: 52px; width: auto; max-width: 165px; object-fit: contain; border-radius: 8px; margin-bottom: 8px; }
.review-logo { display: block; height: 60px; width: auto; max-width: 240px; object-fit: contain; border-radius: 10px; margin: 10px 0 14px; }
[data-theme="dark"] .op-logo, [data-theme="dark"] .review-logo { background: #fff; padding: 5px 9px; }
.op-name .lic { display: block; font-size: 12px; color: var(--ink-500); font-weight: 600; margin-top: 2px; }
.op-bonus {
  background: var(--tint);
  border: 1px solid var(--tint-border); border-radius: 12px; padding: 12px 16px;
}
.op-bonus b { display: block; font-size: 19px; line-height: 1.3; color: var(--bonus); }
.op-bonus small { display: block; color: var(--ink-700); font-size: 13px; margin-top: 3px; }
.op-metrics { display: flex; gap: 18px; }
.op-metric { text-align: center; }
.op-metric .k { font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .03em; }
.op-metric .v { font-weight: 800; color: var(--ink-900); }
.op-actions { display: flex; flex-direction: column; gap: 8px; min-width: 172px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; border-radius: 10px; padding: 11px 16px; font-size: 15px; cursor: pointer; border: 1px solid transparent; text-align: center; }
.btn-primary {
  background: var(--gold-cta); color: var(--cta-ink);
  border-color: #c79a15; font-weight: 800;
  box-shadow: 0 5px 16px rgba(212, 175, 55, .32);
}
.btn-primary:hover { background: var(--gold-cta-hover); text-decoration: none; }
.op-actions .btn-primary {
  padding: 14px 18px; font-size: 16px;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
.op-actions .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(212, 175, 55, .42); }
.btn-ghost { background: var(--bg-card); border-color: var(--line); color: var(--link); }
.btn-ghost:hover { border-color: var(--gold-500); text-decoration: none; }
.ribbon { position: absolute; top: -11px; left: 20px; background: var(--red-600); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }

.op-metric .v.gold { color: var(--gold-600); white-space: nowrap; }
[data-theme="dark"] .op-metric .v.gold { color: var(--gold-400); }
.btn-note { display: block; font-size: 11px; color: var(--ink-500); text-align: center; }

/* Posizioni 7-10: righe compatte */
.op-rows { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.op-row {
  display: grid; grid-template-columns: 44px 1.1fr 1.6fr auto auto;
  align-items: center; gap: 14px; padding: 12px 18px;
  border-top: 1px solid var(--line); background: var(--bg-card); font-size: 15px;
}
.op-row:first-child { border-top: 0; }
.op-row-rank { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--link); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.op-row-name b { display: block; }
.op-row-name small { color: var(--ink-500); font-size: 12px; }
.op-row-bonus { color: var(--bonus); font-weight: 700; }
.op-row-vote { color: var(--gold-600); font-weight: 800; white-space: nowrap; }
[data-theme="dark"] .op-row-vote { color: var(--gold-400); }
.op-row > a { font-weight: 700; white-space: nowrap; }

@media (max-width: 720px) {
  .op-row { grid-template-columns: 34px 1fr auto; }
  .op-row-bonus { grid-column: 2 / -1; }
  .op-row > a { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  .op-card { grid-template-columns: 54px 1fr; grid-auto-rows: min-content; }
  .op-card > div { min-width: 0; }
  .op-bonus { grid-column: 1 / -1; }
  .op-metrics { grid-column: 1 / -1; }
  .op-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .op-actions .btn { flex: 1 1 140px; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
caption { text-align: left; font-size: 13px; color: var(--ink-500); padding: 12px 14px; }
th, td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--line); }
thead th { background: var(--green-800); color: #eafaf3; font-size: 13px; border-top: 0; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
td strong { color: var(--ink-900); }
.hl { color: var(--link); font-weight: 800; }
[data-theme="dark"] .hl { color: var(--gold-400); }

/* ---------- Info grid ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 22px; }
.info-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.info-card .ic { font-size: 24px; }
.info-card h4 { margin: 10px 0 6px; font-size: 17px; }
.info-card p { font-size: 15px; margin: 0; color: var(--ink-700); }

/* ---------- Callout / disclaimer ---------- */
.callout { background: var(--tint); border: 1px solid var(--tint-border); border-radius: 12px; padding: 16px 18px; margin: 18px 0; font-size: 15px; color: var(--ink-700); }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-border); }
.disclaimer { font-size: 13px; color: var(--ink-500); }

/* ---------- Calculator ---------- */
.calc { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 22px; margin: 24px 0; }
.calc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.calc-head .badge { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--link); display: grid; place-items: center; font-size: 20px; }
.calc-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 18px 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-700); }
.field input, .field select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; font-family: inherit; background: var(--bg-alt); color: var(--ink-900); }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.calc-tile { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.calc-tile .k { font-size: 13px; color: var(--ink-500); }
.calc-tile .v { font-size: 26px; font-weight: 900; color: var(--link); margin-top: 2px; }
.calc-tile.accent .v { color: var(--gold-600); }
[data-theme="dark"] .calc-tile.accent .v { color: var(--gold-400); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-q { width: 100%; background: var(--bg-card); border: 0; text-align: left; cursor: pointer; padding: 16px 18px; font-size: 16px; font-weight: 700; color: var(--ink-900); display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: inherit; }
.faq-q:hover { background: var(--bg-alt); }
.faq-q .sign { color: var(--gold-500); font-size: 22px; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; background: var(--bg-card); }
.faq-item.open .faq-a { padding: 0 18px 18px; max-height: 600px; }
.faq-a p { margin: 0; color: var(--ink-700); font-size: 15px; }

/* ---------- Update log ---------- */
.updatelog { background: var(--tint); border: 1px solid var(--tint-border); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.updatelog h2 { font-size: 18px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.updatelog .badge { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-card); border: 1px solid var(--gold-500); color: var(--link); font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 12px; }
.timeline .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-500); margin-top: 7px; flex-shrink: 0; }
.timeline li:first-child .dot { background: var(--gold-500); }
.timeline .d { font-size: 12px; font-weight: 800; color: var(--link); }
.timeline li:not(:first-child) .d { color: var(--ink-500); }
.timeline .t { font-size: 14px; color: var(--ink-700); }

/* ---------- Author box ---------- */
.author-box { display: flex; gap: 16px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); align-items: flex-start; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--green-600), var(--green-800)); color: var(--gold-300); display: grid; place-items: center; font-weight: 900; font-size: 20px; flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.author-box .label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); margin: 0; }
.author-box .name { font-weight: 800; margin: 2px 0; }
.author-box .bio { font-size: 14px; color: var(--ink-700); margin: 6px 0 0; }

/* ---------- Related / hub links ---------- */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.link-card { display: block; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.link-card:hover { border-color: var(--gold-500); text-decoration: none; box-shadow: var(--shadow-md); }
.link-card b { color: var(--ink-900); display: block; }
.link-card span { font-size: 14px; color: var(--ink-500); }

/* ---------- Answer box (GEO answer-first) ---------- */
.answer-box {
  background: var(--tint); border: 1px solid var(--tint-border);
  border-radius: var(--radius); padding: 18px 22px;
  border-left: 0; position: relative;
}
.answer-box p { margin: 0; font-size: 16px; color: var(--ink-900); line-height: 1.6; }
.answer-box strong { color: var(--ink-900); }

/* ---------- Timeline normativa ---------- */
.reg-timeline { list-style: none; margin: 24px 0; padding: 0; position: relative; }
.reg-timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--tint-border); }
.reg-timeline li { position: relative; padding: 0 0 22px 48px; }
.reg-timeline li:last-child { padding-bottom: 0; }
.reg-timeline .yr { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green-600); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.reg-timeline h3 { font-size: 17px; margin: 4px 0 4px; }
.reg-timeline p { margin: 0; font-size: 15px; color: var(--ink-700); }

/* ---------- Glossario ---------- */
.glossary { margin-top: 22px; }
.glossary dt { font-weight: 800; font-size: 17px; color: var(--ink-900); margin-top: 20px; scroll-margin-top: 90px; }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 6px 0 0; color: var(--ink-700); font-size: 15px; max-width: 74ch; }
.glossary-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; }
.glossary-nav a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; font-size: 14px; color: var(--link); background: var(--bg-card); }
.glossary-nav a:hover { border-color: var(--gold-500); text-decoration: none; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 10px; }
.blog-card { display: block; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease; }
.blog-card:hover { border-color: var(--gold-500); box-shadow: var(--shadow-md); text-decoration: none; }
.blog-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.blog-card .bc-body { padding: 16px 18px 18px; }
.blog-card b { display: block; color: var(--ink-900); font-size: 17px; line-height: 1.35; margin-bottom: 6px; }
.blog-card span { display: block; font-size: 14px; color: var(--ink-500); }
.blog-card .bc-date { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--link); }
.post-hero-img { border-radius: var(--radius); margin: 6px 0 24px; box-shadow: var(--shadow-md); }
.post h2 { font-size: 24px; margin-top: 30px; }
.post p { max-width: 74ch; }

/* ---------- Footer ---------- */
.site-footer { background: radial-gradient(120% 90% at 50% 0%, #10382f 0%, var(--green-900) 62%); color: #b9d4c9; margin-top: 20px; }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--tricolore); }
[data-theme="dark"] .site-footer { background: radial-gradient(120% 90% at 50% 0%, #0e211c 0%, #081411 62%); }
.site-footer .container { padding: 40px 20px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand-name { font-weight: 900; font-size: 20px; color: #fff; margin: 0 0 12px; }
.footer-brand-name .dot { color: var(--gold-500); }
.footer-brand-name a { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; }
.footer-brand-name img { height: 34px; width: auto; display: block; }
.site-footer p { font-size: 14px; margin: 0 0 10px; }
.site-footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9d4c9; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.footer-badge { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 6px 11px; font-size: 12px; font-weight: 600; color: #dceee6; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 18px; font-size: 12.5px; color: #8fb2a5; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-size: 13px; }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.tag { display: inline-block; background: var(--tint); color: var(--link); border: 1px solid var(--tint-border); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--link); }

/* ---------- Modale consenso ---------- */
.consent-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 16, 13, .72); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
}
.consent-modal {
  background: var(--bg-card); color: var(--ink-900);
  border: 1px solid var(--line); border-top: 3px solid var(--gold-500);
  border-radius: var(--radius); max-width: 520px; width: 100%;
  padding: 26px 28px; box-shadow: var(--shadow-md);
}
.consent-modal h3 { margin: 0 0 10px; font-size: 20px; }
.consent-modal p { color: var(--ink-700); font-size: 15px; margin: 0 0 18px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 140px; }
body.consent-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse::after { animation: none; }
  .op-card, .op-actions .btn-primary, .faq-q .sign, .faq-a { transition: none; }
  .op-actions .btn-primary:hover { transform: none; }
}
