/* ==========================================================================
   Arci Pistoia – stili principali
   Indice: 1. Font e variabili · 2. Base · 3. Accessibilità · 4. Layout
   5. Intestazione e menu · 6. Banner · 7. Componenti · 8. Sezioni home
   9. Pagine interne · 10. Piè di pagina · 11. Animazioni · 12. Stampa
   ========================================================================== */

/* 1. FONT E VARIABILI ---------------------------------------------------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}

:root {
	/* Colori (il rosso viene sovrascritto da Aspetto → Personalizza → Colori) */
	--c-primary: #E30613;
	--c-primary-rgb: 227 6 19;
	--c-primary-700: #b1040e;
	--c-primary-800: #88030b;
	--c-ink: #17181C;
	--c-paper: #FBF8F3;
	--c-surface: #FFFFFF;
	--c-sand: #F3EDE4;
	--c-line: #E6DFD4;
	--c-muted: #55565E;
	--c-on-primary: #FFFFFF;

	/* Tipografia */
	--f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--f-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1.0625rem;
	--fs-lg: clamp(1.15rem, 1rem + 0.5vw, 1.375rem);
	--fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	--fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
	--fs-3xl: clamp(2.6rem, 1.6rem + 4.6vw, 6rem);

	/* Spazi e forme */
	--gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
	--section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
	--radius: 18px;
	--radius-lg: 28px;
	--shadow: 0 1px 2px rgb(23 24 28 / 0.05), 0 8px 30px -12px rgb(23 24 28 / 0.18);
	--shadow-lg: 0 30px 60px -25px rgb(23 24 28 / 0.35);
	--header-h: 76px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--hero-overlay: 0.55;
}

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--c-primary-700); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary-800); text-decoration-thickness: 2px; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--c-primary); color: #fff; }
.icon { flex: none; }
.muted { color: var(--c-muted); }

/* 3. ACCESSIBILITÀ ------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; top: 0.75rem; left: 0.75rem; z-index: 1000;
	padding: 0.85rem 1.25rem;
	background: var(--c-ink); color: #fff;
	border-radius: 999px; font-weight: 700; text-decoration: none;
	transform: translateY(-200%);
	transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; color: #fff; }
:focus-visible {
	outline: 3px solid var(--c-ink);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #fff;
	border-radius: 6px;
}
.site-main:focus { outline: none; }

/* 4. LAYOUT -------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gap), 1240px); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gap), 760px); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--alt { background: var(--c-sand); }

.section-head {
	display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
	gap: 1rem 2rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.section-head__note { color: var(--c-muted); margin: 0; }
.kicker {
	display: inline-flex; align-items: center; gap: 0.6rem;
	margin: 0 0 0.9rem;
	font-family: var(--f-display); font-size: var(--fs-sm); font-weight: 700;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary-700);
}
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 3px; }
.kicker--light { color: #fff; }
.section-title { font-size: var(--fs-2xl); margin: 0; }
.section-title--sm { font-size: var(--fs-xl); margin-bottom: 1.5rem; }
.empty { padding: 2rem; background: var(--c-surface); border: 1px dashed var(--c-line); border-radius: var(--radius); color: var(--c-muted); }

/* 5. INTESTAZIONE E MENU ------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--c-primary); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

.site-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--header-h);
	background: rgb(251 248 243 / 0.82);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Sulla home l'intestazione è trasparente sopra il banner */
.has-hero .site-header { position: fixed; inset: 0 0 auto; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.has-hero .site-header.is-scrolled { background: rgb(251 248 243 / 0.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); color: var(--c-ink); }

.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand__logo { width: auto; max-height: 48px; }
.brand__mark {
	display: grid; place-items: center;
	width: 52px; height: 52px; flex: none;
	background: var(--c-primary); color: #fff;
	font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.03em;
	border-radius: 12px;
	transition: transform 0.5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__tagline { font-size: var(--fs-xs); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	position: relative; display: block;
	padding: 0.55rem 0.9rem;
	color: inherit; text-decoration: none;
	font-family: var(--f-display); font-weight: 600; font-size: 1rem;
	border-radius: 999px;
	transition: background-color 0.25s;
}
.nav__list a::after {
	content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.3rem; height: 2px;
	background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav__list a:hover::after, .nav__list [aria-current="page"]::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.nav__list .sub-menu { display: none; }

.nav-toggle {
	display: none; align-items: center; gap: 0.5rem;
	padding: 0.6rem 1rem; border: 1.5px solid currentColor; border-radius: 999px;
	background: transparent; color: inherit; font-weight: 700;
}
.nav-toggle__close { display: none; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; position: relative; z-index: 120; }
	.nav {
		position: fixed; inset: 0; z-index: 110;
		display: flex; flex-direction: column; justify-content: center;
		padding: calc(var(--header-h) + 1rem) var(--gap) 2rem;
		background: var(--c-primary); color: #fff;
		clip-path: circle(0 at calc(100% - 3rem) 2.4rem);
		visibility: hidden;
		transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
	}
	.nav.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.4rem); visibility: visible; transition: clip-path 0.7s var(--ease-in-out); }
	.nav__list { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
	.nav__list a { font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; padding: 0.2rem 0; letter-spacing: -0.02em; }
	.nav__list a::after { left: 0; right: 0; bottom: 0.15rem; height: 3px; }
	.nav__list > li { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
	.nav.is-open .nav__list > li { opacity: 1; transform: none; }
	.nav.is-open .nav__list > li:nth-child(1) { transition-delay: 0.15s; }
	.nav.is-open .nav__list > li:nth-child(2) { transition-delay: 0.2s; }
	.nav.is-open .nav__list > li:nth-child(3) { transition-delay: 0.25s; }
	.nav.is-open .nav__list > li:nth-child(4) { transition-delay: 0.3s; }
	.nav.is-open .nav__list > li:nth-child(5) { transition-delay: 0.35s; }
	.nav.is-open .nav__list > li:nth-child(6) { transition-delay: 0.4s; }
	.nav.is-open .nav__list > li:nth-child(n+7) { transition-delay: 0.45s; }
	.nav .sub-menu { display: block; list-style: none; padding: 0 0 0.5rem 1rem; }
	.nav .sub-menu a { font-size: 1.25rem; }
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { color: #fff; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; transform: none; }
	body.nav-open .nav-toggle__open { display: none; }
	body.nav-open .nav-toggle__close { display: inline; }
	body.nav-open .brand { position: relative; z-index: 120; }
	body.nav-open .brand__mark { background: #fff; color: var(--c-primary); }
	.nav :focus-visible { outline-color: #fff; box-shadow: none; }
}
@media (max-width: 480px) {
	.brand__tagline { display: none; }
	.brand__name { font-size: 0.95rem; }
	.nav-toggle__label { display: none; }
}

/* 6. BANNER -------------------------------------------------------------- */
.hero {
	position: relative; isolation: isolate;
	min-height: max(600px, 100svh);
	display: flex; align-items: flex-end;
	color: #fff; overflow: hidden;
	background: var(--c-ink);
}
.hero__media { position: absolute; inset: -8% 0 0; z-index: -2; will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: hero-zoom 2.4s var(--ease) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgb(23 24 28 / calc(var(--hero-overlay) * 0.6)) 0%, rgb(23 24 28 / calc(var(--hero-overlay) * 0.4)) 35%, rgb(23 24 28 / calc(var(--hero-overlay) + 0.25)) 100%),
		linear-gradient(90deg, rgb(23 24 28 / calc(var(--hero-overlay) * 0.8)) 0%, transparent 70%);
}
.hero__pattern {
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 85% 20%, rgb(255 255 255 / 0.16) 0 14%, transparent 14.2%),
		radial-gradient(circle at 70% 75%, rgb(0 0 0 / 0.18) 0 22%, transparent 22.2%),
		radial-gradient(circle at 10% 30%, rgb(255 255 255 / 0.08) 0 9%, transparent 9.2%),
		linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-800) 100%);
}
.hero__content { padding-block: calc(var(--header-h) + 3rem) clamp(4rem, 3rem + 6vw, 8rem); }
.hero__kicker { margin-bottom: 1.25rem; }
.hero__title {
	font-size: var(--fs-3xl);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.035em;
	max-width: 14ch;
	margin-bottom: 1.5rem;
	text-shadow: 0 2px 30px rgb(0 0 0 / 0.25);
}
.hero__text { font-size: var(--fs-lg); max-width: 46ch; margin-bottom: 2.25rem; opacity: 0.95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; width: 30px; height: 60px; translate: -50% 0; color: #fff; }
.hero__scroll-line { position: absolute; inset: 0 auto 0 50%; width: 2px; background: rgb(255 255 255 / 0.35); overflow: hidden; border-radius: 2px; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scroll-line 2s var(--ease-in-out) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero :focus-visible, .section-band :focus-visible, .site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--c-ink); }

/* 7. COMPONENTI ---------------------------------------------------------- */
.btn {
	--btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink);
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
	min-height: 48px; padding: 0.8rem 1.5rem;
	font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
	color: var(--btn-fg); background: var(--btn-bg);
	border: 2px solid var(--btn-bd); border-radius: 999px;
	text-decoration: none; overflow: hidden; isolation: isolate;
	transition: color 0.35s var(--ease), border-color 0.35s, transform 0.35s var(--ease);
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--btn-hover, var(--c-primary));
	transform: translateY(101%); border-radius: inherit;
	transition: transform 0.45s var(--ease);
}
.btn:hover { color: var(--btn-hover-fg, #fff); border-color: var(--btn-hover, var(--c-primary)); text-decoration: none; }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--c-primary); --btn-bd: var(--c-primary); --btn-hover: var(--c-ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bd: #fff; --btn-hover: var(--c-ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.7); --btn-hover: #fff; --btn-hover-fg: var(--c-ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-ink); --btn-hover: var(--c-ink); }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-family: var(--f-display); font-weight: 700; color: var(--c-ink); text-decoration: none;
	padding-bottom: 0.2rem; border-bottom: 2px solid var(--c-primary);
}
.link-arrow .icon { transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--c-primary-700); }
.link-arrow:hover .icon { transform: translateX(4px); }

.tag {
	display: inline-flex; align-items: center;
	padding: 0.2rem 0.65rem;
	font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
	background: var(--c-primary); color: #fff; border-radius: 999px; text-decoration: none;
}
a.tag:hover { color: #fff; background: var(--c-ink); }
.tag--soft { background: rgb(var(--c-primary-rgb) / 0.1); color: var(--c-primary-700); }
.tag--muted { background: var(--c-line); color: var(--c-ink); }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border: 1.5px solid var(--c-line); border-radius: 50%;
	color: var(--c-ink); background: var(--c-surface);
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.icon-btn:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* Schede notizia */
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--c-surface); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__placeholder {
	width: 100%; height: 100%; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-800));
}
.card__placeholder span { font-family: var(--f-display); font-weight: 800; font-size: 2.5rem; color: rgb(255 255 255 / 0.9); letter-spacing: -0.04em; }
.card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; font-size: var(--fs-sm); color: var(--c-muted); }
.card__title { font-size: 1.3rem; line-height: 1.2; margin: 0; }
.card__link { color: var(--c-ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:hover { color: var(--c-ink); }
.card__link:focus-visible { outline: none; box-shadow: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.card__excerpt { color: var(--c-muted); margin: 0; }
.card__more { margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--f-display); font-weight: 700; color: var(--c-primary-700); }
.card__more .icon { transition: transform 0.35s var(--ease); }
.card:hover .card__more .icon { transform: translateX(5px); }
.card .tag { position: relative; z-index: 2; }

.card--feature .card__title { font-size: var(--fs-xl); }
@media (min-width: 900px) {
	.card--feature { grid-row: span 2; }
	.card--feature .card__media { aspect-ratio: auto; flex: 1 1 60%; min-height: 320px; }
	.card--feature .card__body { flex: 0 0 auto; padding: 1.8rem 2rem 2rem; }
}

.news__grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .news__grid { grid-template-columns: repeat(2, 1fr); } .card--feature { grid-column: 1 / -1; } }
@media (min-width: 900px) {
	.news__grid { grid-template-columns: 1.5fr 1fr 1fr; }
	.card--feature { grid-column: auto; }
	.news__grid .card:not(.card--feature) .card__media { aspect-ratio: 16 / 9; }
	.news__grid .card:not(.card--feature) .card__body { padding: 1.1rem 1.25rem 1.3rem; }
	.news__grid .card:not(.card--feature) .card__title { font-size: 1.12rem; }
}
.posts-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* Schede evento */
.event-card {
	position: relative; display: flex; align-items: center; gap: 1.25rem;
	padding: 1.1rem 1.25rem; margin-bottom: 0.9rem;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
	transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
}
.event-card:hover, .event-card:focus-within { transform: translateX(6px); border-color: var(--c-primary); box-shadow: var(--shadow); }
.event-card:has(.card__link:focus-visible) { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.event-card__body { flex: 1; min-width: 0; }
.event-card__title { font-size: 1.2rem; line-height: 1.25; margin: 0.3rem 0 0.4rem; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: var(--fs-sm); color: var(--c-muted); }
.event-card__meta li { display: inline-flex; align-items: center; gap: 0.35rem; }
.event-card__thumb { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex: none; }
.event-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .event-card__thumb { display: none; } }

.date-badge {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 72px; height: 78px; flex: none;
	background: var(--c-primary); color: #fff; border-radius: 16px;
	font-family: var(--f-display); line-height: 1;
	transition: transform 0.45s var(--ease);
}
.event-card:hover .date-badge { transform: rotate(-5deg) scale(1.05); }
.date-badge__day { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
.date-badge__month { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }

/* Calendario */
.calendar { background: var(--c-surface); border-radius: var(--radius-lg); padding: clamp(1.1rem, 0.8rem + 1vw, 1.75rem); box-shadow: var(--shadow); transition: opacity 0.25s; }
.calendar.is-loading { opacity: 0.5; }
.calendar__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.calendar__title { font-size: 1.35rem; margin: 0; }
.calendar__nav { display: flex; gap: 0.4rem; }
.calendar__grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.calendar__grid th { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); padding-bottom: 0.4rem; }
.calendar__grid abbr { text-decoration: none; }
.calendar__grid td { position: relative; height: 46px; padding: 0; text-align: center; vertical-align: middle; border-radius: 12px; }
.calendar__num { display: block; font-variant-numeric: tabular-nums; font-weight: 600; }
.calendar__grid td.is-past { color: #6d6e75; }
.calendar__grid td.is-today { background: var(--c-ink); color: #fff; }
.calendar__grid td.has-events { background: rgb(var(--c-primary-rgb) / 0.1); }
.calendar__grid td.is-today.has-events { background: var(--c-ink); }
.calendar__day { height: 100%; }
.calendar__day summary {
	list-style: none; cursor: pointer; height: 100%; min-height: 46px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	border-radius: 12px; font-weight: 800; color: var(--c-primary-800);
	transition: background-color 0.2s, color 0.2s;
}
.calendar__day summary::-webkit-details-marker { display: none; }
.calendar__day summary:hover, .calendar__day[open] summary { background: var(--c-primary); color: #fff; }
.is-today .calendar__day summary { color: #fff; }
.calendar__dots { display: inline-flex; gap: 3px; }
.calendar__dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.calendar__day summary .calendar__dots i { background: var(--c-primary); }
.calendar__day summary:hover .calendar__dots i, .calendar__day[open] .calendar__dots i, .is-today .calendar__dots i { background: #fff; }
.calendar__pop {
	position: absolute; z-index: 20; top: calc(100% + 6px); left: 50%; translate: -50% 0;
	width: max-content; max-width: 260px; margin: 0; padding: 0.5rem; list-style: none; text-align: left;
	background: var(--c-ink); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
	animation: pop 0.3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.calendar__pop a { display: block; padding: 0.5rem 0.7rem; color: #fff; text-decoration: none; border-radius: 9px; font-size: var(--fs-sm); line-height: 1.3; }
.calendar__pop a:hover { background: rgb(255 255 255 / 0.12); }
.calendar__pop :focus-visible { outline-color: #fff; box-shadow: none; }
.calendar__time { font-weight: 700; color: #ffb3b8; margin-right: 0.25rem; }
.calendar__grid tr td:nth-child(n+5) .calendar__pop { left: auto; right: 0; translate: 0 0; }
.calendar__grid tr td:nth-child(-n+2) .calendar__pop { left: 0; translate: 0 0; }
.calendar__legend { display: flex; align-items: center; gap: 0.5rem; margin: 0.9rem 0 0; font-size: var(--fs-xs); color: var(--c-muted); }
.calendar__legend .calendar__dots i { background: var(--c-primary); }

/* Filtri e segmenti */
.filters ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters a, .segmented a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 1rem;
	border: 1.5px solid var(--c-line); border-radius: 999px; background: var(--c-surface);
	color: var(--c-ink); text-decoration: none; font-weight: 700; font-size: var(--fs-sm);
	transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.filters a:hover, .segmented a:hover { border-color: var(--c-ink); color: var(--c-ink); }
.filters a[aria-current], .segmented a[aria-current] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.filters { margin-bottom: 2rem; }
.segmented { display: inline-flex; gap: 0.35rem; padding: 0.3rem; background: var(--c-sand); border-radius: 999px; }
.segmented a { border-color: transparent; background: transparent; }
.events-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.events-toolbar .filters { margin: 0; }

.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; list-style: none; padding: 0; margin: 3rem 0 0; }
.pagination a, .pagination span.current {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 0.75rem;
	border-radius: 999px; border: 1.5px solid var(--c-line); text-decoration: none; color: var(--c-ink); font-weight: 700; background: var(--c-surface);
}
.pagination span.current { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.pagination a:hover { border-color: var(--c-ink); }

.search-form { display: flex; gap: 0.5rem; max-width: 560px; margin-bottom: 2rem; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 52px; padding: 0.7rem 1.25rem;
	font: inherit; color: var(--c-ink); background: var(--c-surface);
	border: 2px solid var(--c-line); border-radius: 999px;
}
.search-form__input:focus { border-color: var(--c-ink); outline: none; }
.search-form__input:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; box-shadow: none; }
@media (max-width: 480px) { .search-form__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* 8. SEZIONI HOME -------------------------------------------------------- */
.marquee {
	overflow: hidden; background: var(--c-primary); color: #fff;
	padding-block: clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
	border-block: 1px solid rgb(0 0 0 / 0.08);
}
.marquee__track { display: flex; align-items: center; gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); width: max-content; will-change: transform; animation: marquee 50s linear infinite; }
.marquee__track span:not(.marquee__dot) { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 1rem + 3vw, 3.25rem); letter-spacing: -0.03em; white-space: nowrap; }
.marquee__track span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.marquee__dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.js .marquee__track { animation: none; transform: translateX(var(--marquee-x, 0)); }

.intro { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.intro__inner { text-align: center; }
.intro__inner p, .intro__inner .has-large-font-size { font-family: var(--f-display); font-size: var(--fs-xl); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.news { padding-top: clamp(2rem, 1rem + 3vw, 4rem); }

.section-band { background: var(--c-primary); color: #fff; overflow: hidden; position: relative; }
.section-band::before {
	content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -20vmax; top: -30vmax;
	border-radius: 50%; background: rgb(255 255 255 / 0.07);
}
.band { position: relative; display: grid; gap: 3rem; align-items: center; padding-block: var(--section); }
@media (min-width: 860px) { .band { grid-template-columns: 1.1fr 0.9fr; } }
.band__title { font-size: var(--fs-2xl); font-weight: 800; }
.band__text p { font-size: var(--fs-lg); max-width: 40ch; margin-bottom: 2rem; }
.band__media { perspective: 1000px; }
.band__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.band__card {
	aspect-ratio: 1.586; max-width: 420px; margin-inline: auto;
	display: flex; flex-direction: column; justify-content: space-between; padding: 2rem;
	background: linear-gradient(135deg, #fff 0%, #f6efe6 100%); color: var(--c-ink);
	border-radius: 24px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.5);
	transform: rotate(-6deg) rotateY(var(--tilt-y, 0deg)) rotateX(var(--tilt-x, 0deg));
	transition: transform 0.6s var(--ease);
}
.band__card-logo { align-self: flex-start; padding: 0.4rem 0.9rem; background: var(--c-primary); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 2rem; border-radius: 12px; letter-spacing: -0.04em; }
.band__card-line { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.9rem; color: var(--c-muted); }

.events__layout { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (min-width: 980px) {
	.events__layout { grid-template-columns: 1.25fr 1fr; }
	.events__calendar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.events__list--row { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.events__list--row .event-card { margin: 0; }
.month-label { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-primary-700); margin: 2rem 0 1rem; display: flex; align-items: center; gap: 1rem; }
.month-label::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.month-label:first-child { margin-top: 0; }

.cta { padding-top: 0; }
.cta__inner {
	text-align: center; padding: clamp(3rem, 2rem + 4vw, 5.5rem) var(--gap);
	background: var(--c-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
	position: relative; overflow: hidden;
}
.cta__inner::before, .cta__inner::after { content: ""; position: absolute; border-radius: 50%; background: rgb(var(--c-primary-rgb) / 0.08); }
.cta__inner::before { width: 260px; height: 260px; left: -90px; top: -110px; }
.cta__inner::after { width: 180px; height: 180px; right: -50px; bottom: -70px; }
.cta__title { font-size: var(--fs-2xl); max-width: 18ch; margin-inline: auto; }
.cta__inner p { color: var(--c-muted); font-size: var(--fs-lg); margin-bottom: 2rem; }

/* 9. PAGINE INTERNE ------------------------------------------------------ */
.page-head { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); border-bottom: 1px solid var(--c-line); }
.page-head__title { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; margin-bottom: 0.35em; }
.page-head__lead { font-size: var(--fs-lg); color: var(--c-muted); max-width: 52ch; margin: 0; }
.page-head__shape {
	position: absolute; z-index: -1; right: -8vw; top: 50%; width: clamp(240px, 35vw, 520px); aspect-ratio: 1;
	border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%;
	background: var(--c-primary); opacity: 0.1;
	translate: 0 -50%; animation: blob 18s ease-in-out infinite alternate;
}
@keyframes blob { to { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; rotate: 40deg; } }
.page-figure, .post-figure { margin-block: 0 clamp(2rem, 1rem + 3vw, 3.5rem); }
.page-figure img, .post-figure img { width: 100%; border-radius: var(--radius-lg); }
.post-figure figcaption { font-size: var(--fs-sm); color: var(--c-muted); margin-top: 0.75rem; }
.post-figure--inline { margin-bottom: 2rem; }

/* Contenuti scritti nell'editor */
.entry-content > * + * { margin-top: 1.25em; }
.entry-content > * { margin-bottom: 0; }
.entry-content h2 { font-size: var(--fs-xl); margin-top: 2em; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content li::marker { color: var(--c-primary); }
.entry-content blockquote {
	margin-inline: 0; padding: 0.5rem 0 0.5rem 1.5rem; border-left: 4px solid var(--c-primary);
	font-family: var(--f-display); font-size: var(--fs-lg); font-weight: 600; line-height: 1.35;
}
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption { font-size: var(--fs-sm); color: var(--c-muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--c-line); text-align: left; }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--c-primary); color: #fff; font-family: var(--f-display); font-weight: 700; }
.entry-content .wp-block-button__link:hover { background: var(--c-ink); color: #fff; }
.entry-content .has-large-font-size { font-size: var(--fs-lg) !important; line-height: 1.5; }
.entry-content .alignwide { width: min(100vw - 2 * var(--gap), 1100px); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.has-arci-red-color { color: var(--c-primary-700); }
.has-arci-red-background-color { background-color: var(--c-primary); color: #fff; }
.has-ink-background-color { background-color: var(--c-ink); color: #fff; }

/* Singola notizia / evento */
.post-head { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1rem + 3vw, 3rem); }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; color: var(--c-muted); font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.post-head__title { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.03em; }
.post-head--event .post-head__title { font-size: var(--fs-3xl); max-width: 18ch; }
.post-head__lead { font-size: var(--fs-lg); color: var(--c-muted); }
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--c-ink); font-weight: 700; text-decoration: none; }
.post-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-line); display: grid; gap: 1.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags a { display: inline-block; padding: 0.3rem 0.8rem; background: var(--c-sand); border-radius: 999px; color: var(--c-ink); text-decoration: none; font-size: var(--fs-sm); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.share__title { font-size: 1rem; margin: 0; }
.share__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share__list a { display: inline-flex; min-height: 40px; align-items: center; padding: 0.35rem 1rem; border: 1.5px solid var(--c-line); border-radius: 999px; color: var(--c-ink); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); }
.share__list a:hover { border-color: var(--c-ink); }
.post-nav { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.post-nav__link { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.5rem; background: var(--c-surface); border-radius: var(--radius); text-decoration: none; color: var(--c-ink); box-shadow: var(--shadow); transition: transform 0.45s var(--ease); }
.post-nav__link:hover { transform: translateY(-4px); color: var(--c-ink); }
.post-nav__link--next { text-align: right; align-items: flex-end; }
.post-nav__dir { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-sm); color: var(--c-primary-700); font-weight: 700; }
.post-nav__title { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }

.event-layout { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; padding-bottom: var(--section); }
@media (min-width: 960px) { .event-layout { grid-template-columns: 1fr 360px; } .event-box { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.event-layout__main { min-width: 0; }
.event-box { background: var(--c-surface); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); border-top: 6px solid var(--c-primary); }
.event-box__title { font-size: 1.3rem; }
.event-box__list { margin: 0 0 1.5rem; display: grid; gap: 1.1rem; }
.event-box__list dt { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-primary-700); }
.event-box__list dd { margin: 0.25rem 0 0; font-weight: 600; }
.event-box__cal { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.event-box__cal-title { width: 100%; margin: 0 0 0.25rem; font-size: var(--fs-sm); color: var(--c-muted); }
.related { background: var(--c-sand); }

/* Chi siamo */
.about { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (min-width: 900px) { .about { grid-template-columns: 1.5fr 1fr; } .about__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }
.facts { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.facts li { display: flex; flex-direction: column; padding: 1.4rem 1.5rem; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts__num { font-family: var(--f-display); font-size: var(--fs-2xl); font-weight: 800; color: var(--c-primary); line-height: 1; letter-spacing: -0.04em; margin-bottom: 0.3rem; }
.people { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.person { background: var(--c-surface); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); transition: transform 0.45s var(--ease); }
.person:hover { transform: translateY(-6px); }
.person__photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin-bottom: 1.1rem; background: var(--c-primary); display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.03em; }
.person__name { font-size: 1.3rem; margin-bottom: 0.2rem; }
.person__role { color: var(--c-primary-700); font-weight: 700; margin-bottom: 0.6rem; }
.person__bio { color: var(--c-muted); font-size: var(--fs-sm); }
.person__mail { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); word-break: break-all; }
.board { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.board__item { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; transition: border-color 0.3s, transform 0.4s var(--ease); }
.board__item:hover { border-color: var(--c-primary); transform: translateX(4px); }
.board__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgb(var(--c-primary-rgb) / 0.1); color: var(--c-primary-700); font-family: var(--f-display); font-weight: 800; font-size: 0.95rem; }
.board__name { font-weight: 700; line-height: 1.25; }
.board__role { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--c-primary-700); }

/* Trasparenza */
.transparency { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 960px) {
	.transparency { grid-template-columns: 200px 1fr; }
	.transparency__nav { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
}
.transparency__main { min-width: 0; max-width: 900px; }
.transparency__nav-title { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-muted); margin-bottom: 0.6rem; }
.transparency__nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
@media (min-width: 960px) { .transparency__nav ul { flex-direction: column; } }
.transparency__nav ul a { display: block; padding: 0.45rem 1rem; border-radius: 12px; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--c-ink); text-decoration: none; border: 1.5px solid var(--c-line); background: var(--c-surface); transition: background-color 0.25s, color 0.25s; }
.transparency__nav ul a:hover, .transparency__nav ul a.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.transparency__heading { margin-top: 3rem; }
.transparency__updated { margin-top: 3rem; font-size: var(--fs-sm); color: var(--c-muted); }
.apc-year { margin-top: 2.5rem; }
.apc-year__title { font-size: var(--fs-xl); display: flex; align-items: center; gap: 1rem; }
.apc-year__title::after { content: ""; flex: 1; height: 2px; background: var(--c-primary); opacity: 0.25; }
.apc-group { margin-bottom: 2rem; }
.apc-group__title { font-size: 1.1rem; color: var(--c-primary-700); margin-bottom: 0.75rem; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); background: var(--c-surface); box-shadow: var(--shadow); }
.table-scroll:focus-visible { outline: 3px solid var(--c-ink); }
.apc-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: var(--fs-sm); }
.apc-table th, .apc-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.apc-table thead th { background: var(--c-ink); color: #fff; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.apc-table tbody th { font-weight: 700; }
.apc-table tbody tr { transition: background-color 0.2s; }
.apc-table tbody tr:hover { background: rgb(var(--c-primary-rgb) / 0.05); }
.apc-table tfoot th, .apc-table tfoot td { background: var(--c-sand); border-bottom: 0; }
.apc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Contatti */
.contact-cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.contact-card { padding: 1.75rem; background: var(--c-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform 0.45s var(--ease); }
.contact-card:hover { transform: translateY(-6px); }
.contact-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--c-primary); color: #fff; margin-bottom: 1rem; }
.contact-card__title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.contact-card p { margin-bottom: 0.4rem; word-break: break-word; }
.contacts__body { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 900px) { .contacts__body { grid-template-columns: 1fr 1.2fr; } }
.map { margin: 0; }
.map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--c-sand); }
.map figcaption { font-size: var(--fs-sm); color: var(--c-muted); margin-top: 0.6rem; }
.admin-hint { padding: 1rem 1.25rem; background: #fff7d6; border: 1px solid #e8d48a; border-radius: 12px; }
.social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social__link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; color: inherit; transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease); }
.social__link:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; transform: translateY(-3px); }

/* 10. PIÈ DI PAGINA ------------------------------------------------------ */
.site-footer { position: relative; background: var(--c-ink); color: #e8e6e3; margin-top: var(--section); padding-top: clamp(4rem, 3rem + 4vw, 6rem); }
.site-main > .section:last-child + .site-footer, .cta + .site-footer { margin-top: 0; }
.site-footer__wave { position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: var(--c-paper); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); padding-bottom: 3rem; }
.site-footer__name { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: #fff; margin-bottom: 0.75rem; }
.site-footer__claim { color: #c9c7c3; max-width: 32ch; }
.site-footer__title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: #ff8d94; margin-bottom: 1rem; }
.site-footer__list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.6rem; }
.site-footer__list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.site-footer__list .icon { margin-top: 0.25em; color: #ff8d94; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgb(255 255 255 / 0.15); font-size: var(--fs-sm); color: #c9c7c3; }
.site-footer__bottom p { margin: 0; }
.widget-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: #ff8d94; }

.to-top {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
	display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
	background: var(--c-primary); color: #fff; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(16px);
	transition: opacity 0.35s, transform 0.45s var(--ease), visibility 0s linear 0.45s, background-color 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s, transform 0.45s var(--ease), background-color 0.25s; }
.to-top:hover { background: var(--c-ink); color: #fff; }

/* 11. ANIMAZIONI ALLO SCORRIMENTO ----------------------------------------
   Attive solo con JavaScript e se l'utente NON ha chiesto di ridurre il movimento.
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(36px);
		transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
		transition-delay: calc(var(--d, 0) * 90ms);
	}
	.js [data-reveal="zoom"] { transform: scale(0.94); }
	.js [data-reveal="right"] { transform: translateX(48px); }
	.js [data-reveal].is-visible { opacity: 1; transform: none; }

	/* Titoli che salgono parola per parola */
	.js [data-reveal="split"], .js [data-split] { opacity: 1; transform: none; }
	.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
	.word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--w, 0) * 60ms + 80ms); }
	.is-visible .word > span, .word.is-visible > span { transform: none; }

	/* Banner: entrata in sequenza al caricamento */
	.js .hero__kicker, .js .hero__text, .js .hero__actions { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
	.js .hero__kicker { animation-delay: 0.1s; }
	.js .hero__text { animation-delay: 0.55s; }
	.js .hero__actions { animation-delay: 0.7s; }
	@keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	html { scroll-behavior: auto; }
	.marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
	.js .marquee__track { transform: none; }
	.hero__media { transform: none !important; }
}

/* 12. STAMPA ------------------------------------------------------------- */
@media print {
	.site-header, .site-footer, .to-top, .progress, .marquee, .hero__scroll, .share, .post-nav, .calendar__nav, .transparency__nav { display: none !important; }
	body { background: #fff; color: #000; }
	.js [data-reveal] { opacity: 1 !important; transform: none !important; }
	.apc-table thead th { background: #eee; color: #000; }
	a { color: #000; }
}
@media (max-width: 640px), (max-height: 700px) { .hero__scroll { display: none; } }

/* Pulsanti "contorno" dell'editor (es. in Convenzioni) */
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--c-primary-700); border: 2px solid currentColor; }
.entry-content .is-style-outline .wp-block-button__link:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

/* Circoli */
.circoli-intro { max-width: 760px; margin-bottom: 2.5rem; }
.circoli-tools {
	position: sticky; top: calc(var(--header-h) + 0.75rem); z-index: 30;
	display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.25rem;
	padding: 1rem 1.25rem; margin-bottom: 2rem;
	background: rgb(255 255 255 / 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
	transition: top 0.45s var(--ease);
}
.site-header.is-hidden ~ .site-main .circoli-tools { top: 0.75rem; }
.circoli-tools__field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 240px; }
.circoli-tools__field label { font-size: var(--fs-sm); font-weight: 700; }
.circoli-tools .search-form__input { min-height: 48px; }
.circoli-tools__select {
	min-height: 48px; padding: 0.6rem 2.5rem 0.6rem 1.1rem; font: inherit; color: var(--c-ink);
	background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317181C' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center;
	border: 2px solid var(--c-line); border-radius: 999px; appearance: none; -webkit-appearance: none;
}
.circoli-tools__select:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; box-shadow: none; }
.circoli-tools__count { margin: 0; padding-bottom: 0.7rem; font-weight: 700; color: var(--c-primary-700); white-space: nowrap; }
.circoli { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.circolo {
	display: flex; flex-direction: column; gap: 0.9rem; padding: 1.4rem;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.circolo:hover, .circolo:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.js .circolo { animation: circolo-in 0.6s var(--ease) both; }
@keyframes circolo-in { from { opacity: 0; transform: translateY(14px); } }
.circolo[hidden] { display: none; }
.circolo__head { display: flex; gap: 1rem; align-items: center; }
.circolo__logo {
	width: 64px; height: 64px; flex: none; border-radius: 16px; overflow: hidden;
	display: grid; place-items: center; background: var(--c-primary); color: #fff;
	font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em;
}
.circolo__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.circolo__name { font-size: 1.15rem; line-height: 1.2; margin: 0.35rem 0 0; }
.circolo__descr { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }
.circolo__info { display: grid; gap: 0.4rem; font-size: var(--fs-sm); }
.circolo__info li { display: flex; gap: 0.5rem; align-items: flex-start; }
.circolo__info .icon { margin-top: 0.2em; color: var(--c-primary-700); }
.circolo__info a { color: var(--c-ink); }
.circolo__links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 0.4rem; }
.circoli-cta { margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
@media (prefers-reduced-motion: reduce) { .js .circolo { animation: none; } }
