/* Gitalia design system: token, componenti, layout di evento, atleta, articoli e archivi. */

:root {
	--bg: oklch(98.5% 0.005 280); --bg-elev: oklch(100% 0 0);
	--ink: oklch(18% 0.02 280); --ink-2: oklch(38% 0.02 280); --ink-3: oklch(52% 0.015 280);
	--line: oklch(22% 0.02 280 / 0.08); --line-2: oklch(22% 0.02 280 / 0.14); --chip: oklch(22% 0.02 280 / 0.05);
	--accent: oklch(58% 0.2 25); --accent-ink: oklch(98% 0.01 25);
	--win: oklch(52% 0.13 155);
	--glass-bg: oklch(100% 0 0 / 0.55); --glass-border: oklch(100% 0 0 / 0.7);
	--grad-a: #e3fdf5; --grad-b: #ffe6fa;
	--soft-a: oklch(97% 0.03 170 / 0.55); --soft-b: oklch(95% 0.03 340 / 0.55);
	--font-display: var(--wp--preset--font-family--display, 'Fraunces', 'Times New Roman', serif);
	--font-sans: var(--wp--preset--font-family--sans, 'Geist', 'Helvetica Neue', Arial, sans-serif);
	--font-mono: var(--wp--preset--font-family--mono, 'Geist Mono', ui-monospace, monospace);
	--r-sm: 14px; --r-md: 22px; --r-lg: 32px; --r-xl: 44px; --r-pill: 999px;
	--pad-page: clamp(16px, 3vw, 40px);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: oklch(16% 0.015 280); --bg-elev: oklch(20% 0.02 280);
		--ink: oklch(96% 0.01 280); --ink-2: oklch(78% 0.015 280); --ink-3: oklch(66% 0.015 280);
		--line: oklch(100% 0 0 / 0.08); --line-2: oklch(100% 0 0 / 0.14); --chip: oklch(100% 0 0 / 0.06);
		--accent: oklch(70% 0.18 25); --accent-ink: oklch(16% 0.015 280);
		--win: oklch(74% 0.14 155);
		--glass-bg: oklch(22% 0.02 280 / 0.55); --glass-border: oklch(100% 0 0 / 0.08);
		--grad-a: oklch(28% 0.08 170); --grad-b: oklch(28% 0.09 340);
		--soft-a: oklch(22% 0.06 170 / 0.6); --soft-b: oklch(22% 0.06 340 / 0.6);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: oklch(16% 0.015 280); --bg-elev: oklch(20% 0.02 280);
	--ink: oklch(96% 0.01 280); --ink-2: oklch(78% 0.015 280); --ink-3: oklch(66% 0.015 280);
	--line: oklch(100% 0 0 / 0.08); --line-2: oklch(100% 0 0 / 0.14); --chip: oklch(100% 0 0 / 0.06);
	--accent: oklch(70% 0.18 25); --accent-ink: oklch(16% 0.015 280);
	--win: oklch(74% 0.14 155);
	--glass-bg: oklch(22% 0.02 280 / 0.55); --glass-border: oklch(100% 0 0 / 0.08);
	--grad-a: oklch(28% 0.08 170); --grad-b: oklch(28% 0.09 340);
	--soft-a: oklch(22% 0.06 170 / 0.6); --soft-b: oklch(22% 0.06 340 / 0.6);
	color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; letter-spacing: -0.005em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* WordPress mette margini tra i blocchi dei gruppi "flow": nei nostri layout a griglia li gestiamo noi. */
.site-main > *, .ev-body > *, .ev-side > *, .ev-main > *, .ev-hero > *, .ev-hero-inner > *, .nav > *, .nav-wrap > *,
.footer > *, .footer-inner > *, .footer-col > *, .footer-brand > *, .footer-bottom > *, .post-body > * { margin-block: 0; }
.wp-site-blocks > * { margin-block: 0; }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.035em; line-height: .95; font-variation-settings: 'SOFT' 50, 'WONK' 0, 'opsz' 144; text-wrap: balance; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.grad { background-image: linear-gradient(-225deg, var(--grad-a) 0%, var(--grad-b) 100%); }
.shell { max-width: 1360px; margin-inline: auto; padding-left: max(var(--pad-page), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad-page), env(safe-area-inset-right, 0px)); }
.site-main { padding-bottom: 8px; }
.gi-icon { flex-shrink: 0; }

/* Nav */
.site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.nav-wrap { padding-top: 12px; }
.nav { display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 18px; background: var(--glass-bg); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--glass-border); border-radius: var(--r-pill); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.03em; padding-right: 14px; border-right: 1px solid var(--line); flex-shrink: 0; }
.nav-logo-mark { width: 28px; height: 28px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 17px; }
.nav-links { flex: 1; min-width: 0; }
.nav-links .wp-block-navigation__container { gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-links .wp-block-navigation__container::-webkit-scrollbar { display: none; }
.nav-links .wp-block-navigation-item__content { display: block; padding: 8px 14px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.nav-links .wp-block-navigation-item__content:hover, .nav-links .current-menu-item > .wp-block-navigation-item__content { background: var(--chip); color: var(--ink); }
.nav-right { display: flex; gap: 2px; flex-shrink: 0; }
.icon-btn { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--chip); color: var(--ink); }
.icon-btn.is-done { color: var(--win); }
.nav-toggle, .nav-search { display: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-toggle .i-close, .menu-open .nav-toggle .i-open { display: none; }
.menu-open .nav-toggle .i-close { display: block; }
@media (max-width: 960px) {
	/* Su schermi stretti i link vanno in un pannello sotto la barra, aperto dal pulsante menu. */
	.nav { position: relative; }
	.nav-right { margin-left: auto; }
	.nav-toggle { display: grid; }
	.nav-wrap:not(.menu-open) .nav > .nav-links { display: none; }
	.menu-open .nav > .nav-links { display: block; position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 10px; background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: 0 18px 40px oklch(18% 0.02 280 / 0.14); max-height: calc(100vh - 110px); overflow-y: auto; }
	.menu-open .nav-links .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: 0; overflow: visible; }
	.menu-open .nav-links .wp-block-navigation-item__content { padding: 12px 16px; font-size: 17px; border-radius: var(--r-sm); }
	.menu-open .nav-search { display: flex; gap: 8px; margin: 8px 6px 4px; padding-top: 12px; border-top: 1px solid var(--line); }
	.nav-search input { flex: 1; min-width: 0; padding: 10px 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--chip); border: 1px solid var(--line); border-radius: var(--r-pill); }
}
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .i-sun { display: block; }
	:root:not([data-theme="light"]) .i-moon { display: none; }
}

/* Pulsanti, chip, card */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--chip); }
.btn-block { width: 100%; }
.btn-sm { font-size: 13px; padding: 9px 15px; }
.chip, .chips-terms a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); background: var(--chip); font: 12px/1.4 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
a.chip:hover, .chips-terms a:hover { background: var(--ink); color: var(--bg); }
.chip-accent { background: var(--accent); color: var(--accent-ink); }
.chip-xs { font-size: 10px; padding: 2px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .18s, transform .18s; }
.card:hover { border-color: var(--line-2); }
.card-glass { background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-border); }
.gi-ph-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, var(--chip) 0 10px, transparent 10px 20px); }

/* Testata (evento, atleta, pagine) */
.ev-hero { position: relative; margin: 24px 0 32px; padding: 40px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
.ev-hero-wash { position: absolute; inset: 0; opacity: .8; }
.ev-hero-inner { position: relative; }
.ev-crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); letter-spacing: .08em; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 30px; }
.ev-crumbs a:hover { color: var(--ink); }
.ev-crumbs span { color: var(--ink-3); }
.ev-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ev-title, h1.ev-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 6.4vw, 92px); line-height: .95; margin: 0; letter-spacing: -.04em; overflow-wrap: anywhere; font-variation-settings: 'SOFT' 50, 'WONK' 0, 'opsz' 144; text-wrap: balance; }
.ev-title em { font-style: italic; display: block; font-size: .62em; letter-spacing: -.03em; margin-top: .12em; color: var(--ink-2); }
.ev-where { margin: 20px 0 0; font-size: 17px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.ev-where span { display: inline-flex; align-items: center; gap: 8px; }
.ev-date { padding: 20px 24px; border-radius: var(--r-lg); display: flex; align-items: center; gap: 14px; }
.ev-date-num { font-size: 64px; line-height: .85; white-space: nowrap; }
.ev-date-month { font-size: 26px; line-height: 1; }
.ev-date-sub { font-size: 12px; color: var(--ink-3); }
.page-hero .ev-title, .post-hero .ev-title { font-size: clamp(36px, 5vw, 72px); }
.page-lead p { margin: 0 0 8px; }
.page-lead, .page-hero .wp-block-term-description { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 60ch; }

/* Evento: colonna A (locandina + info) e colonna B (card e testo) */
.ev-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: start; }
.ev-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.ev-main { min-width: 0; }
.ev-poster { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--chip); }
.ev-poster img { width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.sidebar-block { padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-elev); }
.sidebar-block .eyebrow { display: block; margin-bottom: 8px; }
.info-list { display: flex; flex-direction: column; }
.info-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row .gi-icon { color: var(--ink-3); margin-top: 2px; }
.info-label { font: 10px var(--font-mono); color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.info-a { font-size: 15px; font-weight: 500; }
.info-a a:hover, a.info-a:hover { color: var(--accent); }
.info-b { font-size: 13px; color: var(--ink-2); }
.info-b a { text-decoration: underline; }
.ev-cta { margin-top: 16px; }
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-row .icon-btn { width: 100%; background: var(--chip); }
.share-txt { font-size: 12px; }

.article-body { font-size: 17px; line-height: 1.75; max-width: 70ch; overflow-wrap: break-word; }
.article-body > * { margin-block: 0 18px; }
.article-body h2, .article-body h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 40px 0 12px; font-weight: 400; text-wrap: balance; }
.article-body h2 { font-size: 32px; }
.article-body > :first-child { margin-top: 0; }
.article-body > h3:first-child { font-size: 32px; }
.article-body h4 { font-size: 18px; margin: 28px 0 8px; }
.article-body b, .article-body strong { font-weight: 600; }
.article-body a { color: var(--accent); border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
.article-body hr, .article-body .wp-block-separator { height: 1px; background: var(--line); border: 0; margin: 36px 0; }
.article-body img { border-radius: var(--r-md); }
.article-body figure { margin-inline: 0; }
.article-body figcaption, .article-body .wp-caption-text { font: 12px var(--font-mono); color: var(--ink-3); margin-top: 8px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: 4px; }
.article-body iframe { max-width: 100%; border-radius: var(--r-md); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-body td, .article-body th { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; }
.section-title, h2.section-title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -.03em; margin: 0 0 18px; }

/* Fight card */
.ev-fightcard { margin-bottom: 40px; }
.article-body + .ev-fightcard { margin-top: 48px; }
.fightcard { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); overflow: hidden; }
.fightcard + .fightcard { margin-top: 16px; }
.fc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; background: var(--chip); }
.fc-count { font-size: 11px; color: var(--ink-3); }
.fight { padding: 16px 22px; border-top: 1px solid var(--line); }
.fight-weight { font: 11px var(--font-mono); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fight-names { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; gap: 14px; font-family: var(--font-display); font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.fight-names a:hover { color: var(--accent); }
.fight-names .vs { font: 11px var(--font-mono); color: var(--ink-3); letter-spacing: .1em; }
.fight-names > :last-child { text-align: right; }
.fight-names .lose { color: var(--ink-3); }
.fight-names .win { font-weight: 500; }
.fight-how { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.fight-tag { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--win); color: var(--bg); font-size: 10px; margin-right: 2px; }
.fight.main { background-image: linear-gradient(-225deg, var(--soft-a), var(--soft-b)); }
.fight.main .fight-names { font-size: 32px; }
.ev-athletes { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }

/* Commenti d'archivio (sola lettura: niente modulo) */
.post-comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-comments:not(:has(.comment)) { display: none; }
.post-comments .section-title { margin: 0 0 20px; }
.post-comments ol.wp-block-comment-template { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.post-comments ol.wp-block-comment-template ol { list-style: none; margin: 12px 0 0; padding-left: clamp(12px, 3vw, 28px); border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.post-comments .wp-block-group.comment { padding: 14px 18px; border-radius: var(--r-sm); background: var(--chip); }
.post-comments .comment-meta { gap: 4px 12px; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.post-comments .comment-meta .wp-block-comment-author-name { color: var(--ink); font-weight: 500; }
.post-comments .wp-block-comment-content { color: var(--ink-2); overflow-wrap: anywhere; }
.post-comments .wp-block-comment-content > * { margin-block: 0 .6em; }
.post-comments .wp-block-comments-pagination { margin-top: 20px; font: 13px var(--font-mono); gap: 10px; }
.post-comments .wp-block-comments-pagination a { color: var(--ink-2); }
.post-comments .comments-closed, .post-comments .wp-block-post-comments-form { display: none; }

/* Card piccole e binari */
.related { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--line); }
.related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.related-head .section-title { margin: 0; }
.related-title { font-size: 36px; margin: 6px 0 0; }
.rail, .wp-block-post-template.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.wp-block-post-template.rail > li { margin: 0; display: flex; }
.wp-block-post-template.rail > li > .rail-card { flex: 1; }
.rail-card { display: flex; flex-direction: column; }
.rail-card:hover { transform: translateY(-3px); }
.ev-mini-img { position: relative; aspect-ratio: 4 / 3; background: var(--chip); overflow: hidden; }
.ev-mini-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ev-mini-date { position: absolute; top: 12px; left: 12px; background: var(--bg-elev); border-radius: 14px; padding: 8px 12px; text-align: center; }
.ev-mini-date .display { font-size: 28px; line-height: .9; }
.ev-mini-date .mono { font-size: 11px; }
.card-pad { padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rail-title { font-size: 20px; line-height: 1.08; }
.rail-place { font-size: 11px; color: var(--ink-3); }
.pager { margin-top: 40px; gap: 6px; font: 13px var(--font-mono); }
.pager a, .pager .page-numbers { padding: 8px 14px; border-radius: var(--r-pill); }
.pager a:hover { background: var(--chip); }
.pager .current { background: var(--ink); color: var(--bg); }
.empty-note { color: var(--ink-3); font: 13px var(--font-mono); }

/* Atleta */
.ath-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.ath-hero.has-photo .ath-grid { grid-template-columns: 220px minmax(0, 1fr) auto; }
.ath-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--chip); }
.ath-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ath-desc { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.ath-desc p { margin: 0 0 10px; }
.ath-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ath-stat-card { padding: 20px 24px; border-radius: var(--r-lg); }
.ath-stat-num { font-size: 56px; line-height: .9; white-space: nowrap; }
.ath-stat-label { font-size: 10px; letter-spacing: .1em; color: var(--ink-3); margin-top: 6px; max-width: 18ch; }
.ath-section { margin-top: 56px; }
.ath-section:first-of-type { margin-top: 0; }
.hist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); overflow: hidden; }
.hist-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 260px); gap: 16px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.hist-row:first-child { border-top: 0; }
.hist-out { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 500 12px var(--font-mono); background: var(--chip); color: var(--ink-2); }
.hist-out.out-v { background: var(--win); color: var(--bg); }
.hist-out.out-s { background: var(--accent); color: var(--accent-ink); }
.hist-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hist-opp { font-family: var(--font-display); font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.hist-opp a:hover, .hist-event:hover { color: var(--accent); }
.hist-event { font-size: 13px; color: var(--ink-2); }
.hist-meta { font-size: 11px; color: var(--ink-3); text-align: right; }

/* Articoli e pagine */
.post-meta { gap: 6px 14px; margin-top: 18px; font-size: 12px; color: var(--ink-2); }
.post-meta > * { margin: 0; }
.post-body { grid-template-columns: 300px minmax(0, 1fr); }
.post-poster img { width: 100%; }
.post-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.post-toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.post-toc li:first-child { border-top: 0; }
.post-toc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 8px 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.post-toc a::before { content: counter(toc, decimal-leading-zero); font: 11px/1.9 var(--font-mono); color: var(--ink-3); }
.post-toc a:hover { color: var(--accent); }
.article-body [id] { scroll-margin-top: 96px; }
.chips-terms { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-terms .wp-block-post-terms__separator { display: none; }
.chips-terms .wp-block-post-terms__prefix { font: 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.gi-search { max-width: 560px; margin-top: 22px; }
.gi-search .wp-block-search__inside-wrapper { border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg-elev); padding: 4px; }
.gi-search .wp-block-search__input { border: 0; background: transparent; padding: 8px 16px; font: inherit; color: var(--ink); outline-offset: 0; }
.gi-search .wp-block-search__button { margin: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); border: 0; padding: 9px 18px; font-size: 14px; }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid var(--line); }
.footer-inner { padding-block: 56px 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-logo { border-right: 0; padding: 0; font-size: 26px; }
.footer-logo .nav-logo-mark { width: 34px; height: 34px; font-size: 20px; }
.footer-claim { color: var(--ink-2); max-width: 300px; margin-top: 14px; font-size: 14px; }
.footer-col h4 { font: 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-block: 18px 28px; border-top: 1px solid var(--line); font: 12px var(--font-mono); color: var(--ink-2); }
.footer-bottom p { margin: 0; }

/* Calendario */
.gi-calendar { display: flex; flex-direction: column; }
.cal-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; align-self: flex-start; background: var(--chip); padding: 4px; border-radius: var(--r-pill); margin-bottom: 32px; max-width: 100%; }
.cal-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.cal-tab:hover { color: var(--ink); }
.cal-tab[aria-current], .cal-tab[aria-selected="true"] { background: var(--bg-elev); color: var(--ink); box-shadow: 0 1px 3px oklch(22% 0.02 280 / 0.08); }
.cal-tab-n { font: 11px var(--font-mono); background: var(--chip); border-radius: var(--r-pill); padding: 1px 8px; }
.cal-tab[aria-current] .cal-tab-n, .cal-tab[aria-selected="true"] .cal-tab-n { background: var(--ink); color: var(--bg); }
.cal-head { margin-top: 8px; }
.cal-past { margin-top: 64px; }
.cal-month-group + .cal-month-group { margin-top: 28px; }
.cal-month-title { margin: 0 0 10px; }
.cal-list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); overflow: hidden; }
.cal-row { position: relative; display: grid; grid-template-columns: 64px auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); transition: background .15s; }
.cal-row:first-child { border-top: 0; }
.cal-row:hover { background: var(--chip); }
.cal-link::after { content: ""; position: absolute; inset: 0; }
.cal-link:focus-visible { outline: 0; }
.cal-row:has(.cal-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cal-day { font-size: 30px; white-space: nowrap; }
.cal-month { font-size: 11px; letter-spacing: .1em; margin-top: 4px; }
.cal-wd { font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.cal-icons { display: flex; }
.cal-icons .disc-icon + .disc-icon { margin-left: -10px; }
.disc-icon { width: var(--s, 36px); height: var(--s, 36px); border-radius: 50%; display: grid; place-items: center; background: oklch(80% 0.09 310); border: 2px solid var(--bg-elev); flex-shrink: 0; overflow: hidden; }
.disc-icon img { width: 100%; height: 100%; }
.cal-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cal-title { font-size: 22px; line-height: 1.1; margin: 0; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cal-sub { font-size: 14px; color: var(--ink-2); }
.cal-sub .vs { font: 10px var(--font-mono); color: var(--ink-3); letter-spacing: .1em; margin: 0 4px; }
.cal-win { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 500; }
.cal-win .gi-icon { color: var(--win); }
/* Calendario UFC: la linea del tempo dentro un riquadro bianco, come le righe degli altri filtri. */
.cal-tl { margin: 0 0 8px; padding: 8px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); }
.cal-tl .tl-t { font-size: 20px; }
.cal-tl .vs { margin: 0 4px; font: 600 10px var(--font-mono); color: var(--ink-3); }
.cal-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.cal-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cal-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cal-chips .chip { font-size: 10px; padding: 3px 9px; }
.cal-cta { position: relative; z-index: 1; }
.cal-feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; margin-bottom: 48px; background: var(--bg-elev); }
.cal-feature-poster { margin: 0; width: 260px; background: var(--chip); }
.cal-feature-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cal-feature-body { position: relative; padding: 36px 40px; display: flex; align-items: center; }
.cal-feature-body .ev-hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cal-feature-title { font-size: clamp(36px, 4.6vw, 64px); margin: 0; letter-spacing: -.04em; }
.cal-feature-title em { display: block; font-size: .6em; color: var(--ink-2); }
.cal-feature-fight { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
.cal-feature-fight .vs { font: 11px var(--font-mono); color: var(--ink-3); letter-spacing: .1em; margin: 0 12px; vertical-align: middle; }
.cal-feature .ev-where { margin: 0; font-size: 15px; }
.cal-archive { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.chip.is-active { background: var(--ink); color: var(--bg); }

@media (max-width: 900px) {
	.cal-feature { grid-template-columns: minmax(0, 1fr); }
	.cal-feature-poster { width: auto; max-height: 360px; }
	.cal-feature-body { padding: 26px 22px; }
}
@media (max-width: 700px) {
	.cal-tabs { align-self: stretch; }
	.cal-tab { flex: 1; justify-content: center; padding: 9px 10px; font-size: 13px; }
	.cal-row { grid-template-columns: 52px minmax(0, 1fr); gap: 6px 14px; padding: 14px 16px; align-items: start; }
	.cal-icons { display: none; }
	.cal-side { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
	.cal-chips { justify-content: flex-start; }
	.cal-title { font-size: 19px; }
	.cal-day { font-size: 24px; }
}

/* Home: apertura con newsletter, macroaree a linea del tempo, colonna laterale */
.home-hero { margin: 24px 0 0; padding: clamp(22px, 4vw, 44px); border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(160deg, var(--soft-b), var(--soft-a)), var(--bg-elev); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; }
.home-hero .chips { gap: 6px; margin: 14px 0 18px; }
.home-hero .chip { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--glass-bg); }
.home-h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: .98; }
.home-hero-sub { margin: 16px 0 0; max-width: 46ch; font-size: 16px; color: var(--ink-2); }
.home-signup { padding: 22px; border-radius: var(--r-md); background: var(--bg-elev); border: 1px solid var(--line); }
.home-signup h2 { margin: 6px 0 4px; font-size: 26px; line-height: 1.05; }
.home-signup p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.home-signup-form { display: flex; flex-direction: column; gap: 8px; }
.home-signup input { font: inherit; padding: 12px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); }
.home-signup button { font-size: 14px; font-weight: 500; padding: 12px 16px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); }
.home-signup :disabled { opacity: .55; cursor: not-allowed; }
.home-signup small { display: block; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.home-signup small a { text-decoration: underline; text-underline-offset: 2px; }
.home-signup-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.home-signup .home-signup-consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
.home-signup-consent a { text-decoration: underline; text-underline-offset: 2px; }
.home-signup-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.home-signup .home-signup-msg { margin: 2px 0 0; font-size: 13px; color: var(--ink); }
.home-signup .home-signup-msg.is-error { color: var(--accent); }
.home-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.home-facts a { display: flex; flex-direction: column; min-width: 0; }
.home-facts .eyebrow { font-size: 10px; }
.home-facts b { margin-top: 4px; font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.home-facts span:last-child { font-size: 12px; color: var(--ink-3); }
.home-facts a:hover b { color: var(--accent); }

.home-index { display: flex; gap: 2px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-top: 28px; padding: 4px; border-radius: var(--r-pill); background: var(--chip); }
.home-index a { padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.home-index a:hover { background: var(--bg-elev); color: var(--ink); }

.home-layout > *, .home-main > * { margin-block: 0; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.home-main { min-width: 0; max-width: 720px; }
.home-area { padding-top: 56px; scroll-margin-top: 96px; }
.home-area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.home-area-head h2 { margin: 0; font-size: 30px; }
.home-area-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.home-more { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.home-more:hover { color: var(--ink); }
.home-area-chips { gap: 6px; margin: 14px 0 4px; }

/* Linea del tempo, come l'orario corsi della palestra */
.home-tl { list-style: none; margin: 8px 0 0; padding: 0; }
.home-tl li { position: relative; display: grid; grid-template-columns: 56px 16px minmax(0, 1fr); gap: 0 12px; padding: 13px 0; }
.home-tl li::before { content: ""; position: absolute; left: 75px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.home-tl li:first-child::before { top: 22px; }
.home-tl li:last-child::before { bottom: calc(100% - 22px); }
.home-tl li:only-child::before { display: none; }
.tl-when { font: 11px/1.35 var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 4px; }
.tl-when b { display: block; font-weight: 500; color: var(--ink-2); }
.tl-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin: 7px auto 0; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink-3); }
.tl-dot.on { background: var(--accent); border-color: var(--accent); }
.tl-what { min-width: 0; }
.home-tl .hl .tl-what { margin: -6px 0; padding: 6px 12px; border-radius: var(--r-sm); background: var(--chip); }
.tl-t { font-family: var(--font-display); font-size: 20px; line-height: 1.18; letter-spacing: -.015em; overflow-wrap: anywhere; }
.tl-t a:hover { color: var(--accent); }
.tl-s { margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.tl-s .live { color: var(--accent); font-weight: 500; }
.home-tl.small li { grid-template-columns: 48px 14px minmax(0, 1fr); gap: 0 10px; padding: 9px 0; }
.home-tl.small li::before { left: 64px; }
.home-tl.small .tl-t { font: 500 14px/1.3 var(--font-sans); letter-spacing: 0; }

/* Learning Center: elenco con miniature piccole */
.home-learn { margin-top: 10px; }
.home-learn-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.home-learn-row:first-child { border-top: 0; }
.home-learn-img { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--chip); }
.home-learn-img img { width: 100%; height: 100%; object-fit: cover; }
.home-learn-t { font-size: 19px; line-height: 1.2; letter-spacing: -.015em; }
.home-learn-d { font-size: 11px; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }
.home-learn-row:hover .home-learn-t { color: var(--accent); }

/* Nelle macroaree niente linea tra i titoli: restano data e puntino */
.home-area .home-tl li::before { display: none; }
/* Nelle news il pallino non segna niente: solo data e titolo. */
.home-area .home-tl li { grid-template-columns: 56px minmax(0, 1fr); }
.home-area .home-tl .tl-dot { display: none; }

.arc-cal { margin-bottom: 40px; }
.arc-cal .home-area-head { margin-bottom: 14px; }
.arc-cal .cal-month-group + .cal-month-group { margin-top: 18px; }

.home-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin-top: 12px; }
.home-guides a { padding: 14px 0; border-top: 1px solid var(--line-2); }
.home-guides b { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -.015em; }
.home-guides span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.home-guides a:hover b { color: var(--accent); }

.home-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; padding-top: 56px; }
.home-box { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-elev); scroll-margin-top: 96px; }
.home-box > .eyebrow { display: block; margin-bottom: 4px; }
.home-box h3 { margin: 4px 0 6px; font-size: 22px; }
.home-box p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.home-box .home-more { display: block; margin-top: 10px; }

.fight-tech { margin-left: 6px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.fight-tech:hover { color: var(--accent); }
.hist-row.tech-row { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
.hist-opp .win { font-weight: 500; }
.hist-opp .lose { color: var(--ink-3); }
.hist-batte { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 4px; }
@media (max-width: 1000px) {
	.home-hero-grid, .home-layout { grid-template-columns: minmax(0, 1fr); }
	.home-layout { gap: 0; }
	.home-side { position: static; }
}
@media (max-width: 640px) {
	.home-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-learn-row .arc-row-go { display: none; }
	.home-learn-row { grid-template-columns: 56px minmax(0, 1fr); }
	.home-area.home-area-box { margin-top: 28px; padding: 20px 16px 4px; }
	.home-guides { grid-template-columns: minmax(0, 1fr); }
	.tl-t { font-size: 18px; }
}

/* Riquadri a intestazione con icona (calendario, palestre, tecniche) */
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--ink-2); }
.cal-tile-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.box-head + .cal-tile-row { border-top: 0; }
.cal-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--chip); line-height: 1; }
.cal-tile b { font-size: 24px; }
.cal-tile .mono { font-size: 10px; margin-top: 3px; }
.cal-tile.on { background: var(--accent); color: var(--accent-ink); }
.cal-tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-tile-t { font-size: 14px; font-weight: 500; line-height: 1.3; }
.cal-tile-body .mono { font-size: 11px; color: var(--ink-3); }
.cal-tile-row:hover .cal-tile-t { color: var(--accent); }
.cal-tiles .btn { margin-top: 10px; }
.gyms-box { background: linear-gradient(135deg, var(--soft-a), var(--soft-b)), var(--bg-elev); }
.gyms-num { display: block; font-size: 64px; line-height: .9; margin-top: 6px; }
.gyms-regions { list-style: none; margin: 0 0 14px; padding: 0; }
.gyms-regions li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.gyms-regions .mono { color: var(--ink-3); }
.gyms-regions a { display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.gyms-regions a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.belts-box { background: linear-gradient(135deg, var(--soft-b), var(--soft-a)), var(--bg-elev); }
.belts-sub { display: block; margin-top: 16px; }
.belts-list { list-style: none; margin: 6px 0 4px; padding: 0; }
.belts-list li + li { border-top: 1px solid var(--line); }
.belts-list a { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.belts-list a:hover .belt-name { text-decoration: underline; text-underline-offset: 3px; }
.belt-name { font-size: 14px; font-weight: 500; }
.belts-list .mono { font-size: 11px; color: var(--ink-3); }
.belts-box .btn { margin-top: 12px; }

.home-tech-card { margin-top: 56px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); }
.home-tech-card h2 { margin: 6px 0 14px; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.02; }
.tech-rows { list-style: none; margin: 0; padding: 0; }
.tech-rows a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.tech-rows li:first-child a { border-top: 0; }
.tech-n { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--chip); font-size: 12px; color: var(--ink-3); }
.tech-body { display: flex; flex-direction: column; min-width: 0; }
.tech-name { font-size: 17px; font-weight: 500; }
.tech-body .mono { font-size: 12px; color: var(--ink-3); }
.tech-fav { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tech-rows a:hover .tech-name { color: var(--accent); }
.tech-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-size: 15px; }

.home-platform { margin-top: 72px; padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-elev); }
.home-platform h2 { margin: 0 0 28px; font-size: clamp(30px, 4vw, 48px); }
.home-platform h2 em { color: var(--ink-3); }
.platform-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.platform-tile { display: flex; flex-direction: column; padding: 22px; min-height: 230px; border: 1px solid var(--line); border-radius: var(--r-lg); transition: background .15s; }
.platform-tile:hover { background: var(--chip); }
.platform-top { display: flex; justify-content: space-between; color: var(--ink-2); margin-bottom: auto; padding-bottom: 28px; }
.platform-ext { display: inline-flex; color: var(--ink-3); }
.platform-tile b { font-size: clamp(40px, 4vw, 60px); line-height: .9; }
.platform-tile b em { font-size: .8em; }
.platform-tile .mono { margin-top: 8px; font-size: 12px; line-height: 1.4; min-height: 2.8em; color: var(--ink-3); }
.platform-label { margin-top: 18px; font-size: 16px; font-weight: 500; }

/* Archivi di sezione (categorie, pagine BJJ e MMA) */
.arc-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; margin-top: 24px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--soft-b), var(--soft-a)), var(--bg-elev); }
.arc-title { margin: 18px 0 0; font-size: clamp(44px, 6vw, 80px); line-height: .95; }
.arc-desc { margin: 16px 0 0; max-width: 52ch; font-size: 16px; color: var(--ink-2); }
.arc-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; }
.arc-stat { padding: 14px 16px; border-radius: var(--r-md); background: var(--glass-bg); border: 1px solid var(--glass-border); }
.arc-stat .eyebrow { display: block; font-size: 10px; }
.arc-stat b { display: block; margin-top: 6px; font-size: 36px; line-height: 1; }
.arc-tabs a[aria-current] { background: var(--bg-elev); color: var(--ink); box-shadow: 0 1px 2px oklch(0% 0 0 / .08); }
.arc-main { padding-top: 32px; }
.arc-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-elev); }
.arc-feature-img { position: relative; min-height: 260px; background: var(--chip); }
.arc-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arc-feature-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.arc-feature-title { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.02; }
.arc-feature-title a:hover, .arc-row-title a:hover { color: var(--accent); }
.arc-feature-body p { margin: 0; font-size: 14px; color: var(--ink-2); }
.arc-feature-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.arc-feature-foot .mono { font-size: 11px; color: var(--ink-3); }
.arc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.arc-meta .mono { font-size: 11px; color: var(--ink-3); }
.arc-latest { margin-top: 36px; }
.arc-latest > .eyebrow { display: block; margin-bottom: 4px; color: var(--ink); }
.arc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 32px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.arc-row-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--chip); }
.arc-row-img img { width: 100%; height: 100%; object-fit: cover; }
.arc-row-body { min-width: 0; }
.arc-row-title { margin: 6px 0 0; font-size: 21px; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: anywhere; }
.arc-row-body p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.arc-row-go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--chip); color: var(--ink-2); }
a.arc-row-go { transition: background .15s, color .15s; }
a.arc-row-go:hover { background: var(--accent); color: #fff; }
.arc-row.arc-row-noimg { grid-template-columns: minmax(0, 1fr) 32px; }
/* In home ogni area (titolo, filtri, righe) sta in un riquadro bianco, come gli altri box. */
.home-area.home-area-box { margin-top: 40px; padding: 28px 28px 6px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); }
.home-area-box .home-learn { padding-bottom: 10px; }
.home-learn-row .arc-row-go { transition: background .15s, color .15s; }
.home-learn-row:hover .arc-row-go { background: var(--accent); color: #fff; }
.home-rows { margin-top: 6px; }
.home-rows .arc-row:last-child { border-bottom: 0; }
.arc-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.arc-pager > .mono { font-size: 11px; color: var(--ink-3); }
.arc-pager .pager { display: flex; flex-wrap: wrap; margin: 0; }
.arc-side { padding-top: 32px; }
.arc-popular ol { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.arc-popular li { counter-increment: pop; border-top: 1px solid var(--line); }
.arc-popular li:first-child { border-top: 0; }
.arc-popular a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 9px 0; font-size: 14px; line-height: 1.35; }
.arc-popular a::before { content: counter(pop); font: 20px/1 var(--font-display); color: var(--ink-3); }
.arc-popular a:hover { color: var(--accent); }
.arc-topics { gap: 6px; }
.arc-side .home-signup { border-radius: var(--r-md); }

@media (max-width: 1000px) {
	.platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.arc-hero { grid-template-columns: minmax(0, 1fr); }
	.arc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.platform-grid, .arc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.platform-tile { min-height: 0; }
	.arc-feature { grid-template-columns: minmax(0, 1fr); }
	.arc-feature-img { min-height: 0; aspect-ratio: 16 / 9; }
	.arc-row { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
	.arc-row.arc-row-noimg { grid-template-columns: minmax(0, 1fr); }
	.arc-row-go { display: none; }
	.arc-row-title { font-size: 18px; }
	.home-tech-card { padding: 20px; }
}

/* Shortcode [gi_eventi]: eventi per anno, piastrelle della data come il calendario della Home */
.gi-evlist { margin-block: 8px 32px; }
.evl-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.article-body .gi-evlist a { color: inherit; border-bottom: 0; }
.article-body .evl-index a, .evl-index a { padding: 5px 11px; border-radius: var(--r-pill); background: var(--chip); font: 12px var(--font-mono); color: var(--ink-2); }
.evl-index a span { color: var(--ink-3); }
.article-body .evl-index a:hover, .evl-index a:hover { background: var(--ink); color: var(--bg); }
.evl-year { margin-top: 32px; scroll-margin-top: 96px; }
.evl-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.evl-head .display { font-size: 32px; line-height: 1; }
.evl-head .mono { font-size: 12px; color: var(--ink-3); }
.evl-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.evl-rows .cal-tile-row { border-top: 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .evl-rows { grid-template-columns: minmax(0, 1fr); } }

.cal-archive-other { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }
.cal-archive-other a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.cal-archive-other a:hover { color: var(--accent); }

/* Editor: segnaposto dei blocchi dinamici */
.gi-editor-ph { padding: 18px 22px; border: 1px dashed var(--line-2); border-radius: var(--r-md); font: 12px var(--font-mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; background: var(--chip); }

@media (max-width: 1100px) {
	.footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
	.ev-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ev-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.rail, .wp-block-post-template.rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ath-hero.has-photo .ath-grid { grid-template-columns: 160px minmax(0, 1fr); }
	.ath-hero.has-photo .ath-stat-card { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
	.ev-hero { padding: 26px 22px; margin-top: 16px; }
	.ev-hero-grid, .ath-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ev-date, .ath-stat-card { justify-self: start; }
	.hist-row { grid-template-columns: 36px minmax(0, 1fr); }
	.hist-meta { grid-column: 2; text-align: left; }
	.hist-row.tech-row { grid-template-columns: minmax(0, 1fr); }
	.hist-row.tech-row .hist-meta { grid-column: 1; }
}
@media (max-width: 640px) {
	.nav { gap: 8px; padding-left: 12px; }
	.nav-logo-text { display: none; }
	.nav-logo { padding-right: 10px; }
	.rail, .wp-block-post-template.rail { grid-template-columns: minmax(0, 1fr); }
	.article-body { font-size: 16px; }
	.fight { padding: 14px 18px; }
	.fight-names { grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 20px; }
	.fight-names > :last-child { text-align: left; }
	.fight.main .fight-names { font-size: 26px; }
	.ath-hero.has-photo .ath-grid { grid-template-columns: minmax(0, 1fr); }
	.ath-photo { max-width: 200px; }
	.footer-inner { grid-template-columns: minmax(0, 1fr); }
}

/* Ricerca: atleti, eventi, news */
.srch { max-width: 960px; }
.srch-sec { margin-top: 44px; }

/* Articoli ↔ eventi */
.ev-posts { margin-top: 48px; }
.post-events .cal-tile-row:first-of-type { border-top: 0; }

/* Card atleta verticale (ricerca): senza foto, le iniziali */
.ath-card-init { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; color: var(--ink-3); }

/* Organizzatore, sede, disciplina */
.term-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.term-hero-grid.has-logo { grid-template-columns: 160px minmax(0, 1fr); }
.term-logo { width: 160px; aspect-ratio: 1; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 18px; overflow: hidden; }
.term-logo-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.term-hero-text .eyebrow { display: block; margin-bottom: 10px; }
.term-chips { margin-top: 18px; }
.term-stats { margin-top: 28px; max-width: 640px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.term-events { margin-top: 48px; }
@media (max-width: 640px) {
	.term-hero-grid.has-logo { grid-template-columns: minmax(0, 1fr); }
	.term-logo { width: 112px; }
	.term-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Modulo email della pagina Contatti */
.gi-contact-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 24px; padding: 16px; border-radius: var(--r-md); background: var(--chip); }
.gi-contact-form label { width: 100%; font: 12px var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.gi-contact-form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg-elev); color: var(--ink); font: inherit; }
.gi-contact-form button { padding: 10px 18px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font: 500 14px var(--font-sans); cursor: pointer; }

/* Pagina About us (templates/page-about-us.html) */
.about-body { max-width: none; }
.about-body > p, .about-body > h2, .about-body > ul { max-width: 70ch; }
.about-body > * { margin-block: 0 22px; }
.about-body .eyebrow { margin: 0 0 6px; }
.about-lead { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; max-width: 34ch !important; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-block: 36px 56px !important; }
.about-stat { padding: 20px 22px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.about-stat b { font-size: clamp(44px, 5vw, 60px); line-height: .9; font-weight: 400; }
.about-stat-label { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.about-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; margin-block: 0 48px !important; }
.about-split > * { margin: 0; }
.about-split-img img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--r-lg); }
.about-split-text h2 { margin-top: 0 !important; }
.about-split-text > * { margin-block: 0 16px; }
.about-quote { margin: 0 0 40px !important; padding: 28px 32px; border: 0; border-radius: var(--r-lg); max-width: 60ch; position: relative; overflow: hidden;
	background-image: linear-gradient(-225deg, var(--grad-a) 0%, var(--grad-b) 100%); }
.about-quote p { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-block: 40px 56px !important; }
.about-value { padding: 22px; border-radius: var(--r-lg); background: var(--chip); }
.about-value h3 { margin: 10px 0 8px !important; font-size: 22px !important; }
.about-value p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.about-value-num { font-size: 12px; color: var(--accent); }
.about-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-block: 0 56px !important; }
.article-body .about-person { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); overflow: hidden; color: inherit; transition: border-color .18s, transform .18s; }
.article-body a.about-person:hover { border-color: var(--line-2); transform: translateY(-3px); }
.about-person img, .about-person-init { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0 !important; }
.about-person-init { display: grid; place-items: center; font-size: 64px; color: var(--ink-3); background: var(--chip); }
.about-person-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.about-person-body .eyebrow { font-size: 10px; margin: 0; }
.about-person-body b { font-size: 17px; font-weight: 600; }
.about-person-link { margin-top: 6px; font: 12px var(--font-mono); color: var(--accent); }
.about-cta { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); margin-block: 0 24px !important; background-image: linear-gradient(-225deg, var(--soft-a) 0%, var(--soft-b) 100%); }
.about-cta > * { margin-block: 0 14px; max-width: 64ch; }
.about-cta h2 { margin-top: 0 !important; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.article-body .about-btn { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg-elev); color: var(--ink); font: 500 14px var(--font-sans); }
.article-body .about-btn.is-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
@media (max-width: 760px) {
	.about-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.about-quote { padding: 22px; }
}

/* [gi_cinture]: riquadro dell'albo cinture nere in cima alla pagina della lista */
.article-body .beltp { margin: 0 0 40px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--soft-b), var(--soft-a)), var(--bg-elev); border: 1px solid var(--line); max-width: none; }
.beltp-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 32px; align-items: end; }
.beltp-num { display: block; font-size: clamp(56px, 8vw, 88px); line-height: .9; margin: 8px 0 6px; font-weight: 400; }
.beltp-num-sm { font-size: clamp(32px, 4vw, 44px); }
.beltp-sub { margin: 0 0 16px !important; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.beltp-cta { padding: 18px 20px; border-radius: var(--r-lg); background: var(--glass-bg); border: 1px solid var(--glass-border); }
.beltp-cta b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.beltp-cta p { margin: 6px 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.beltp-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin-top: 24px; }
.article-body .beltp .belts-list { padding: 0; margin: 6px 0 0; }
.article-body .beltp .belts-list li + li { margin-top: 0; }
.article-body .beltp .belts-list a { color: inherit; border-bottom: 0; }
.beltp .belt-name { font-size: 15px; font-weight: 500; }
.beltp .belt-ok { color: var(--win); font-size: 12px; }
@media (max-width: 760px) {
	.beltp-head, .beltp-lists { grid-template-columns: minmax(0, 1fr); }
}

/* Pagina autore (inc/author-page.php) */
.auth-hero { align-items: start; }
.auth-meta { display: block; margin-top: 4px; }
.auth-hero .arc-title { margin-top: 10px; }
.auth-bio { margin-top: 18px; max-width: 64ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.auth-bio p { margin: 0 0 12px; }
.auth-bio a, .auth-links a { color: var(--accent); }
.auth-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; font: 13px var(--font-mono); }
.auth-side { display: flex; flex-direction: column; gap: 12px; width: min(280px, 100%); }
.auth-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); }
.auth-side .arc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-posts-title { margin: 40px 0 16px; font-size: 22px; }
@media (max-width: 860px) {
	.auth-side { width: 100%; flex-direction: row; align-items: flex-start; }
	.auth-photo { width: 120px; flex: none; }
	.auth-side .arc-stats { flex: 1; }
}
.post-meta .wp-block-post-author-name a, .author-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.post-meta .wp-block-post-author-name a:hover, .author-link:hover { color: var(--accent); text-decoration-color: currentColor; }
/* Riquadro "in breve" nelle pagine (lista con classe is-style-facts) */
.article-body .is-style-facts { list-style: none; display: grid; gap: 8px; margin: 24px 0 32px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(160deg, var(--soft-b), var(--soft-a)), var(--bg-elev); font-size: 15px; }
.article-body .is-style-facts li { margin: 0; }
.article-body .wp-block-quote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); }
.article-body .wp-block-quote p { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -.01em; }
.article-body .wp-block-quote cite { display: block; margin-top: 10px; font: 12px var(--font-mono); font-style: normal; color: var(--ink-3); }
