/*
Theme Name: VAB Bagno a Ripoli
Description: Tema per il sito della VAB Vigilanza Antincendi Boschivi, sezione di Bagno a Ripoli. Home con slideshow, fascia emergenza incendi, attività, percorso volontari e ultime notizie, tutto modificabile da Aspetto > Personalizza > Tema VAB.
Version: 2.8.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vab-bagno-a-ripoli
License: GNU General Public License v2 or later
*/

:root {
	--green: #1d8a3b;
	--green-mid: #146b2d;
	--green-deep: #0b2e17;
	--sage: #eef3ec;
	--sage-line: #dbe5d8;
	--yellow: #f6b81f;
	--yellow-dark: #dd9f06;
	--gold-text: #a36f00;
	--red: #b3211b;
	--red-deep: #8e1712;
	--ink: #142019;
	--muted: #56635b;
	--line: #e4e9e3;
	--white: #ffffff;
	--font-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Barlow", "Segoe UI", Arial, sans-serif;
	--header-h: 76px;
	--r-lg: 22px;
	--r-md: 14px;
	--shadow: 0 18px 40px -18px rgba(11, 46, 23, .35);
	--contour: url("assets/img/contour.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0; font-family: var(--font-body); font-size: 1.08rem; line-height: 1.65;
	color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: -.005em; margin: 0 0 .5em; color: var(--ink); }

.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 820px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Pulsanti ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.1;
	padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { font-size: 1.08rem; padding: 1em 1.9em; }
.btn--small { font-size: .95rem; padding: .7em 1.35em; }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-dark); color: var(--ink); }
.btn--glass { color: var(--white); border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn--glass:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--ghost { color: var(--green-mid); border-color: var(--sage-line); background: var(--white); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); }

/* ---------- Intestazione ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 46, 23, .45); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-header__brand { flex: 0 0 auto; }
.custom-logo { max-height: 52px; width: auto; }
.text-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.text-logo__mark { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--green); }
.text-logo__place { font-size: .8rem; color: var(--muted); margin-top: 2px; font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block; padding: 9px 13px; border-radius: 999px;
	font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; white-space: nowrap;
	transition: background-color .15s, color .15s;
}
.site-nav .menu a:hover { background: var(--sage); color: var(--green-deep); }
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a,
.site-nav .menu .current-menu-ancestor > a,
.site-nav .menu .current_page_ancestor > a { color: var(--gold-text); }

.site-nav .menu-item-has-children > a::after,
.site-nav .page_item_has_children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg);
}
.site-nav .sub-menu, .site-nav .children {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
	background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow); border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav .sub-menu::before, .site-nav .children::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu,
.site-nav li:hover > .children, .site-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a, .site-nav .children a { border-radius: 10px; white-space: normal; padding: 10px 14px; }

.site-nav__actions { display: flex; align-items: center; gap: 10px; }
.search-toggle { background: none; border: 0; width: 42px; height: 42px; cursor: pointer; color: var(--ink); border-radius: 50%; display: grid; place-items: center; transition: background-color .15s; }
.search-toggle:hover { background: var(--sage); }

.header-search { border-top: 1px solid var(--line); background: var(--white); padding: 16px 0; }
.header-search__form { display: flex; gap: 10px; }
.header-search__form input { flex: 1; font: inherit; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--sage-line); background: var(--sage); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; width: 46px; height: 46px; padding: 11px; flex-direction: column; justify-content: center; gap: 5px; border-radius: 50%; }
.nav-toggle:hover { background: var(--sage); }
.nav-toggle__bar { display: block; height: 2px; width: 24px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 1100px) {
	.nav-toggle { display: flex; }
	.site-nav {
		position: absolute; left: 12px; right: 12px; top: calc(100% + 6px);
		flex-direction: column; align-items: stretch; gap: 0; display: none;
		background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line);
		padding: 12px; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
	}
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu a { padding: 13px 16px; border-radius: 12px; }
	.site-nav .sub-menu, .site-nav .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.site-nav .menu-item-has-children > a::after, .site-nav .page_item_has_children > a::after { display: none; }
	.site-nav__actions { padding: 14px 4px 4px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; }
	.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero home ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(calc(100vh - var(--header-h)), 860px);
	display: flex; align-items: center; padding: 80px 0 128px;
	background: var(--green-deep) var(--contour) center / cover no-repeat;
	color: var(--white); text-align: center;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 8s ease-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero--photo::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(ellipse 70% 60% at 50% 45%, rgba(8, 22, 13, .35) 0%, rgba(8, 22, 13, .7) 100%),
		linear-gradient(180deg, rgba(8, 22, 13, .35) 0%, rgba(8, 22, 13, .2) 40%, rgba(8, 22, 13, .85) 100%);
}
.hero__content { display: flex; flex-direction: column; align-items: center; }
.hero__emblem { width: 150px; height: 150px; object-fit: contain; margin-bottom: 24px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .4)); }
.hero__badge {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 8px 18px; border-radius: 999px;
	border: 1px solid rgba(246, 184, 31, .55); background: rgba(246, 184, 31, .12); backdrop-filter: blur(6px);
	color: var(--yellow); font-weight: 600; font-size: .95rem;
}
.hero__title { margin: 0 0 18px; color: var(--white); font-weight: 800; }
.hero__title-main { display: block; font-size: clamp(3rem, 7.4vw, 6rem); line-height: .95; letter-spacing: -.01em; }
.hero__title-sub { display: block; font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1; color: var(--yellow); margin-top: .08em; }
.hero__tagline { margin: 0 0 22px; font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .78); }
.hero__text { max-width: 60ch; margin: 0 0 36px; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.7; color: rgba(255, 255, 255, .9); }
.hero__text strong { color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__dots { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 5px; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: background-color .2s, width .2s; }
.hero__dot.is-active { background: var(--yellow); width: 52px; }

/* ---------- Fascia emergenza ---------- */
.alert-strip { position: relative; z-index: 2; margin-top: -56px; }
.alert-strip__inner {
	display: flex; align-items: center; gap: 22px;
	background: linear-gradient(110deg, var(--red) 0%, var(--red-deep) 100%);
	color: var(--white); border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--shadow);
	width: calc(100% - 40px); max-width: 1060px;
}
.alert-strip__icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--yellow); }
.alert-strip__copy { flex: 1; }
.alert-strip__title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.alert-strip__text { margin: 2px 0 0; color: rgba(255, 255, 255, .85); font-size: 1rem; }
.alert-strip__number {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: .02em; line-height: 1;
	color: var(--red-deep); background: var(--white); padding: 14px 24px; border-radius: 999px; text-decoration: none;
	transition: transform .15s;
}
.alert-strip__number:hover { color: var(--red-deep); transform: scale(1.03); }

/* ---------- Sezioni ---------- */
.section { padding: 96px 0; }
.section--tight { padding-top: 0; }
.section--page { padding: 64px 0 80px; }
.section__head { max-width: 720px; margin: 0 0 44px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section__title { font-size: clamp(2.3rem, 4.4vw, 3.4rem); margin-bottom: .25em; }
.section__intro { color: var(--muted); margin: 0; font-size: 1.12rem; max-width: 60ch; }

/* Mosaico attività */
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-auto-rows: minmax(250px, auto); gap: 20px; }
.bento > .tile:first-child { grid-row: span 2; }
.bento--even { grid-template-columns: repeat(3, 1fr); }
.bento--even > .tile:first-child { grid-row: auto; }
.bento--even .tile { min-height: 340px; }

.tile {
	position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
	display: flex; align-items: flex-end; min-height: 250px;
	background: var(--green-deep) var(--contour) center / cover no-repeat; color: var(--white);
}
.tile:nth-child(2):not(.tile--photo) { background-color: var(--green-mid); }
.tile:nth-child(3):not(.tile--photo) { background-color: #1f5a2f; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 22, 13, 0) 30%, rgba(8, 22, 13, .88) 100%); }
.tile:hover .tile__img { transform: scale(1.05); }
.tile__body { padding: 28px 30px 30px; max-width: 520px; }
.tile__title { color: var(--white); font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .3em; }
.tile__link { color: inherit; text-decoration: none; }
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__link:hover { color: inherit; }
.tile__link:focus-visible { outline: none; }
.tile:has(.tile__link:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }
.tile__text { margin: 0; color: rgba(255, 255, 255, .86); }
.tile__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--yellow); }
.tile:hover .tile__more svg { transform: translateX(3px); }
.tile__more svg { transition: transform .2s; }

/* Volontari */
.volunteer { background: var(--sage); padding: 96px 0; }
.volunteer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.volunteer__media {
	min-height: 520px; height: 100%; border-radius: var(--r-lg);
	background: var(--green) var(--contour) center / cover no-repeat;
}
.volunteer__media.has-photo { background-size: cover; background-position: center; }
.volunteer__title { font-size: clamp(2.3rem, 4.4vw, 3.4rem); margin-bottom: .3em; }
.volunteer__text { color: var(--muted); font-size: 1.12rem; margin: 0 0 28px; }
.volunteer__steps { list-style: none; counter-reset: step; margin: 0 0 32px; padding: 0; display: grid; gap: 4px; }
.volunteer__steps li {
	counter-increment: step; position: relative; padding: 14px 0 14px 60px; border-bottom: 1px solid var(--sage-line);
}
.volunteer__steps li:last-child { border-bottom: 0; }
.volunteer__steps li::before {
	content: counter(step); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--white); border: 2px solid var(--yellow); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink);
}

/* Notizie */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
	position: relative; display: flex; flex-direction: column; background: var(--white);
	border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-deep) var(--contour) center / cover no-repeat; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__date {
	position: absolute; left: 14px; top: 14px; background: var(--white); color: var(--ink);
	font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.card__body { padding: 20px 22px 26px; }
.card__title { font-size: 1.5rem; margin-bottom: .35em; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:hover { color: var(--green-mid); }
.card__excerpt p { margin: 0; color: var(--muted); font-size: 1rem; }
.empty-note { color: var(--muted); padding: 40px; text-align: center; border: 1.5px dashed var(--sage-line); border-radius: var(--r-lg); }

/* ---------- Pagine interne ---------- */
.page-hero {
	position: relative; isolation: isolate; color: var(--white); padding: 88px 0 72px;
	background: var(--green-deep) var(--contour) center / cover no-repeat;
}
.page-hero--photo { padding: 150px 0 72px; background-size: cover; background-position: center; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 22, 13, .25) 0%, rgba(8, 22, 13, .82) 100%); }
.page-hero__crumb { display: inline-block; margin-bottom: 12px; color: var(--yellow); font-weight: 700; text-decoration: none; font-size: .98rem; }
a.page-hero__crumb:hover { color: var(--white); }
.page-hero__title { color: var(--white); font-size: clamp(2.8rem, 6vw, 4.8rem); margin: 0; max-width: 18ch; }
.page-hero--article .page-hero__title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: none; }
.page-hero__lead { margin: 18px 0 0; max-width: 60ch; font-size: 1.2rem; color: rgba(255, 255, 255, .86); }

.entry-content > * + * { margin-top: 1.15em; }
.entry-content > p:first-child { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.entry-content h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.6rem; margin-top: 1.4em; }
.entry-content img { border-radius: var(--r-md); }
.entry-content .wp-block-image figcaption { color: var(--muted); font-size: .92rem; }
.entry-content .wp-block-button__link { background: var(--yellow); color: var(--ink); border-radius: 999px; font-weight: 700; padding: .95em 1.8em; }
.entry-content .wp-block-button__link:hover { background: var(--yellow-dark); }
.entry-content .wp-block-separator { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--yellow); color: var(--muted); }
.home-content { padding-top: 0; }

/* Stili blocchi: spunte */
.entry-content .is-style-vab-check { list-style: none; padding: 0; display: grid; gap: 12px; }
.entry-content .is-style-vab-check li {
	position: relative; padding: 16px 18px 16px 58px; background: var(--sage); border-radius: var(--r-md);
}
.entry-content .is-style-vab-check li::before {
	content: ""; position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%;
	background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* Stili blocchi: passaggi */
.entry-content .is-style-vab-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0; }
.entry-content .is-style-vab-steps li { counter-increment: step; position: relative; padding: 18px 0 18px 66px; border-bottom: 1px solid var(--line); }
.entry-content .is-style-vab-steps li:last-child { border-bottom: 0; }
.entry-content .is-style-vab-steps li::before {
	content: counter(step); position: absolute; left: 0; top: 14px; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: var(--yellow); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink);
}
/* Stili blocchi: avviso emergenza e riquadro */
.entry-content .wp-block-quote.is-style-vab-alert {
	border: 0; padding: 24px 26px 24px 88px; border-radius: var(--r-lg); position: relative;
	background: linear-gradient(110deg, var(--red) 0%, var(--red-deep) 100%); color: var(--white);
}
.entry-content .wp-block-quote.is-style-vab-alert::before {
	content: ""; position: absolute; left: 24px; top: 24px; width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6b81f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22c4.4 0 7-2.9 7-6.8 0-3.6-2.6-6.3-4.1-8.7-.4 2.1-1.4 3.4-2.6 4.1.3-3.4-1.2-6.7-3.8-8.6.3 3.6-1.7 5.9-3.1 8.1C4.5 12 4 13.4 4 15.2 4 19.1 7.6 22 12 22z'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.entry-content .is-style-vab-alert p { margin: 0; font-size: 1.1rem; }
.entry-content .is-style-vab-alert strong { color: var(--white); }
.entry-content .wp-block-quote.is-style-vab-note { border: 0; padding: 22px 26px; border-radius: var(--r-lg); background: var(--sage); color: var(--ink); }
.entry-content .is-style-vab-note p { margin: 0; }
/* Stili blocchi: colonne a schede */
.entry-content .wp-block-columns.is-style-vab-cards { gap: 18px; }
.entry-content .is-style-vab-cards > .wp-block-column { background: var(--sage); border-radius: var(--r-lg); padding: 24px 24px 26px; }
.entry-content .is-style-vab-cards h3 { margin-top: 0; font-size: 1.55rem; }
.entry-content .is-style-vab-cards p { margin: .4em 0 0; color: var(--muted); }

.single__image { margin: 0 0 32px; }
.post-navigation { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; }
.post-navigation a { text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.post-navigation a:hover { color: var(--green-mid); }
.post-nav__label { display: block; font-family: var(--font-body); font-weight: 500; font-size: .88rem; color: var(--muted); }
.nav-next { text-align: right; margin-left: auto; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; padding: 10px 14px; text-align: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--white); }
.pagination .page-numbers.current { background: var(--yellow); border-color: var(--yellow); font-weight: 700; }

.search-form { display: flex; gap: 10px; margin-top: 20px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; font: inherit; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--sage-line); background: var(--sage); }
.search-form .search-submit { font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--yellow); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer {
	position: relative; isolation: isolate; color: rgba(255, 255, 255, .78); font-size: 1rem;
	background: var(--green-deep) var(--contour) center bottom / cover no-repeat;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-top: 80px; padding-bottom: 56px; }
.site-footer__name { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--white); margin: 0 0 14px; }
.site-footer__about p { max-width: 42ch; }
.site-footer__title { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--yellow); margin-bottom: 14px; }
.site-footer__col p { margin: 0 0 8px; }
.social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; font-size: .95rem; }
.social a:hover { border-color: var(--yellow); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.site-footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.bento, .bento--even { grid-template-columns: 1fr 1fr; }
	.bento > .tile:first-child { grid-row: auto; grid-column: 1 / -1; min-height: 340px; }
	.bento--even > .tile:first-child { grid-column: auto; }
	.cards { grid-template-columns: 1fr 1fr; }
	.volunteer__inner { grid-template-columns: 1fr; gap: 36px; }
	.volunteer__media { min-height: 320px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
	.alert-strip__inner { flex-wrap: wrap; }
	.alert-strip__copy { flex-basis: calc(100% - 80px); }
	.alert-strip__number { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
	.container { padding: 0 20px; }
	.section, .volunteer { padding: 64px 0; }
	.bento, .bento--even, .cards, .site-footer__grid { grid-template-columns: 1fr; }
	.bento > .tile:first-child { grid-column: auto; }
	.hero { padding: 56px 0 112px; min-height: 0; }
	.hero__emblem { width: 112px; height: 112px; }
	.hero__actions { width: 100%; flex-direction: column; }
	.hero__actions .btn { width: 100%; }
	.hero__dots { bottom: 76px; }
	.alert-strip { margin-top: -48px; }
	.alert-strip__inner { padding: 20px; gap: 14px; }
	.alert-strip__icon { width: 46px; height: 46px; }
	.alert-strip__title { font-size: 1.35rem; }
	.alert-strip__number { font-size: 1.7rem; }
	.page-hero { padding: 64px 0 52px; }
	.page-hero--photo { padding: 120px 0 52px; }
	.entry-content .wp-block-quote.is-style-vab-alert { padding: 82px 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.hero__slide { transform: none; }
}

/* ---------- Pagina Contatti ---------- */
.page-hero--contact { padding-bottom: 132px; }
.contact { position: relative; z-index: 2; margin-top: -84px; padding-bottom: 96px; }

.contact-alert {
	display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
	background: var(--white); border: 1px solid #f1d3d1; border-left: 6px solid var(--red);
	border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow);
}
.contact-alert__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fbeceb; color: var(--red); }
.contact-alert__text { margin: 0; flex: 1; font-size: 1rem; color: var(--ink); }
.contact-alert__number {
	flex: 0 0 auto; font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; line-height: 1;
	color: var(--white); background: var(--red); padding: 11px 20px; border-radius: 999px; text-decoration: none;
}
.contact-alert__number:hover { color: var(--white); background: var(--red-deep); }

.contact__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.contact-card {
	display: flex; flex-direction: column; gap: 18px; min-height: 200px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 24px; box-shadow: var(--shadow); transition: border-color .2s;
}
.contact-card:hover { border-color: var(--sage-line); }
.contact-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sage); color: var(--green); }
.contact-card__label { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.contact-card__value { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; line-height: 1.15; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.contact-card__value:hover { color: var(--green-mid); }
.contact-card__value--text { margin: 0; font-size: 1.3rem; }
.contact-card__link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--green-mid); }
.contact-card__missing { display: block; font-size: .92rem; color: var(--gold-text); background: #fff6df; padding: 8px 12px; border-radius: 10px; }

.contact-social { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 4px; }
.contact-social__label { font-weight: 600; color: var(--muted); margin-right: 4px; }
.contact-social a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--sage-line); background: var(--white); text-decoration: none; font-weight: 700; color: var(--ink); }
.contact-social a:hover { border-color: var(--green); color: var(--green-mid); }

.contact__extra { max-width: 820px; margin: 72px auto 0; }

.contact-map {
	margin-top: 56px; height: 440px; border-radius: var(--r-lg); overflow: hidden;
	background: var(--sage) var(--contour) center / cover no-repeat; border: 1px solid var(--line);
}
.contact-map { background-color: var(--green-mid); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-map__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; color: var(--white); }
.contact-map__pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--yellow); }
.contact-map__text { margin: 0; color: rgba(255, 255, 255, .85); max-width: 40ch; }

@media (max-width: 980px) {
	.contact__info { grid-template-columns: 1fr 1fr; }
	.contact__info > .contact-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.page-hero--contact { padding-bottom: 104px; }
	.contact { margin-top: -64px; padding-bottom: 64px; }
	.contact__info { grid-template-columns: 1fr; }
	.contact__info > .contact-card:nth-child(3) { grid-column: auto; }
	.contact-card { min-height: 0; flex-direction: row; align-items: flex-start; padding: 20px; }
	.contact-alert { flex-wrap: wrap; }
	.contact-alert__text { flex-basis: calc(100% - 58px); }
	.contact-alert__number { width: 100%; text-align: center; }
	.contact-map { height: 340px; }
}

/* ---------- Pagina Consiglio di sezione ---------- */
.board__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 48px; }
.board__intro { margin: 0; max-width: 62ch; font-size: 1.22rem; line-height: 1.6; }
.board__mandate {
	display: inline-flex; align-items: center; gap: 8px; margin: 0; flex: 0 0 auto;
	padding: 10px 18px; border-radius: 999px; background: var(--sage); color: var(--green-deep); font-weight: 700;
}
.board__mandate svg { color: var(--green); }

.board__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
	display: flex; align-items: center; gap: 20px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
	transition: border-color .2s, box-shadow .2s;
}
.member:hover { border-color: var(--sage-line); box-shadow: var(--shadow); }
.member__avatar {
	flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
	display: grid; place-items: center;
	background: var(--green-deep) var(--contour) center / 260% no-repeat;
	box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--yellow);
}
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member__avatar span { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--yellow); letter-spacing: .02em; }
.member__name { font-size: 1.6rem; margin: 0 0 6px; }
.member__role {
	display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px;
	background: var(--sage); color: var(--green-mid); font-weight: 700; font-size: .92rem;
}
.member:first-child { background: var(--green-deep) var(--contour) center / cover no-repeat; border-color: var(--green-deep); }
.member:first-child .member__name { color: var(--white); }
.member:first-child .member__role { background: var(--yellow); color: var(--ink); }
.member:first-child .member__avatar { background-color: var(--green-mid); box-shadow: 0 0 0 4px var(--green-deep), 0 0 0 6px var(--yellow); }

.board__extra { max-width: 820px; margin: 64px 0 0; }
.board__contact {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin-top: 56px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--sage);
}
.board__contact p { margin: 0; font-size: 1.08rem; }

@media (max-width: 1080px) { .board__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
	.board__grid { grid-template-columns: 1fr; }
	.member__avatar { width: 72px; height: 72px; }
	.member__name { font-size: 1.4rem; }
	.board__contact .btn { width: 100%; }
}

/* ---------- Livelli di allerta colorati (colonne con classe vab-level-*) ---------- */
.entry-content .wp-block-columns.vab-levels { gap: 12px; }
.entry-content .vab-levels > .wp-block-column { border-radius: var(--r-md); padding: 18px 18px 20px; border-top: 6px solid transparent; }
.entry-content .vab-levels h3 { margin: 0 0 .25em; font-size: 1.45rem; }
.entry-content .vab-levels p { margin: 0; font-size: .97rem; line-height: 1.45; }
.entry-content .vab-level-verde { background: #e3f3e6; border-top-color: #2e9e4b !important; }
.entry-content .vab-level-verde h3 { color: #1f7a37; }
.entry-content .vab-level-giallo { background: #fff6d6; border-top-color: #f2c200 !important; }
.entry-content .vab-level-giallo h3 { color: #8a6d00; }
.entry-content .vab-level-arancione { background: #ffe9d6; border-top-color: #f07c12 !important; }
.entry-content .vab-level-arancione h3 { color: #b25300; }
.entry-content .vab-level-rosso { background: #fbe1df; border-top-color: #d7261e !important; }
.entry-content .vab-level-rosso h3 { color: #a8170f; }
.entry-content .vab-levels p { color: var(--ink); }

/* ---------- Riquadri incorporati (bollettini esterni) ---------- */
.entry-content .vab-embed {
	margin-top: 1.4em; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
	background: var(--sage);
}
.entry-content .vab-embed iframe { display: block; width: 100%; height: 640px; border: 0; background: var(--white); }
.entry-content .vab-embed__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 12px 16px; font-size: .92rem; color: var(--muted);
}
.entry-content .vab-embed__bar a { font-weight: 700; color: var(--green-mid); }
@media (max-width: 640px) {
	.entry-content .vab-embed iframe { height: 520px; }
}

/* Pulsanti dentro le pagine: niente sottolineatura, un po' di spazio sopra */
.entry-content .wp-block-buttons { margin-top: 1.4em; }
.entry-content .wp-block-button__link { text-decoration: none; display: inline-block; }

/* Menu allineato a sinistra accanto al logo; ricerca e pulsante restano a destra */
@media (min-width: 1101px) {
	.site-header__inner { gap: 36px; }
	.site-nav { margin-left: 0; flex: 1 1 auto; }
	.site-nav__actions { margin-left: auto; }
}
