/* =============================================================================
   Tity & Amarenas 2026: foglio di stile unico (derivato dal mockup C "Scudo").
   Colori dello scudo del logo: blu notte e oro. Mobile first nei contenuti,
   breakpoint a 1060px e 860px come nel mockup.
   ============================================================================= */

/* ---------- Font locali (nessun CDN), latin subset ---------- */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/big-shoulders-display-600.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/big-shoulders-display-800.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/big-shoulders-display-900.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/karla-400.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/karla-500.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/karla-700.woff2") format("woff2"); }

/* ---------- Variabili e base ---------- */
/* Mockup C: i colori dello scudo del logo (blu notte e oro).
   Struttura ripresa dal sito attuale: lista lunga di articoli + sidebar con sponsor. */
:root {
  --navy: #12264a;
  --navy-2: #1b335f;
  --gold: #e8b420;
  --white: #ffffff;
  --mist: #eef1f6;
  --line: #dfe4ec;
  --ink: #12264a;
  --muted: #55617a;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --side: 340px;
  --display: "Big Shoulders Display", Impact, sans-serif;
  --sans: "Karla", system-ui, sans-serif;
  --focus: var(--navy);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
/* Focus: blu su fondo chiaro, oro sulle zone blu (contrasto >= 3:1 in entrambi i casi) */
.top, .hero, .site-footer, .cc { --focus: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; }
.skip { position: absolute; left: 8px; top: -64px; z-index: 100; background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 8px; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Come il core: i link nascosti con questa classe (skip-link) tornano visibili al focus */
.screen-reader-text:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 16px; }

/* ---------- Header: logo + menu con sottomenu (come l'originale) ---------- */
.top { background: var(--navy); color: var(--white); position: relative; z-index: 20; }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.top__logo img { width: 168px; height: auto; background: var(--white); border-radius: 8px; padding: 6px 10px; }
.follow { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #c8d1e3; }
.follow a { color: var(--white); font-weight: 700; text-decoration: none; border: 2px solid rgba(255,255,255,.25); border-radius: 4px; padding: 6px 12px; }
.follow a:hover { border-color: var(--gold); }
.burger { display: none; font: 700 15px var(--sans); color: var(--white); background: none; border: 2px solid var(--gold); border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.nav { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.08); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a, .menu summary { display: block; padding: 14px 16px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; list-style: none; }
.menu > li:first-child > a { padding-left: 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-3px) rotate(45deg); }
.menu > li > a:hover, .menu summary:hover, .menu [aria-current] { color: var(--gold); }
.menu details ul { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white); color: var(--ink); border-top: 3px solid var(--gold); box-shadow: 0 12px 28px rgba(18,38,74,.2); padding: 8px 0; --focus: var(--navy); }
/* Ultima voce: il sottomenu si allinea a destra per non uscire dalla pagina */
.menu > li:last-child details ul { left: auto; right: 0; }
.menu details ul a { display: block; padding: 8px 18px; text-decoration: none; font-weight: 500; }
.menu details ul a:hover { background: var(--mist); }

/* ---------- Apertura: ultimo articolo ---------- */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; padding-right: 0; }
.hero__copy { padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px) clamp(32px, 5vw, 64px) 0; align-self: center; }
.kicker { color: var(--gold); font-weight: 700; font-size: 14px; margin: 0 0 10px; }
.hero h1 { font-weight: 900; font-size: clamp(36px, 3.8vw, 58px); line-height: .92; margin: 0 0 20px; }
.hero p { color: #c8d1e3; max-width: 32em; margin: 0 0 28px; }
/* La foto riempie tutta l'altezza del pannello, qualunque sia la lunghezza del titolo */
.hero figure { margin: 0; position: relative; min-height: 420px; }
.hero figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero--noimg .wrap { grid-template-columns: minmax(0, 1fr); padding-right: var(--gutter); }
.btn { display: inline-block; background: var(--gold); color: var(--navy); text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 4px; border: 0; font-size: 16px; font-family: var(--sans); cursor: pointer; }
.btn--line { background: transparent; color: var(--navy); border: 2px solid var(--navy); }

/* ---------- Corpo: lista articoli + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: clamp(32px, 4vw, 56px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
.section-title { font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; margin: 0 0 24px; display: flex; align-items: center; gap: 16px; }
.section-title::after { content: ""; flex: 1; height: 4px; background: var(--gold); }

.posts { list-style: none; margin: 0; padding: 0; }
.post { display: grid; grid-template-columns: 5fr 6fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post:first-child { padding-top: 0; }
.post__img { display: block; align-self: start; overflow: hidden; border-radius: 6px; background: var(--mist); }
.post__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.post__img:hover img { transform: scale(1.03); }
.post__img--top img { object-position: 50% 30%; }
.post__img--contain img { object-fit: contain; background: var(--white); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.cats a { display: block; font-size: 13px; font-weight: 700; text-decoration: none; background: var(--mist); padding: 2px 9px; border-radius: 3px; }
.cats a:hover { background: var(--gold); }
/* Contenuti inseriti a mano (URL lunghi negli estratti) non devono allargare la pagina */
.post { overflow-wrap: anywhere; }
.posts > .post h3 { font-weight: 800; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.02; margin: 0 0 8px; }
.posts > .post h3 a { text-decoration: none; }
.posts > .post h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.posts > .post .meta { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.posts > .post .ex { margin: 0 0 12px; color: #2b3954; }
/* "Continua a leggere": pulsante a tutta larghezza della colonna testo */
.more { display: block; width: 100%; text-align: center; font-weight: 700; font-size: 15px; text-decoration: none; background: var(--navy); color: var(--white); padding: 12px 16px; border-radius: 4px; border: 2px solid var(--navy); transition: background .2s, color .2s; }
.more:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.post--wide, .post--noimg { grid-template-columns: 1fr; }
.post--wide .post__img img { aspect-ratio: 21 / 8; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }

/* Sidebar */
.sidebar { display: grid; gap: 28px; align-content: start; }
/* Il padding sta sul box e il titolo lo compensa con margini negativi: il markup resta valido
   anche per widget senza titolo e per i blocchi, che non passano da before_title */
.box { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; padding: 16px; }
.box > .box__title { margin: -16px -16px 16px; background: var(--navy); color: var(--white); font-weight: 800; font-size: 22px; padding: 10px 16px; border-bottom: 4px solid var(--gold); }
.searchform { display: flex; }
.box.widget_search { border: 0; padding: 0; overflow: visible; }
.box.widget_media_image img, .box.widget_custom_html .sponsors img { display: block; max-width: 100%; height: auto; }
.box.widget_categories ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.box.widget_categories a { display: block; font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 3px; padding: 3px 9px; }
.box.widget_categories a:hover { border-color: var(--gold); background: var(--mist); }
.box.widget_text p { margin: 0; }
.box.widget_text a { font-weight: 700; }
.searchform input { flex: 1; min-width: 0; font: 16px var(--sans); padding: 11px 12px; border: 2px solid var(--navy); border-right: 0; border-radius: 4px 0 0 4px; color: var(--ink); }
.searchform .btn { border-radius: 0 4px 4px 0; padding: 0 16px; }
.sponsors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sponsors a, .sponsors .txt { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.sponsors a:hover { border-color: var(--gold); }
.sponsors img { width: 100%; aspect-ratio: 7 / 10; object-fit: cover; }
.sponsors .txt { display: grid; place-items: center; aspect-ratio: 7 / 5; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; text-decoration: none; background: var(--mist); }
.sponsors .wide { grid-column: 1 / -1; aspect-ratio: auto; padding: 14px; }
/* Loghi orizzontali (Dragon, Laeger, Doma): tessera a tutta riga, logo contenuto senza ritagli */
.sponsors .logo { grid-column: 1 / -1; display: grid; place-items: center; padding: 16px 20px; background: var(--white); }
.sponsors .logo img { width: auto; max-width: 100%; max-height: 72px; aspect-ratio: auto; object-fit: contain; }
.sponsors .logo--dark { background: var(--navy); }
/* Loghi quasi quadrati (Doma): più altezza, sennò risultano minuscoli */
.sponsors .logo--tall img { max-height: 120px; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.fb { background: var(--mist); border-radius: 4px; padding: 18px; text-align: center; font-size: 15px; }
.fb p { margin: 0 0 12px; }
.fb__frame { display: block; width: 100%; max-width: 500px; height: 500px; margin: 0 auto 12px; border: 0; background: var(--white); }
.box h3 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.box h3 + .mini { margin-bottom: 18px; }
.box .mini:last-child { margin-bottom: 0; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini a { font-weight: 700; text-decoration: none; line-height: 1.3; display: block; }
.mini a:hover { text-decoration: underline; }
.mini span { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips a { display: block; font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 3px; padding: 3px 9px; }
.chips a:hover { border-color: var(--gold); background: var(--mist); }
.contact a { font-weight: 700; }

/* ---------- Contenuto: articoli e pagine ---------- */
.entry { min-width: 0; overflow-wrap: anywhere; }
/* post_class() aggiunge .post, che è la griglia delle card: nell'articolo va azzerata */
.entry.post { display: block; padding: 0; border: 0; }
.entry__head, .entry__img, .entry-content, .postnav, .comments { max-width: 720px; }
.entry__head { margin-bottom: 24px; }
.entry__head .cats { margin-bottom: 16px; }
.entry__head h1 { font-weight: 900; font-size: clamp(36px, 4.4vw, 56px); line-height: .95; margin: 0 0 12px; }
.entry__head .meta { font-size: 15px; color: var(--muted); margin: 0; }
.entry__img { margin: 0 0 28px; }
.entry__img img { width: 100%; border-radius: 6px; }
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote, .entry-content figure { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1; margin: 1.6em 0 .5em; }
.entry-content h2 { font-weight: 800; font-size: clamp(30px, 3vw, 38px); border-bottom: 4px solid var(--gold); padding-bottom: 6px; }
.entry-content h3 { font-weight: 800; font-size: clamp(25px, 2.4vw, 30px); }
.entry-content h4 { font-weight: 600; font-size: 22px; }
.entry-content a { color: var(--navy); font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content a:hover { background: var(--gold); text-decoration: none; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .3em; }
.entry-content blockquote { border-left: 6px solid var(--gold); background: var(--mist); padding: 14px 20px; border-radius: 0 6px 6px 0; }
.entry-content blockquote > :last-child { margin-bottom: 0; }
/* Articoli 2016-2018: immagini e didascalie hanno larghezze fisse inline, qui non possono sforare la colonna */
.entry-content img { max-width: 100%; height: auto; border-radius: 4px; }
.entry-content .wp-caption, .entry-content figure { max-width: 100%; }
.entry-content .wp-caption img { width: 100%; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.entry-content .alignleft { float: left; margin: 0 20px 12px 0; }
.entry-content .alignright { float: right; margin: 0 0 12px 20px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
/* Video incorporati: a tutta colonna */
.entry-content iframe, .entry-content video, .entry-content embed, .entry-content object { display: block; max-width: 100%; }
.entry-content iframe { width: 100%; border: 0; }
/* 16:9 solo per YouTube e Vimeo; gli altri (es. video Facebook) tengono la proporzione
   dei loro width/height, riportata da inc/consent.php nello style di segnaposto e iframe */
.entry-content iframe[src*="youtube.com/"], .entry-content iframe[src*="youtube-nocookie.com/"], .entry-content iframe[src*="vimeo.com/"] { height: auto; aspect-ratio: 16 / 9; }
/* Segnaposto degli iframe social bloccati fino al consenso */
.embed-blocked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; margin: 0 0 1.2em; padding: 20px; box-sizing: border-box; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; text-align: center; font-size: 15px; }
.embed-blocked[data-provider="youtube"] { aspect-ratio: 16 / 9; }
.embed-blocked[hidden] { display: none; }
.embed-blocked__msg { display: block; max-width: 34em; }
.entry-content pre { max-width: 100%; overflow-x: auto; background: var(--mist); padding: 14px; border-radius: 6px; font-size: 15px; }
/* Tabelle larghe (calendario): scorrono nel loro riquadro, non nella pagina. Il riquadro lo crea il filtro ta_wrap_tables() */
.table-scroll { max-width: 100%; overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 6px; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.table-scroll table { border-collapse: collapse; min-width: 100%; font-size: 16px; line-height: 1.4; }
.table-scroll th, .table-scroll td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; overflow-wrap: normal; }
.table-scroll th, .table-scroll tr:first-child td:has(strong) { background: var(--navy); color: var(--white); }
.table-scroll tr:nth-child(even) td { background: var(--mist); }

/* Articolo precedente / successivo */
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.postnav a { display: block; border: 2px solid var(--navy); border-radius: 6px; padding: 14px 16px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.postnav a:hover { background: var(--navy); color: var(--white); }
.postnav span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.postnav a:hover span { color: var(--gold); }
.postnav__next { grid-column: 2; text-align: right; }
.postnav__prev:only-child { grid-column: 1; }

/* Archivi, ricerca, 404 */
.archive-desc { margin: -8px 0 24px; color: var(--muted); }
.empty { background: var(--mist); border-radius: 6px; padding: 24px; margin-bottom: 40px; }
.empty p { margin: 0 0 16px; }
.section-title--sub { margin-top: 8px; }
.section-title { overflow-wrap: anywhere; }
.pager .page-numbers, .pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager a.page-numbers, .pager span.page-numbers { display: block; min-width: 44px; text-align: center; padding: 9px 14px; border: 2px solid var(--navy); border-radius: 4px; font-weight: 700; text-decoration: none; }
.pager .current { background: var(--navy); color: var(--white); }
.pager a.page-numbers:hover { background: var(--gold); border-color: var(--gold); }
.pager .dots { border-color: transparent; }

/* Commenti */
.comments { margin-top: 48px; }
.comments__title, .comment-reply-title { font-weight: 800; font-size: 28px; margin: 0 0 16px; }
.comments__list { list-style: none; margin: 0 0 32px; padding: 0; }
.comments__list .children { list-style: none; padding-left: 20px; }
.comment-body { border-bottom: 1px solid var(--line); padding: 14px 0; }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: 16px var(--sans); padding: 10px 12px; border: 2px solid var(--navy); border-radius: 4px; }

/* ---------- Piloti, gare, licenze ---------- */
.band { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.roster { background: var(--mist); }
.riders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.riders li { background: var(--white); border-radius: 6px; display: flex; align-items: center; gap: 18px; padding: 18px 20px; }
.riders .num { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; min-width: 2.2ch; border-right: 4px solid var(--gold); padding-right: 16px; }
.riders b { display: block; font-size: 19px; }
.riders li > div span { color: var(--muted); font-size: 15px; }
.races { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.races li { border: 2px solid var(--navy); border-radius: 6px; padding: 20px; }
.races time { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; display: block; line-height: 1; margin-bottom: 8px; }
.races b { display: block; font-size: 18px; }
.races span { color: var(--muted); }
.join { background: var(--gold); color: var(--navy); }
.join .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; }
.join h2 { font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; margin: 0 0 6px; }
.join p { margin: 0; max-width: 40em; }
.join .btn { background: var(--navy); color: var(--white); }

/* ---------- Footer ricco (come l'originale) ---------- */
.site-footer { background: var(--navy); color: #c8d1e3; font-size: 15px; }
.site-footer a { color: var(--white); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.foot h2 { color: var(--white); font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--gold); }
.foot img { width: 150px; background: var(--white); border-radius: 8px; padding: 6px 10px; margin-bottom: 16px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 110px; font-size: 14px; }

/* ---------- Banner GDPR: pannello blu in basso a destra ---------- */
.cc { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(400px, calc(100% - 32px)); background: var(--navy); color: var(--white); border-radius: 10px; padding: 20px; box-shadow: 0 10px 30px rgba(18, 38, 74, .35); font-size: 15px; line-height: 1.5; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.cc[hidden] { display: none; }
.cc a { color: var(--gold); }
.cc__text { margin: 0 0 16px; color: #dfe5f0; }
.cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc__btn { font: 700 15px var(--sans); padding: 11px 14px; border-radius: 4px; cursor: pointer; border: 2px solid var(--gold); }
.cc__btn--solid { background: var(--gold); color: var(--navy); }
.cc__btn--ghost { background: transparent; color: var(--white); }
.cc__link { grid-column: 1 / -1; background: none; border: 0; font: 700 14px var(--sans); color: var(--white); text-decoration: underline; cursor: pointer; padding: 6px; }
.cc__details { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.cc__details[hidden] { display: none; }
.cc__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #dfe5f0; }
.cc__opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.cc__opt b { display: block; color: var(--white); }
.cc-status { position: fixed; right: 16px; bottom: 16px; margin: 0; background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 14px; border-radius: 4px; font-size: 14px; }

/* ---------- Tablet e mobile ----------
   Colonne singole come minmax(0, 1fr): con 1fr un testo lungo allarga la griglia oltre lo schermo. */
@media (max-width: 1060px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar > .widget_search { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .follow span { display: none; }
  .js .burger { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .menu { flex-direction: column; padding: 8px 0 16px; }
  .menu > li > a, .menu summary { padding: 12px 0; }
  .menu details ul { position: static; box-shadow: none; border-top: 0; background: transparent; color: var(--white); padding: 0 0 8px 14px; --focus: var(--gold); }
  .menu details ul a:hover { background: transparent; color: var(--gold); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-right: var(--gutter); }
  .hero figure { order: -1; margin: 0 calc(-1 * var(--gutter)); }
  .hero figure { min-height: 0; }
  .hero figure img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .hero__copy { padding-right: 0; }
  .post { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .riders, .races { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .post__img img, .more { transition: none; } }
