/*
Theme Name: Quizvds Blog
Theme URI: https://quizvds.it/blog/
Author: EGWeb
Description: Tema del blog di quizvds.it, scritto da zero: niente page builder, un solo foglio di stile, un solo script piccolo. Titoli, descrizioni, schema e redirect li fa Rank Math.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: quizvds-blog
*/
/* Quizvds Blog: foglio di stile unico del tema (prototipo 7/11/2026).
   Direzione: rivista tecnica stampata a due colori (navy e celeste del marchio), asse verticale al 42%.
   Cinque misure di testo, un carattere (Bricolage Grotesque, ospitato nel tema), angoli vivi, pulsanti a pillola. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/font/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/font/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* marchio quizvds.it */
  --navy: #0b3a66;
  --navy-deep: #072845;
  --sky: #0d80c0;
  --sky-campo: #086c9f;        /* celeste per i campi con testo bianco (contrasto 5,8) */
  --accent: #f59e0b;           /* solo l'azione principale */
  /* carta e inchiostro */
  --bg: #ffffff;
  --surface: #eef4fa;          /* un gradino di tono, mai una riga */
  --surface-2: #dfeaf5;
  --ink: #0c1b2a;
  --muted: #44576b;
  --link: #0a6396;             /* celeste scurito: contrasto pieno sul bianco */
  --on-dark: #ffffff;
  --on-dark-soft: #c4d6e8;
  --on-dark-link: #9ad6f7;
  --ok: #0f7b4a;
  --ko: #b42318;
  /* cinque misure */
  --step-small: clamp(0.9375rem, 0.875rem + 0.2vw, 1rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1.1rem + 5.4vw, 6.5rem);
  /* spazio */
  --m: clamp(20px, 2.6vw, 40px);
  --gap: clamp(24px, 3vw, 56px);
  --section: clamp(88px, 9vw, 168px);
  --pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--sky); color: #fff; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; margin: 0; font-stretch: 84%; }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: absolute; left: var(--m); top: -100px; background: var(--accent); color: var(--navy-deep); padding: 10px 16px; z-index: 50; font-weight: 600; text-decoration: none; }
.salta:focus { top: 12px; }

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--m); }
/* l'asse: tutto parte dal 42% */
.asse { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); column-gap: var(--gap); }
.asse > .lato { grid-column: 1; }
.asse > .sull-asse { grid-column: 2; }

/* pulsante: uno solo, a pillola, ambra */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: var(--accent); color: var(--navy-deep);
  font: 600 var(--step-body)/1 "Bricolage Grotesque", sans-serif;
  padding: 0.95em 1.5em; border-radius: var(--pill); text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.18s;
}
.btn:hover { background: #fbb534; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn span[aria-hidden] { transition: transform 0.18s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- barra ---------- */
.barra { background: var(--navy); color: var(--on-dark); position: relative; z-index: 20; }
.barra .wrap { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); min-height: 76px; }
.marchio { display: flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: var(--step-body); letter-spacing: -0.02em; white-space: nowrap; }
.marchio img { width: 84px; height: auto; }
.marchio b { font-weight: 600; color: var(--on-dark-soft); }
.menu { display: flex; gap: clamp(14px, 1.8vw, 28px); margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a { color: var(--on-dark); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 8px; font-size: var(--step-small); font-weight: 500; padding-block: 6px; transition: text-decoration-color 0.2s; }
.menu a:hover, .menu a[aria-current] { text-decoration-color: var(--accent); }
.barra .btn { padding: 0.75em 1.2em; font-size: var(--step-small); }
.apri-menu { display: none; margin-left: auto; background: transparent; color: var(--on-dark); border: 0; font: 600 var(--step-small) "Bricolage Grotesque", sans-serif; padding: 10px 0; cursor: pointer; }

/* ---------- mosaico in testata ---------- */
.mosaico { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: clamp(240px, 44svh, 480px); background: var(--navy); }
.mosaico > * { min-width: 0; min-height: 0; overflow: hidden; position: relative; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.mosaico a:hover img { transform: scale(1.04); }
.tessera { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(16px, 1.8vw, 28px); color: var(--on-dark); }
.tessera--navy { background: var(--navy); }
.tessera--sky { background: var(--sky-campo); }
.tessera strong { display: block; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.tessera span { font-size: var(--step-small); line-height: 1.35; color: #e6f0f8; margin-top: 8px; }
.tessera--sky span { color: #f2f9fd; }
.tessera--invito { text-decoration: none; transition: background-color 0.2s; }
/* "aeronautici" non va a capo ed e' largo fino a 5,2em ai corpi piccoli (il carattere si allarga):
   nelle tessere strette il testo scala con lo schermo */
.tessera--invito strong { font-size: min(var(--step-lead), 2.3vw); letter-spacing: -0.02em; line-height: 1.08; font-variant-numeric: normal; overflow-wrap: break-word; }
.tessera--invito > span { font-weight: 600; }
.tessera--invito .insieme { white-space: nowrap; }
.tessera--invito [aria-hidden] { display: inline-block; margin-top: 0; transition: transform 0.18s var(--ease); }
.tessera--invito:hover { background: var(--navy-deep); }
.tessera--invito:hover [aria-hidden] { transform: translateX(4px); }
.mosaico--categoria .tessera--invito strong { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
.mosaico .doppia { grid-column: span 2; }

/* ---------- testata della home ---------- */
.testata { padding-block: clamp(40px, 5vw, 80px) var(--section); }
.testata h1 { font-size: clamp(2.75rem, 1rem + 4.6vw, 6rem); font-weight: 650; letter-spacing: -0.045em; line-height: 0.9; }
.testata h1 .rivela { display: block; }
.testata .sommario { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; margin: clamp(20px, 2.4vw, 36px) 0 clamp(24px, 2.8vw, 40px); }
.testata .lato { padding-top: 0.6em; }

/* ---------- la domanda d'esame (la cosa viva) ---------- */
.domanda { background: var(--surface); padding: clamp(20px, 2.2vw, 32px); }
.domanda h2 { font-size: var(--step-lead); letter-spacing: -0.025em; line-height: 1.1; }
.domanda .fonte { font-size: var(--step-small); color: var(--muted); margin: 8px 0 18px; }
.domanda .testo { font-weight: 500; margin-bottom: 14px; }
.domanda ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.opzione {
  width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; text-align: left;
  background: var(--bg); color: var(--ink); border: 0; padding: 12px 14px; cursor: pointer;
  font: 400 var(--step-body)/1.35 "Bricolage Grotesque", sans-serif;
  transition: background-color 0.18s, color 0.18s, transform 0.18s var(--ease);
}
.opzione:hover { background: var(--surface-2); transform: translateX(3px); }
.opzione b { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; text-transform: uppercase; }
.opzione[disabled] { cursor: default; transform: none; }
.opzione.giusta { background: var(--ok); color: #fff; }
.opzione.giusta b { background: #fff; color: var(--ok); }
.opzione.sbagliata { background: var(--ko); color: #fff; }
.opzione.sbagliata b { background: #fff; color: var(--ko); }
.domanda .esito { min-height: 1.5em; margin: 14px 0 6px; font-weight: 600; }
.domanda .vai { font-size: var(--step-small); font-weight: 600; }

/* ---------- apertura in quattro colonne ---------- */
.apertura { padding-block: var(--section) clamp(64px, 6vw, 112px); background: var(--surface); }
.apertura .attacco { font-size: var(--step-lead); line-height: 1.3; max-width: 52ch; margin-bottom: clamp(40px, 4.5vw, 72px); }
.quattro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; font-size: var(--step-body); line-height: 1.5; color: var(--ink); }
.quattro p b { color: var(--ink); font-weight: 600; }
.quattro p { margin: 0; }

/* ---------- guide agli esami: una foto tagliata in tessere ---------- */
.guide { padding: 12px; background: var(--bg); }
.tavola { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tavola > * { aspect-ratio: 1; overflow: hidden; position: relative; min-width: 0; }
.pezzo { width: 100%; height: 100%; background-image: var(--foto); background-size: 600% 400%; background-position: var(--px) var(--py); background-repeat: no-repeat; transition: transform 0.6s var(--ease); }
.tavola > div:hover .pezzo, .pezzo:hover { transform: scale(1.08); }
.tavola > div { overflow: hidden; }
.tessera-guida { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(12px, 1.4vw, 20px); text-decoration: none; color: var(--on-dark); transition: background-color 0.2s; }
.tessera-guida.t-navy { background: var(--navy); }
.tessera-guida.t-sky { background: var(--sky-campo); }
.tessera-guida.t-carta { background: var(--surface); color: var(--ink); }
.tessera-guida h2 { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1; }
.tessera-guida p { font-size: var(--step-body); line-height: 1.25; margin: 0; font-weight: 500; }
.tessera-guida small { font-size: var(--step-small); color: #e6f0f8; }
.tessera-guida .corto { display: none; }
.tessera-guida.t-carta small { color: var(--muted); }
a.tessera-guida:hover { background: var(--navy-deep); color: #fff; }
a.tessera-guida.t-carta:hover small { color: var(--on-dark-soft); }
.guide-elenco { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 32px var(--m) 0; font-size: var(--step-body); line-height: 1.3; }
.guide-elenco a { font-weight: 600; text-decoration: none; color: var(--ink); }
.guide-elenco a:hover { color: var(--link); text-decoration: underline; }
.guide-elenco span { display: block; color: var(--muted); font-weight: 400; margin-top: 6px; font-size: var(--step-small); line-height: 1.45; }

/* ---------- ultimi articoli per argomento ---------- */
.argomenti { padding-block: var(--section); }
.argomenti .riga-titolo { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.argomenti h2 { font-size: var(--step-head); }
.argomenti h2 span { display: block; color: var(--muted); }
.schede { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.linguette { display: flex; flex-direction: column; gap: 6px; }
.linguetta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 10px 16px;
  background: var(--surface); color: var(--ink); border: 0; text-align: left; cursor: pointer; text-decoration: none;
  font: 500 var(--step-body)/1.15 "Bricolage Grotesque", sans-serif; transition: background-color 0.18s, color 0.18s;
}
.linguetta small { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.linguetta:hover { background: var(--surface-2); }
.linguetta[aria-selected="true"] { background: var(--navy); color: #fff; }
.linguetta[aria-selected="true"] small { color: var(--on-dark-soft); }
.pannello[hidden] { display: none; }
.fasce { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fascia { display: grid; grid-template-columns: 120px minmax(0, 1fr) 132px; gap: 20px; align-items: center; padding: 12px 12px 12px 20px; background: var(--surface); text-decoration: none; color: var(--ink); transition: background-color 0.18s; }
.fasce li:nth-child(even) .fascia { background: var(--surface-2); }
.fascia:hover { background: var(--navy) !important; color: #fff; }
.fascia:hover .nota, .fascia:hover time { color: var(--on-dark-soft); }
.fascia time { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.fascia strong { display: block; font-weight: 500; font-size: var(--step-body); line-height: 1.25; }
.fascia .nota { display: block; font-size: var(--step-small); color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fascia img { width: 132px; height: 88px; object-fit: cover; }
.pannello .tutti { display: inline-block; margin-top: 20px; font-weight: 600; }

/* ---------- foglio di foto ---------- */
.foglio { padding-block: 0 var(--section); }
.foglio .dichiarazione { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; margin: 0 0 64px 66%; }
.colonne { columns: 6 200px; column-gap: 4px; padding-inline: 12px; }
.colonne figure { break-inside: avoid; margin: 0 0 14px; }
.colonne a { color: var(--ink); text-decoration: none; display: block; }
.colonne img { width: 100%; height: auto; transition: opacity 0.2s; }
.colonne a:hover img { opacity: 0.85; }
.colonne figcaption { font-size: var(--step-small); line-height: 1.35; margin-top: 6px; }
.colonne figcaption span { color: var(--muted); }
.colonne a:hover figcaption { text-decoration: underline; }

/* ---------- invito finale ---------- */
.striscia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 40svh; min-height: 220px; }
.striscia img { width: 100%; height: 100%; object-fit: cover; }
.campo { background: var(--navy); color: var(--on-dark); min-height: 44svh; display: flex; align-items: center; padding-block: clamp(56px, 6vw, 96px); }
.campo p.invito { font-size: var(--step-lead); font-weight: 500; line-height: 1.25; max-width: 30ch; letter-spacing: -0.02em; margin-bottom: 32px; }
.campo p.invito a { color: #fff; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 6px; transition: color 0.18s; }
.campo p.invito a:hover { color: var(--accent); }
.campo p.piccolo { font-size: var(--step-body); color: var(--on-dark-soft); max-width: 52ch; margin: 0; }

/* ---------- piede ---------- */
.piede { background: var(--navy-deep); color: var(--on-dark); padding-top: clamp(48px, 5vw, 88px); overflow: hidden; }
.piede .nome { font-size: clamp(4.5rem, 1rem + 17vw, 17rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; margin: 0 0 clamp(48px, 5vw, 72px); color: #fff; }
.piede .righe { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); }
.piede .vie { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.piede .vie a { color: var(--on-dark-link); text-decoration: none; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.piede .vie a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.piede .gruppi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: var(--step-body); }
.piede h2 { font-size: var(--step-small); font-weight: 600; letter-spacing: 0; color: var(--on-dark-soft); margin-bottom: 12px; }
.piede ul.link { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.piede ul.link a { color: #fff; text-decoration: none; }
.piede ul.link a:hover { text-decoration: underline; }
.piede .legale { display: flex; justify-content: space-between; gap: 24px; padding-block: clamp(56px, 6vw, 96px) 32px; font-size: var(--step-small); color: var(--on-dark-soft); }
.piede .legale a { color: var(--on-dark-soft); }

/* ---------- articolo ---------- */
.foto-testata { height: clamp(260px, 52svh, 620px); overflow: hidden; background: var(--navy); margin: 0; }
.foto-testata img { width: 100%; height: 100%; object-fit: cover; }
.foto-testata figcaption { position: absolute; }
.titolo-articolo { padding-block: clamp(32px, 4vw, 64px) clamp(40px, 4vw, 72px); }
.briciole { font-size: var(--step-small); color: var(--muted); margin-bottom: 20px; }
.briciole a { color: var(--muted); }
.titolo-articolo h1 { font-size: var(--step-head); max-width: 22ch; }
.titolo-articolo .sommario { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; margin: 24px 0 0; }
.firma { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step-small); color: var(--muted); margin-top: 24px; }
.firma a { color: var(--ink); font-weight: 600; text-decoration: none; }
.firma a:hover { text-decoration: underline; }
.corpo { padding-bottom: var(--section); }
.corpo .lato { position: relative; }
.note { position: sticky; top: 24px; display: grid; gap: 24px; }
.indice { background: var(--surface); padding: clamp(20px, 2vw, 28px); }
.indice h2 { font-size: var(--step-body); letter-spacing: -0.01em; margin-bottom: 12px; }
.indice ol { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 6px; font-size: var(--step-small); }
.indice a { color: var(--ink); text-decoration: none; }
.indice a:hover, .indice a.qui { color: var(--link); text-decoration: underline; }
details.indice summary { cursor: pointer; font-weight: 600; }
.domanda--fine { display: none; }

.testo-articolo { max-width: 68ch; font-size: var(--step-body); line-height: 1.62; }
.testo-articolo > * + * { margin-top: 1.1em; }
.testo-articolo p { margin: 0; }
.testo-articolo h2 { font-size: var(--step-lead); letter-spacing: -0.025em; line-height: 1.12; margin-top: 2.2em; scroll-margin-top: 24px; }
.testo-articolo h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-top: 1.8em; scroll-margin-top: 24px; }
.testo-articolo ul, .testo-articolo ol { padding-left: 1.3em; }
.testo-articolo li + li { margin-top: 0.4em; }
.testo-articolo blockquote { margin-inline: 0; padding: 20px 24px; background: var(--surface); font-size: var(--step-lead); line-height: 1.35; }
.testo-articolo table { width: 100%; border-collapse: collapse; font-size: var(--step-small); display: block; overflow-x: auto; }
.testo-articolo th, .testo-articolo td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.testo-articolo th { background: var(--navy); color: #fff; font-weight: 600; }
.testo-articolo strong { font-weight: 600; }
/* domanda vera del banco dentro gli articoli */
.testo-articolo .domanda-quiz { margin: 2em 0; padding: 20px 22px; background: var(--surface); border-left: 4px solid var(--sky-campo); }
.testo-articolo .domanda-quiz > * + * { margin-top: 0.7em; }
.testo-articolo .domanda-quiz > p:first-child { font-size: var(--step-small); color: var(--muted); }
.testo-articolo .domanda-quiz > p:first-child strong { color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85em; }
.testo-articolo .domanda-quiz ol { list-style: lower-alpha; }
.testo-articolo .domanda-quiz figcaption { color: var(--ink); padding-top: 0.8em; border-top: 1px solid var(--surface-2); }
.in-breve { background: var(--surface); padding: clamp(20px, 2.2vw, 32px); }
.qv-cta { background: var(--navy) !important; color: #fff !important; padding: clamp(24px, 2.6vw, 40px) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; } /* taste-skill-ignore: toglie l'ombra del riquadro del mu-plugin */
.qv-cta * { color: inherit !important; }
.qv-cta a { background: var(--accent) !important; color: var(--navy-deep) !important; border-radius: var(--pill) !important; }

.collegati { background: var(--navy); color: var(--on-dark); padding-block: var(--section); }
.collegati h2 { font-size: var(--step-head); margin-bottom: 48px; }
.collegati ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.collegati a { display: grid; gap: 16px; align-content: start; color: #fff; text-decoration: none; padding: 12px 12px 20px; background: rgba(255, 255, 255, 0.06); height: 100%; transition: background-color 0.18s; }
.collegati a:hover { background: var(--sky); }
.collegati img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.collegati strong { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.collegati time { display: block; font-size: var(--step-small); color: var(--on-dark-soft); margin-top: 6px; }

/* ---------- categoria ---------- */
.mosaico--categoria { height: clamp(280px, 54svh, 600px); }
.mosaico--categoria .grande { grid-column: span 4; }
.titolo-categoria { padding-block: clamp(40px, 4.5vw, 72px) clamp(32px, 3vw, 48px); }
.titolo-categoria h1 { font-size: var(--step-head); max-width: 30ch; }
.elenco-categoria { padding-bottom: var(--section); }
.titolo-categoria .conto { font-size: var(--step-lead); color: var(--muted); margin: 20px 0 0; }
.primo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; text-decoration: none; color: var(--ink); margin-bottom: 40px; }
.primo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.primo strong { display: block; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.primo span { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 12px; }
.primo:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
.pagine { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; list-style: none; padding: 0; }
.pagine a, .pagine span { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; background: var(--surface); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; font-size: var(--step-small); }
.pagine span[aria-current] { background: var(--navy); color: #fff; }
.pagine a:hover { background: var(--surface-2); }

/* ---------- entrate (solo con lo script, mai contenuto nascosto senza) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .entra { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--ritardo, 0ms); }
  .js .entra.vista { opacity: 1; transform: none; }
  .js .rivela { display: block; overflow: hidden; padding-bottom: 0.06em; }
  .js .rivela > span { display: block; transform: translateY(105%); animation: sale 0.9s var(--ease) forwards; animation-delay: var(--ritardo, 80ms); }
  @keyframes sale { to { transform: none; } }
  .js .dopo-titolo { opacity: 0; animation: appare 0.7s var(--ease) 0.55s forwards; }
  @keyframes appare { to { opacity: 1; } }
  .foto-lenta { animation: deriva 24s linear infinite alternate; }
  @keyframes deriva { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.08) translateX(-1.5%); } }
}

/* ---------- schermi medi ---------- */
@media (max-width: 1100px) {
  .menu { display: none; }
  .apri-menu { display: block; }
  .barra .btn { display: none; }
  .barra.aperta .menu { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 12px var(--m) 24px; gap: 0; }
  .barra.aperta .menu a { display: block; padding: 12px 0; font-size: var(--step-body); }
  .quattro { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .guide-elenco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foglio .dichiarazione { margin-left: 42%; }
  .titolo-articolo.asse, .titolo-categoria.asse { grid-template-columns: minmax(0, 1fr); }
  .titolo-articolo .sull-asse { grid-column: 1; }
}

/* ---------- telefono: l'asse si chiude sul margine ---------- */
@media (max-width: 760px) {
  .asse { grid-template-columns: minmax(0, 1fr); }
  .asse > .lato, .asse > .sull-asse { grid-column: 1; }
  .marchio img { width: 58px; }
  .mosaico { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; height: 62vw; }
  .mosaico > :nth-child(n+7) { display: none; }
  .mosaico .doppia { grid-column: span 1; }
  .mosaico--categoria { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr; height: 70vw; }
  .mosaico--categoria .grande { grid-column: span 2; }
  .tessera strong { font-size: 1.75rem; }
  .mosaico .tessera--invito { grid-column: span 2; }
  .tessera .esteso { display: none; }
  .mosaico--categoria .tessera--invito { grid-column: span 1; padding: 12px; }
  .mosaico--categoria .tessera--invito strong { font-size: clamp(0.9375rem, 0.25rem + 3.6vw, 1.5rem); }
  .tessera--invito strong { font-size: clamp(1.0625rem, 0.6rem + 2.2vw, 1.5rem); line-height: 1.15; }
  .testata h1 { font-size: clamp(2.25rem, 10.5vw, 3.25rem); }
  .testata .lato { order: 2; margin-top: 40px; padding-top: 0; }
  .testata .btn { width: 100%; justify-content: center; }
  .quattro { grid-template-columns: minmax(0, 1fr); gap: 28px; font-size: var(--step-body); }
  .tavola { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pezzo { background-size: 300% 600%; background-position: var(--pxm) var(--pym); }
  .tavola .t-titolo { grid-column: span 2; aspect-ratio: auto; }
  .tessera-guida .lungo, .tessera-guida small { display: none; }
  .tessera-guida .corto { display: block; font-size: var(--step-body); font-weight: 600; }
  .tessera-guida { justify-content: flex-end; padding: 10px; }
  .tavola .solo-pc { display: none; }
  .guide-elenco { grid-template-columns: minmax(0, 1fr); }
  .argomenti .riga-titolo { display: block; }
  .schede { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .linguette { flex-direction: row; flex-wrap: wrap; }
  .linguetta { flex: 1 1 auto; min-height: 48px; }
  .linguetta small { display: none; }
  .fascia { grid-template-columns: minmax(0, 1fr) 72px; gap: 14px; padding: 14px; }
  .fascia time { grid-column: 1; grid-row: 1; }
  .fascia > span { grid-column: 1; }
  .fascia img { grid-column: 2; grid-row: 1 / span 2; width: 72px; height: 72px; }
  .fascia .nota { white-space: normal; }
  .foglio .dichiarazione { margin-left: 0; font-size: 1.1875rem; }
  .colonne { columns: 3 100px; padding-inline: 10px; }
  .colonne figcaption span { display: none; }
  .striscia { grid-template-columns: 1fr 1fr; height: auto; }
  .striscia img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .striscia img { aspect-ratio: 1; }
  .campo p.invito { font-size: 1.5rem; }
  .piede .righe { grid-template-columns: minmax(0, 1fr); }
  .piede .gruppi { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .piede .legale { flex-direction: column; }
  .note { position: static; }
  .note .domanda { display: none; }
  .domanda--fine { display: block; margin-top: 48px; }
  .corpo .lato { order: -1; }
  .elenco-categoria .lato { order: 2; margin-top: 48px; }
  .collegati ol { grid-template-columns: minmax(0, 1fr); }
  .primo { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ---------- WordPress ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rank-math-breadcrumb { font-size: var(--step-small); color: var(--muted); margin-bottom: 20px; }
.rank-math-breadcrumb p { margin: 0; }
.rank-math-breadcrumb a { color: var(--muted); }
.rank-math-breadcrumb .separator { margin: 0 0.35em; }
.testo-articolo img, .testo-pagina img { height: auto; }
.testo-articolo figure, .testo-pagina figure { margin: 2em 0; }
.testo-articolo figcaption, .wp-caption-text { font-size: var(--step-small); color: var(--muted); margin-top: 8px; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.testo-articolo iframe { max-width: 100%; }
.testo-pagina { max-width: 68ch; font-size: var(--step-body); line-height: 1.6; }
.testo-pagina ul { padding-left: 1.2em; }
.testo-pagina a { word-break: break-word; }
.titolo-pagina { padding-block: clamp(40px, 4.5vw, 72px) clamp(32px, 3vw, 48px); }
.titolo-pagina h1 { font-size: var(--step-head); max-width: 24ch; }
.titolo-pagina .sommario { font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; margin: 20px 0 0; }
.pagina-corpo { padding-bottom: var(--section); }
.cerca { display: flex; gap: 8px; max-width: 560px; margin-top: 28px; }
.cerca input[type=search] { flex: 1; min-width: 0; font: inherit; font-size: var(--step-body); padding: 0.85em 1.1em; border: 2px solid var(--surface-2); background: var(--bg); color: var(--ink); border-radius: var(--pill); }
.cerca input[type=search]:focus { border-color: var(--navy); outline: none; }
.cerca button { font: 600 var(--step-body)/1 "Bricolage Grotesque", sans-serif; background: var(--navy); color: #fff; border: 0; border-radius: var(--pill); padding: 0 1.4em; cursor: pointer; transition: background-color 0.18s; }
.cerca button:hover { background: var(--navy-deep); }
.nulla { font-size: var(--step-lead); max-width: 40ch; }
.argomenti-elenco { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.argomenti-elenco a { display: inline-block; padding: 12px 18px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; }
.argomenti-elenco a:hover { background: var(--navy); color: #fff; }
.pagine .dots { background: transparent; }
