/* =====================================================================
   Fivebet Blog — design system (font Roboto, come il sito)
   ===================================================================== */
:root {
  --accent: #ec6608;
  --accent-2: #ef9b0f;
  --accent-ink: #d2560b;
  --dark: #58595b;
  --darker: #4d4d4f;
  --ink: #3a3a3c;
  --body: #4d4d4f;
  --muted: #6d6e71;
  --muted-2: #8e8f92;
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: #e2e2e4;
  --border-2: #ededee;
  --ok: #2f8f5b;
  --warn: #b8760a;
  --err: #c0392b;
  --mono: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
h1, h2, h3 { letter-spacing: -0.01em; margin: 0; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* --- disclaimer strip + header --- */
.topstrip { background: var(--darker); color: #e6e6e8; font-size: 11px; }
.topstrip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 7px; padding-bottom: 7px; }
.badges { display: flex; gap: 7px; align-items: center; font-family: var(--mono); font-size: 10px; }
.badge-line { border: 1px solid #8e8f92; border-radius: 3px; padding: 3px 7px; }
.badge-18 { border-color: var(--accent-2); color: var(--accent-2); }

.site-head { background: var(--surface); border-bottom: 1px solid var(--border); }
/* 10/11/2026: barra del menu sticky; --testa-alta (altezza della barra, la scrive public.php) sposta sotto di lei gli altri elementi sticky */
.site-head { position: sticky; top: 0; z-index: 60; }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: baseline; gap: 2px; font-weight: 800; font-size: 23px; letter-spacing: -0.03em; }
.brand .b1 { color: var(--dark); }
.brand .b2 { color: var(--accent); }
.brand .tag { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 7px; border-left: 1px solid var(--border); padding-left: 8px; font-weight: 400; }
.sitenav { display: flex; gap: 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sitenav a { color: var(--muted); }
.sitenav a:hover { color: var(--accent); text-decoration: none; }
.head-actions { display: flex; gap: 9px; align-items: center; }
.search-box { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; color: var(--muted-2); }
.site-head .bar { gap: 0; }
.search-full { width: 100%; }
.search-full input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; padding: 11px 16px; font-size: 14px; font-family: var(--sans); color: var(--ink); background: var(--surface); }
.search-full input:focus { outline: none; border-color: var(--accent); }
.search-full input::placeholder { color: var(--muted-2); }

.btn { display: inline-block; border-radius: 8px; padding: 10px 16px; font-size: 12.5px; font-weight: 800; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }
.btn-ghost { border: 1px solid var(--border); color: var(--body); background: var(--surface); font-weight: 700; }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 7px; padding: 9px 14px; font-weight: 800; }
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* --- nav blog: categorie, sottocategorie a tendina, ricerca a destra --- */
.blognav .navbar { display: flex; align-items: center; gap: 16px; }
.navlist { display: flex; align-items: stretch; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.navlist::-webkit-scrollbar { display: none; }
.navitem { display: flex; align-items: center; flex: none; border-bottom: 3px solid transparent; }
.navitem > a { display: block; padding: 15px 4px 12px 10px; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.navitem > a:only-child { padding-right: 10px; }
.navitem > a:hover { color: var(--accent); text-decoration: none; }
.navitem.active { border-bottom-color: var(--accent); }
.navitem.active > a { color: var(--accent); }
.navcaret { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; min-height: 44px; padding: 0 8px 0 4px; background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; border-radius: 6px; }
.navcaret.solo { padding-left: 10px; padding-top: 3px; color: var(--ink); white-space: nowrap; }
.navcaret:hover, .navcaret[aria-expanded="true"] { color: var(--accent); }
.navcaret svg { transition: transform .15s ease; }
.navcaret[aria-expanded="true"] svg { transform: rotate(180deg); }
.navcaret:focus-visible, .navsearch input:focus-visible, .navsearch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.navsearch { flex: 0 0 300px; display: flex; align-items: center; position: relative; margin: 8px 0; }
.navsearch input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 44px 10px 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-2); }
.navsearch input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.navsearch input::placeholder { color: var(--muted-2); }
.navsearch button { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.navsearch button:hover { color: var(--accent); }
.subpanel { border-top: 1px solid var(--border-2); background: var(--surface-2); box-shadow: inset 0 6px 8px -8px rgba(0,0,0,.18); }
.subpanel .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; border: 1px solid var(--border); background: var(--surface); border-radius: 4px; padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--body); }
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip-lg { min-height: 40px; font-weight: 700; }

/* --- layout a griglia --- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; padding-top: 22px; }
.layout-post { display: grid; grid-template-columns: 230px minmax(0,1fr) 300px; gap: 24px; align-items: start; padding-top: 20px; }
/* 10/11/2026: la colonna dell'indice e' alta quanto l'articolo, cosi' «In questo articolo» (.toc, sticky) resta in vista scorrendo */
.layout-post > .toc-col { align-self: stretch; }
/* Colonna destra sticky da PC; --colonna-top la calcola post.php (negativa se la colonna e' piu' alta dello schermo) */
@media (min-width: 1101px) { .layout-post > .colonna-dx { position: sticky; top: var(--colonna-top, 20px); } }

/* --- card --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.card:hover { border-color: var(--accent); }
.card-pad { padding: 18px; }
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); }
.meta { font-size: 12px; color: var(--muted); }
.tagbox { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; padding: 4px 8px; border-radius: 4px; }

.hero { overflow: hidden; }
.hero .img { height: 280px; background: linear-gradient(140deg, var(--dark), #3d3d3f); position: relative; display: flex; align-items: flex-end; padding: 22px; }
.hero h1 { font-size: 34px; line-height: 1.12; color: #fff; max-width: 26ch; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: 0.07em; padding: 5px 9px; border-radius: 4px; }
.tag-accent { background: var(--accent); color: #fff; }
.tag-dark { border: 1px solid #9a9b9e; color: #fff; }
.tag-outline { border: 1px solid #cfcfd2; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.thumb { background: repeating-linear-gradient(125deg, #ececee 0 11px, #e3e3e5 11px 22px); }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 12px; }
.sec-head h2 { font-size: 21px; font-weight: 800; }
.sec-head .more { font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: none; }
.sec-head a.more:hover { color: var(--accent); text-decoration: none; }

/* --- tabella pronostici/quote --- */
.vtable { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.vtable .thead, .vtable .trow { display: grid; gap: 12px; padding: 12px 18px; align-items: center; }
.vtable .thead { background: var(--surface-2); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 10px 18px; }
.vtable .trow { border-bottom: 1px solid var(--border-2); font-size: 13.5px; }
.vtable .trow:hover { background: var(--surface-2); }
.num { font-variant-numeric: tabular-nums; }

/* --- box guida / responsabile --- */
.pillar { border-left: 3px solid var(--accent-2); }
.rg-box { background: #fdf5ec; border: 1px solid #f2d8b4; border-radius: 12px; padding: 16px; }
.rg-18 { border: 1.5px solid var(--accent); color: var(--accent); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11.5px; }
.note { background: #fdf5ec; border: 1px solid #f2d8b4; border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 18px 0; }

/* --- article --- */
article h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.015em; max-width: 30ch; font-weight: 900; }
article h3 { font-size: 19px; font-weight: 700; margin: 20px 0 8px; }
article h2, article h3, #faqs { scroll-margin-top: calc(var(--testa-alta, 0px) + 16px); }
article h2 { font-size: 24px; font-weight: 800; margin: 24px 0 10px; }
article p { font-size: 16.5px; line-height: 1.72; color: var(--body); margin: 0 0 14px; }
.lead { font-size: 17px; line-height: 1.62; color: var(--body); max-width: 72ch; }
.byline { display: flex; align-items: center; gap: 11px; margin: 18px 0; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e6e6e8; }
.article-cover { margin: 0 0 22px; }
.article-cover img { display: block; width: 100%; height: auto; border-radius: 12px; background: #e6e6e8; }

/* Tabelle nel corpo dell'articolo (arrivano dal blocco HTML libero).
   Il contenitore .table-wrap lo aggiunge BlogController: su schermi stretti
   la tabella scorre di lato invece di uscire dalla pagina. */
.article-body .table-wrap { margin: 18px 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.article-body th, .article-body td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-2); }
.article-body thead th { background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--border); white-space: nowrap; }
.article-body tbody th { color: var(--ink); font-weight: 700; }
.article-body tbody tr:nth-child(even) td, .article-body tbody tr:nth-child(even) th { background: var(--surface-2); }
.article-body tbody tr:last-child td, .article-body tbody tr:last-child th { border-bottom: none; }
.article-body caption { caption-side: bottom; padding: 9px 14px; font-size: 12.5px; color: var(--muted); text-align: left; }
.layout-post > * { min-width: 0; } /* senza, una tabella larga allarga la colonna invece di scorrere */
@media (max-width: 640px) {
  .article-body table { font-size: 13.5px; min-width: 520px; }
  .article-body th, .article-body td { padding: 9px 11px; }
}
.toc { position: sticky; top: calc(var(--testa-alta, 0px) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 15px; max-height: calc(100vh - var(--testa-alta, 0px) - 40px); overflow-y: auto; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { border-top: 1px solid var(--border-2); }
.toc-list li:first-child { border-top: none; }
.toc-list a { display: block; padding: 8px 0; font-size: 14px; line-height: 1.35; color: var(--body); }
.toc-list li.l3 a { padding-left: 14px; font-size: 13.5px; color: var(--muted); }
.toc-list a:hover { color: var(--accent); text-decoration: none; }
.toc-mobile { display: none; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.toc-mobile summary { list-style: none; cursor: pointer; min-height: 48px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 700; color: var(--ink); }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary svg { flex: none; color: var(--muted); transition: transform .15s ease; }
.toc-mobile[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.toc-mobile .toc-list { padding: 0 16px 8px; }
.toc-mobile .toc-list a { padding: 11px 0; font-size: 15.5px; }
.toc-mobile .toc-list li.l3 a { font-size: 15px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; margin-bottom: 8px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-plus { color: var(--muted-2); font-size: 20px; line-height: 1; transition: transform .18s ease; flex: none; }
.faq-item[open] .faq-plus { transform: rotate(45deg); color: var(--accent); }
.faq-ans { padding: 0 16px 15px; font-size: 14px; color: var(--body); line-height: 1.65; }
.cta-dark { background: var(--darker); border-radius: 11px; padding: 18px; color: #fff; }

.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* Spazio in fondo a ogni pagina (il blog non ha un footer suo). */
main { padding-bottom: 64px; }
@media (max-width: 680px) { main { padding-bottom: 48px; } }

/* --- footer --- */
.site-foot { margin-top: 36px; background: var(--darker); color: #c9c9cc; font-size: 12.5px; }
.site-foot .cols { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 28px; padding-top: 30px; padding-bottom: 30px; }
.site-foot h4 { color: #fff; font-weight: 700; margin: 0 0 10px; }
.site-foot a { color: #c9c9cc; }
.site-foot .legal { border-top: 1px solid #5f5f61; }
.site-foot .legal .wrap { font-size: 11px; padding-top: 13px; padding-bottom: 13px; }

/* --- card articolo con foto (home, categorie, ricerca) --- */
.acard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; color: inherit; min-width: 0; }
.acard:hover { border-color: var(--accent); text-decoration: none; color: inherit; }
.acard:hover .acard-title { color: var(--accent-ink); }
.acard-img { display: block; aspect-ratio: 16 / 9; background: #e6e6e8; overflow: hidden; }
.acard-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 10/11/2026: l'immagine si vede intera; lo spazio che avanza resta del colore della card (niente sfondo) */
.acard-img:has(img) { background: var(--surface); }
/* Tutte le card: il riquadro prende le proporzioni dell'immagine, cosi' niente bianco sopra e sotto (senza immagine resta 16:9) */
.acard .acard-img:has(img), .lead-side .acard-sm .acard-img:has(img) { aspect-ratio: auto; container-type: inline-size; }
/* ...ma al massimo alto come un 16:9 (56.25% della larghezza): un'immagine verticale non allunga la card */
.acard .acard-img img { height: auto; max-height: 56.25cqw; }
.acard-img .ph { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(125deg, #ececee 0 11px, #e3e3e5 11px 22px); }
.acard-body { display: flex; flex-direction: column; gap: 6px; padding: 13px 14px 15px; }
.acard-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.acard .dek { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.acard-lg .acard-title { font-size: 26px; font-weight: 900; line-height: 1.18; }
.acard-lg .acard-body { padding: 16px 18px 18px; gap: 8px; }
.acard-sm { flex-direction: row; }
.acard-sm .acard-img { flex: 0 0 132px; aspect-ratio: 1 / 1; }
.acard-sm .acard-body { padding: 10px 12px; justify-content: center; }
.acard-sm .acard-title { font-size: 15px; }
.acard-row { display: grid; grid-template-columns: 240px minmax(0,1fr); }
.acard-row .acard-img { aspect-ratio: 16 / 9; min-height: 0; align-self: start; }   /* 10/11/2026: riquadro 16:9 a filo in alto, niente bianco sopra l'immagine */
.acard-row .acard-body { padding: 12px 18px; justify-content: center; }
/* titolo su 2 righe e sottotitolo su 1: la riga resta alta quanto l'immagine */
.acard-row .acard-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.acard-row .dek { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.acard-row .acard-title { font-size: 19px; }
.alist { display: flex; flex-direction: column; gap: 12px; }

.home { padding-top: 22px; }
.lead-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 14px; }
.lead-side { display: flex; flex-direction: column; gap: 12px; }
.lead-side { justify-content: space-between; }
/* 10/11/2026: 4 card con la copertina rettangolare intera (16:9) a filo del bordo; la card e' alta quanto l'immagine */
.lead-side .acard-sm { flex: none; align-items: flex-start; }
.lead-side .acard-sm .acard-img { flex: 0 0 50%; aspect-ratio: 16 / 9; }
/* testo compatto e titolo al massimo su 2 righe: la card non supera l'altezza dell'immagine */
.lead-side .acard-sm .acard-body { padding: 8px 12px; gap: 4px; align-self: center; }
.lead-side .acard-sm .acard-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.hsec .sec-head h2 a { color: var(--ink); }
.hsec .sec-head h2 a:hover { color: var(--accent); text-decoration: none; }
.hsec .sec-head { border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.sec-head .more { font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.latest-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; }
.latest-list li { border-bottom: 1px solid var(--border-2); }
.latest-list li:nth-child(odd) { border-right: 1px solid var(--border-2); }
.latest-list a { display: grid; grid-template-columns: 82px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 3px; padding: 13px 16px; color: inherit; }
.latest-list a:hover { text-decoration: none; background: var(--surface-2); }
.latest-list a:hover .lt { color: var(--accent-ink); }
.latest-list .meta { grid-row: 1 / span 2; padding-top: 2px; }
.latest-list .lt { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }

/* --- responsive --- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .layout-post { grid-template-columns: 220px minmax(0,1fr); }
  .layout-post > aside { grid-column: 2; }
}
@media (max-width: 960px) {
  .layout, .layout-post, .grid-3, .lead-grid { grid-template-columns: 1fr; }
  .layout-post > aside { grid-column: auto; }
  .toc-col { display: none; }
  .toc-mobile { display: block; }
  .navsearch { flex-basis: 220px; }
  .site-head .bar { flex-wrap: wrap; gap: 14px; }
  .sitenav { display: none; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .blognav .navbar { flex-wrap: wrap; gap: 0; }
  .navlist { order: 2; flex-basis: 100%; margin: 0 -16px; padding: 0 8px; border-top: 1px solid var(--border-2); }
  .navsearch { order: 1; flex: 1 1 100%; margin: 10px 0; }
  .navitem > a { font-size: 15.5px; padding-left: 8px; }
  .grid-4 { grid-template-columns: 1fr; }
  .acard-row { grid-template-columns: 45% minmax(0,1fr); }
  .acard-row .acard-img { min-height: 0; aspect-ratio: 16 / 9; }
  .acard-row .acard-body { padding: 8px 12px; gap: 4px; }
  .acard-row .acard-title, .acard-sm .acard-title { font-size: 16px; }
  .acard-row .dek { display: none; }
  .acard-sm .acard-img { flex-basis: 112px; aspect-ratio: 1 / 1; }
  .lead-side .acard-sm .acard-img { flex-basis: 50%; aspect-ratio: 16 / 9; }
  .lead-side .acard-sm .acard-title { font-size: 15px; }
  .acard-lg .acard-title { font-size: 22px; }
  .latest-list { grid-template-columns: 1fr; }
  .latest-list li:nth-child(odd) { border-right: none; }
  .latest-list a { grid-template-columns: 1fr; padding: 13px 14px; }
  .latest-list .meta { grid-row: auto; }
  .kicker { font-size: 12px; }
  .meta { font-size: 13px; }
  article h1 { font-size: 28px; }
  article h2 { font-size: 22px; }
  .lead { font-size: 17px; }
  .subpanel .wrap { gap: 8px; }
  .chip { min-height: 44px; font-size: 15px; }
}

/* --- 07/11/2026: sottomenu, indice, correlati, autore --- */
/* 10/11/2026: tutti i chip delle categorie hanno gli angoli da 4px come quelli del sottomenu (vedi .chip) */
.toc-list a:hover, .toc-list li.l3 a:hover { color: var(--accent); }
.related-item { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border-2); color: inherit; text-decoration: none; }
.related-item:first-of-type { border-top: none; }
.related-item:hover { color: var(--accent-ink); text-decoration: none; }
.related-img { width: 96px; height: 54px; border-radius: 6px; object-fit: contain; display: block; background: var(--surface-2); }
img.related-img { background: transparent; }
.related-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.byline .author-link { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.byline .author-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.author-head { display: flex; gap: 18px; align-items: center; padding: 22px; margin-bottom: 16px; }
.author-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.author-text h1 { font-size: 30px; font-weight: 800; margin: 2px 0 8px; }
.author-text p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 960px) {
  /* 10/11/2026: su telefono l'indice non e' piu' sticky (resta fissa solo la barra del menu) */
  .toc-mobile[open] .toc-list { max-height: 60vh; overflow-y: auto; }
  article h2, article h3, #faqs { scroll-margin-top: calc(var(--testa-alta, 0px) + 16px); }
}
@media (max-width: 680px) {
  .author-head { flex-direction: column; align-items: flex-start; }
  .author-text h1 { font-size: 26px; }
}

/* --- 07/11/2026: archivio categoria (mockup) e navigazione su telefono --- */
.cat-testa { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 34px 38px; margin-bottom: 14px; }
.cat-testa-testo { min-width: 0; flex: 1 1 auto; }
.cat-testa h1 { margin: 0 0 18px; font-family: 'Roboto Condensed', var(--sans); font-weight: 800; font-size: 52px; line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; color: var(--ink); }
.cat-testa h1::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 18px; background: var(--accent); }
.cat-testa p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }
.cat-testa-img { flex: none; width: auto; max-width: 42%; max-height: 190px; object-fit: contain; }
.cat-sotto { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-archivio .acard-row { grid-template-columns: 240px minmax(0,1fr); }
.cat-archivio .acard-row .acard-img { min-height: 0; }
.cat-archivio .acard-row .acard-title { font-size: 16.5px; }
@media (max-width: 680px) {
  .cat-testa { flex-direction: column-reverse; align-items: flex-start; gap: 14px; padding: 22px 20px 24px; }
  .cat-testa h1 { font-size: 36px; margin-bottom: 14px; }
  .cat-testa h1::after { margin-top: 14px; }
  .cat-testa-img { max-width: 70%; max-height: 140px; align-self: center; }
  .cat-archivio .acard-row { grid-template-columns: 45% minmax(0,1fr); }
  .acard-row .acard-title, .cat-archivio .acard-row .acard-title { font-size: 15px; }
  .cat-archivio .acard-row .acard-img { min-height: 0; }
  /* prima il menu, poi il campo cerca */
  .navlist { order: 1; border-top: none; }
  .navsearch { order: 2; margin: 8px 0 14px; }
  /* in home la prima immagine non resta attaccata al campo cerca */
  .wrap.home { padding-top: 18px; }
}

/* --- Blocco CTA negli articoli (07/11/2026). Scuro, chiaro e banner come «CTA Blog Vincitu»
   (10/11/2026): card da 650px, ombra Material, titolo 22/sottotitolo 15, pulsante maiuscolo con freccia
   senza hover, 18+ tondo; fino a 600px versioni verticali centrate con pulsante a tutta larghezza.
   Colori portati a WCAG AA il 10/11/2026: arancio #c45200 (bianco sopra 4,6:1), #ff9a45 e #d6d6d6 sul fondo scuro.
   Le stesse CTA stanno nella colonna degli articoli (.side-promo), sempre nella versione verticale. --- */
:is(.article-body, .side-promo) .cta { margin: 26px 0; font-family: "Roboto", Arial, sans-serif; line-height: 1.3; box-sizing: border-box; }
:is(.article-body, .side-promo) .cta p { margin: 0; }
:is(.article-body, .side-promo) .cta-etichetta { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c45200; }
:is(.article-body, .side-promo) .cta-titolo { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.2; color: #2b2b2e; }
:is(.article-body, .side-promo) .cta-titolo:last-child { margin-bottom: 0; }
:is(.article-body, .side-promo) .cta-titolo strong, :is(.article-body, .side-promo) .cta-testo strong { font-weight: 700; color: #c45200; }
:is(.article-body, .side-promo) .cta-testo { font-size: 15px; line-height: 1.3; color: #5f5f63; }
:is(.article-body, .side-promo) .cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 13px 14px; box-sizing: border-box;
  border-radius: 8px; background: #c45200; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
:is(.article-body, .side-promo) .cta-btn:hover, :is(.article-body, .side-promo) .cta-btn:focus { background: #c45200; color: #fff; text-decoration: none; }
:is(.article-body, .side-promo) .cta-btn:focus-visible { outline: 3px solid #2b2b2e; outline-offset: 2px; }
:is(.article-body, .side-promo) .cta-18 { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.2; color: #6b6b70; white-space: nowrap; }
:is(.article-body, .side-promo) .cta-eta { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; box-sizing: border-box;
  font-size: 9px; font-weight: 700; color: #3a3a3e; border: 1.5px solid #8a8a8f; border-radius: 50%; }
:is(.article-body, .side-promo) .cta-azioni { display: flex; flex-direction: column; align-items: stretch; gap: 9px; flex-shrink: 0; }
/* scuro e chiaro: testi a sinistra, pulsante e 18+ a destra, centrati in verticale */
:is(.article-body, .side-promo) .cta-scuro, :is(.article-body, .side-promo) .cta-chiaro { max-width: 650px; border-radius: 14px;
  box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12); }
:is(.article-body, .side-promo) .cta-scuro .cta-corpo, :is(.article-body, .side-promo) .cta-chiaro .cta-corpo { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; }
:is(.article-body, .side-promo) .cta-testi { min-width: 0; }
:is(.article-body, .side-promo) .cta-scuro { background: linear-gradient(135deg, #58585c 0%, #3e3e42 100%); }
:is(.article-body, .side-promo) .cta-scuro .cta-titolo { color: #fff; }
:is(.article-body, .side-promo) .cta-scuro .cta-titolo strong, :is(.article-body, .side-promo) .cta-scuro .cta-testo strong, :is(.article-body, .side-promo) .cta-scuro .cta-etichetta { color: #ff9a45; }
:is(.article-body, .side-promo) .cta-scuro .cta-testo { color: #dcdcdc; }
:is(.article-body, .side-promo) .cta-scuro .cta-18 { color: #d6d6d6; }
:is(.article-body, .side-promo) .cta-scuro .cta-eta { color: #fff; border-color: #d6d6d6; }
:is(.article-body, .side-promo) .cta-chiaro { background: #fff; }
:is(.article-body, .side-promo) .cta-chiaro .cta-corpo { padding-left: 38px; }
:is(.article-body, .side-promo) .cta-accento { position: absolute; left: 18px; top: 18px; bottom: 18px; width: 5px; border-radius: 3px; background: linear-gradient(to bottom, #f06a00 0%, #e2e2e2 100%); }
/* banner: meta' immagine, meta' testo */
:is(.article-body, .side-promo) .cta-banner { display: flex; align-items: stretch; max-width: 650px; overflow: hidden; background: #fff; border-radius: 14px;
  box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12); }
:is(.article-body, .side-promo) .cta-banner .cta-img { position: relative; flex: 0 0 50%; min-height: 170px; background: #f06a00; }
:is(.article-body, .side-promo) .cta-banner .cta-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
:is(.article-body, .side-promo) .cta-banner .cta-corpo { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px 26px; min-width: 0; }
:is(.article-body, .side-promo) .cta-banner .cta-testo { margin-bottom: 16px; }
/* striscia compatta (non nel documento: resta com'era) */
:is(.article-body, .side-promo) .cta-striscia { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px 12px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; font-size: 15px; line-height: 1.5; }
:is(.article-body, .side-promo) .cta-striscia .cta-frase { font-weight: 700; flex: 1 1 260px; }
:is(.article-body, .side-promo) .cta-striscia .cta-frase strong { color: #c45200; }
:is(.article-body, .side-promo) .cta-striscia .cta-dx { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
:is(.article-body, .side-promo) .cta-striscia .cta-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 600px) {
  .article-body .cta-scuro, .article-body .cta-chiaro, .article-body .cta-banner { max-width: none; }
  .article-body .cta-scuro .cta-corpo, .article-body .cta-chiaro .cta-corpo, .article-body .cta-banner .cta-corpo { flex-direction: column; align-items: center; text-align: center; gap: 0; }
  .article-body .cta-scuro .cta-corpo { padding: 26px 22px 22px; }
  .article-body .cta-scuro { background: linear-gradient(160deg, #58585c 0%, #3e3e42 100%); }
  .article-body .cta-chiaro .cta-corpo { padding: 24px 22px 22px; }
  .article-body .cta-accento { position: static; width: 56px; height: 5px; margin-bottom: 16px; background: linear-gradient(to right, #f06a00 0%, #e2e2e2 100%); }
  .article-body .cta-testi .cta-testo, .article-body .cta-banner .cta-testo { margin-bottom: 20px; }
  .article-body .cta-testi .cta-titolo:last-child { margin-bottom: 20px; }
  .article-body .cta-azioni { align-self: stretch; gap: 12px; }
  .article-body .cta-azioni .cta-btn { padding: 14px; }
  .article-body .cta-azioni .cta-18 { justify-content: center; white-space: normal; }
  .article-body .cta-banner { flex-direction: column; }
  .article-body .cta-banner .cta-img { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .article-body .cta-banner .cta-corpo { padding: 22px; }
  .article-body .cta-striscia .cta-dx { align-items: stretch; width: 100%; }
  .article-body .cta-striscia .cta-18 { justify-content: center; }
}

/* colonna degli articoli: CTA sempre in verticale, banner immagine a tutta larghezza */
.side-promo .cta { margin: 0; max-width: none; }
.side-promo .cta-scuro .cta-corpo, .side-promo .cta-chiaro .cta-corpo, .side-promo .cta-banner .cta-corpo { flex-direction: column; align-items: center; text-align: center; gap: 0; }
.side-promo .cta-scuro .cta-corpo { padding: 26px 22px 22px; }
.side-promo .cta-scuro { background: linear-gradient(160deg, #58585c 0%, #3e3e42 100%); }
.side-promo .cta-chiaro .cta-corpo { padding: 24px 22px 22px; }
.side-promo .cta-accento { position: static; width: 56px; height: 5px; margin-bottom: 16px; background: linear-gradient(to right, #f06a00 0%, #e2e2e2 100%); }
.side-promo .cta-testi .cta-testo, .side-promo .cta-banner .cta-testo { margin-bottom: 20px; }
.side-promo .cta-testi .cta-titolo:last-child { margin-bottom: 20px; }
.side-promo .cta-azioni { align-self: stretch; gap: 12px; }
.side-promo .cta-azioni .cta-btn { padding: 14px; }
.side-promo .cta-azioni .cta-18 { justify-content: center; white-space: normal; }
.side-promo .cta-banner { flex-direction: column; }
.side-promo .cta-banner .cta-img { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
.side-promo .cta-banner .cta-corpo { padding: 22px; }
.side-promo .cta-titolo { font-size: 20px; }
.side-banner { display: flex; flex-direction: column; gap: 8px; }
.side-banner a { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12); }
.side-banner > img { border-radius: 14px; }
.side-banner img { display: block; width: 100%; height: auto; }
.side-banner .cta-18 { justify-content: center; }

.site-head:focus { outline: none; }
