/* ==========================================================================
   Autozai FDB Contri — main.css
   CSS custom senza build. Breakpoint: sm 640 · md 768 · lg 1024.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--background: oklch(100% 0 0);
	--foreground: oklch(18% 0 0);
	--primary: oklch(43.25% .1495 24.94);
	--primary-deep: oklch(34% .13 24.94);
	--primary-foreground: oklch(100% 0 0);
	--secondary: oklch(24.01% .1227 266.87);
	--secondary-foreground: oklch(98% 0 0);
	--secondary-muted: oklch(75.18% .0436 268.92);
	--muted: oklch(24.01% .1227 266.87);
	--muted-foreground: oklch(50% .02 266.87);
	--border: oklch(87% .01 266.87);
	--ink: oklch(17.8% 0 0);
	--ink-foreground: oklch(98% 0 0);
	--ink-muted: oklch(70% 0 0);
	--overlay: oklch(12% 0 0 / .5);

	--font-sans: "Manrope", system-ui, sans-serif;
	--font-display: "Archivo", system-ui, sans-serif;

	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 4.5rem;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; line-height: 1.5; }
body {
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; font-family: var(--font-display); }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--primary); color: var(--primary-foreground);
	padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Utility tipografiche ---------- */
.container-x { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.eyebrow { font-family: var(--font-sans); letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; font-weight: 700; line-height: 1.5; }
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -.01em; font-weight: 800; font-stretch: 75%; line-height: .88; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-ink-muted { color: var(--ink-muted); }
.text-dim { color: color-mix(in oklab, var(--ink-foreground) 60%, transparent); }
.bg-primary { background: var(--primary); color: var(--primary-foreground); }
.bg-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.bg-ink { background: var(--ink); color: var(--ink-foreground); }
.grayscale { filter: grayscale(1); }

.h-section { margin-top: .75rem; font-size: 3.75rem; line-height: 1; }
@media (min-width: 768px) { .h-section { font-size: 6rem; } }

.link-underline {
	background-image: linear-gradient(var(--primary), var(--primary));
	background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 2px;
	transition: background-size .4s; padding-bottom: .25rem;
}
.link-underline:hover { background-size: 100% 2px; }

.btn {
	display: inline-flex; align-items: center; gap: .75rem;
	padding: .875rem 1.5rem;
	font-family: var(--font-sans); letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; font-weight: 700;
	transition: background-color .15s;
}
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { background: var(--primary-deep); }

.tag {
	position: absolute; left: 0; top: 0;
	background: var(--primary); color: var(--primary-foreground);
	padding: .375rem .75rem;
}
.tag-inline { background: var(--primary); padding: .25rem .5rem; }

/* Rapporti immagine */
[class*="ratio-"] { position: relative; }
[class*="ratio-"] > img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-10 { aspect-ratio: 16 / 10; }

.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 1.1s var(--ease); }
.img-zoom:hover img, a:hover .img-zoom img { transform: scale(1.06); }

/* Sezioni */
.section { padding-block: 6rem; }
.section-sm { padding-block: 5rem; }
.section-tail { padding-bottom: 7rem; }
@media (min-width: 768px) { .section { padding-block: 8rem; } }

/* ---------- Animazioni ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes kenburns { 0% { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%); } }
@keyframes scrollcue {
	0% { transform-origin: top; transform: scaleY(0); }
	50% { transform-origin: top; transform: scaleY(1); }
	51% { transform-origin: bottom; transform: scaleY(1); }
	to { transform-origin: bottom; transform: scaleY(0); }
}
@keyframes enter { from { opacity: 0; transform: translateY(var(--enter-y, 1rem)); } }
.animate-kenburns { animation: kenburns 22s ease-out infinite alternate; }
.animate-in { animation: enter 1s both; }
.animate-in--slow { --enter-y: 2rem; }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
	.animate-kenburns, .animate-in, .hero__scroll-line { animation: none; }
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 50;
	background: color-mix(in oklab, var(--background) 95%, transparent);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
	transition: background-color .5s, border-color .5s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-block: 1rem; }
.site-header__brand { display: inline-flex; }

.site-nav { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav__link { color: var(--foreground); transition: color .15s; }
.site-nav__link:not(.is-current) {
	background-image: linear-gradient(var(--primary), var(--primary));
	background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 2px;
	transition: background-size .4s, color .15s; padding-bottom: .25rem;
}
.site-nav__link:hover { color: var(--primary); background-size: 100% 2px; }
.site-nav__link.is-current { color: var(--primary); padding-bottom: .25rem; }

.site-header__toggle { color: var(--foreground); }
@media (min-width: 1024px) { .site-header__toggle { display: none; } }

/* Header trasparente su hero scuro (fino allo scroll) */
.has-dark-hero .site-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-dark-hero .site-header:not(.is-scrolled) .site-nav__link { color: var(--ink-foreground); background-image: none; }
.has-dark-hero .site-header:not(.is-scrolled) .site-nav__link.is-current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.has-dark-hero .site-header:not(.is-scrolled) .site-header__toggle { color: var(--ink-foreground); }
.has-dark-hero .site-header:not(.is-scrolled) .brand__name { color: var(--ink-foreground); }
.has-dark-hero .site-header:not(.is-scrolled) .brand__accent { color: inherit; }

/* Marchio */
.brand { display: flex; align-items: center; gap: .625rem; }
.brand__mark {
	display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
	background: var(--primary); color: var(--primary-foreground);
	font-size: 1.125rem; line-height: 1.75rem;
}
.brand__name { font-size: 1.25rem; line-height: 1; color: var(--secondary); }
.brand__accent { color: var(--primary); }
.brand--inverted .brand__name { color: var(--ink-foreground); }
.brand--inverted .brand__accent { color: inherit; }
.brand__img { max-height: 2.5rem; width: auto; }

/* Menu mobile */
.mobile-menu {
	position: fixed; inset: 0; z-index: 60;
	display: flex; flex-direction: column;
	background: var(--ink); color: var(--ink-foreground);
	animation: enter .3s both; --enter-y: 0;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav { margin-top: 2rem; display: flex; flex-direction: column; gap: .5rem; }
.mobile-menu__link {
	font-size: 3rem; line-height: 1;
	color: color-mix(in oklab, var(--ink-foreground) 60%, transparent);
	transition: color .15s;
	animation: enter .5s both; animation-delay: calc(var(--i) * 50ms);
}
.mobile-menu__link:hover, .mobile-menu__link.is-current { color: var(--ink-foreground); }
@media (min-width: 640px) { .mobile-menu__link { font-size: 3.75rem; } }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero--full { height: 100svh; min-height: 620px; }
.hero--about { height: 90svh; min-height: 560px; }
.hero--article { height: 80svh; min-height: 520px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img--dim { opacity: .7; }
.hero__overlay { position: absolute; inset: 0; background: var(--overlay); }
.hero__content {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	height: 100%; padding-bottom: 5rem; color: var(--ink-foreground);
}
.hero--about .hero__content { padding-bottom: 4rem; }
.hero--article .hero__content { padding-bottom: 3.5rem; }
.hero__title { margin-top: 1.25rem; font-size: clamp(2.4rem, 8.5vw, 8.5rem); }
.hero__title--about { font-size: clamp(3rem, 8.5vw, 8.5rem); }
.hero__title--article { max-width: 64rem; font-size: 3rem; line-height: 1; }
@media (min-width: 768px) { .hero__title--article { font-size: 6rem; } }
.hero__payoff {
	margin-top: 1rem; font-size: 1.5rem; line-height: 2rem; letter-spacing: .025em;
	color: color-mix(in oklab, var(--ink-foreground) 90%, transparent);
}
@media (min-width: 768px) { .hero__payoff { font-size: 2.25rem; line-height: 2.5rem; } }
.hero__payoff .hl { background: var(--primary); color: var(--primary-foreground); padding-inline: .5rem; }
.hero__scroll {
	position: absolute; bottom: 1.5rem; right: 2rem;
	display: none; flex-direction: column; align-items: center; gap: .75rem;
	color: var(--ink-foreground);
}
.hero__scroll .eyebrow { writing-mode: vertical-rl; }
.hero__scroll-line { width: 1px; height: 3.5rem; background: var(--ink-foreground); animation: scrollcue 2.2s ease-in-out infinite; }
@media (min-width: 768px) { .hero__scroll { display: flex; } }
.article__date { margin-left: .75rem; }

/* ==========================================================================
   Home
   ========================================================================== */
.stats { border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats__item { padding-block: 3.5rem; }
.stats__item:nth-child(even) { padding-left: 1.5rem; border-left-width: 1px; }
.stats__item:nth-child(n+3) { border-top-width: 1px; }
.stats__value { font-size: clamp(5rem, 12vw, 11rem); color: var(--primary); }
.stats__label { margin-top: 1rem; }
@media (min-width: 768px) { .stats__item { padding-block: 5rem; } }
@media (min-width: 1024px) {
	.stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.stats__item:not(:first-child) { padding-left: 2.5rem; border-left-width: 1px; }
	.stats__item:nth-child(n+3) { border-top-width: 0; }
}

.latest__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.latest__all { display: none; }
@media (min-width: 768px) { .latest__all { display: inline-flex; } }
.latest__track {
	margin-top: 3.5rem; margin-inline: -1.25rem; padding: 0 1.25rem 1rem;
	display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
}
.latest__item { width: 80vw; flex-shrink: 0; scroll-snap-align: start; }
.latest__all-mobile { margin-top: 2.5rem; }
@media (min-width: 640px) {
	.latest__track { margin-inline: 0; padding-inline: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
	.latest__item { width: auto; }
}
@media (min-width: 768px) { .latest__all-mobile { display: none; } }
@media (min-width: 1024px) { .latest__track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }

/* Card news */
.news-card__link { display: block; }
.news-card__media { background: var(--muted); }
.news-card__date { margin-top: 1.25rem; color: var(--muted-foreground); }
.news-card__title { margin-top: .5rem; color: var(--secondary); transition: color .15s; font-size: 1.5rem; line-height: 2rem; }
.news-card__link:hover .news-card__title { color: var(--primary); }
.news-card__excerpt { margin-top: .75rem; line-height: 1.625; color: var(--muted-foreground); }
.news-card--lg .news-card__title { font-size: 2.25rem; line-height: 2.5rem; }
@media (min-width: 768px) {
	.news-card--md .news-card__title { font-size: 1.875rem; line-height: 2.25rem; }
	.news-card--lg .news-card__title { font-size: 3rem; line-height: 1; }
}
.news-card--dark .news-card__date { color: var(--secondary-muted); }
.news-card--dark .news-card__title,
.news-card--dark .news-card__link:hover .news-card__title { color: var(--secondary-foreground); }

/* Newsletter */
.newsletter__grid { display: grid; gap: 4rem; padding-block: 6rem; }
@media (min-width: 768px) { .newsletter__grid { padding-block: 8rem; } }
@media (min-width: 1024px) {
	.newsletter__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.newsletter__contacts { border-left: 1px solid color-mix(in oklab, var(--secondary-foreground) 15%, transparent); padding-left: 4rem; }
}
.newsletter__text { margin-top: 1.5rem; max-width: 28rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--secondary-muted); }
.newsletter__form { margin-top: 2.5rem; max-width: 32rem; }
.nl-row { display: flex; flex-direction: column; }
@media (min-width: 640px) { .nl-row { flex-direction: row; } }
.nl-row .wpcf7-form-control-wrap { flex: 1; display: block; }
.nl-input {
	width: 100%; border: 1px solid color-mix(in oklab, var(--secondary-foreground) 25%, transparent);
	background: var(--background); color: var(--foreground);
	padding: 1rem 1.25rem; outline: none;
}
.nl-input:focus { border-color: var(--primary); }
.nl-submit {
	background: var(--primary); color: var(--primary-foreground);
	padding: 1rem 2rem;
	font-family: var(--font-sans); letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; font-weight: 700;
	transition: background-color .15s;
}
.nl-submit:hover { background: var(--primary-deep); }
.nl-consent { margin-top: 1rem; font-size: .875rem; line-height: 1.25rem; color: color-mix(in oklab, var(--secondary-foreground) 70%, transparent); }
.nl-consent label { display: flex; align-items: flex-start; gap: .75rem; }
.nl-consent .wpcf7-list-item { margin: 0; }
.nl-consent input[type="checkbox"] { margin-top: .25rem; accent-color: var(--primary); }
.nl-consent a { text-decoration: underline; }
.newsletter .wpcf7-spinner { display: none; }
.newsletter .wpcf7-not-valid-tip { font-size: .8rem; margin-top: .35rem; color: oklch(80% .12 25); }
.newsletter .wpcf7-response-output { margin: 1rem 0 0; padding: .75rem 1rem; border: 1px solid color-mix(in oklab, var(--secondary-foreground) 25%, transparent); font-size: .875rem; }
.newsletter form.sent .wpcf7-response-output { border-color: oklch(75% .12 150); }
.newsletter form.invalid .wpcf7-response-output,
.newsletter form.unaccepted .wpcf7-response-output,
.newsletter form.failed .wpcf7-response-output { border-color: oklch(80% .12 25); }
/* Sostituisce le regole di base del CSS di CF7 (disattivato) */
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7-form-control-wrap { position: relative; }
.nl-notice { font-size: .875rem; color: var(--secondary-muted); }

.contact-list { margin-top: 2rem; border-block: 1px solid color-mix(in oklab, var(--secondary-foreground) 15%, transparent); }
.contact-list__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-block: 1.5rem; }
.contact-list__row + .contact-list__row { border-top: 1px solid color-mix(in oklab, var(--secondary-foreground) 15%, transparent); }
.contact-list dt { color: var(--secondary-muted); }
.contact-list dd { grid-column: span 2; font-size: 1.5rem; line-height: 2rem; text-transform: none; overflow-wrap: anywhere; }
@media (min-width: 768px) { .contact-list dd { font-size: 1.875rem; line-height: 2.25rem; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--ink-foreground); }
.site-footer__inner { padding-block: 5rem; }
.site-footer__grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) {
	.site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.site-footer__about { grid-column: span 5; }
	.site-footer__menu { grid-column: span 3; }
	.site-footer__contacts { grid-column: span 4; }
}
.site-footer__text { margin-top: 1.5rem; max-width: 24rem; color: var(--ink-muted); }
.site-footer__cta { margin-top: 2rem; }
.site-footer__menu ul { margin-top: 1.25rem; display: grid; gap: .625rem; }
.site-footer__menu a { transition: color .15s; }
.site-footer__menu a:hover { color: var(--primary); }
.site-footer__contacts address { margin-top: 1.25rem; display: grid; gap: .625rem; color: var(--ink-muted); }
.site-footer__contacts address a:hover, .site-footer__legal a:hover { color: var(--ink-foreground); }
.social { margin-top: 1.5rem; display: flex; gap: .75rem; }
.social__link {
	display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
	border: 1px solid color-mix(in oklab, var(--ink-muted) 30%, transparent);
	transition: background-color .15s, border-color .15s;
}
.social__link:hover { background: var(--primary); border-color: var(--primary); }
.site-footer__wordmark-wrap { margin-top: 5rem; overflow: hidden; }
.site-footer__wordmark {
	white-space: nowrap; font-size: 10.2vw; line-height: .8; user-select: none;
	color: color-mix(in oklab, var(--ink-foreground) 5%, transparent);
}
.site-footer__bottom {
	margin-top: 2rem; padding-top: 1.5rem;
	display: flex; flex-direction: column; gap: 1rem;
	border-top: 1px solid color-mix(in oklab, var(--ink-muted) 20%, transparent);
	font-size: .875rem; line-height: 1.25rem; color: var(--ink-muted);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; } }

/* ==========================================================================
   Pagine interne
   ========================================================================== */
.page-header { padding-top: 9rem; padding-bottom: 3.5rem; }
.page-header__title { margin-top: 1rem; font-size: clamp(3.5rem, 11vw, 10rem); color: var(--secondary); }
.page-header__title--sm { font-size: clamp(2.5rem, 7vw, 6rem); }
@media (min-width: 768px) { .page-header { padding-top: 11rem; padding-bottom: 5rem; } }
.admin-bar .page-header { padding-top: calc(9rem + 32px); }
.lead-muted { margin-block: 1.5rem 2rem; font-size: 1.125rem; color: var(--muted-foreground); }

/* ---------- Chi siamo ---------- */
.quote-intro {
	max-width: 64rem; font-family: var(--font-display); font-weight: 600;
	font-size: 1.875rem; line-height: 1.25; color: var(--secondary);
}
@media (min-width: 768px) { .quote-intro { font-size: 3rem; } }

.timeline { border-block: 1px solid var(--border); }
.timeline__track { display: flex; overflow-x: auto; padding-block: 2.5rem; }
.timeline__item { min-width: 200px; flex: 1; border-left: 2px solid var(--secondary-foreground); padding-left: 1.25rem; padding-right: 2rem; }
.timeline__year { font-size: 3rem; line-height: 1; }
.timeline__item .eyebrow { margin-top: .5rem; }

.chapter { display: grid; gap: 2.5rem; padding-block: 5rem; }
.chapter__num { font-size: clamp(6rem, 16vw, 14rem); line-height: 1; color: color-mix(in oklab, var(--primary) 15%, transparent); }
.chapter__title { margin-top: -1.5rem; font-size: 3rem; line-height: 1; color: var(--secondary); }
.chapter__head > .chapter__title:first-child { margin-top: 0; }
.chapter__text { display: grid; gap: 1.25rem; font-size: 1.125rem; line-height: 1.625; }
.chapter__text p { margin: 0; }
.chapter__phrase { font-weight: 600; color: var(--primary); }
.chapter__media { margin-top: 2.5rem; }
@media (min-width: 768px) {
	.chapter { padding-block: 7rem; }
	.chapter__title { font-size: 4.5rem; }
	.chapter__text { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
	.chapter { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; }
	.chapter__head { grid-column: span 5; }
	.chapter__body { grid-column: span 7; padding-top: 6rem; }
	.chapter--reverse .chapter__head { order: 2; }
}

.chapter-hl__grid { display: grid; gap: 3rem; padding-block: 6rem; }
.chapter-hl__eyebrow { opacity: .7; }
.chapter-hl .h-section { margin-top: 1rem; }
.chapter-hl__text { margin-top: 2rem; max-width: 32rem; font-size: 1.125rem; line-height: 1.625; opacity: .9; }
.chapter-hl__figure { margin-top: 2.5rem; font-size: 9rem; line-height: 1; }
.chapter-hl__list { align-self: end; border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 30%, transparent); }
.chapter-hl__list li { display: flex; align-items: baseline; gap: 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid color-mix(in oklab, var(--primary-foreground) 30%, transparent); }
.chapter-hl__num { opacity: .6; }
.chapter-hl__item { font-size: 1.875rem; line-height: 2.25rem; }
@media (min-width: 768px) {
	.chapter-hl__grid { padding-block: 8rem; }
	.chapter-hl__item { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 1024px) { .chapter-hl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.chapter-final { position: relative; overflow: hidden; }
.chapter-final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.chapter-final__inner { position: relative; padding-block: 7rem; }
.chapter-final__content { max-width: 56rem; }
.chapter-final__title { margin-top: 1rem; font-size: 3rem; line-height: 1; }
.chapter-final__text { margin-top: 2rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.625; color: color-mix(in oklab, var(--ink-foreground) 85%, transparent); }
@media (min-width: 768px) {
	.chapter-final__inner { padding-block: 10rem; }
	.chapter-final__title { font-size: 6rem; }
}

/* ---------- Squadra ---------- */
.athletes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .athletes { gap: 1.5rem; } }
@media (min-width: 1024px) { .athletes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.athlete-card { display: block; }
.athlete-card__media { background: var(--secondary); }
.athlete-card__num { position: absolute; right: .75rem; top: .5rem; font-size: 3.75rem; line-height: 1; color: color-mix(in oklab, var(--ink-foreground) 80%, transparent); }
.athlete-card__bar { position: absolute; inset-inline: 0; bottom: 0; height: .25rem; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.athlete-card:hover .athlete-card__bar { transform: scaleX(1); }
.athlete-card__first { margin-top: 1rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.athlete-card__last { font-size: 1.875rem; line-height: 2.25rem; color: var(--secondary); transition: color .15s; }
.athlete-card:hover .athlete-card__last { color: var(--primary); }
@media (min-width: 768px) {
	.athlete-card__num { font-size: 4.5rem; }
	.athlete-card__last { font-size: 2.25rem; line-height: 2.5rem; }
}

.staff { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid color-mix(in oklab, var(--secondary-foreground) 15%, transparent); }
@media (min-width: 768px) { .staff { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.staff__item { padding: 1.75rem 1rem 1.75rem 0; border-bottom: 1px solid color-mix(in oklab, var(--secondary-foreground) 15%, transparent); }
.staff__name { margin-top: .5rem; font-size: 1.875rem; line-height: 2.25rem; }
.section-staff { padding-block: 6rem; }
.section-staff .h-section { margin-top: 0; }

/* Scheda atleta */
.athlete { padding-top: 7rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .athlete { padding-top: 9rem; } }
.athlete__grid { margin-top: 2rem; display: grid; gap: 3rem; }
@media (min-width: 1024px) {
	.athlete__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.athlete__media, .athlete__body { grid-column: span 6; }
	.athlete__body { padding-top: 2.5rem; }
}
.athlete__media { background: var(--secondary); }
.athlete__num { position: absolute; left: 1.25rem; top: .75rem; font-size: 8rem; line-height: 1; color: var(--ink-foreground); }
.athlete__first { font-size: 1.5rem; line-height: 2rem; color: var(--muted-foreground); }
.athlete__last { font-size: 4.5rem; line-height: 1; color: var(--secondary); }
@media (min-width: 768px) { .athlete__last { font-size: 8rem; } }
.athlete__facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.athlete__facts > div { padding-block: 1.25rem; }
.athlete__facts dt { color: var(--muted-foreground); }
.athlete__facts dd { margin-top: .25rem; font-weight: 600; }
.athlete__bio { margin-top: 2rem; font-size: 1.125rem; line-height: 1.625; }
.athlete__stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.athlete__stat { border-top: 2px solid var(--primary); padding-top: .75rem; }
.athlete__stat .display { font-size: 3rem; line-height: 1; color: var(--primary); }
.athlete__stat .eyebrow { margin-top: .25rem; }
.athlete__results { margin-top: 2.5rem; }
.athlete__results ul { margin-top: .75rem; }
.athlete__results li { padding-block: .75rem; font-weight: 600; }
.athlete__results li + li { border-top: 1px solid var(--border); }
.athlete__social { margin-top: 2rem; display: flex; gap: 1rem; }

/* ---------- Sponsor ---------- */
.sponsors { display: grid; gap: 1px; }
.sponsors__grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.sponsors__cell { background: var(--background); }
.sponsor { display: grid; place-items: center; padding-inline: 1.5rem; transition: background-color .15s; height: 7rem; }
a.sponsor:hover { background: var(--secondary); }
.sponsor__name { text-align: center; color: color-mix(in oklab, var(--secondary) 70%, transparent); transition: all .5s; font-size: 1.125rem; line-height: 1.75rem; }
a.sponsor:hover .sponsor__name { transform: scale(1.05); color: var(--secondary-foreground); }
.sponsor__logo { max-height: 60%; max-width: 70%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .5s; }
a.sponsor:hover .sponsor__logo { filter: grayscale(1) brightness(0) invert(1); opacity: 1; transform: scale(1.05); }

.sponsors__grid--partner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sponsors__grid--main .sponsor { height: 14rem; }
.sponsors__grid--main .sponsor__name { font-size: 2.25rem; line-height: 2.5rem; }
.sponsors__grid--premium .sponsor { height: 10rem; }
.sponsors__grid--premium .sponsor__name { font-size: 1.5rem; line-height: 2rem; }
@media (min-width: 768px) {
	.sponsors__grid--main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sponsors__grid--premium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sponsors__grid--partner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sponsor { height: 9rem; }
	.sponsor__name { font-size: 1.5rem; line-height: 2rem; }
	.sponsors__grid--main .sponsor { height: 18rem; }
	.sponsors__grid--main .sponsor__name { font-size: 3.75rem; line-height: 1; }
	.sponsors__grid--premium .sponsor { height: 12rem; }
	.sponsors__grid--premium .sponsor__name { font-size: 2.25rem; line-height: 2.5rem; }
}

/* ---------- Calendario ---------- */
.cal-month { display: grid; gap: 1.5rem; border-top: 2px solid var(--foreground); padding-block: 2.5rem; }
.cal-month__title { font-size: 3rem; line-height: 1; color: var(--secondary); align-self: start; }
.cal-month__list > li + li { border-top: 1px solid var(--border); }
@media (min-width: 768px) { .cal-month__title { font-size: 4.5rem; } }
@media (min-width: 1024px) {
	.cal-month { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.cal-month__title { grid-column: span 4; position: sticky; top: 7rem; }
	.cal-month__list { grid-column: span 8; }
}
.race { display: grid; grid-template-columns: 4.5rem 1fr; align-items: baseline; gap: 1rem; padding-block: 1.25rem; }
.race__day { font-size: 3rem; line-height: 1; color: var(--primary); }
.race__name { font-size: 1.5rem; line-height: 2rem; color: var(--secondary); transition: color .15s; }
.race:hover .race__name { color: var(--primary); }
.race__meta { margin-top: .25rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.race__result { position: static; grid-column-start: 2; justify-self: start; }
@media (min-width: 768px) {
	.race { grid-template-columns: 6rem 1fr auto; }
	.race__day { font-size: 3.75rem; }
	.race__name { font-size: 1.875rem; line-height: 2.25rem; }
	.race__result { grid-column-start: 3; }
}

/* ---------- Equipment ---------- */
.equip__grid { display: grid; gap: 3rem; padding-block: 5rem; }
.equip__media { background: var(--secondary); }
.equip__eyebrow { color: var(--primary); }
.equip__title { margin-top: .75rem; font-size: 3.75rem; line-height: 1; color: var(--secondary); }
.equip__text { margin-top: 1.5rem; line-height: 1.625; color: var(--muted-foreground); }
.specs { margin-top: 2rem; border-top: 1px solid color-mix(in oklab, var(--foreground) 15%, transparent); }
.specs__row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .875rem; border-bottom: 1px solid color-mix(in oklab, var(--foreground) 15%, transparent); }
.specs dt { color: var(--muted-foreground); }
.specs dd { font-weight: 600; text-align: right; }
.equip__cta { margin-top: 2rem; }
.equip--alt .equip__eyebrow, .equip--alt .equip__title { color: var(--secondary-foreground); }
.equip--alt .equip__text, .equip--alt .specs dt { color: var(--secondary-muted); }
.equip--alt .specs, .equip--alt .specs__row { border-color: color-mix(in oklab, var(--secondary-foreground) 15%, transparent); }
@media (min-width: 768px) {
	.equip__grid { padding-block: 7rem; }
	.equip__title { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
	.equip__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.equip__media { grid-column: span 7; }
	.equip__body { grid-column: span 5; }
	.equip--alt .equip__media { order: 2; }
}

/* ---------- News ---------- */
.news-grid { display: grid; column-gap: 1.5rem; row-gap: 4rem; }
.news-grid__side { display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 1024px) {
	.news-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.news-grid__lead { grid-column: span 8; }
	.news-grid__side, .news-grid__item { grid-column: span 4; }
}
.news-grid__lead .news-card__media { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .news-grid__lead .news-card__media { aspect-ratio: 16 / 10; } }

.pagination { margin-top: 4rem; }
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding-inline: .75rem;
	border: 1px solid var(--border);
	font-family: var(--font-sans); letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; font-weight: 700;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

/* Singola news */
.article__body { max-width: 42rem; margin-inline: auto; }
.article__lead { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.375; color: var(--secondary); }
@media (min-width: 768px) { .article__lead { font-size: 1.875rem; } }
.article__content { margin-top: 2.5rem; }
.article__gallery { margin-top: 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .article__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related__title { font-size: 3rem; line-height: 1; }
.related__grid { margin-top: 2.5rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Contenuto editor (news + pagine generiche) */
.entry-content { font-size: 1.125rem; line-height: 1.625; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 2.25rem; line-height: 1; color: var(--secondary); margin-top: 3rem; }
.entry-content h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 1.5rem; line-height: 1.2; color: var(--secondary); margin-top: 2.5rem; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.25rem; }
.entry-content ol { list-style: decimal; padding-left: 1.25rem; }
.entry-content blockquote { border-left: 3px solid var(--primary); padding-left: 1.25rem; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.375; color: var(--secondary); }
.entry-content img { height: auto; }
.prose { max-width: 48rem; }
