/*
Theme Name: Catenaccio & Catenacci
Theme URI: https://catenaccioecatenacci.it
Author: Nando Di Giovanni
Description: Tema su misura per Catenaccio & Catenacci. Home in stile album di figurine, palette "Inchiostro ed evidenziatore", animazioni GSAP.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: catenaccio
*/

/* ---------- Carattere (ospitato nel tema, nessuna chiamata a Google) ---------- */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(assets/fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2-variations');
	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;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(assets/fonts/montserrat-latin-wght-normal.woff2) format('woff2-variations');
	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;
}

/* ---------- Colori ---------- */
:root {
	--inchiostro: #151E36;
	--carta: #F7F5EE;
	--giallo: #E2F23E;
	--porpora: #D4426E;
	--matita: #F5C400;
	--bianco: #FFFFFF;
	--grigio: #454C63;
	--rubrica: var(--carta);
	--largo: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--carta);
	color: var(--inchiostro);
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--inchiostro); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: none; }
:focus-visible { outline: 3px solid var(--porpora); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.3; margin: 0; }
.contenitore { max-width: var(--largo); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.salta { position: absolute; left: -9999px; top: 0; background: var(--giallo); padding: 10px 16px; font-weight: 800; z-index: 10; }
.salta:focus { left: 8px; top: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Evidenziatore */
.hl {
	background-image: linear-gradient(var(--giallo), var(--giallo));
	background-repeat: no-repeat;
	background-size: var(--hl, 100%) 100%;
	padding: 1px 5px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.hl--largo { padding: 0 10px; }

/* Collegamenti di servizio: niente sottolineature. Una riga di evidenziatore sotto, che al passaggio del mouse copre la voce. */
.testata__album, .sezione__link, .manca__giu { padding: 0 4px; background-image: linear-gradient(var(--giallo), var(--giallo)); background-repeat: no-repeat; background-position: 0 86%; background-size: 100% 7px; transition: background-size 0.25s ease, background-position 0.25s ease; }
.testata__album:hover, .testata__album:focus-visible, .sezione__link:hover, .sezione__link:focus-visible, .manca:hover .manca__giu { background-size: 100% 76%; background-position: 0 50%; }
/* Nomi degli autori e voci del piè di pagina: il colore scorre dietro la scritta. */
.fig__autore a, .apertura__autore a, .piede__menu a { background-image: linear-gradient(var(--giallo), var(--giallo)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.2s ease; }
.fig__autore a:hover, .fig__autore a:focus-visible, .apertura__autore a:hover, .apertura__autore a:focus-visible, .piede__menu a:hover, .piede__menu a:focus-visible { background-size: 100% 100%; color: var(--inchiostro); }
.fig__autore a, .apertura__autore a { padding: 2px 4px; margin-left: -4px; }

/* ---------- Testata ---------- */
.testata { border-bottom: 3px solid var(--inchiostro); background: var(--carta); }
.testata__dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 18px; padding-bottom: 14px; }
.testata__logo { display: flex; align-items: center; }
.logo { height: 42px; width: auto; display: block; overflow: visible; }
/* Il chiavistello del logo scatta: si apre verso sinistra e si richiude. */
@keyframes cc-scatto { 0% { transform: translateX(0); } 35%, 55% { transform: translateX(-44px); } 82% { transform: translateX(5px); } 100% { transform: translateX(0); } }
.logo.scatta .logo__paletto { animation: cc-scatto 0.9s cubic-bezier(0.3, 0.7, 0.3, 1); }
.testata__album { font-size: 14px; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }
.testata__tasto { display: none; width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; background: var(--giallo); border: 3px solid var(--inchiostro); box-shadow: 4px 4px 0 var(--inchiostro); cursor: pointer; }
.testata__righe { position: relative; width: 22px; height: 18px; display: block; }
.testata__righe span { position: absolute; left: 0; width: 100%; height: 3px; background: var(--inchiostro); transition: transform 0.25s ease, opacity 0.2s ease; }
.testata__righe span:nth-child(1) { top: 0; }
.testata__righe span:nth-child(2) { top: 7.5px; }
.testata__righe span:nth-child(3) { top: 15px; }
.testata__tasto[aria-expanded="true"] .testata__righe span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.testata__tasto[aria-expanded="true"] .testata__righe span:nth-child(2) { opacity: 0; }
.testata__tasto[aria-expanded="true"] .testata__righe span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.testata__rubriche { border-top: 3px solid var(--inchiostro); }
.rubriche-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 6px; margin-top: 0; margin-bottom: 0; padding-top: 2px; padding-bottom: 2px; list-style: none; font-size: 13px; font-weight: 700; }
/* Il colore della rubrica scorre dietro la voce; la rubrica in cui ti trovi resta colorata. */
.rubriche-menu a { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px; background-image: linear-gradient(var(--rubrica), var(--rubrica)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rubriche-menu a::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--rubrica); border: 2px solid var(--inchiostro); }
.rubriche-menu a:hover, .rubriche-menu a:focus-visible, .rubriche-menu .attiva a { background-size: 100% 100%; }
.rubriche-menu li:first-child a { margin-left: -10px; }
.rubriche-menu__album { display: none; }

/* ---------- Apertura ---------- */
.apertura { position: relative; overflow: hidden; background-color: var(--inchiostro); background-image: radial-gradient(rgba(247, 245, 238, 0.15) 1.6px, transparent 1.7px); background-size: 14px 14px; color: var(--carta); }
/* Fascia obliqua nel colore della rubrica, dietro la figurina. */
.apertura--foto::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 44%; background: var(--rubrica); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
/* Filigrana con il monogramma sulla fascia, solo su schermi larghi. */
@media (min-width: 901px) { .apertura--foto::before { background: url(assets/img/filigrana.svg) 0 0 / 220px 150px repeat, var(--rubrica); } }
.apertura__dentro { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; padding-top: 72px; padding-bottom: 72px; }
.apertura__testo { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.apertura__occhiello { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.etichetta { background: var(--rubrica); color: var(--inchiostro); padding: 5px 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
a.etichetta:hover { text-decoration: none; box-shadow: 3px 3px 0 var(--giallo); }
.apertura__titolo { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.42; text-wrap: balance; }
.apertura__titolo, .apertura__titolo a { color: var(--inchiostro); }
.apertura__titolo a:hover, .apertura__titolo a:focus-visible { text-decoration: none; }
/* Al passaggio del mouse l'evidenziatore giallo viene ripassato in fucsia. */
.apertura__titolo .hl {
	padding: 2px 10px;
	background-image: linear-gradient(#FF5FB0, #FF5FB0), linear-gradient(var(--giallo), var(--giallo));
	background-size: var(--hv, 0%) 100%, var(--hl, 100%) 100%;
	transition: background-size 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.apertura__titolo a:hover .hl, .apertura__titolo a:focus-visible .hl { --hv: 100%; }
.cc-anima .apertura__titolo .hl, .cc-anima .fig__titolo .hl { transition: none; }
.apertura__data { font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: none; }
.apertura__sommario { margin: 0; font-size: 18px; line-height: 1.55; max-width: 34em; text-wrap: pretty; }
.apertura__autore { font-size: 14px; font-weight: 700; }
.apertura__autore a { color: var(--carta); }
.bottone { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; background: var(--giallo); color: var(--inchiostro); font-size: 16px; font-weight: 800; border: 3px solid var(--carta); }
.bottone:hover { text-decoration: none; background: var(--carta); }
.apertura__immagine { flex: 1 1 480px; min-width: 0; display: flex; justify-content: center; }
.figurona { margin: 0; width: 100%; max-width: 560px; background: var(--bianco); padding: 14px 14px 0; box-shadow: 12px 12px 0 var(--giallo); transform: rotate(2deg); transition: transform 0.25s ease, box-shadow 0.25s ease; }
/* La figurina grande si raddrizza e si solleva. */
.figurona:hover { transform: rotate(0deg) translateY(-7px); box-shadow: 16px 19px 0 var(--giallo); }
.figurona img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figurona figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px; color: var(--inchiostro); font-size: 14px; font-weight: 800; }
.figurona .etichetta { letter-spacing: 0; text-transform: none; font-size: 14px; padding: 4px 10px; }

/* ---------- Sezioni ---------- */
.sezione { padding-top: 80px; padding-bottom: 80px; }
.sezione--stretta { padding-top: 0; padding-bottom: 88px; }
.sezione__testa { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 44px; }
.sezione__titolo { font-size: clamp(28px, 3vw, 38px); }
.sezione__link { font-size: 15px; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Figurine ---------- */
.album { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 44px 28px; }
.album--fisso { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.fig { background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 7px 7px 0 var(--inchiostro); transform: rotate(var(--r, 0deg)); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fig:hover, .fig:focus-within { transform: rotate(0deg) translateY(-6px); box-shadow: 11px 13px 0 var(--inchiostro); }
.fig__foto { display: block; background: var(--rubrica); }
.fig__foto img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fig__vuota { display: block; aspect-ratio: 16 / 9; background: var(--rubrica); background-image: radial-gradient(var(--inchiostro) 1.5px, transparent 1.6px); background-size: 12px 12px; }
.fig__fascia { background: var(--rubrica); border-top: 3px solid var(--inchiostro); border-bottom: 3px solid var(--inchiostro); padding: 6px 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.fig__corpo { padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.fig__titolo { font-size: 19px; line-height: 1.42; }
/* Al passaggio del mouse il giallo del titolo viene ripassato nel colore della rubrica. */
.fig { --ripasso: var(--rubrica); }
.fig__titolo .hl { background-image: linear-gradient(var(--ripasso), var(--ripasso)), linear-gradient(var(--giallo), var(--giallo)); background-size: var(--hv, 0%) 100%, var(--hl, 100%) 100%; transition: background-size 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fig:hover .fig__titolo .hl, .fig:focus-within .fig__titolo .hl { --hv: 100%; }
.fig__autore { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--grigio); }
.fig__autore a { color: var(--grigio); }
.manca { border: 3px dashed var(--inchiostro); min-height: 300px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.manca:hover { text-decoration: none; background: var(--bianco); }
.manca__su { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.manca__titolo { font-size: 24px; line-height: 1.3; font-weight: 800; }
.manca__giu { font-size: 15px; font-weight: 700; }

/* ---------- Tessere delle rubriche ---------- */
.tessere { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 24px 20px; }
.tessera { background: var(--rubrica); border: 3px solid var(--inchiostro); box-shadow: 6px 6px 0 var(--inchiostro); padding: 18px 16px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tessera:hover { text-decoration: none; transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--inchiostro); }
.tessera__nome { font-size: 19px; line-height: 1.25; font-weight: 800; }
.tessera__conto { font-size: 13px; font-weight: 700; }

/* ---------- Testa degli archivi ---------- */
.archivio-testa { background: var(--rubrica); border-bottom: 3px solid var(--inchiostro); }
.archivio-testa__dentro { padding-top: 48px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.archivio-testa__su { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.archivio-testa__titolo { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.15; }
.archivio-testa__conto { font-size: 15px; font-weight: 700; }
.paginazione { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.paginazione .page-numbers { min-width: 46px; min-height: 46px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--inchiostro); background: var(--bianco); font-weight: 800; font-size: 15px; }
.paginazione .page-numbers.current { background: var(--giallo); }
.paginazione .page-numbers.dots { border-color: transparent; background: none; }
.paginazione a.page-numbers:hover { text-decoration: none; box-shadow: 4px 4px 0 var(--inchiostro); }
.cerca { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cerca input[type="search"] { min-height: 48px; min-width: min(320px, 100%); padding: 0 14px; border: 3px solid var(--inchiostro); background: var(--bianco); font: inherit; font-weight: 600; color: var(--inchiostro); }
.cerca button { min-height: 48px; padding: 0 20px; border: 3px solid var(--inchiostro); background: var(--inchiostro); color: var(--carta); font: inherit; font-weight: 800; cursor: pointer; }
.nulla { font-size: 20px; font-weight: 700; }

/* ---------- Articolo ---------- */
.apertura--articolo .apertura__dentro { padding-top: 56px; padding-bottom: 64px; }
.autore-box { display: inline-flex; align-items: center; gap: 16px; padding: 12px 22px 12px 12px; background: var(--carta); color: var(--inchiostro); border: 3px solid var(--inchiostro); box-shadow: 6px 6px 0 var(--rubrica); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.autore-box:hover, .autore-box:focus-visible { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--rubrica); }
.autore-box__quadro { width: 60px; height: 60px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--rubrica); border: 3px solid var(--inchiostro); font-size: 21px; font-weight: 800; transform: rotate(-4deg); transition: transform 0.25s ease; }
.autore-box:hover .autore-box__quadro, .autore-box:focus-visible .autore-box__quadro { transform: rotate(0deg); }
.autore-box__foto { display: block; width: 100%; height: 100%; object-fit: cover; }
.autore-box__testo { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.autore-box__su { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.autore-box__nome { font-size: 22px; font-weight: 800; }
/* La pagina ha il fondo a retino; il testo sta su un foglio bianco. */
.articolo { background-color: var(--carta); background-image: radial-gradient(rgba(21, 30, 54, 0.17) 1.6px, transparent 1.7px); background-size: 14px 14px; padding-bottom: 72px; }
.avanzamento { position: fixed; top: 0; left: 0; right: 0; height: 7px; z-index: 30; pointer-events: none; }
.avanzamento__barra { display: block; height: 100%; background: var(--rubrica); box-shadow: 0 2px 0 var(--inchiostro); transform: scaleX(0); transform-origin: left center; }

/* Il testo sta in una colonna stretta; figurine e gallerie escono dalla colonna. */
.testo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); max-width: 940px; margin: 56px auto 0; padding: 60px 56px 40px; background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 10px 10px 0 var(--inchiostro); font-size: 18px; line-height: 1.75; }
.pagina .testo { margin-top: 32px; margin-bottom: 72px; }
.testo > * { grid-column: 2; margin: 0 0 1.4em; min-width: 0; }
.testo h2, .testo h3 { display: flex; align-items: baseline; gap: 12px; }
.testo h2::before, .testo h3::before { content: ""; flex: none; background: var(--rubrica); border: 3px solid var(--inchiostro); transform: scale(var(--q, 1)) rotate(calc((1 - var(--q, 1)) * -180deg)); }
.testo h2 { font-size: 31px; margin-top: 1.5em; margin-bottom: 0.6em; padding-top: 26px; border-top: 3px solid var(--inchiostro); }
.testo h2::before { width: 17px; height: 17px; }
.testo > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.testo > h3:first-child { margin-top: 0; }
.testo h3 { font-size: 24px; margin-top: 1.3em; margin-bottom: 0.6em; }
.testo h3::before { width: 13px; height: 13px; }
.testo h2 + h3 { margin-top: -0.2em; font-size: 20px; }
.testo h2 + h3::before { display: none; }
.testo h4 { font-size: 20px; margin-top: 1.2em; margin-bottom: 0.5em; }
.testo a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.testo a:hover { background: var(--giallo); }
.testo blockquote { padding: 4px 0 4px 22px; border-left: 6px solid var(--giallo); font-weight: 700; }
.testo ul, .testo ol { padding-left: 1.3em; }
.testo table { width: 100%; border-collapse: collapse; font-size: 16px; }
.testo th, .testo td { border: 2px solid var(--inchiostro); padding: 8px 10px; text-align: left; }

/* Titoletti con i dati: numero di classifica, tabellone della partita, caselle con i numeri. */
.testo .tit { align-items: flex-start; }
.testo .tit::before { margin-top: 0.42em; }
.testo .tit--num::before, .testo .tit--partita::before { display: none; }
.tit__num { flex: none; min-width: 1.9em; padding: 3px 10px; background: var(--inchiostro); color: var(--carta); text-align: center; line-height: 1.25; box-shadow: 4px 4px 0 var(--rubrica); }
.tit__corpo { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
.tit__sopra { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; }
.tit__sopra::before { content: ""; flex: none; width: 16px; height: 3px; background: var(--inchiostro); }
.tit__nome small { font-size: 0.6em; font-weight: 600; }
.tit__sotto { font-size: 15px; font-weight: 700; line-height: 1.35; }
.tit__caselle { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.casella { display: flex; flex-direction: column; align-items: center; min-width: 66px; padding: 5px 12px 6px; background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 4px 4px 0 var(--rubrica); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; }
.casella b { font-size: 25px; font-weight: 800; letter-spacing: 0; line-height: 1.1; }
.tabellone { display: inline-flex; flex-wrap: wrap; align-items: stretch; max-width: 100%; background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 5px 5px 0 var(--rubrica); }
.tabellone__sq { display: flex; align-items: center; padding: 8px 14px; font-size: 0.78em; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.2; }
.tabellone__ris { display: flex; align-items: center; padding: 6px 14px; background: var(--inchiostro); color: var(--giallo); font-size: 1.15em; letter-spacing: 0.05em; white-space: nowrap; }
.tabellone__ris small { margin-left: 7px; font-size: 0.5em; }

/* Stemmi delle squadre: l'immagine caricata, la bandiera storica oppure il quadrato con la sigla. */
.stemma { display: block; flex: none; object-fit: contain; }
.stemma--sigla { display: flex; align-items: center; justify-content: center; background: rgba(21, 30, 54, 0.55); color: var(--carta); border: 3px solid var(--carta); font-weight: 800; line-height: 1; }
.stemma--bandiera { box-shadow: 2px 2px 0 rgba(21, 30, 54, 0.5); }

/* Articoli sulle maglie: lo scaffale degli stemmi dopo l'introduzione. */
.testo .armadio { grid-column: 1 / -1; margin: 0.4em 0 1.2em; }
.armadio__guida { margin: 0 0 16px; font-size: 14px; font-weight: 800; }
.armadio__griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.testo a.armadio__voce { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 10px; background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 5px 5px 0 var(--rubrica); color: var(--inchiostro); text-decoration: none; background-image: none; transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s ease; }
.testo a.armadio__voce:hover, .testo a.armadio__voce:focus-visible { transform: translateY(-4px) rotate(-2deg); box-shadow: 7px 7px 0 var(--inchiostro); }
.armadio__voce:nth-child(even):hover, .armadio__voce:nth-child(even):focus-visible { transform: translateY(-4px) rotate(2deg); }
.armadio .stemma { width: 46px; height: 54px; object-fit: contain; filter: url(#cc-contorno); }
.armadio .stemma--sigla { width: 46px; height: 46px; font-size: 14px; filter: none; }
.armadio .stemma--bandiera { width: 54px; height: 36px; filter: none; }
.armadio__nome { font-size: 12px; font-weight: 800; letter-spacing: 0.03em; line-height: 1.2; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
.testo h2.armadio__tappa { scroll-margin-top: 18px; background-origin: content-box; background-clip: content-box; background-image: linear-gradient(var(--rubrica), var(--rubrica)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 100%; }
.testo h2.armadio__tappa:focus { outline: none; }
.testo h2.armadio__tappa.arrivo { animation: cc-arrivo 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.testo h2.armadio__tappa.arrivo::before { animation: cc-arrivo-q 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.4); }
@keyframes cc-arrivo { 0% { background-size: 0% 100%; } 30% { background-size: 100% 100%; } 70% { background-size: 100% 100%; background-position: 100% 100%; } 100% { background-size: 0% 100%; background-position: 100% 100%; } }
@keyframes cc-arrivo-q { 0% { transform: scale(0.2) rotate(-180deg); } 100% { transform: none; } }
.testo a.armadio__su, .armadio__su { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--giallo); color: var(--inchiostro); border: 3px solid var(--inchiostro); box-shadow: 4px 4px 0 var(--inchiostro); font-size: 14px; font-weight: 800; text-decoration: none; background-image: none; opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity 0.25s ease, transform 0.25s ease; }
.testo a.armadio__su.visibile, .armadio__su.visibile { opacity: 1; pointer-events: auto; transform: none; }
.testo a.armadio__su:hover, .testo a.armadio__su:focus-visible { box-shadow: 6px 6px 0 var(--inchiostro); transform: translateY(-2px); }

/* Titolo di una partita: il sipario. Le due metà hanno i colori delle squadre e si chiudono dai lati. */
.testo > .tit--sipario, .testo .tit--sipario { display: block; grid-column: 1 / -1; margin-top: 2.4em; margin-bottom: 1.3em; }
.testo .tit--sipario::before { display: none; }
.tit--sipario > .tit__nome, .tit--sipario > .tit__sopra, .tit--sipario > .tit__sotto { display: flex; margin: 0 0 10px; }
.tit--sipario > .tit__sotto, .tit--sipario > .tit__caselle { margin: 14px 0 0; }
.tit--sipario > .tit__num { display: inline-block; margin: 0 0 10px; }
.sipario { position: relative; display: flex; min-height: 132px; overflow: hidden; background: var(--inchiostro); border: 3px solid var(--inchiostro); box-shadow: 7px 7px 0 var(--rubrica); }
.sipario__meta { position: relative; flex: 1 1 50%; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px 22px; background: var(--sq, var(--inchiostro)); overflow: hidden; }
.sipario__meta--casa { padding-right: 92px; }
.sipario__meta--fuori { justify-content: flex-end; padding-left: 92px; text-align: right; }
.sipario__meta > * { position: relative; z-index: 1; }
.sipario__sigla { display: none; text-decoration: none; }
/* L'effetto bandiera: un'onda di luce e ombra che attraversa i colori. */
.sipario__meta::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.26) 18%, rgba(0, 0, 0, 0.22) 38%, rgba(255, 255, 255, 0.2) 58%, rgba(0, 0, 0, 0.16) 78%, rgba(255, 255, 255, 0) 100%); background-size: 220% 100%; background-position: 120% 0; }
.sipario .stemma { width: 62px; height: 74px; filter: url(#cc-contorno); }
.sipario .stemma--sigla { width: 60px; height: 60px; font-size: 19px; filter: none; }
.sipario .stemma--bandiera { width: 72px; height: 48px; filter: none; }
.sipario__nome { min-width: 0; padding: 5px 11px; background: var(--inchiostro); color: var(--carta); font-size: 22px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.sipario__centro { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); }
.sipario__colpo { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.sipario__data { padding: 3px 10px; background: var(--inchiostro); color: var(--carta); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.sipario__ris { padding: 0 15px; background: var(--giallo); color: var(--inchiostro); border: 3px solid var(--inchiostro); font-size: 40px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.sipario__ris small { font-size: 0.4em; }
.elenco__scheda .sipario__data { display: none; }
@keyframes cc-da-sinistra { from { transform: translateX(-101%); } to { transform: none; } }
@keyframes cc-da-destra { from { transform: translateX(101%); } to { transform: none; } }
@keyframes cc-colpo { 0%, 60% { transform: scale(0); } 85% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes cc-onda { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.js .sipario:not(.in-campo) .sipario__meta--casa { transform: translateX(-101%); }
.js .sipario:not(.in-campo) .sipario__meta--fuori { transform: translateX(101%); }
.js .sipario:not(.in-campo) .sipario__colpo { transform: scale(0); }
.sipario.in-campo .sipario__meta--casa { animation: cc-da-sinistra 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.sipario.in-campo .sipario__meta--fuori { animation: cc-da-destra 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.sipario.in-campo .sipario__colpo { animation: cc-colpo 0.9s ease-out backwards; }
.sipario.in-campo .sipario__meta::after { animation: cc-onda 2.2s linear 0.5s 2; }
.sipario.in-campo:hover .sipario__meta::after { animation: cc-onda 2.2s linear infinite; }

/* Elenco di partite: una riga per partita, come un calendario; il racconto si apre sotto la riga. */
.testo .elenco { grid-column: 1 / -1; margin: 0.6em 0 2.4em; }
.elenco__guida, .elenco__riga { display: none; }
.js .elenco__guida { display: block; margin: 0 0 16px; font-size: 14px; font-weight: 800; }
.js .elenco__riga { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto minmax(0, 1fr) 22px; align-items: center; gap: 14px; width: 100%; margin: -3px 0 0; padding: 9px 14px; text-align: left; font: inherit; font-weight: 800; color: var(--inchiostro); background-color: var(--bianco); background-image: linear-gradient(var(--rubrica), var(--rubrica)); background-repeat: no-repeat; background-size: 0% 100%; border: 3px solid var(--inchiostro); cursor: pointer; transition: background-size 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .elenco__voce:first-of-type .elenco__riga { margin-top: 0; }
.elenco__riga:hover, .elenco__riga:focus-visible, .elenco__riga.aperta { background-size: 100% 100%; }
.elenco__riga:focus-visible { position: relative; z-index: 1; }
.elenco__data { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.3; text-transform: uppercase; }
.elenco__chi { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.elenco__sq { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; line-height: 1.2; text-transform: uppercase; }
.elenco__sq--casa { justify-content: flex-end; text-align: right; }
.elenco__nome { min-width: 0; overflow-wrap: anywhere; }
.elenco .elenco__riga .stemma { width: 30px; height: 34px; }
.elenco .elenco__riga .stemma--sigla { width: 30px; height: 30px; font-size: 10px; border-width: 2px; background: var(--inchiostro); }
.elenco .elenco__riga .stemma--bandiera { width: 36px; height: 24px; }
.elenco__ris { min-width: 58px; padding: 1px 9px; background: var(--inchiostro); color: var(--giallo); font-size: 19px; letter-spacing: 0.04em; text-align: center; white-space: nowrap; }
.elenco__libero { grid-column: 1 / 5; }
.elenco__freccia { width: 11px; height: 11px; justify-self: end; border-right: 3px solid var(--inchiostro); border-bottom: 3px solid var(--inchiostro); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease; }
.elenco__riga.aperta .elenco__freccia { transform: rotate(225deg) translate(-3px, -3px); }
.elenco__scheda { margin: 0 0 2.2em; }
.elenco__scheda > p { margin: 0 0 1.1em; }
.elenco__scheda > figure { margin: 0 0 1.4em; }
.js .elenco__scheda { display: none; margin: 0 0 18px; padding: 24px 26px 20px; background: var(--carta); border: 3px solid var(--inchiostro); border-top: 0; box-shadow: 7px 7px 0 var(--rubrica); font-size: 17px; line-height: 1.7; }
.js .elenco__scheda.aperta { display: block; animation: cc-scheda 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .elenco__scheda:focus { outline: none; }
.js .elenco__scheda .tit--sipario { margin-top: 0; }
.js .elenco__scheda > figure { padding: 8px; background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 5px 5px 0 var(--inchiostro); }
.js .elenco__scheda > figure img { display: block; width: 100%; height: auto; }
.js .elenco__scheda h4 { margin: 1.6em 0 0.8em; }

/* Rosa a figurine: ogni giocatore è una figurina, la scheda si apre sotto la sua riga. */
.testo .rosa { grid-column: 1 / -1; margin: 0.6em 0 2.4em; }
.rosa__guida, .rosa__fig { display: none; }
.rosa__scheda { margin: 0 0 2.2em; }
.rosa__scheda > p { margin: 0 0 1.1em; }
.rosa__scheda > figure { margin: 0 0 1.4em; }
.js .rosa__guida { display: block; margin: 0 0 22px; font-size: 14px; font-weight: 800; }
.js .rosa__griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: row dense; gap: 28px 20px; }
.js .rosa__voce { display: contents; }
.js .rosa__fig { display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: var(--inchiostro); background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 5px 5px 0 var(--inchiostro); transform: rotate(var(--r, 0deg)); transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; cursor: pointer; }
.rosa__fig:hover, .rosa__fig:focus-visible { transform: rotate(0deg) translateY(-6px); box-shadow: 8px 11px 0 var(--inchiostro); }
.rosa__fig:active { transform: scale(0.95); box-shadow: 3px 3px 0 var(--inchiostro); }
.rosa__fig.aperta { background: var(--rubrica); transform: rotate(0deg) translateY(-6px); box-shadow: 8px 11px 0 var(--inchiostro); }
.rosa__foto { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 3px solid var(--inchiostro); background-color: var(--rubrica); background-image: radial-gradient(var(--inchiostro) 1.5px, transparent 1.6px); background-size: 12px 12px; }
.rosa__foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.rosa__nome { padding: 10px 10px 3px; font-size: 15px; font-weight: 800; line-height: 1.25; }
.rosa__dati { margin-top: auto; padding: 0 10px 11px; font-size: 12px; font-weight: 700; line-height: 1.35; }
@keyframes cc-scheda { from { clip-path: inset(0 -20px 100% 0); opacity: 0.3; transform: translateY(-12px); } to { clip-path: inset(0 -20px -20px 0); opacity: 1; transform: none; } }
.js .rosa__scheda { display: none; grid-column: 1 / -1; margin: 0; padding: 26px 28px 22px; background: var(--carta); border: 3px solid var(--inchiostro); box-shadow: 7px 7px 0 var(--rubrica); font-size: 17px; line-height: 1.7; }
.js .rosa__scheda.aperta { display: block; animation: cc-scheda 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rosa__scheda:focus { outline: none; }
.js .rosa__scheda .tit { margin-top: 0; margin-bottom: 0.9em; }
.js .rosa__scheda > figure { float: left; width: min(250px, 38%); margin: 4px 28px 14px 0; padding: 8px; background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 5px 5px 0 var(--inchiostro); transform: rotate(-1.5deg); }
.rosa__nav { clear: both; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
.rosa__nav button { min-height: 44px; padding: 0 14px; background: var(--bianco); border: 3px solid var(--inchiostro); font: inherit; font-size: 14px; font-weight: 800; color: var(--inchiostro); cursor: pointer; transition: background-color 0.15s ease; }
.rosa__nav button:hover, .rosa__nav button:focus-visible { background: var(--giallo); }
.rosa__nav .rosa__chiudi { margin-left: auto; background: var(--inchiostro); color: var(--carta); }
.rosa__nav .rosa__chiudi:hover, .rosa__nav .rosa__chiudi:focus-visible { background: var(--porpora); }

/* Immagine singola: una figurina grande, leggermente inclinata. */
.testo > figure { grid-column: 1 / -1; justify-self: center; max-width: min(1020px, calc(100vw - 40px)); margin: 0.9em 0 2.4em; padding: 10px; background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 8px 8px 0 var(--inchiostro); transform: rotate(var(--r, 0deg)); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.testo > figure:nth-of-type(odd) { --r: -1.1deg; }
.testo > figure:nth-of-type(even) { --r: 0.9deg; }
.testo figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; cursor: zoom-in; }
.testo figure figcaption { margin-top: 10px; padding: 0 4px 2px; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; }
.testo > figure:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 11px 13px 0 var(--inchiostro); }

/* Video: l'anteprima sta sul sito, il lettore di YouTube arriva solo al clic. */
.testo > figure.wp-block-embed, .testo > figure.wp-block-video { justify-self: stretch; grid-column: 2; max-width: none; transform: none; padding: 0; border: 0; box-shadow: none; }
.testo > figure.wp-block-embed:hover { transform: none; box-shadow: none; }
.video__avvia { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 3px solid var(--inchiostro); box-shadow: 8px 8px 0 var(--rubrica); background-color: var(--inchiostro); background-image: radial-gradient(rgba(247, 245, 238, 0.18) 1.6px, transparent 1.7px); background-size: 14px 14px; cursor: pointer; }
.testo .video__foto { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.video__tasto { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--giallo); border: 3px solid var(--inchiostro); box-shadow: 5px 5px 0 var(--inchiostro); transition: transform 0.2s ease, background-color 0.2s ease; }
.video__tasto::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -15px 0 0 -9px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--inchiostro); }
.video__avvia:hover .video__tasto, .video__avvia:focus-visible .video__tasto { transform: scale(1.1) rotate(-4deg); background: var(--rubrica); }
.video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 3px solid var(--inchiostro); box-shadow: 8px 8px 0 var(--rubrica); }
.video__nota { margin: 14px 0 0; font-size: 13px; font-weight: 600; line-height: 1.5; }

/* Galleria: una pagina d'album. */
.testo .gallery { grid-column: 1 / -1; justify-self: center; width: min(1000px, calc(100vw - 40px)); display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 24px; margin: 0.6em 0 2.4em; }
.testo .gallery figure { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; margin: 0; display: flex; flex-direction: column; background: var(--bianco); border: 3px solid var(--inchiostro); box-shadow: 6px 6px 0 var(--inchiostro); transform: rotate(var(--r, 0deg)); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.testo .gallery figure:nth-child(3n+1) { --r: -1.3deg; }
.testo .gallery figure:nth-child(3n+2) { --r: 0.8deg; }
.testo .gallery figure:nth-child(3n) { --r: -0.5deg; }
.testo .gallery figure:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 9px 11px 0 var(--inchiostro); }
.testo .gallery figure img { width: 100%; padding: 14px 14px 8px; }
.testo .gallery figure figcaption { margin-top: auto; padding: 7px 8px; background: var(--rubrica); border-top: 3px solid var(--inchiostro); font-size: 13px; font-weight: 800; }

/* Ingrandimento al clic. */
.lente { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 72px; background: rgba(21, 30, 54, 0.95); }
.lente[hidden] { display: none; }
.lente__foto { max-width: 100%; max-height: calc(100vh - 150px); background: var(--bianco); border: 4px solid var(--carta); box-shadow: 10px 10px 0 var(--giallo); }
.lente__testo { color: var(--carta); font-size: 15px; font-weight: 700; text-align: center; max-width: 60em; }
.lente__tasto { position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--carta); background: var(--giallo); color: var(--inchiostro); font: inherit; font-size: 22px; font-weight: 800; line-height: 1; cursor: pointer; }
.lente__tasto:hover { background: var(--carta); }
.lente__chiudi { top: 16px; right: 16px; }
.lente__prima { left: 12px; top: 50%; margin-top: -24px; }
.lente__dopo { right: 12px; top: 50%; margin-top: -24px; }

.articolo__coda { max-width: 940px; margin: 0 auto; padding: 40px 0 0; display: flex; flex-direction: column; gap: 28px; }
.tag-lista { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag-lista a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 3px solid var(--inchiostro); background: var(--bianco); font-size: 14px; font-weight: 800; }
.tag-lista a:hover { text-decoration: none; background: var(--giallo); }
.firma { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 24px; background: var(--inchiostro); color: var(--carta); box-shadow: 8px 8px 0 var(--rubrica); }
.firma__su { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.firma__nome { font-size: 26px; font-weight: 800; line-height: 1.2; }
.firma__link { color: var(--carta); font-size: 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.correlati { padding-top: 72px; }
.pagina__testa { max-width: 760px; margin: 0 auto; padding: 56px 32px 0; }
.pagina__titolo { font-size: clamp(30px, 4vw, 46px); }

/* ---------- Piè di pagina ---------- */
.piede { background: var(--inchiostro); color: var(--carta); }
.piede__dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px 48px; padding-top: 56px; padding-bottom: 56px; }
.piede__sinistra { display: flex; flex-direction: column; gap: 22px; flex: 1 1 420px; min-width: 0; }
.piede { overflow: hidden; }
.piede__logo { align-self: flex-start; display: block; }
.piede__logo .logo { height: 40px; }
.piede__menu { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }
.piede__menu a { color: var(--carta); min-height: 44px; padding: 0 4px; display: inline-flex; align-items: center; }
.piede__menu li:first-child a { margin-left: -4px; }
.piede__nota { font-size: 13px; }
.piede__disegno { width: 300px; max-width: 100%; }
.matita { display: block; width: 100%; height: auto; overflow: visible; }
/* Montaggio a tempo: gli anelli cadono al loro posto, poi la matita arriva e si blocca. */
@keyframes cc-anello { 0% { transform: translateY(-50px); opacity: 0; } 70% { transform: translateY(4px); opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes cc-asta { 0%, 42% { transform: translateX(-120px); opacity: 0; } 50% { opacity: 1; } 80% { transform: translateX(9px); opacity: 1; } 90% { transform: translateX(-3px); } 100% { transform: translateX(0); opacity: 1; } }
.js .matita:not(.montata) .matita__anello, .js .matita:not(.montata) .matita__asta { opacity: 0; }
.matita.montata .matita__anello { animation: cc-anello 0.45s ease-out backwards; }
.matita.montata .matita__anello:nth-of-type(2) { animation-delay: 0.15s; }
.matita.montata .matita__anello:nth-of-type(3) { animation-delay: 0.3s; }
.matita.montata .matita__asta { animation: cc-asta 1.5s ease-out backwards; }

/* ---------- Schermi piccoli ---------- */
@media (max-width: 1080px) {
	.apertura--foto::before { top: auto; left: 0; width: 100%; height: calc(min(62vw, 420px) + 48px); clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); }
}

/* Telefoni e tablet stretti: le rubriche stanno in un pannello che si apre dal tasto giallo. */
@media (max-width: 900px) {
	.testata__dentro { flex-wrap: nowrap; gap: 16px; }
	.testata__album { display: none; }
	.js .testata__tasto { display: inline-flex; flex: none; }
	.js .testata__rubriche { display: grid; grid-template-rows: 0fr; border-top-width: 0; visibility: hidden; transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s; }
	.js .testata__rubriche.aperta { grid-template-rows: 1fr; border-top-width: 3px; visibility: visible; transition: grid-template-rows 0.3s ease, visibility 0s; }
	.testata__pannello { min-height: 0; overflow: hidden; }
	.rubriche-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 18px; padding-bottom: 22px; font-size: 14px; font-weight: 800; }
	.rubriche-menu li { background: var(--rubrica); border: 3px solid var(--inchiostro); box-shadow: 4px 4px 0 var(--inchiostro); }
	.rubriche-menu a, .rubriche-menu li:first-child a { min-height: 60px; margin: 0; padding: 8px 12px; background-image: none; line-height: 1.25; }
	.rubriche-menu a::before { display: none; }
	.rubriche-menu .attiva { box-shadow: 4px 4px 0 var(--porpora); }
	.rubriche-menu__album { display: block; grid-column: 1 / -1; --rubrica: var(--giallo); }
	.rubriche-menu__album a { justify-content: center; }
}

@media (max-width: 700px) {
	.armadio__griglia { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
	.testo a.armadio__voce { padding: 10px 4px 8px; gap: 6px; box-shadow: 4px 4px 0 var(--rubrica); }
	.armadio .stemma { width: 36px; height: 42px; }
	.armadio .stemma--sigla { width: 36px; height: 36px; font-size: 12px; }
	.armadio__nome { font-size: 10px; }
	.armadio__su { right: 12px; bottom: 12px; }
	.contenitore { padding-left: 20px; padding-right: 20px; }
	.logo { height: 34px; }
	.apertura__dentro { padding-top: 48px; padding-bottom: 56px; gap: 44px; }
	.figurona { box-shadow: 8px 8px 0 var(--giallo); }
	.sezione { padding-top: 56px; padding-bottom: 56px; }
	.sezione--stretta { padding-top: 0; }
	.pagina__testa { padding-left: 20px; padding-right: 20px; }
	.articolo__coda { padding-left: 14px; padding-right: 14px; }
	.testo { font-size: 17px; margin: 32px 10px 0; padding: 36px 18px 24px; box-shadow: 6px 6px 0 var(--inchiostro); }
	.testo > figure { max-width: calc(100vw - 24px); box-shadow: 6px 6px 0 var(--inchiostro); }
	.testo .gallery { width: calc(100vw - 28px); }
	.autore-box__nome { font-size: 20px; }
	.apertura__occhiello { gap: 8px 12px; }
	.sipario { min-height: 84px; box-shadow: 5px 5px 0 var(--rubrica); }
	.sipario__meta { flex: 1 1 50%; gap: 8px; padding: 12px 6px; }
	.sipario__meta--casa { padding-right: 50px; }
	.sipario__meta--fuori { padding-left: 50px; }
	.sipario .stemma { width: 34px; height: 42px; }
	.sipario .stemma--sigla { width: 34px; height: 34px; font-size: 11px; border-width: 2px; }
	.sipario .stemma--bandiera { width: 38px; height: 26px; }
	.sipario__nome { padding: 3px 6px; font-size: 14px; letter-spacing: 0.04em; overflow-wrap: normal; white-space: nowrap; }
	.sipario__esteso { display: none; }
	.sipario__sigla { display: inline; }
	.sipario__colpo { gap: 4px; }
	.sipario__data { padding: 1px 5px; font-size: 9px; letter-spacing: 0.04em; }
	.sipario__ris { padding: 0 8px; font-size: 24px; border-width: 2px; }
	.js .elenco__riga { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 16px; gap: 6px 8px; padding: 8px 10px; }
	.elenco__data { grid-column: 1 / -1; padding-right: 24px; font-size: 11px; text-align: center; }
	.elenco__sq { font-size: 12px; gap: 6px; }
	.elenco .elenco__riga .stemma { width: 22px; height: 26px; }
	.elenco .elenco__riga .stemma--sigla { display: none; }
	.elenco__ris { min-width: 46px; font-size: 16px; padding: 1px 6px; }
	.elenco__libero { grid-column: 1 / 4; }
	.js .elenco__scheda { padding: 18px 14px 14px; font-size: 16px; box-shadow: 5px 5px 0 var(--rubrica); }
	.js .rosa__griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
	.js .rosa__scheda { padding: 20px 16px 16px; font-size: 16px; box-shadow: 5px 5px 0 var(--rubrica); }
	.js .rosa__scheda > figure { float: none; width: min(240px, 78%); margin: 0 auto 18px; }
	.rosa__nome { font-size: 14px; }
	.casella { min-width: 58px; padding: 4px 9px 5px; }
	.casella b { font-size: 21px; }
	.tabellone__sq { padding: 7px 10px; }
	.testo h2 { font-size: 25px; }
	.testo h3 { font-size: 21px; }
	.testo .gallery { gap: 22px 16px; }
	.testo .gallery figure { flex-basis: calc((100% - 16px) / 2); }
	.testo .gallery figure img { padding: 10px 10px 6px; }
	.lente { padding: 16px 12px 70px; }
	.lente__prima, .lente__dopo { top: auto; bottom: 12px; margin-top: 0; }
	.lente__prima { left: 50%; margin-left: -56px; }
	.lente__dopo { right: 50%; margin-right: -56px; }
}

/* ---------- Riduci movimento ---------- */
@media (prefers-reduced-motion: reduce) {
	.testo h2.armadio__tappa.arrivo, .testo h2.armadio__tappa.arrivo::before, .armadio__voce, .armadio__su { animation: none; transition: none; }
	.fig, .tessera, .apertura__titolo .hl, .fig__titolo .hl, .testo figure, .figurona, .autore-box, .autore-box__quadro, .rubriche-menu a, .testata__rubriche, .testata__righe span, .video__tasto, .testata__album, .sezione__link, .manca__giu, .fig__autore a, .apertura__autore a, .piede__menu a { transition: none !important; }
	.logo.scatta .logo__paletto, .matita.montata .matita__anello, .matita.montata .matita__asta { animation: none; }
	.rosa__fig, .rosa__nav button { transition: none !important; }
	.elenco__riga, .elenco__freccia { transition: none !important; }
	.sipario.in-campo .sipario__meta, .sipario.in-campo .sipario__colpo, .sipario.in-campo .sipario__meta::after, .sipario.in-campo:hover .sipario__meta::after { animation: none; }
	.js .rosa__scheda.aperta { animation: none; }
}
