/* ==========================================================================
   calcioquote.com — calcio.css
   Framework fatto in casa (griglia flex a 12 colonne) + tema "quotidiano sportivo"
   ========================================================================== */

:root {
  --pitch: #0b6e4f;
  --pitch-dark: #07402f;
  --pitch-light: #12855f;
  --chalk: #ffffff;
  --paper: #fdeee6;
  --paper-deep: #f7d9ca;
  --paper-card: #fff8f3;
  --ink: #1a1a1a;
  --ink-soft: #4a4340;
  --yellow: #ffd400;
  --red: #b3141f;
  --board: #101312;
  --rule: 6px;
  --gutter: 12px;
  --font-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --shadow: 5px 5px 0 var(--ink);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
a { color: var(--pitch-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pitch); text-decoration-color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }
button { font: inherit; color: inherit; }
small, .small { font-size: .875rem; }
strong { font-weight: 700; }
hr { border: 0; border-top: 2px solid var(--ink); margin: 2rem 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1.08;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.1rem, 7.2vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  padding: 10px 16px; border: 2px solid var(--ink);
}
.skip-link:focus { top: 8px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Griglia ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 860px; }
.row { display: flex; flex-wrap: wrap; margin: 0 calc(var(--gutter) * -1); }
.row > * { width: 100%; padding: 0 var(--gutter); min-width: 0; }
.g-y > * { margin-bottom: 24px; }
.col-3 { width: 25%; } .col-4 { width: 33.3333%; } .col-6 { width: 50%; }
.col-8 { width: 66.6667%; } .col-9 { width: 75%; } .col-12 { width: 100%; }
@media (min-width: 576px) {
  .col-sm-4 { width: 33.3333%; } .col-sm-6 { width: 50%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .col-md-3 { width: 25%; } .col-md-4 { width: 33.3333%; } .col-md-5 { width: 41.6667%; }
  .col-md-6 { width: 50%; } .col-md-7 { width: 58.3333%; } .col-md-8 { width: 66.6667%; }
  .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.3333%; } .col-lg-5 { width: 41.6667%; }
  .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.3333%; } .col-lg-8 { width: 66.6667%; }
  .col-lg-9 { width: 75%; }
}
@media (min-width: 1200px) {
  .col-xl-3 { width: 25%; } .col-xl-4 { width: 33.3333%; } .col-xl-8 { width: 66.6667%; } .col-xl-9 { width: 75%; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--ink-soft); }
.mb-0 { margin-bottom: 0 !important; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mb-4 { margin-bottom: 1.5rem; }
.d-block { display: block; }
.lead { font-size: 1.125rem; line-height: 1.6; }
.list-unstyled { list-style: none; padding-left: 0; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.05rem; line-height: 1.1; text-decoration: none; text-align: center;
  padding: .8em 1.4em; border: 2px solid var(--ink); border-radius: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { background: #ffe14d; color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--chalk); }
.btn-dark { background: var(--pitch-dark); color: var(--chalk); box-shadow: 4px 4px 0 var(--ink); }
.btn-dark:hover { background: var(--pitch); color: var(--chalk); }
.btn-sm { font-size: .875rem; padding: .65em .9em; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { font-size: 1.25rem; padding: .9em 1.8em; }
.btn-block { display: flex; width: 100%; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; line-height: 1; padding: .4em .6em;
  background: var(--ink); color: var(--chalk); white-space: nowrap;
}
.badge-yellow { background: var(--yellow); color: var(--ink); }
.badge-green { background: var(--pitch); color: var(--chalk); }
.badge-red { background: var(--red); color: var(--chalk); }
.badge-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- Tabellone (scoreboard strip) ---------- */
.scoreboard { background: var(--board); color: var(--chalk); border-bottom: 3px solid var(--yellow); }
.scoreboard-inner { display: flex; align-items: stretch; }
.scoreboard-label {
  flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center;
  background: var(--yellow); color: var(--ink); padding: 6px 10px;
  font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: .72rem;
  line-height: 1.15; letter-spacing: .06em;
}
.scoreboard-label span { display: block; font-weight: 500; font-size: .66rem; }
.scoreboard-track {
  display: flex; gap: 0; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #555 var(--board);
  -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-width: 0;
}
.fixture {
  flex: 0 0 auto; margin: 0; padding: 8px 14px; border-right: 1px dashed #3b423f;
  display: flex; flex-direction: column; gap: 5px;
}
.fixture-meta { display: flex; gap: 8px; align-items: baseline; font-size: .74rem; white-space: nowrap; }
.fixture-time { font-family: var(--font-head); color: var(--yellow); letter-spacing: .06em; }
.fixture-teams { font-weight: 500; color: #e9e9e4; }
.odds { display: flex; gap: 4px; }
.odd {
  display: inline-flex; align-items: center; gap: 6px; min-width: 62px; justify-content: space-between;
  background: #232927; color: var(--chalk); border: 1px solid #454d49; border-radius: 2px;
  padding: 3px 7px; cursor: pointer; font-family: var(--font-head); font-size: .9rem; line-height: 1.3;
  transition: background-color .12s ease, color .12s ease;
}
.odd-k { color: #a9b3ae; font-size: .72rem; }
.odd-v { font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.odd:hover { border-color: var(--yellow); }
.odd.is-selected, .odd[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.odd.is-selected .odd-k, .odd[aria-pressed="true"] .odd-k { color: var(--ink); }

/* ---------- Navbar ---------- */
.navbar { background: var(--pitch); color: var(--chalk); border-bottom: var(--rule) solid var(--ink); position: relative; z-index: 50; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.navbar-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk); }
.navbar-brand:hover { color: var(--chalk); }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; }
.wordmark { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 1.55rem; letter-spacing: .02em; line-height: 1; display: inline-flex; align-items: center; }
.wordmark b { font-weight: 700; background: var(--yellow); color: var(--ink); padding: 3px 6px 4px; margin-left: 4px; transform: skewX(-8deg); display: inline-block; }
.navbar-toggler {
  display: inline-flex; align-items: center; gap: 8px; background: var(--pitch-dark); color: var(--chalk);
  border: 2px solid var(--chalk); padding: 8px 10px; cursor: pointer;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
}
.navbar-toggler-icon { width: 20px; height: 14px; position: relative; display: inline-block; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.navbar-toggler-icon::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid currentColor; }
.navbar-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.navbar-nav li { margin: 0; }
.nav-link {
  display: block; color: var(--chalk); text-decoration: none; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; font-weight: 500; padding: 12px 16px;
}
.nav-link:hover { color: var(--yellow); }
.nav-link.active { color: var(--ink); background: var(--yellow); }
/* mobile: senza JS il menu resta visibile sotto la barra; con JS diventa un dropdown */
.navbar-collapse { background: var(--pitch-dark); border-top: 2px solid rgba(255,255,255,.25); }
.navbar-collapse .navbar-nav li + li { border-top: 1px solid rgba(255,255,255,.14); }
html:not(.js) .navbar-toggler { display: none; }
.js .navbar-collapse { display: none; position: absolute; left: 0; right: 0; top: 100%; border-bottom: var(--rule) solid var(--ink); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
.js .navbar-collapse.show { display: block; }
@media (min-width: 1200px) {
  .navbar-toggler { display: none; }
  .navbar-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .navbar-collapse, .js .navbar-collapse { display: block; position: static; background: transparent; border: 0; box-shadow: none; }
  .navbar-nav { flex-direction: row; align-items: stretch; }
  .navbar-collapse .navbar-nav li + li { border-top: 0; }
  .nav-link { padding: 22px 12px; font-size: .95rem; }
}
@media (min-width: 1400px) { .nav-link { padding: 22px 16px; font-size: 1rem; } }

/* ---------- Hero (campo) ---------- */
.hero {
  position: relative; color: var(--chalk); overflow: hidden;
  background-color: var(--pitch);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560' fill='none' stroke='%23ffffff' stroke-opacity='.3' stroke-width='4'%3E%3Ccircle cx='280' cy='280' r='150'/%3E%3Ccircle cx='280' cy='280' r='6' fill='%23ffffff' fill-opacity='.4'/%3E%3Cpath d='M280 0v560'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 80px, rgba(0,0,0,.05) 80px 160px);
  background-repeat: no-repeat, repeat;
  background-position: right -330px center, 0 0;
  border-bottom: var(--rule) solid var(--ink);
}
.hero::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 28px; pointer-events: none;
  border: 4px solid rgba(255,255,255,.28); border-left: 0; border-bottom: 0;
}
.hero-inner { position: relative; z-index: 1; padding-top: 36px; padding-bottom: 48px; }
.hero h1 { line-height: 1.2; margin-bottom: .35em; text-shadow: 3px 3px 0 rgba(0,0,0,.35); max-width: 16ch; }
.hero h1 mark { background: var(--yellow); color: var(--ink); padding: 0 .12em; line-height: 1; text-shadow: none; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { max-width: 62ch; color: #f1f7f4; }
.hero a:not(.btn) { color: var(--chalk); }
.hero-sm .hero-inner { padding-top: 28px; padding-bottom: 40px; }
.hero-sm h1 { font-size: clamp(1.9rem, 6vw, 3.25rem); max-width: 22ch; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; background: var(--ink); color: var(--yellow); padding: 5px 10px; margin-bottom: 14px;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; margin-top: 18px; color: #e3efe9; }
.hero-meta span::before { content: "■ "; color: var(--yellow); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
@media (min-width: 768px) { .hero { background-position: right -180px center, 0 0; } .hero::after { width: 180px; height: 44px; } .hero-inner { padding-top: 56px; padding-bottom: 72px; } .hero-sm .hero-inner { padding-top: 40px; padding-bottom: 60px; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; font-size: .85rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--yellow); }
.breadcrumb a { color: var(--chalk); text-decoration-thickness: 1px; }
.breadcrumb [aria-current] { color: var(--yellow); }

/* ---------- Avvisi (disclosure / 18+) ---------- */
.notice-bar { background: var(--paper-deep); border-bottom: 2px solid var(--ink); font-size: .84rem; line-height: 1.5; }
.notice-bar .container { padding-top: 10px; padding-bottom: 10px; }
.notice-bar p { margin: 0 0 4px; }
.notice-bar p:last-child { margin: 0; }
.age-chip {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: var(--chalk); font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  border: 2px solid var(--ink); margin-right: 6px; vertical-align: middle; flex: 0 0 30px;
}
.alert { border: 2px solid var(--ink); background: var(--paper-card); padding: 16px 18px; margin: 0 0 1.5rem; border-left-width: 12px; }
.alert > :last-child { margin-bottom: 0; }
.alert-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; display: block; margin-bottom: 4px; }
.alert-warning { border-left-color: var(--yellow); }
.alert-danger { border-left-color: var(--red); }
.alert-info { border-left-color: var(--pitch); }

/* ---------- Sezioni ---------- */
main { display: block; }
.section { padding: 40px 0; }
.section + .section { padding-top: 8px; }
.section-alt { background: var(--paper-deep); padding: 40px 0 !important; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 16px 0 40px; }
.section-head { border-top: var(--rule) solid var(--ink); padding-top: 14px; margin-bottom: 20px; position: relative; }
.section-head::before { content: ""; position: absolute; top: calc(var(--rule) * -1); left: 0; width: 96px; height: var(--rule); background: var(--pitch); }
.section-head h2 { margin-bottom: .3em; }
.section-num { font-family: var(--font-head); font-weight: 700; color: var(--pitch); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.prose { max-width: 76ch; }
.prose h3 { margin-top: 1.6em; }
.updated { font-size: .88rem; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (min-width: 768px) { .section { padding: 56px 0; } .section-alt { padding: 56px 0 !important; } }

/* ---------- Card ---------- */
.card { background: var(--paper-card); border: 2px solid var(--ink); box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.card-header { background: var(--ink); color: var(--chalk); padding: 10px 16px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.card-body { padding: 18px 18px 20px; flex: 1 1 auto; }
.card-body > :last-child { margin-bottom: 0; }
.card-title { font-size: 1.2rem; margin-bottom: .45em; }
.card-flat { box-shadow: none; }
.card-green { background: var(--pitch); color: var(--chalk); }
.card-green a { color: var(--yellow); }

/* ---------- Tabelle ---------- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 2px solid var(--ink); background: var(--paper-card); margin-bottom: 1.5rem; }
.table-responsive:focus-visible { outline-offset: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table caption { caption-side: bottom; text-align: left; font-size: .8rem; color: var(--ink-soft); padding: 8px 12px; border-top: 1px solid var(--ink); }
.table th, .table td { padding: 11px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(26,26,26,.25); }
.table thead th { background: var(--ink); color: var(--chalk); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; font-size: .82rem; white-space: nowrap; border-bottom: 0; }
.table tbody th { font-weight: 700; }
.table-striped tbody tr:nth-child(even) { background: rgba(247,217,202,.6); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table .num { font-family: var(--font-head); font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; }
.table .best { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
.table-facts th { width: 42%; background: rgba(247,217,202,.6); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; font-size: .9rem; }

/* Toplist: tabella che su mobile diventa una pila di schede */
.toplist { border: 2px solid var(--ink); background: var(--paper-card); box-shadow: var(--shadow); }
.toplist .table { font-size: .92rem; }
.toplist .table td { border-bottom: 2px solid var(--ink); }
.toplist .table tbody tr:last-child td { border-bottom: 0; }
.bk { display: flex; align-items: center; gap: 12px; }
.bk-name { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; font-size: 1.1rem; line-height: 1.1; display: block; }
.bk-link { font-size: .8rem; white-space: nowrap; }
.logo-tile {
  flex: 0 0 56px; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--chalk);
  border: 2px solid var(--ink); background: var(--pitch);
  background-image: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.16) 10px 20px);
}
.logo-tile-2 { background-color: #1a1a1a; }
.logo-tile-3 { background-color: var(--red); }
.logo-tile-4 { background-color: #1d4e89; }
.logo-tile-5 { background-color: #7a4b00; }
.logo-tile-6 { background-color: #5b2a86; }
.logo-tile-lg { width: 84px; height: 84px; flex-basis: 84px; font-size: 1.9rem; }
.pos { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--ink); color: var(--chalk); }
.pos-1 { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.bonus-main { font-weight: 700; display: block; line-height: 1.3; }
.bonus-note { font-size: .78rem; color: var(--ink-soft); display: block; }
.yn { font-family: var(--font-head); text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; white-space: nowrap; }
.yn-si::before { content: "● "; color: var(--pitch); }
.yn-no::before { content: "● "; color: var(--red); }
.digits { display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.digit {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; height: 1.9em; padding: 0 .2em;
  background: var(--board); color: var(--yellow); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  border-radius: 3px; box-shadow: inset 0 -.95em 0 rgba(255,255,255,.07); font-variant-numeric: tabular-nums;
}
.digit-sep { font-family: var(--font-head); font-weight: 700; }
.digits-lg .digit { font-size: 2.6rem; background: #2a302d; }
.digits-lg .digit-sep { font-size: 2.2rem; }
.digits-out { font-size: .78rem; color: var(--ink-soft); margin-left: 4px; }
.toplist-foot { font-size: .8rem; padding: 10px 14px; border-top: 2px solid var(--ink); background: var(--paper-deep); margin: 0; }

@media (max-width: 991.98px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack, .table-stack tbody { display: block; }
  .table-stack tr { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-bottom: var(--rule) solid var(--ink); padding: 0; }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack td { display: block; padding: 10px 12px; border-bottom: 1px solid rgba(26,26,26,.25) !important; min-width: 0; }
  .table-stack td[data-label]::before {
    content: attr(data-label); display: block; font-family: var(--font-head); text-transform: uppercase;
    font-size: .68rem; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 3px; line-height: 1.2;
  }
  .table-stack .t-pos { grid-column: span 1; order: 1; display: flex; align-items: center; padding-right: 0; }
  .table-stack .t-bk { grid-column: span 5; order: 2; }
  .table-stack .t-bonus { grid-column: span 6; order: 3; }
  .table-stack .t-stat { grid-column: span 2; order: 4; border-right: 1px solid rgba(26,26,26,.25); }
  .table-stack .t-vote { grid-column: span 2; order: 5; }
  .table-stack .t-stat.t-last { grid-column: span 6; order: 6; border-right: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
  .table-stack .t-stat.t-last::before { width: 100%; margin-bottom: 0 !important; }
  .table-stack .t-stat.t-last br { display: none; }
  .table-stack .t-cta { grid-column: span 6; order: 7; display: flex; align-items: center; border-bottom: 0 !important; padding-bottom: 16px; }
  .table-stack .t-cta .btn { width: 100%; font-size: 1rem; }
  .table th, .table td { padding: 10px 8px; }
  .table th:first-child, .table td:first-child { padding-left: 12px; }
  .table-stack .t-pos::before, .table-stack .t-bk::before, .table-stack .t-cta::before { display: none !important; }
  .digits-out { display: none; }
}
@media (min-width: 992px) {
  .toplist .table td.t-cta { text-align: right; white-space: nowrap; }
  .toplist .table thead th { white-space: normal; line-height: 1.2; }
  .toplist .logo-tile { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.1rem; }
  .toplist .bk { gap: 10px; }
  .toplist .digits-out { display: none; }
  .toplist .table th, .toplist .table td { padding: 12px 8px; }
  .toplist .table th:first-child, .toplist .table td:first-child { padding-left: 14px; }
  .toplist .table th:last-child, .toplist .table td:last-child { padding-right: 14px; }
}

/* ---------- Schedina (bet slip illustrativa) ---------- */
.schedina { background: #fffdf7; border: 2px solid var(--ink); box-shadow: var(--shadow); position: relative; font-size: .92rem; }
.schedina::before {
  content: ""; display: block; height: 12px; background:
    radial-gradient(circle at 8px 0, var(--paper) 6px, transparent 6.5px) 0 0 / 16px 12px repeat-x;
  border-bottom: 2px dashed var(--ink);
}
.schedina-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; background: var(--pitch-dark); color: var(--chalk); }
.schedina-title { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; line-height: 1; }
.schedina-list { list-style: none; margin: 0; padding: 0; counter-reset: sel; }
.schedina-list li { margin: 0; padding: 12px 16px; border-bottom: 1px dashed var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.schedina-match { font-weight: 700; }
.schedina-pick { font-size: .82rem; color: var(--ink-soft); grid-column: 1; }
.schedina-odd { grid-row: 1 / span 2; grid-column: 2; }
.schedina-total { padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.schedina-total dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.schedina-total dd { margin: 0; text-align: right; font-family: var(--font-head); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.schedina-total .tot { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 1rem; font-weight: 700; }
.schedina-note { font-size: .76rem; line-height: 1.45; padding: 10px 16px 14px; margin: 0; background: var(--paper-deep); border-top: 2px solid var(--ink); }
.barcode { height: 26px; margin: 0 16px 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px); opacity: .85; }

/* ---------- Tipi di scommessa ---------- */
.bet-type { position: relative; }
.bet-type .card-body { padding-top: 22px; }
.bet-code { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--pitch); display: block; margin-bottom: 8px; letter-spacing: .02em; }
.bet-ex { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.bet-ex .odd { cursor: default; background: var(--board); }
.bet-ex-label { font-size: .74rem; color: var(--ink-soft); display: block; margin-top: 8px; }

/* ---------- Margine / payout ---------- */
.payout-box { background: var(--pitch-dark); color: var(--chalk); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 22px 18px; position: relative; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='200' viewBox='0 0 300 200' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='3'%3E%3Cpath d='M300 20H150v160h150M300 70h-60v60h60'/%3E%3Cpath d='M150 70a50 50 0 0 0 0 60'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right -90px bottom -40px; background-size: 300px 200px; }
.payout-box h3 { color: var(--yellow); }
.payout-box a { color: var(--yellow); }
.formula { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .03em; background: rgba(0,0,0,.35); border-left: 6px solid var(--yellow); padding: 12px 14px; margin: 0 0 1em; overflow-x: auto; }
.payout-stats { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0; }
.payout-stats div { min-width: 120px; }
.payout-stats dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: #cfe3da; }
.payout-stats dd { margin: 0; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--yellow); line-height: 1.1; }
@media (min-width: 768px) { .payout-box { padding: 30px 32px; } }

/* ---------- Passi (how-to) ---------- */
.steps { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; margin: 0; padding: 0 0 22px 64px; border-left: 0; min-height: 64px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 58px;
  background: var(--pitch); color: var(--chalk); border: 2px solid var(--ink); border-radius: 4px 4px 14px 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.steps > li::after { content: ""; position: absolute; left: 22px; top: 64px; bottom: 4px; border-left: 2px dashed var(--ink); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: .3em; padding-top: 4px; }
.steps p { margin-bottom: 0; }

/* ---------- Pro / contro ---------- */
.proscons .card-header { display: flex; align-items: center; gap: 10px; }
.card-pro .card-header { background: var(--pitch); }
.card-con .card-header { background: var(--red); }
.ref-card { width: 16px; height: 22px; border: 2px solid var(--chalk); border-radius: 2px; display: inline-block; transform: rotate(-8deg); flex: 0 0 16px; }
.ref-card-green { background: #35c98d; } .ref-card-red { background: #ff5964; }
.check-list, .cross-list { list-style: none; padding: 0; margin: 0; }
.check-list li, .cross-list li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.check-list li::before, .cross-list li::before { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; line-height: 1; color: var(--chalk); }
.check-list li::before { content: "+"; background: var(--pitch); }
.cross-list li::before { content: "–"; background: var(--red); }

/* ---------- Chip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.chips li { margin: 0; }
.chip { display: inline-block; border: 2px solid var(--ink); background: var(--paper-card); padding: 4px 10px; font-size: .85rem; font-weight: 500; }

/* ---------- FAQ accordion ---------- */
.accordion { border: 2px solid var(--ink); background: var(--paper-card); box-shadow: var(--shadow); }
.accordion-item + .accordion-item { border-top: 2px solid var(--ink); }
.accordion-header { margin: 0; font-size: 1.1rem; }
.accordion-button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  background: transparent; border: 0; padding: 16px 18px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: inherit; line-height: 1.25;
}
.accordion-button::after { content: "–"; flex: 0 0 30px; width: 30px; height: 30px; background: var(--ink); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1; }
.accordion-button[aria-expanded="false"]::after { content: "+"; background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.accordion-button:hover { background: var(--paper-deep); }
.accordion-button:focus-visible { outline-offset: -3px; box-shadow: none; }
.accordion-panel { padding: 0 18px 18px; max-width: 80ch; }
.accordion-panel > :last-child { margin-bottom: 0; }
.accordion-panel[hidden] { display: none; }

/* ---------- Box autore ---------- */
.author-box { display: flex; flex-direction: column; gap: 16px; border: 2px solid var(--ink); background: var(--paper-card); padding: 20px; border-top: var(--rule) solid var(--pitch); }
.author-avatar { width: 84px; height: 84px; flex: 0 0 84px; border: 2px solid var(--ink); background: var(--pitch); color: var(--chalk); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; border-radius: 50%; }
.author-name { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; font-weight: 600; margin: 0 0 2px; line-height: 1.1; }
.author-role { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: block; }
.author-box p:last-child { margin-bottom: 0; }
@media (min-width: 576px) { .author-box { flex-direction: row; align-items: flex-start; } }

/* ---------- Recensione ---------- */
.score-box { border: 2px solid var(--ink); background: var(--paper-card); box-shadow: var(--shadow); }
.score-top { background: var(--board); color: var(--chalk); padding: 20px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.score-top .logo-tile { border-color: var(--chalk); }
.score-id { flex: 1 1 160px; min-width: 0; }
.score-id strong { font-family: var(--font-head); font-size: 1.6rem; text-transform: uppercase; display: block; line-height: 1.1; }
.score-id span { font-size: .85rem; color: #c9d2cd; }
.score-total { text-align: center; }
.score-total small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #c9d2cd; margin-top: 4px; }
.score-body { padding: 18px; }
.meter-list { list-style: none; padding: 0; margin: 0 0 18px; }
.meter-list li { margin: 0 0 12px; }
.meter-label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 500; margin-bottom: 4px; }
.meter-label b { font-family: var(--font-head); }
.meter { height: 12px; background: var(--paper-deep); border: 2px solid var(--ink); position: relative; }
.meter > span { display: block; height: 100%; background: var(--pitch); background-image: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.22) 10px 20px); }
.cta-band { background: var(--pitch); color: var(--chalk); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin: 2rem 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 60px, rgba(0,0,0,.06) 60px 120px); }
.cta-band h2, .cta-band h3, .cta-band p { margin: 0; }
.cta-band .cta-text { flex: 1 1 auto; }
.cta-band .cta-text p { margin-top: 6px; font-size: .92rem; color: #e6f2ec; }
.cta-band a:not(.btn) { color: var(--yellow); }
@media (min-width: 768px) { .cta-band { flex-direction: row; align-items: center; padding: 26px 30px; gap: 28px; } .cta-band .btn { flex: 0 0 auto; } }

/* ---------- Articolo / guida ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: #e3efe9; margin-top: 14px; }
.toc { border: 2px solid var(--ink); background: var(--paper-card); padding: 18px 18px 14px; margin-bottom: 28px; border-top: var(--rule) solid var(--ink); }
.toc-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .95rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; border-top: 1px dashed rgba(26,26,26,.4); }
.toc a { display: flex; gap: 10px; padding: 8px 0; text-decoration: none; font-weight: 500; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-head); color: var(--pitch); font-weight: 700; }
.toc a:hover { background: var(--paper-deep); }
@media (min-width: 992px) { .toc-sticky { position: sticky; top: 16px; } }
.article-body h2 { border-top: var(--rule) solid var(--ink); padding-top: 14px; margin-top: 1.8em; scroll-margin-top: 16px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 1.5em; }
.pullquote { font-family: var(--font-head); text-transform: uppercase; font-size: 1.4rem; line-height: 1.2; border-left: 12px solid var(--yellow); padding: 6px 0 6px 18px; margin: 1.6rem 0; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; font-weight: 500; margin-bottom: 5px; }
.form-control { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; padding: 11px 12px; }
.form-control:focus { outline: 3px solid var(--yellow); outline-offset: 0; box-shadow: 4px 4px 0 var(--ink); }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 16px; }
.form-check input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; accent-color: var(--pitch); }
.form-text { font-size: .8rem; color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-top: 1px dashed var(--ink); margin: 0; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list span { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--pitch); font-weight: 600; }

/* ---------- Checklist autovalutazione ---------- */
.self-check { list-style: none; padding: 0; margin: 0; border: 2px solid var(--ink); background: var(--paper-card); }
.self-check li { margin: 0; border-top: 1px dashed var(--ink); }
.self-check li:first-child { border-top: 0; }
.self-check label { display: flex; gap: 12px; padding: 13px 16px; cursor: pointer; align-items: flex-start; }
.self-check label:hover { background: var(--paper-deep); }
.self-check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--red); }
.help-card .card-header { background: var(--red); }
.phone-big { font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: .04em; display: block; line-height: 1.1; margin: 4px 0 8px; white-space: nowrap; }
.legal h2 { border-top: 4px solid var(--ink); padding-top: 12px; margin-top: 1.8em; font-size: clamp(1.35rem, 3.6vw, 1.8rem); }
.legal h2:first-of-type { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pitch-dark); color: #dbe9e2; margin-top: 48px; border-top: var(--rule) solid var(--ink); position: relative; overflow: hidden; font-size: .92rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260' viewBox='0 0 520 260' fill='none' stroke='%23ffffff' stroke-opacity='.1' stroke-width='4'%3E%3Cpath d='M60 260V60h400v200M170 260v-80h180v80'/%3E%3Cpath d='M200 60a70 60 0 0 1 120 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center bottom; }
.site-footer .container { position: relative; }
.footer-top { padding: 40px 0 16px; }
.site-footer h2 { font-size: 1rem; letter-spacing: .14em; color: var(--yellow); margin-bottom: 12px; font-weight: 600; }
.site-footer a { color: var(--chalk); text-decoration-thickness: 1px; }
.site-footer a:hover { color: var(--yellow); }
.footer-links { list-style: none; padding: 0; margin: 0 0 24px; }
.footer-links li { margin-bottom: 8px; }
.footer-brand .wordmark { font-size: 1.7rem; margin-bottom: 12px; color: var(--chalk); }
.footer-rg { border: 2px solid rgba(255,255,255,.45); padding: 16px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; background: rgba(0,0,0,.25); }
.footer-rg .age-chip { width: 46px; height: 46px; flex-basis: 46px; font-size: 1.1rem; border-color: var(--chalk); margin: 0; }
.footer-rg p { margin: 0 0 6px; }
.footer-rg p:last-child { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.25); padding: 16px 0 28px; font-size: .8rem; color: #b9cfc5; }
.footer-bottom p { margin: 0 0 6px; }

/* ---------- 404 ---------- */
.err-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 26vw, 11rem); line-height: .9; color: var(--yellow); text-shadow: 6px 6px 0 var(--ink); display: block; }

/* ---------- Fase 2: firma, fonti, test, profili ---------- */
.byline { font-size: .88rem; line-height: 1.7; margin: 18px 0 0; color: #e3efe9; max-width: 70ch; }
.byline a { color: var(--chalk); font-weight: 500; }
.byline span { color: var(--yellow); margin: 0 2px; }
.btn-linkedin { background: var(--ink); color: var(--chalk); box-shadow: 3px 3px 0 var(--pitch); gap: 8px; }
.btn-linkedin svg { color: var(--yellow); flex: 0 0 18px; }
.btn-linkedin:hover { background: var(--pitch-dark); color: var(--chalk); }
.author-name a { color: inherit; text-decoration-thickness: 2px; }
h3.author-name { font-size: 1.35rem; }
.fonti { border: 2px dashed var(--ink); padding: 16px 18px; margin: 2rem 0 1.5rem; font-size: .9rem; background: rgba(255,255,255,.35); }
.fonti .fonti-title { font-size: 1.1rem; letter-spacing: .12em; border: 0; padding: 0; margin: 0 0 8px; }
.fonti ol { margin: 0; padding-left: 1.3em; }
.fonti li:last-child { margin-bottom: 0; }
.angle-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: var(--yellow); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.angle-stats div { padding: 12px 16px; min-width: 0; }
.angle-stats div + div { border-left: 2px solid var(--ink); }
.angle-stats dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; line-height: 1.2; }
.angle-stats dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.angle-stats-light { border: 2px solid var(--ink); margin: 14px 0; }
.angle-stats-light dd { font-size: 1.6rem; }
.test-box { border: 2px solid var(--ink); border-top: var(--rule) solid var(--yellow); background: var(--paper-card); padding: 18px; box-shadow: var(--shadow); }
.test-box h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); }
.test-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 14px; border: 2px dashed var(--ink); }
.test-grid div { padding: 10px 14px; border-bottom: 1px dashed var(--ink); min-width: 0; }
.test-grid div:last-child { border-bottom: 0; }
.test-grid dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; color: var(--pitch); font-weight: 600; }
.test-grid dd { margin: 2px 0 0; font-style: italic; color: var(--ink-soft); }
@media (min-width: 576px) { .test-grid { grid-template-columns: 1fr 1fr; } .test-grid div:nth-child(odd) { border-right: 1px dashed var(--ink); } .test-grid div:nth-last-child(2) { border-bottom: 0; } }
@media (min-width: 992px) { .test-grid { grid-template-columns: repeat(3, 1fr); } .test-grid div { border-right: 1px dashed var(--ink); } .test-grid div:nth-child(3n) { border-right: 0; } .test-grid div:nth-last-child(-n+3) { border-bottom: 0; } .test-box { padding: 24px 28px; } }
.review-card-top { display: flex; align-items: center; gap: 12px; }
.review-card-top > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.review-card-score { flex: 0 0 auto; }
.review-card .btn { margin-top: auto; }
.review-card .card-body { display: flex; flex-direction: column; }
.boost { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.boost s { color: var(--ink-soft); }
.portrait { display: block; margin: 0 auto 26px; width: 160px; height: 160px; border: 2px solid var(--ink); border-radius: 50%; box-shadow: var(--shadow); }
.profile-card .author-name { margin-bottom: 2px; }
.profile-card .btn { margin-top: 6px; }
.signed-list { list-style: none; padding: 0; margin: 0; border: 2px solid var(--ink); background: var(--paper-card); }
.signed-list li { margin: 0; border-top: 1px dashed var(--ink); }
.signed-list li:first-child { border-top: 0; }
.signed-list a { display: block; padding: 11px 16px; text-decoration: none; font-weight: 500; }
.signed-list a::before { content: "▸ "; color: var(--pitch); }
.signed-list a:hover { background: var(--paper-deep); }
.article-body .proscons { margin-bottom: 8px; }
.toc .footer-links li { border-top: 0; margin-bottom: 6px; }
.toc .footer-links a { display: inline; padding: 0; text-decoration: underline; }
.toc .footer-links a::before { content: none; }
.toc .footer-links li { counter-increment: none; }

/* ---------- Riduzione movimento / stampa ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn-primary:hover, .btn-primary:active { transform: none; }
}
@media print {
  .scoreboard, .navbar-toggler, .navbar-collapse, .site-footer { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   calcioquote.com: aggiunte al segnaposto (calcolatore quote, loghi reali, ritratti, dettagli mobile)
   Il calcolatore è una «schedina da tabellone»: carta, inchiostro, cifre Oswald, ombra piena come le card.
   ========================================================================== */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }

/* ---------- base mobile ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, .btn, .odd, select, summary { touch-action: manipulation; }
.btn, .odd, .accordion-button, .navbar-toggler, .qcalc-tags li { -webkit-user-select: none; user-select: none; }
.btn { transition: transform 140ms var(--ease-out), background-color 140ms ease, box-shadow 140ms ease; }
.btn:active, .odd:active, .navbar-toggler:active { transform: scale(0.97); }
main:focus { outline: none; }

/* ---------- loghi reali al posto delle tessere con le sigle ---------- */
.logo-tile.logo-img { background: #fff; padding: 4px; overflow: hidden; }
.logo-tile.logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.btn-onfield { color: #fff; border-color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-onfield:hover { color: var(--ink); background: var(--yellow); border-color: var(--yellow); } }

/* ---------- quote migliori nelle tabelle ---------- */
.table td .best { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); padding: 1px 6px; font-weight: 700; }
.table td.num, .table td .num { font-variant-numeric: tabular-nums; }

/* ---------- ritratti ---------- */
.author-photo { object-fit: cover; padding: 0; background: var(--pitch); }
.profile-photo { width: 160px; height: 160px; border: 2px solid var(--ink); box-shadow: var(--shadow); object-fit: cover; display: block; margin: 0 auto; }

/* ---------- calcolatore quote ---------- */
.qcalc { background: #fffdf7; border: 2px solid var(--ink); box-shadow: var(--shadow); margin: 8px 0 4px; position: relative; }
.qcalc::before {
  content: ""; display: block; height: 12px;
  background: radial-gradient(circle at 8px 0, var(--paper) 6px, transparent 6.5px) 0 0 / 16px 12px repeat-x, var(--ink);
}
.qcalc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 18px 12px; border-bottom: 2px dashed var(--ink); }
.qcalc-head h3 { margin: 0; font-size: clamp(1.35rem, 3.6vw, 1.9rem); }
.qcalc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.qcalc-tags li { margin: 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; padding: 4px 9px; border: 2px solid var(--ink); background: var(--yellow); }
.qcalc-tags li + li { background: var(--chalk); }
.qcalc-part { border: 0; margin: 0; padding: 16px 18px 18px; min-width: 0; }
.qcalc-part + .qcalc-part { border-top: 2px dashed var(--ink); }
.qcalc-part legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.1rem; letter-spacing: .03em; display: flex; align-items: center; gap: 10px; }
.qcalc-part legend span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; background: var(--pitch); color: var(--chalk); border: 2px solid var(--ink); font-size: 1rem; }
.qcalc-part legend + * { clear: both; }
.qcalc label { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 600; color: var(--ink-soft); min-width: 0; }
.qcalc input, .qcalc select {
  font: 500 16px/1.2 var(--font-body); color: var(--ink); background: var(--chalk); border: 2px solid var(--ink); border-radius: 0;
  padding: 10px 10px; width: 100%; min-width: 0; -webkit-appearance: none; appearance: none;
  transition: box-shadow 140ms ease, background-color 140ms ease;
}
.qcalc select { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.qcalc input { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.qcalc input:focus, .qcalc select:focus { outline: none; box-shadow: 4px 4px 0 var(--yellow), 4px 4px 0 2px var(--ink); background: #fffef2; }
.qwide { margin-bottom: 12px; }
.qrow3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qrow3 .qwide { grid-column: 1 / -1; margin: 0; }
.qlegs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.toplist + .prose, .table-responsive + .prose, .toplist-foot + .prose, .payout-box + .prose, .row + .prose { margin-top: 1.5rem; }
.qunit { position: relative; display: block; }
.qunit::after { content: attr(data-u); position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); pointer-events: none; }
.qunit input { padding-right: 28px; }
.qcalc output { display: block; margin-top: 14px; }
.qout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 2px solid var(--ink); background: var(--board); color: var(--chalk); }
.qout div { padding: 10px 12px; border-right: 1px solid #3a403d; border-bottom: 1px solid #3a403d; min-width: 0; }
.qout div:nth-child(2n) { border-right: 0; }
.qout dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; color: #b9c2bd; font-weight: 500; line-height: 1.25; }
.qout dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.qout .qhot dd { color: var(--yellow); font-size: 1.7rem; }
.qcalc-foot { margin: 0; padding: 12px 18px 16px; border-top: 2px dashed var(--ink); font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 575.98px) {
  .qlegs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qrow3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qcalc-part, .qcalc-head { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 992px) {
  .qcalc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qcalc::before, .qcalc-head, .qcalc-foot { grid-column: 1 / -1; }
  .qcalc-part + .qcalc-part { border-top: 0; border-left: 2px dashed var(--ink); }
  .qlegs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qout { grid-template-columns: 1fr; }
  .qout div { border-right: 0; }
}

/* ---------- il risultato si aggiorna: un lampo giallo breve, solo dove cambia ---------- */
@media (prefers-reduced-motion: no-preference) {
  .qout dd { transition: color 160ms ease; }
}

/* ---------- tabellone: la quota scelta resta evidenziata ---------- */
.scoreboard .odd { transition: transform 120ms var(--ease-out), background-color 120ms ease; }

/* ---------- varie ---------- */
.fonti-title { margin-top: 1.5rem; }
.toplist-foot:empty { display: none; }
.hero .lead a { color: var(--yellow); }
@media (min-width: 992px) { .table-stack td.t-stat .bonus-note { max-width: 16ch; } }

/* lo span sr-only assoluto non deve uscire dal contenitore che scorre */
.table-responsive, .toplist { position: relative; }
