/*
Theme Name: CMI Editoriale
Theme URI: https://caschimotoitalia.com
Description: Tema editoriale leggero per Caschi Moto Italia. Nessun page builder, nessun JS, un solo foglio di stile.
Author: Interactive and Design
Version: 1.0.0
Requires PHP: 8.0
Text Domain: cmi
*/

/* ---------- Font (self-hosted) ---------- */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-var.woff2") format("woff2-variations"), url("assets/fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "Plex Mono";
	src: url("assets/fonts/plex-mono-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

/* ---------- Token ---------- */
:root {
	--paper: #f2efe8;
	--paper-2: #e9e4d9;
	--card: #fbfaf6;
	--ink: #141414;
	--ink-2: #4a4843;
	--ink-3: #77736a;
	--rule: #d6d0c3;
	--asphalt: #1d1e21;
	--asphalt-2: #2b2d31;
	--hivis: #ff4f00;
	--hivis-ink: #c23c00;
	--ok: #2f6b3a;
	--ko: #a3301b;

	--f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--w: 1200px;
	--w-text: 70ch;
	--g: clamp(16px, 4vw, 40px);
	--r: 2px;
	--line: 1.5px solid var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--hivis-ink); }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: .02em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--g); }

/* Etichetta-kicker: maiuscoletto largo */
.kicker {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-variation-settings: "wdth" 125;
	color: var(--hivis-ink);
	text-decoration: none;
	margin-bottom: .6rem;
}
.sec-t {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	font-variation-settings: "wdth" 112;
	text-transform: uppercase;
	letter-spacing: .01em;
}

/* ---------- Bottoni ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .8em 1.15em;
	background: var(--ink);
	color: var(--paper);
	border: var(--line);
	border-radius: var(--r);
	font-weight: 700;
	font-size: .9rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-variation-settings: "wdth" 110;
	text-decoration: none;
	line-height: 1.1;
	transition: background-color .15s, color .15s;
}
.btn::after { content: "↗"; font-weight: 400; }
.btn:hover { background: var(--hivis); color: var(--ink); border-color: var(--ink); }
.btn--sm { padding: .5em .75em; font-size: .75rem; white-space: nowrap; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::after { content: "→"; }

/* ---------- Header ---------- */
.site-head { background: var(--asphalt); color: var(--paper); border-bottom: 4px solid var(--hivis); position: relative; z-index: 5; }
.site-head__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }
.brand {
	display: inline-flex;
	align-items: baseline;
	gap: .28em;
	margin: 0;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 900;
	font-size: 1.15rem;
	letter-spacing: .02em;
	font-variation-settings: "wdth" 125;
	color: inherit;
}
.brand:hover { color: inherit; }
.brand__b { color: var(--hivis); }
.brand__c { font-weight: 400; font-variation-settings: "wdth" 80; letter-spacing: .08em; }

.nav { position: static; }
.nav__toggle {
	list-style: none;
	cursor: pointer;
	font-family: var(--f-mono);
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	border: 1.5px solid var(--paper);
	padding: .45em .8em;
	border-radius: var(--r);
}
.nav__toggle::-webkit-details-marker { display: none; }
.nav[open] .nav__toggle { background: var(--paper); color: var(--asphalt); }
.nav__panel {
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: var(--asphalt);
	border-bottom: 4px solid var(--hivis);
	padding: 8px var(--g) 24px;
}
.nav__list { list-style: none; margin: 0 0 16px; padding: 0; }
.nav__list a {
	display: block;
	padding: .7em 0;
	border-bottom: 1px solid var(--asphalt-2);
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: .06em;
	font-variation-settings: "wdth" 115;
}
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--hivis); }

.nav-desk { display: none; }
@media (min-width: 960px) {
	.nav { display: none; }
	.nav-desk { display: flex; align-items: center; gap: 28px; }
	.nav-desk .nav__list { display: flex; gap: 22px; margin: 0; }
	.nav-desk .nav__list a { border: 0; padding: .2em 0; font-size: .82rem; border-bottom: 2px solid transparent; }
	.nav-desk .nav__list a:hover { border-bottom-color: var(--hivis); color: var(--paper); }
	.nav-desk .search__in { width: 180px; }
}

/* ---------- Ricerca ---------- */
.search { display: flex; gap: 0; }
.search__in {
	flex: 1;
	min-width: 0;
	font: inherit;
	font-size: .9rem;
	padding: .55em .8em;
	border: 1.5px solid currentColor;
	border-right: 0;
	border-radius: var(--r) 0 0 var(--r);
	background: transparent;
	color: inherit;
}
.search__in::placeholder { color: currentColor; opacity: .55; }
.search__go {
	font: inherit;
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 0 .9em;
	border: 1.5px solid currentColor;
	background: currentColor;
	border-radius: 0 var(--r) var(--r) 0;
	cursor: pointer;
}
.site-head .search__go { color: var(--asphalt); background: var(--paper); border-color: var(--paper); }
.site-main .search { max-width: 520px; margin: 24px 0; }
.site-main .search__go { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* ---------- Home: masthead ---------- */
.mast { border-bottom: var(--line); }
.mast__grid { display: grid; gap: 40px; padding-block: clamp(40px, 7vw, 88px); }
.mast__t {
	font-size: clamp(2.4rem, 6.4vw, 5.2rem);
	font-weight: 900;
	text-transform: uppercase;
	font-variation-settings: "wdth" 72;
	letter-spacing: -.005em;
	line-height: .95;
	margin-bottom: .35em;
	max-width: 12ch;
}
.mast__x { max-width: 46ch; color: var(--ink-2); font-size: 1.1rem; }
@media (min-width: 900px) {
	.mast__grid { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; }
}

/* Selettore: scheda tecnica a righe */
.picker { border: var(--line); background: var(--card); }
.picker__q {
	margin: 0;
	padding: 12px 16px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--f-mono);
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .12em;
}
.picker__list { list-style: none; margin: 0; padding: 0; }
.picker__row {
	display: grid;
	grid-template-columns: 2.2em 1fr auto;
	grid-template-areas: "n use go" "n type go";
	column-gap: 12px;
	padding: 14px 16px;
	border-top: 1px solid var(--rule);
	text-decoration: none;
	transition: background-color .15s;
}
.picker__list li:first-child .picker__row { border-top: 0; }
.picker__n { grid-area: n; color: var(--ink-3); padding-top: .2em; }
.picker__use { grid-area: use; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; }
.picker__type { grid-area: type; font-weight: 800; font-size: 1.2rem; font-variation-settings: "wdth" 110; line-height: 1.2; }
.picker__type small { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-2); font-variation-settings: "wdth" 100; margin-top: 2px; }
.picker__go { grid-area: go; align-self: center; font-size: 1.4rem; transition: transform .15s; }
.picker__row:hover { background: var(--hivis); color: var(--ink); }
.picker__row:hover .picker__n, .picker__row:hover .picker__use, .picker__row:hover small { color: var(--ink); }
.picker__row:hover .picker__go { transform: translateX(4px); }

/* ---------- Home: foglio tempi ---------- */
.timing { padding-block: clamp(40px, 6vw, 72px); }
.timing__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; border-bottom: var(--line); padding-bottom: 10px; }
.timing__head .sec-t { margin: 0; }
.timing__note { color: var(--ink-3); margin: 0; }
.timing__list { list-style: none; margin: 0; padding: 0; }
.timing__row {
	display: grid;
	grid-template-columns: 3em 1fr;
	grid-template-areas: "pos t" "pos meta";
	column-gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--rule);
	align-items: baseline;
}
.timing__pos { grid-area: pos; font-size: .95rem; color: var(--ink-3); }
.timing__row:first-child .timing__pos { color: var(--hivis-ink); }
.timing__t { grid-area: t; font-weight: 700; font-size: 1.15rem; text-decoration: none; line-height: 1.3; }
.timing__t:hover { text-decoration: underline; }
.timing__k { grid-area: meta; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.timing__d { display: none; color: var(--ink-3); }
@media (min-width: 720px) {
	.timing__row { grid-template-columns: 4em 1fr 10em 7em; grid-template-areas: "pos t meta d"; }
	.timing__d { display: block; grid-column: 4; text-align: right; }
}

/* ---------- Firma: etichetta di omologazione ---------- */
.ece {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	align-items: center;
	width: 100%;
	max-width: 220px;
	padding: 10px 12px;
	background: #fff;
	color: var(--ink);
	border: 1.5px solid var(--ink);
	border-radius: 3px;
	box-shadow: 3px 3px 0 var(--ink);
	font-family: var(--f-mono);
}
.ece::before {
	/* cucitura del cinturino */
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px dashed var(--rule);
	border-radius: 2px;
	pointer-events: none;
}
.ece__e {
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 2.4em;
	height: 2.4em;
	border: 2px solid var(--ink);
	border-radius: 50%;
	font-family: var(--f-sans);
	font-weight: 900;
	font-size: 1.05rem;
}
.ece__std { font-size: .78rem; font-weight: 500; letter-spacing: .04em; }
.ece__code { font-size: .7rem; color: var(--ink-3); letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; }
.ece__pos {
	position: absolute;
	top: -10px; right: -8px;
	background: var(--hivis);
	color: var(--ink);
	border: 1.5px solid var(--ink);
	font-size: .72rem;
	padding: 1px 6px;
	font-weight: 500;
}
.ece--xl { max-width: 320px; padding: 18px 20px; font-size: 1.3rem; box-shadow: 6px 6px 0 var(--hivis); }
.ece--xl .ece__e { font-size: 1.6rem; }
.ece--xl .ece__std { font-size: 1.05rem; }
.ece--xl .ece__code { font-size: .85rem; }
.ece--xl .ece__pos { font-size: .9rem; top: -14px; }

.ece-band { background: var(--asphalt); color: var(--paper); }
.ece-band__grid { display: grid; gap: 40px; padding-block: clamp(48px, 7vw, 88px); align-items: center; }
.ece-band__txt p { color: #cfcac0; max-width: 60ch; }
.ece-band__txt strong { color: var(--paper); }
.ece-band .btn--ghost { color: var(--paper); border-color: var(--paper); }
.ece-band .btn--ghost:hover { background: var(--hivis); color: var(--ink); border-color: var(--hivis); }
.ece-band .ece { transform: rotate(-2.5deg); }
@media (min-width: 900px) { .ece-band__grid { grid-template-columns: 340px 1fr; gap: 72px; } }

/* ---------- Categorie ---------- */
.cats { padding-block: clamp(40px, 6vw, 72px); }
.cats__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: var(--line); }
.cats__list li { flex: 1 1 220px; }
.cats__list a {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 16px 14px 16px 0; margin-right: 14px;
	border-bottom: 1px solid var(--rule);
	text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.cats__list a:hover { color: var(--hivis-ink); border-bottom-color: var(--ink); }
.cats__list .mono { color: var(--ink-3); }

/* ---------- Archivi e liste ---------- */
.page-head { padding-block: clamp(32px, 5vw, 56px) 20px; border-bottom: var(--line); margin-bottom: 8px; }
.page-head__t { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; text-transform: uppercase; font-variation-settings: "wdth" 75; line-height: .98; }
.page-head__d { max-width: 60ch; color: var(--ink-2); }
.rows { display: grid; gap: 0; }
.row { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.row__k { margin: 0; }
.row__k .kicker { margin: 0; }
.row__t { font-size: 1.35rem; margin: .2em 0 .35em; font-variation-settings: "wdth" 100; }
.row__t a { text-decoration: none; }
.row__t a:hover { text-decoration: underline; }
.row__x { color: var(--ink-2); margin-bottom: .5em; max-width: 70ch; }
.row__m { color: var(--ink-3); margin: 0; }
@media (min-width: 900px) {
	.rows--3 { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
	.rows--3 .row { border-bottom: 0; border-top: var(--line); }
}
.pager { padding: 32px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pager .page-numbers { padding: .4em .75em; border: 1.5px solid var(--ink); text-decoration: none; font-family: var(--f-mono); font-size: .85rem; }
.pager .current { background: var(--ink); color: var(--paper); }
.empty { padding: 40px 0; font-size: 1.1rem; }

/* ---------- Articolo ---------- */
.article__head { padding-block: clamp(28px, 5vw, 56px) 8px; }
.article__t {
	font-size: clamp(2rem, 5.2vw, 4rem);
	font-weight: 900;
	text-transform: uppercase;
	font-variation-settings: "wdth" 75;
	line-height: .98;
	max-width: 20ch;
}
.article__m { color: var(--ink-3); margin-bottom: 18px; }
.crumbs { font-size: .8rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.crumbs p { margin: 0; }
.disclosure {
	max-width: var(--w-text);
	font-size: .85rem;
	color: var(--ink-2);
	border-top: 1px solid var(--rule);
	padding-top: 12px;
}
.disclosure__tag {
	font-family: var(--f-mono);
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	background: var(--paper-2);
	padding: 2px 6px;
	margin-right: 6px;
	color: var(--ink);
}

.prose {
	max-width: calc(var(--w-text) + 2 * var(--g));
	margin-inline: auto;
	padding-inline: var(--g);
	padding-bottom: 56px;
}
/* in apertura il testo si allinea alla testata, non al centro */
@media (min-width: 1100px) {
	.prose { margin-left: max(var(--g), calc((100vw - var(--w)) / 2)); padding-left: var(--g); }
}
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.8em; font-variation-settings: "wdth" 90; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--hivis-ink); }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--hivis); font-size: 1.15rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6em .7em; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { border-bottom: var(--line); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.prose img { margin: 1.5em 0; }
.prose > .board { margin-inline: 0; }
.article--legacy .article__body { padding-bottom: 56px; }

/* Indice (Easy TOC) senza riquadri di default */
.prose #ez-toc-container { background: transparent !important; border: 0 !important; border-top: var(--line) !important; border-bottom: 1px solid var(--rule) !important; box-shadow: none !important; padding: 12px 0 !important; margin: 0 0 2em !important; width: 100% !important; border-radius: 0 !important; }
.prose #ez-toc-container .ez-toc-title { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.prose #ez-toc-container a { color: var(--ink) !important; }

/* Verdetto / nota */
.verdict { border: var(--line); background: var(--card); padding: 18px 20px; margin: 0 0 2em; box-shadow: 4px 4px 0 var(--hivis); }
.verdict__t, .note__t { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5em; }
.verdict > :last-child, .note > :last-child { margin-bottom: 0; }
.note { border-left: 4px solid var(--ink); background: var(--paper-2); padding: 14px 18px; margin: 1.5em 0; }
.note--attenzione { border-left-color: var(--hivis); }
.cta-inline { margin: 1.5em 0; }

/* ---------- Comparatore / classifica ---------- */
.board { margin: 2.5em 0; }
.board__head { border-bottom: var(--line); padding-bottom: 8px; margin-bottom: 0; }
.board__title { font-size: 1.4rem; text-transform: uppercase; font-variation-settings: "wdth" 110; margin: 0; }
.board__meta { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); margin: 4px 0 0; }
.board__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.board__table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .92rem; margin: 0; }
.board__table th { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.board__table td { padding: 12px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.board__table tbody tr:hover { background: var(--card); }
.board__pos { font-family: var(--f-mono); color: var(--ink-3); width: 3em; }
.board__table tbody tr:first-child .board__pos { color: var(--hivis-ink); }
.board__name a { font-weight: 700; text-decoration: none; }
.board__name a:hover { text-decoration: underline; }
.board__score { font-weight: 900; font-size: 1.1rem; font-variation-settings: "wdth" 80; }
.flag {
	display: inline-block;
	margin-left: 8px;
	font-family: var(--f-mono);
	font-size: .66rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 1px 6px;
	background: var(--hivis);
	color: var(--ink);
	vertical-align: middle;
}
.flag--lg { margin: 0 0 .6em; font-size: .72rem; }

.specs { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: none; }
.spec {
	display: grid;
	gap: 22px;
	padding: 28px 0;
	border-top: var(--line);
	scroll-margin-top: 24px;
}
.spec__side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.spec__img { background: #fff; border: 1px solid var(--rule); padding: 12px; width: 100%; max-width: 220px; }
.spec__img img { margin: 0 auto; max-height: 200px; width: auto; }
.spec__title { font-size: 1.5rem; margin-bottom: .4em; font-variation-settings: "wdth" 95; }
.spec__data { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 1em; border: 1px solid var(--rule); }
.spec__data > div { flex: 1 1 120px; padding: 8px 12px; border-right: 1px solid var(--rule); }
.spec__data > div:last-child { border-right: 0; }
.spec__data dt { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.spec__data dd { margin: 0; font-weight: 700; }
.spec__text { color: var(--ink-2); }
.procon { display: grid; gap: 16px; margin: 1em 0 1.2em; }
.procon h4 { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .4em; }
.procon ul { list-style: none; margin: 0; padding: 0; }
.procon li { padding-left: 1.4em; position: relative; margin-bottom: .3em; font-size: .95rem; }
.procon__col--pro li::before { content: "+"; position: absolute; left: 0; font-weight: 900; color: var(--ok); }
.procon__col--con li::before { content: "−"; position: absolute; left: 0; font-weight: 900; color: var(--ko); }
.spec__cta { margin: 0; }
@media (min-width: 720px) {
	.spec { grid-template-columns: 220px 1fr; gap: 36px; }
	.procon { grid-template-columns: 1fr 1fr; }
}

/* ---------- Correlati ---------- */
.more { padding-block: 24px 64px; }

/* ---------- 404 ---------- */
.lost { padding-block: clamp(48px, 8vw, 120px); }
.lost__code { font-size: 1rem; color: var(--hivis-ink); margin: 0 0 8px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #cfcac0; border-top: 4px solid var(--hivis); font-size: .9rem; }
.site-foot__grid { display: grid; gap: 28px; padding-block: 48px 32px; }
.brand--foot { color: var(--paper); font-size: 1rem; }
.site-foot__claim { margin: 8px 0 0; max-width: 36ch; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list a { display: inline-block; padding: .3em 0; text-decoration: none; color: var(--paper); }
.foot-list a:hover { color: var(--hivis); }
.site-foot__legal { grid-column: 1 / -1; font-size: .8rem; color: #9a958b; border-top: 1px solid #2f2f2f; padding-top: 18px; margin: 0; }
.site-foot__copy { grid-column: 1 / -1; margin: 0; color: #77736a; }
@media (min-width: 720px) { .site-foot__grid { grid-template-columns: 2fr 1fr; } }

/* ---------- Contenuti legacy (WPBakery) in attesa di riscrittura ---------- */
.article--legacy .vc_row { margin-left: 0 !important; margin-right: 0 !important; }
.article--legacy .vc_custom_heading { font-family: var(--f-sans) !important; }
.article--legacy img { height: auto; }

/* ---------- WordPress core ---------- */
.alignwide { max-width: var(--w); }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .82rem; color: var(--ink-3); margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ---------- Consenso cookie ---------- */
.consent {
	position: fixed;
	left: 16px; right: 16px; bottom: 16px;
	z-index: 50;
	max-width: 560px;
	margin-left: auto;
	background: var(--card);
	border: var(--line);
	box-shadow: 5px 5px 0 var(--ink);
	padding: 16px 18px;
	display: grid;
	gap: 12px;
	font-size: .9rem;
}
.consent[hidden] { display: none; }
.consent__t { margin: 0; }
.consent__b { display: flex; gap: 8px; justify-content: flex-end; }
.consent .btn::after { content: none; }
.linkbtn { background: none; border: 0; padding: .3em 0; color: var(--paper); font: inherit; cursor: pointer; text-align: left; }
.linkbtn:hover { color: var(--hivis); }

/* ---------- Prezzi live ---------- */
.price { font-weight: 800; font-family: var(--f-sans); font-size: 1.05em; white-space: nowrap; font-variation-settings: "wdth" 90; }
.spec__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spec__cta .price { font-size: 1.4rem; }
.price-note { color: var(--ink-3); font-size: .72rem; margin: 8px 0 0; }
.spec__img img { aspect-ratio: auto; object-fit: contain; }

/* Classifica più larga del testo su desktop */
.board__table td.mono, .board__table td .price { white-space: nowrap; }
@media (min-width: 1100px) {
	.prose .board { width: calc(var(--w) - 2 * var(--g)); max-width: calc(100vw - 2 * var(--g) - 40px); }
	.prose .spec { grid-template-columns: 240px minmax(0, 70ch); }
}

/* Niente scroll orizzontale su mobile */
html, body { overflow-x: clip; }
.board__scroll { position: relative; }
.nav__panel .search { width: 100%; }
@media (max-width: 719px) {
	.spec__side { flex-direction: row; align-items: center; gap: 16px; }
	.spec__side .ece { flex: 1 1 auto; }
	.spec__img { max-width: 120px; padding: 6px; }
	.spec__img img { max-height: 110px; }
}

/* =========================================================
   Home v1.1: foto, card con prodotti, video, menu a tendina
   ========================================================= */

/* Menu a tendina */
.nav__list li { position: relative; }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 0 0 6px 14px; }
.nav__list .sub-menu a { text-transform: none; letter-spacing: 0; font-weight: 500; font-variation-settings: "wdth" 100; padding: .5em 0; color: #cfcac0; }
.nav-desk .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
@media (min-width: 960px) {
	.nav-desk .nav__list > li { padding: 20px 0; }
	.nav-desk .sub-menu {
		display: none;
		position: absolute;
		top: 100%; left: -18px;
		min-width: 250px;
		background: var(--asphalt);
		border-top: 3px solid var(--hivis);
		padding: 8px 0;
		box-shadow: 6px 6px 0 rgba(0,0,0,.25);
	}
	.nav-desk li:hover > .sub-menu, .nav-desk li:focus-within > .sub-menu { display: block; }
	.nav-desk .sub-menu a { display: block; padding: .55em 18px; font-size: .9rem; border: 0; color: #e6e1d6; }
	.nav-desk .sub-menu a:hover { background: var(--asphalt-2); color: var(--hivis); border: 0; }
}

/* Testata con foto */
.mast__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mast__photo { position: relative; margin: 0; }
.mast__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: var(--line); }
.mast__label { position: absolute; left: -14px; bottom: 28px; transform: rotate(-3deg); background: #fff; }
.mast__label .ece__code { font-size: .64rem; }
@media (min-width: 900px) {
	.mast__grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
	.mast__photo img { aspect-ratio: 4 / 5; max-height: 640px; }
	.mast__label { left: -40px; bottom: 48px; }
}
@media (max-width: 899px) {
	.mast__photo img { aspect-ratio: 16 / 11; }
	.mast__label { left: 10px; bottom: -16px; max-width: 200px; }
	.mast__grid { padding-bottom: 56px; }
}

.sec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; border-bottom: var(--line); padding-bottom: 10px; margin-bottom: 24px; }
.sec-head .sec-t { margin: 0; }
.sec-note { margin: 0; color: var(--ink-3); }

/* Selettore con prodotti */
.pick { padding-block: clamp(40px, 6vw, 72px) 8px; }
.pick__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pick__card {
	display: grid;
	height: 100%;
	grid-template-rows: auto 190px auto 1fr auto;
	gap: 6px;
	padding: 14px 16px 16px;
	background: var(--card);
	border: var(--line);
	text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}
.pick__card:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--hivis); }
.pick__n { color: var(--ink-3); font-size: .72rem; }
.pick__img { display: grid; place-items: center; background: #fff; margin: 4px -16px; border-block: 1px solid var(--rule); }
.pick__img img { max-height: 170px; width: auto; object-fit: contain; }
.pick__type { font-weight: 900; font-size: 1.5rem; text-transform: uppercase; font-variation-settings: "wdth" 80; line-height: 1; margin-top: 6px; }
.pick__txt { color: var(--ink-2); font-size: .92rem; }
.pick__go { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 4px; }
.pick__card:hover .pick__go { color: var(--hivis-ink); }

/* Scaffale classifiche */
.shelf { padding-block: clamp(40px, 6vw, 72px); }
.shelf__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gcard__a { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--rule); background: var(--card); text-decoration: none; height: 100%; transition: border-color .15s; }
.gcard__a:hover { border-color: var(--ink); color: var(--ink); }
.gcard__img { display: grid; place-items: center; background: #fff; aspect-ratio: 1; border: 1px solid var(--rule); }
.gcard__img img { max-height: 104px; width: auto; object-fit: contain; }
.gcard__body { display: grid; gap: 4px; }
.gcard__k, .gcard__d { color: var(--ink-3); font-size: .7rem; }
.gcard__t { font-weight: 800; font-size: 1.08rem; line-height: 1.2; }
.gcard__a:hover .gcard__t { text-decoration: underline; }
.gcard__top { font-size: .86rem; color: var(--ink-2); }
.gcard__top .flag { margin: 0 4px 0 0; }

/* Banda accessori con foto */
.city { background: var(--asphalt); color: var(--paper); }
.city__grid { display: grid; }
.city__photo { margin: 0; min-height: 280px; }
.city__photo img { width: 100%; height: 100%; object-fit: cover; }
.city__txt { padding: clamp(32px, 6vw, 72px) var(--g); max-width: 640px; }
.city__txt > p { color: #cfcac0; }
.city__list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid #3a3c41; }
.city__list a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #3a3c41; text-decoration: none; font-weight: 700; }
.city__list a:hover { color: var(--hivis); }
.city__thumb { width: 52px; height: 52px; background: #fff; display: grid; place-items: center; border-radius: 2px; overflow: hidden; }
.city__thumb img { max-width: 46px; max-height: 46px; object-fit: contain; }
@media (min-width: 900px) {
	.city__grid { grid-template-columns: 1fr 1fr; }
	.city__photo { min-height: 100%; }
}

/* Video */
.video { padding-block: clamp(48px, 7vw, 88px); }
.video__grid { display: grid; gap: 32px; align-items: center; }
.video__txt ul { padding-left: 1.2em; }
.video__txt li::marker { color: var(--hivis-ink); }
@media (min-width: 900px) { .video__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.vid { margin: 0; }
.vid__btn, .vid__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: var(--line); background: var(--ink); padding: 0; cursor: pointer; position: relative; overflow: hidden; }
.vid__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.vid__btn:hover img { opacity: 1; }
.vid__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--hivis); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.vid__play::after { content: ""; position: absolute; left: 30px; top: 22px; border-left: 22px solid var(--ink); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.vid figcaption { color: var(--ink-3); font-size: .72rem; margin-top: 8px; }
@media (max-width: 639px) {
	.pick__card { grid-template-columns: 96px 1fr; grid-template-rows: auto auto 1fr auto; grid-template-areas: "n n" "img type" "img txt" "go go"; column-gap: 14px; }
	.pick__n { grid-area: n; }
	.pick__img { grid-area: img; margin: 0; border: 1px solid var(--rule); height: 96px; }
	.pick__img img { max-height: 88px; }
	.pick__type { grid-area: type; font-size: 1.3rem; margin-top: 2px; }
	.pick__txt { grid-area: txt; }
	.pick__go { grid-area: go; }
	.gcard__a { grid-template-columns: 88px 1fr; }
}

/* =========================================================
   Pagine interne v1.1: testata con podio, titoli marcati
   ========================================================= */
.article__head { padding-block: 0; border-bottom: var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.article__headgrid { display: grid; gap: 28px; padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px); align-items: end; }
.article__intro .disclosure { margin-bottom: 0; }
@media (min-width: 1000px) {
	.article--ranked .article__headgrid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
}

.podium { border: var(--line); background: var(--card); box-shadow: 6px 6px 0 var(--hivis); }
.podium__t { margin: 0; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.podium__list { list-style: none; margin: 0; padding: 0; }
.podium__row {
	display: grid;
	grid-template-columns: 64px 2.4em 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 10px 14px 10px 10px;
	border-top: 1px solid var(--rule);
	text-decoration: none;
	transition: background-color .15s;
}
.podium__list li:first-child .podium__row { border-top: 0; }
.podium__row:hover { background: #fff; color: var(--ink); }
.podium__img { width: 64px; height: 64px; display: grid; place-items: center; background: #fff; border: 1px solid var(--rule); }
.podium__img img { max-width: 58px; max-height: 58px; object-fit: contain; }
.podium__pos { color: var(--ink-3); font-size: .85rem; }
.podium__list li:first-child .podium__pos { color: var(--hivis-ink); }
.podium__name { font-weight: 800; line-height: 1.2; font-size: .98rem; }
.podium__name small { display: block; font-weight: 500; font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-top: 3px; }
.podium__price { font-weight: 800; font-size: .95rem; white-space: nowrap; font-variation-settings: "wdth" 90; }

/* Titoli di sezione con il segno arancio */
.prose h2 { position: relative; padding-top: 18px; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 5px; background: var(--hivis); }
.prose > p:first-of-type { font-size: 1.12rem; }

/* Tabelle nel testo su fondo carta */
.prose table { background: var(--card); border: 1px solid var(--rule); }
.prose tbody tr:nth-child(even) { background: #fff; }

/* Correlati */
.more { padding-block: 16px clamp(48px, 7vw, 88px); }
.more .sec-head { margin-top: 0; }

.article__headgrid { padding-bottom: clamp(32px, 4vw, 48px); }
@media (min-width: 1000px) { .article--ranked .article__headgrid { align-items: center; } }
