/* ==========================================================================
   ANPd'I Napoli – tema
   ========================================================================== */

:root {
	--azzurro: #1a9ad6;
	--azzurro-light: color-mix(in srgb, var(--azzurro) 9%, #fff);
	--azzurro-soft: color-mix(in srgb, var(--azzurro) 18%, #fff);
	--azzurro-dark: color-mix(in srgb, var(--azzurro) 70%, #062038);
	--navy: #0d2240;
	--rosso: #c8302c;
	--verde: #2f8f3e;
	--oro: #c9a24a;
	--text: #26344b;
	--muted: #66758a;
	--line: #e2ebf2;
	--bg: #ffffff;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px -12px rgba(13, 34, 64, .18);
	--shadow-lg: 0 24px 60px -20px rgba(13, 34, 64, .3);
	--font-head: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1200px;
	--header-h: 84px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--azzurro-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--azzurro); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 500;
	color: var(--navy);
	line-height: 1.15;
	margin: 0 0 .6em;
	letter-spacing: .01em;
}

p { margin: 0 0 1.1em; }

.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:focus {
	clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px;
	background: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: var(--shadow);
}

:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.anpdi-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

/* ---------- Tricolore ---------- */
.tricolore { display: flex; height: 4px; }
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: var(--verde); }
.tricolore span:nth-child(2) { background: #fff; }
.tricolore span:nth-child(3) { background: var(--rosso); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .82); font-size: 14px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar a, .topbar__address { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .anpdi-icon { color: var(--azzurro); }

.social { display: flex; gap: 8px; }
.social a {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	color: inherit; transition: background .2s, color .2s, transform .2s;
}
.social a:hover { transform: translateY(-2px); }
.topbar__social a:hover { background: var(--azzurro); color: #fff; }
.social .anpdi-icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(13, 34, 64, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); transition: min-height .3s; }
.site-header.is-scrolled .site-header__inner { min-height: 68px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand__logo { width: 64px; height: 64px; object-fit: contain; transition: width .3s, height .3s; }
.site-header.is-scrolled .brand__logo { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-size: 24px; font-weight: 400; letter-spacing: .02em; }
.brand__name strong, .brand__name b, .brand__tag strong, .brand__tag b { font-weight: 600; }
.brand__tag { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.brand:hover .brand__name { color: var(--azzurro-dark); }

.nav { display: flex; align-items: center; gap: 18px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__list li { position: relative; }
.nav__list a {
	display: block; padding: 10px 14px; text-decoration: none;
	font-family: var(--font-head); font-size: 15.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
	color: var(--navy); position: relative;
}
.nav__list > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--azzurro); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list > li > a:hover::after,
.nav__list > .current-menu-item > a::after,
.nav__list > .current_page_item > a::after,
.nav__list > .current-menu-ancestor > a::after { transform: scaleX(1); }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--azzurro-dark); }

.nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 16px; border-radius: 6px; }
.nav__list .sub-menu a:hover { background: var(--azzurro-light); }

.nav__social { display: none; }

.nav-toggle {
	display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; border-radius: 8px;
}
.nav-toggle .anpdi-icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-head); font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; line-height: 1.2;
	transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .anpdi-icon { width: 18px; height: 18px; }
.btn--primary { background: var(--azzurro); color: #fff; box-shadow: 0 10px 24px -10px var(--azzurro); }
.btn--primary:hover { background: var(--azzurro-dark); color: #fff; }
.btn--outline { border-color: var(--azzurro); color: var(--azzurro-dark); background: transparent; }
.btn--outline:hover { background: var(--azzurro); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--azzurro); color: #fff; }
.btn--whatsapp { background: #25d366; color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn--whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--small { padding: 10px 18px; font-size: 13.5px; }
.btn--large { padding: 18px 30px; font-size: 17px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section--compact { padding: 56px 0 0; }
.section--tinted { background: linear-gradient(180deg, var(--azzurro-light), #fff); }

.kicker {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
	font-family: var(--font-head); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--azzurro-dark);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--rosso); }
.kicker--light { color: rgba(255, 255, 255, .85); }

.section-title { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; letter-spacing: .02em; }
.section-title--center { text-align: center; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .section-title { margin: 0; }

.lead { font-size: 21px; color: var(--muted); line-height: 1.7; }

.divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--azzurro); margin: 6px auto 28px; }
.divider::before, .divider::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--azzurro)); }
.divider::after { transform: scaleX(-1); }
.divider .anpdi-icon { width: 28px; height: 28px; }

.link-more {
	display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
	font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: 14.5px;
}
.link-more .anpdi-icon { transition: transform .25s; }
.link-more:hover .anpdi-icon { transform: translateX(4px); }

/* ---------- Hero slider ---------- */
.hero-slider {
	position: relative; height: var(--slider-h, 82vh); min-height: 460px; max-height: 920px;
	overflow: hidden; background: var(--navy); color: #fff;
}
.hero-slider__track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; visibility: hidden; }
.hero-slide.is-active, .hero-slide.is-leaving { visibility: visible; }
.hero-slide__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background:
		linear-gradient(90deg, rgba(8, 22, 44, calc(var(--slider-overlay, .45) + .25)) 0%, rgba(8, 22, 44, var(--slider-overlay, .45)) 45%, rgba(8, 22, 44, calc(var(--slider-overlay, .45) * .3)) 100%),
		linear-gradient(0deg, rgba(8, 22, 44, .55) 0%, transparent 35%);
}
.hero-slider--center .hero-slide::before {
	background: linear-gradient(0deg, rgba(8, 22, 44, calc(var(--slider-overlay, .45) + .2)), rgba(8, 22, 44, var(--slider-overlay, .45)));
}
.hero-slide__cover { position: absolute; inset: 0; z-index: 3; }
.hero-slide__content { position: relative; z-index: 2; padding-top: 20px; padding-bottom: 70px; }
.hero-slider--center .hero-slide__content { text-align: center; }
.hero-slider--center .hero-slide__text { margin-left: auto; margin-right: auto; }
.hero-slide__title {
	color: #fff; font-size: clamp(34px, 5.4vw, 70px); text-transform: uppercase; letter-spacing: .02em;
	max-width: 15ch; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .3);
}
.hero-slider--center .hero-slide__title { max-width: none; }
.hero-slide__text { font-size: clamp(18px, 1.6vw, 22px); max-width: 560px; color: rgba(255, 255, 255, .9); margin-bottom: 30px; }
.hero-slide__content > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .hero-slide__content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide__content > :nth-child(2) { transition-delay: .15s; }
.hero-slide.is-active .hero-slide__content > :nth-child(3) { transition-delay: .3s; }
.hero-slide .btn { position: relative; z-index: 4; }

/* Fade */
.hero-slider--fade .hero-slide, .hero-slider--zoom .hero-slide { opacity: 0; transition: opacity var(--speed, 900ms) ease, visibility 0s linear var(--speed, 900ms); }
.hero-slider--fade .hero-slide.is-active, .hero-slider--zoom .hero-slide.is-active { opacity: 1; transition: opacity var(--speed, 900ms) ease, visibility 0s; z-index: 2; }
.hero-slider--fade .hero-slide.is-leaving, .hero-slider--zoom .hero-slide.is-leaving { z-index: 1; }

/* Zoom (Ken Burns) */
.hero-slider--zoom .hero-slide__bg { transform: scale(1.0); transition: transform calc(var(--interval, 6000ms) + var(--speed, 900ms) + 1000ms) linear; }
.hero-slider--zoom .hero-slide.is-active .hero-slide__bg { transform: scale(1.12); }

/* Slide */
.hero-slider--slide .hero-slide { transform: translateX(100%); transition: transform var(--speed, 900ms) var(--ease), visibility 0s linear var(--speed, 900ms); }
.hero-slider--slide .hero-slide.is-active { transform: translateX(0); transition: transform var(--speed, 900ms) var(--ease), visibility 0s; }
.hero-slider--slide .hero-slide.is-leaving { transform: translateX(-100%); }
.hero-slider--slide.is-reverse .hero-slide:not(.is-active):not(.is-leaving) { transform: translateX(-100%); }
.hero-slider--slide.is-reverse .hero-slide.is-leaving { transform: translateX(100%); }
.hero-slider--slide .hero-slide.no-anim { transition: none !important; }

.hero-slider__arrow {
	position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
	width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45);
	background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center;
	backdrop-filter: blur(4px); transition: background .2s, border-color .2s;
}
.hero-slider__arrow:hover { background: var(--azzurro); border-color: var(--azzurro); }
.hero-slider__arrow--prev { left: 24px; }
.hero-slider__arrow--next { right: 24px; }
.hero-slider__arrow .anpdi-icon { width: 24px; height: 24px; }

.hero-slider__dots { position: absolute; bottom: 34px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero-slider__dots button { background: none; border: 0; padding: 8px 0; cursor: pointer; }
.hero-slider__dots span { display: block; width: 42px; height: 3px; background: rgba(255, 255, 255, .35); border-radius: 3px; overflow: hidden; position: relative; }
.hero-slider__dots span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-slider__dots .is-active span::after { transform: scaleX(1); transition: transform .4s; }
.hero-slider.is-playing .hero-slider__dots .is-active span::after { transform: scaleX(0); animation: dot-progress var(--interval, 6000ms) linear forwards; }
.hero-slider.is-paused .hero-slider__dots .is-active span::after { animation-play-state: paused; }
@keyframes dot-progress { to { transform: scaleX(1); } }

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro .kicker { justify-content: center; }
.intro .kicker::after { content: ""; width: 28px; height: 2px; background: var(--rosso); }

/* ---------- Boxes ---------- */
.boxes .section-title { margin-bottom: 44px; }
.boxes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.box-card {
	position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
	text-decoration: none; color: var(--text); overflow: hidden; border: 1px solid var(--line);
	box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.box-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.box-card::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: linear-gradient(90deg, var(--azzurro), var(--azzurro-dark)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
a.box-card:hover::after { transform: scaleX(1); }
.box-card__media { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
a.box-card:hover .box-card__media { transform: scale(1.05); }
.box-card--image .box-card__media { clip-path: inset(0); }
.box-card__icon {
	display: grid; place-items: center; width: 70px; height: 70px; margin: 32px 28px 0; border-radius: 50%;
	background: var(--azzurro-light); color: var(--azzurro-dark); transition: background .3s, color .3s;
}
a.box-card:hover .box-card__icon { background: var(--azzurro); color: #fff; }
.box-card__icon .anpdi-icon { width: 32px; height: 32px; }
.box-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; position: relative; background: #fff; }
.box-card__title { font-family: var(--font-head); font-size: 23px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin-bottom: 8px; }
.box-card__text { color: var(--muted); font-size: 16.5px; line-height: 1.55; flex: 1; }
.box-card__more {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--font-head);
	text-transform: uppercase; letter-spacing: .12em; font-size: 13.5px; color: var(--azzurro-dark);
}
.box-card__more .anpdi-icon { transition: transform .3s; }
a.box-card:hover .box-card__more .anpdi-icon { transform: translateX(5px); }

/* ---------- Video ---------- */
.video__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.video__text p { color: var(--muted); font-size: 19px; }
.video__text .btn { margin-top: 8px; }
.video__frame { position: relative; }
.video__frame::before {
	content: ""; position: absolute; inset: -18px -18px 18px 18px; border-radius: var(--radius);
	border: 2px solid var(--azzurro-soft); z-index: -1;
}
.yt-lite, .video__frame iframe {
	display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.yt-lite {
	position: relative; background-color: #000; background-size: cover; background-position: center; cursor: pointer; padding: 0; overflow: hidden;
}
.yt-lite::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 22, 44, .45), rgba(8, 22, 44, .1)); transition: background .3s; }
.yt-lite:hover::before { background: rgba(8, 22, 44, .15); }
.yt-lite__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%;
	background: var(--azzurro); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .25);
	transition: transform .3s var(--ease), box-shadow .3s;
}
.yt-lite:hover .yt-lite__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 16px rgba(255, 255, 255, .2); }
.yt-lite__play .anpdi-icon { width: 36px; height: 36px; margin-left: 5px; }

/* ---------- Cards grid (eventi / gallerie) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.ev-card, .gal-card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
	text-decoration: none; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ev-card:hover, .gal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.ev-card__media, .gal-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--azzurro-light); }
.ev-card__media img, .gal-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ev-card:hover .ev-card__media img, .gal-card:hover .gal-card__media img { transform: scale(1.06); }
.ev-card__placeholder, .gal-card__media > .anpdi-icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--azzurro); }
.ev-card__placeholder .anpdi-icon, .gal-card__media > .anpdi-icon { width: 64px; height: 64px; opacity: .5; margin: auto; }
.ev-card__body, .gal-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.ev-card__title, .gal-card__title { font-family: var(--font-head); font-size: 22px; line-height: 1.25; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; }
.ev-card__meta { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--azzurro-dark); }
.ev-card__meta span { display: flex; align-items: center; gap: 8px; }
.ev-card__text, .gal-card__text { color: var(--muted); font-size: 16px; line-height: 1.55; }
.ev-card--past .ev-card__media img { filter: grayscale(.6); }
.ev-card__badge {
	position: absolute; top: 14px; right: 14px; background: rgba(13, 34, 64, .85); color: #fff;
	font-size: 12px; text-transform: uppercase; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px;
}

.ev-date {
	position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; flex-direction: column; align-items: center;
	min-width: 64px; padding: 8px 8px 7px; background: #fff; border-radius: 10px; box-shadow: var(--shadow);
	font-family: var(--font-head); line-height: 1; text-transform: uppercase; border-top: 4px solid var(--azzurro);
}
.ev-date__day { font-size: 28px; font-weight: 600; color: var(--navy); }
.ev-date__month { font-size: 13px; letter-spacing: .12em; color: var(--azzurro-dark); margin-top: 4px; }
.ev-date__year { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: .1em; }
.ev-date--big { position: static; margin: 0 0 22px; padding: 18px; min-width: 0; width: 100%; box-shadow: none; background: var(--azzurro-light); }
.ev-date--big .ev-date__day { font-size: 56px; }
.ev-date--big .ev-date__month { font-size: 18px; }
.ev-date--big .ev-date__year { font-size: 14px; }

.gal-card__count {
	position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
	background: rgba(13, 34, 64, .8); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 14px;
}

/* ---------- Newsletter ---------- */
.newsletter { padding-top: 40px; }
.newsletter__box {
	position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 36px; align-items: center;
	padding: 52px 56px; border-radius: 22px; color: #fff;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .14), transparent 60%),
		linear-gradient(120deg, var(--navy) 0%, var(--azzurro-dark) 60%, var(--azzurro) 100%);
	box-shadow: var(--shadow-lg);
}
.newsletter__box::after {
	content: ""; position: absolute; right: -40px; top: 30px; width: 320px; height: 4px; transform: rotate(-18deg);
	background: linear-gradient(90deg, transparent, var(--rosso)); opacity: .55;
}
.newsletter__icon { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.newsletter__icon .anpdi-icon { width: 34px; height: 34px; }
.newsletter__text .section-title { color: #fff; font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 8px; }
.newsletter__text p { color: rgba(255, 255, 255, .85); margin: 0; }
.newsletter-form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="text"], .newsletter-form input[type="email"] {
	flex: 1 1 140px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
	background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 16px;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .7); }
.newsletter-form input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .2); }
.newsletter-form .btn--primary { background: #fff; color: var(--navy); box-shadow: none; }
.newsletter-form .btn--primary:hover { background: var(--navy); color: #fff; }
.newsletter-form__privacy { display: flex; gap: 10px; margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .85); line-height: 1.45; }
.newsletter-form__privacy input { margin-top: 3px; accent-color: #fff; }
.newsletter-form__privacy a { color: #fff; }
.newsletter-form__hp { position: absolute; left: -9999px; }
.notice { margin: 14px 0 0; padding: 10px 16px; border-radius: 10px; font-size: 15px; }
.notice--success { background: rgba(37, 211, 102, .2); color: #fff; }
.notice--info { background: rgba(255, 255, 255, .18); color: #fff; }
.notice--error { background: rgba(200, 48, 44, .35); color: #fff; }

/* ---------- Page hero ---------- */
.page-hero {
	position: relative; overflow: hidden; color: #fff; padding: 92px 0 84px;
	background: linear-gradient(120deg, var(--navy) 0%, var(--azzurro-dark) 65%, var(--azzurro) 100%);
	background-size: cover; background-position: center;
}
.page-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 22, 44, .88), rgba(8, 22, 44, .5)); }
.page-hero__pattern {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .12) 0, transparent 35%),
		repeating-linear-gradient(-18deg, transparent 0 46px, rgba(255, 255, 255, .03) 46px 47px);
}
.page-hero__pattern::after {
	content: ""; position: absolute; right: 6%; top: 50%; width: 40%; height: 3px; transform: rotate(-16deg);
	background: linear-gradient(90deg, transparent, var(--rosso)); opacity: .7;
}
.page-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { color: #fff; font-size: clamp(36px, 5vw, 60px); text-transform: uppercase; margin: 0; }
.page-hero__subtitle { margin: 14px 0 0; font-size: 20px; color: rgba(255, 255, 255, .85); max-width: 640px; }

/* ---------- Entry content ---------- */
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 32px; margin-top: 1.6em; text-transform: uppercase; }
.entry-content h3 { font-size: 25px; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
	margin: 2em 0; padding: 18px 28px; border-left: 4px solid var(--azzurro); background: var(--azzurro-light);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 21px; font-style: italic; color: var(--navy);
}
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .wp-block-image figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.entry-content .alignwide { width: min(1100px, 100vw - 48px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content--center { text-align: center; }
.entry-content > p:first-of-type { font-size: 20px; }
.entry-content strong { color: var(--navy); }
.entry-content .wp-block-button__link { background: var(--azzurro); border-radius: 999px; }

/* ---------- Organigramma ---------- */
.org { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; max-width: 1000px; margin: 0 auto; }
.org-card { flex: 0 1 calc((100% - 52px) / 3); }
.org-card {
	text-align: center; background: #fff; border-radius: var(--radius); padding: 34px 24px 30px;
	border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.org-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.org-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--azzurro); }
.org-card--lead { flex-basis: 100%; max-width: 420px; }
.org-card--lead + .org-card { margin-left: 0; }
.org-break { flex-basis: 100%; height: 0; }
.org-card--lead::before { background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%); }
.org-card__photo {
	width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
	display: grid; place-items: center; background: var(--azzurro-light); color: var(--azzurro);
	box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--azzurro-soft);
}
.org-card--lead .org-card__photo { width: 136px; height: 136px; }
.org-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.org-card__photo .anpdi-icon { width: 52px; height: 52px; }
.org-card__role {
	margin: 0 0 6px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: 14px; color: var(--azzurro-dark);
}
.org-card__name { font-size: 24px; margin: 0; }
.org-card__rank { display: block; font-family: var(--font-body); font-size: 14px; color: var(--muted); text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.org-card__note { margin: 12px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- Galleria ---------- */
.anpdi-gallery { --cols: 4; --gap: 12px; --ratio: 1/1; --row-h: 260px; }
.anpdi-gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--azzurro-light); }
.anpdi-gallery__item a { display: block; position: relative; overflow: hidden; height: 100%; }
.anpdi-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.anpdi-gallery__item a:hover img { transform: scale(1.06); }
.anpdi-gallery__zoom {
	position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
	background: rgba(13, 34, 64, .35); opacity: 0; transition: opacity .3s;
}
.anpdi-gallery__zoom .anpdi-icon { width: 38px; height: 38px; transform: scale(.7); transition: transform .3s var(--ease); }
.anpdi-gallery__item a:hover .anpdi-gallery__zoom { opacity: 1; }
.anpdi-gallery__item a:hover .anpdi-gallery__zoom .anpdi-icon { transform: none; }
.anpdi-gallery__item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; font-size: 14px; color: #fff; pointer-events: none;
	background: linear-gradient(0deg, rgba(8, 22, 44, .8), transparent);
}

.anpdi-gallery--grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); }
.anpdi-gallery--grid .anpdi-gallery__item { aspect-ratio: var(--ratio); }

.anpdi-gallery--masonry { column-count: var(--cols); column-gap: var(--gap); }
.anpdi-gallery--masonry .anpdi-gallery__item { break-inside: avoid; margin-bottom: var(--gap); }
.anpdi-gallery--masonry img { height: auto; }

.anpdi-gallery--justified { display: flex; flex-wrap: wrap; gap: var(--gap); }
.anpdi-gallery--justified::after { content: ""; flex-grow: 999999; }
.anpdi-gallery--justified .anpdi-gallery__item { flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row-h)); height: var(--row-h); }

.gallery-intro { margin: 0 auto 40px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; text-decoration: none; }
p.back-link { display: block; text-align: center; }

/* ---------- Lightbox ---------- */
.lb {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
	background: rgba(6, 14, 28, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
	touch-action: pan-y;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lb__stage { position: relative; max-width: 92vw; max-height: 84vh; display: flex; flex-direction: column; align-items: center; }
.lb__img {
	max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	transition: opacity .25s, transform .25s; user-select: none; -webkit-user-drag: none;
}
.lb__img.is-loading { opacity: 0; transform: scale(.98); }
.lb__caption { color: rgba(255, 255, 255, .88); margin-top: 14px; font-size: 16px; text-align: center; max-width: 760px; }
.lb__counter { position: absolute; top: 22px; left: 26px; color: rgba(255, 255, 255, .7); font-family: var(--font-head); letter-spacing: .12em; font-size: 15px; }
.lb__btn {
	position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.lb__btn:hover { background: var(--azzurro); border-color: var(--azzurro); }
.lb__btn .anpdi-icon { width: 24px; height: 24px; }
.lb__close { top: 16px; right: 18px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb--single .lb__prev, .lb--single .lb__next, .lb--single .lb__counter { display: none; }
.lb__spinner { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--azzurro); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.lb.is-loading .lb__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
body.lb-open { overflow: hidden; }

/* ---------- Iscriviti ---------- */
.join { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.join__card {
	position: sticky; top: calc(var(--header-h) + 30px); text-align: center; padding: 44px 36px; border-radius: 20px;
	background: linear-gradient(160deg, var(--azzurro-light), #fff 70%); border: 1px solid var(--azzurro-soft); box-shadow: var(--shadow-lg);
}
.join__badge {
	width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
	background: #25d366; color: #fff; box-shadow: 0 0 0 10px rgba(37, 211, 102, .15);
}
.join__badge .anpdi-icon { width: 42px; height: 42px; }
.join__card h2 { font-size: 30px; text-transform: uppercase; }
.join__card p { color: var(--muted); }
.join__card .btn { margin: 10px 0 14px; }
.join__number { font-size: 17px; margin-bottom: 6px !important; }
.join__alt { font-size: 15px; margin: 0; }

/* ---------- Contatti ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: stretch; }
.contact-list { list-style: none; margin: 10px 0 30px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 13.5px; color: var(--azzurro-dark); font-weight: 500; }
.contact-list a { color: var(--navy); text-decoration: none; font-size: 19px; }
.contact-list a:hover { color: var(--azzurro); }
.contact-list__icon {
	flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
	background: var(--azzurro-light); color: var(--azzurro-dark);
}
.contact-list__icon--wa { background: rgba(37, 211, 102, .12); color: #1ebe5b; }
.contact-list__icon .anpdi-icon { width: 22px; height: 22px; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contacts__social { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.contacts__social strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; color: var(--navy); }
.contacts__map { min-height: 460px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: saturate(.9); }

.social--big a { width: 46px; height: 46px; background: var(--azzurro-light); color: var(--azzurro-dark); }
.social--big a:hover { background: var(--azzurro); color: #fff; }
.social--big .anpdi-icon { width: 20px; height: 20px; }

/* ---------- Evento singolo ---------- */
.event { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.event__image { display: block; margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.event__image img { width: 100%; transition: transform .6s var(--ease); }
.event__image:hover img { transform: scale(1.03); }
.event__aside { position: sticky; top: calc(var(--header-h) + 30px); }
.event__card { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 12px; }
.event__meta { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.event__meta li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.event__meta .anpdi-icon { color: var(--azzurro); margin-top: 3px; }
.event__cal { display: grid; gap: 10px; }
.event__cal .btn, .event__card .btn { font-size: 13.5px; padding: 12px 16px; }

/* ---------- Tabs / pagination / empty ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--azzurro-light); border-radius: 999px; margin-bottom: 40px; }
.tabs a { padding: 10px 22px; border-radius: 999px; text-decoration: none; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 14.5px; color: var(--navy); }
.tabs a.is-active { background: #fff; color: var(--azzurro-dark); box-shadow: var(--shadow); }

.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: inline-grid; place-items: center;
	text-decoration: none; border: 1px solid var(--line); color: var(--navy); font-weight: 600;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--azzurro); border-color: var(--azzurro); color: #fff; }

.anpdi-empty { color: var(--muted); text-align: center; }
.anpdi-empty--box { padding: 60px 24px; border: 2px dashed var(--azzurro-soft); border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.anpdi-empty--box > .anpdi-icon { width: 46px; height: 46px; color: var(--azzurro); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .78); margin-top: 96px; font-size: 16.5px; }
.site-footer__wave {
	position: absolute; left: 0; right: 0; top: -1px; height: 4px;
	background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%);
}
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.site-footer__logo { width: 96px; height: 96px; object-fit: contain; margin-bottom: 18px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--azzurro); }
.footer__title { color: #fff; font-size: 17px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--azzurro); }
.footer__contacts, .footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contacts .anpdi-icon { color: var(--azzurro); margin-top: 4px; }
.footer__menu a { color: rgba(255, 255, 255, .78); }
.footer__menu a:hover { color: #fff; padding-left: 4px; }
.footer__menu a { transition: color .2s, padding .2s; }
.social--footer a { background: rgba(255, 255, 255, .08); width: 40px; height: 40px; }
.social--footer a:hover { background: var(--azzurro); color: #fff; }
.site-footer .btn--whatsapp { margin-top: 6px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 14px; color: rgba(255, 255, 255, .55); }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer__bottom a { color: rgba(255, 255, 255, .7); }

/* WhatsApp flottante */
.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
	transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .anpdi-icon { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.boxes__grid { grid-template-columns: repeat(2, 1fr); }
	.newsletter__box { grid-template-columns: auto 1fr; }
	.newsletter__form { grid-column: 1 / -1; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.nav__list a { padding: 10px 10px; font-size: 14.5px; }
}

@media (max-width: 980px) {
	:root { --header-h: 72px; }
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.nav-toggle { display: block; }
	.nav {
		position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 70; background: #fff;
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
		padding: 96px 28px 32px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .4s var(--ease);
		overflow-y: auto;
	}
	.nav.is-open { transform: none; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
	.nav__list > li > a::after { display: none; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.nav__social { display: flex; }
	.nav__social a { background: var(--azzurro-light); color: var(--azzurro-dark); width: 42px; height: 42px; }
	.nav-toggle { position: relative; z-index: 80; }
	body.nav-open .nav-toggle__open { display: none; }
	body.nav-open .nav-toggle__close { display: block; }
	body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(13, 34, 64, .45); z-index: 45; }
	.topbar__address { display: none !important; }
	.video__grid, .join, .contacts, .event { grid-template-columns: 1fr; gap: 44px; }
	.join__card, .event__aside { position: static; }
	.cards-grid { grid-template-columns: repeat(2, 1fr); }
	.org-card { flex-basis: calc((100% - 26px) / 2); }
	.anpdi-gallery--grid { grid-template-columns: repeat(min(var(--cols), 3), 1fr); }
	.anpdi-gallery--masonry { column-count: min(var(--cols), 3); }
	.section { padding: 72px 0; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 640px) {
	body { font-size: 17px; }
	.container { padding-left: 18px; padding-right: 18px; }
	.brand__logo { width: 52px; height: 52px; }
	.brand__name { font-size: 20px; }
	.brand__tag { display: none; }
	.kicker { font-size: 12.5px; letter-spacing: .14em; }
	.intro .kicker::before, .intro .kicker::after { width: 18px; }
	.topbar__social { display: none; }
	.topbar__contacts { gap: 4px 16px; font-size: 13.5px; }
	.boxes__grid, .cards-grid { grid-template-columns: 1fr; }
	.org-card, .org-card--lead { flex-basis: 100%; max-width: none; }
	.hero-slider { min-height: 520px; }
	.hero-slider__arrow { display: none; }
	.hero-slide__content { padding-bottom: 80px; }
	.newsletter__box { grid-template-columns: 1fr; padding: 38px 24px; text-align: center; }
	.newsletter__icon { margin: 0 auto; }
	.newsletter-form__privacy { text-align: left; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.anpdi-gallery--grid { grid-template-columns: repeat(2, 1fr); }
	.anpdi-gallery--masonry { column-count: 2; }
	.anpdi-gallery--justified .anpdi-gallery__item { height: calc(var(--row-h) * .6); flex-basis: calc(var(--r) * var(--row-h) * .6); }
	.page-hero { padding: 64px 0 56px; }
	.section { padding: 56px 0; }
	.lb__prev, .lb__next { top: auto; bottom: 18px; transform: none; }
	.contacts__map, .contacts__map iframe { min-height: 340px; }
	.video__frame::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
.site-footer__copy a { color: #fff; font-weight: 600; }
.site-footer__copy a:hover { color: var(--azzurro); }

/* News */
.ev-card__cat { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: var(--rosso); }
.ev-card .box-card__more { margin-top: auto; padding-top: 6px; }
.ev-card:hover .box-card__more .anpdi-icon { transform: translateX(5px); }
.news-home + .events-home { background: #fff; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 28px; color: var(--muted); font-size: 15.5px; }
.post-meta span { display: inline-flex; align-items: center; gap: 8px; }
.post-meta .anpdi-icon { color: var(--azzurro); }
.post-cover { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.post-cover img { width: 100%; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--azzurro-light); text-decoration: none; color: var(--navy); }
.post-nav a:hover { background: var(--azzurro); color: #fff; }
.post-nav small { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; opacity: .75; margin-bottom: 4px; }
.post-nav__next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { grid-column: auto; } }
/* Commenti */
.comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments__list { list-style: none; padding: 0; margin: 0 0 32px; }
.comments__list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comments__list .avatar { border-radius: 50%; float: left; margin-right: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--azzurro); }
/* Emoji di WordPress (sono <img>): restano in linea con il testo */
img.emoji, img.wp-smiley {
	display: inline !important; width: 1em !important; height: 1em !important; margin: 0 .07em !important;
	vertical-align: -0.1em !important; border-radius: 0 !important; box-shadow: none !important; background: none !important;
}
/* Immagini-emoji esterne non convertite: in linea */
img[src*="emoji"], img[src*="fbcdn.net"], img[alt][width="16"], img[alt][height="16"], img[alt][width="18"], img[alt][height="18"], img[alt][width="20"], img[alt][height="20"] {
	display: inline !important; width: auto !important; height: 1.15em !important; margin: 0 .07em !important;
	vertical-align: -0.15em !important; border-radius: 0 !important; box-shadow: none !important;
}

/* Torna su (sotto WhatsApp) */
.to-top {
	position: fixed; right: 29px; bottom: 22px; z-index: 60; width: 44px; height: 44px; border-radius: 50%;
	border: 2px solid #fff; cursor: pointer; display: grid; place-items: center; background: var(--azzurro); color: #fff;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .3s, transform .3s, visibility 0s linear .3s, background .2s;
}
.to-top:hover { background: var(--azzurro-dark); }
.to-top .anpdi-icon { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, background .2s; }
.wa-float { transition: transform .25s, bottom .3s var(--ease); }
body.totop-visible .wa-float { bottom: 78px; }
body.lb-open .to-top, body.lb-open .wa-float { display: none; }
@media (max-width: 640px) {
	.wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
	.to-top { right: 21px; bottom: 16px; }
	body.totop-visible .wa-float { bottom: 70px; }
}

/* Newsletter solo email */
.newsletter-form--hidden input[type="email"] { flex-basis: 240px; }

/* Galleria nelle news */
.post-gallery { margin-top: 48px; }
.post-gallery__title { font-size: 26px; text-transform: uppercase; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.post-gallery__title span { font-family: var(--font-body); font-size: 15px; color: var(--muted); text-transform: none; }
.anpdi-gallery__item figcaption, .lb__caption { display: none !important; }

/* ==========================================================================
   Cookie: banner, preferenze, contenuti bloccati
   ========================================================================== */
.cookie-banner {
	position: fixed; z-index: 99990; background: #fff; color: var(--text);
	box-shadow: 0 -10px 40px -10px rgba(13, 34, 64, .35); font-size: 15.5px; line-height: 1.55;
}
.cookie-banner[hidden], .cookie-modal[hidden] { display: none !important; }
.cookie-banner--bar {
	left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 28px;
	padding: 22px max(24px, calc((100vw - var(--container)) / 2 + 24px)); border-top: 4px solid var(--azzurro);
}
.cookie-banner--box {
	left: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px)); padding: 26px 24px 22px;
	border-radius: var(--radius); border-top: 4px solid var(--azzurro);
}
.cookie-banner__body { flex: 1; min-width: 0; }
.cookie-banner__title { font-family: var(--font-head); font-size: 19px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin: 0 0 4px; }
.cookie-banner__text { margin: 0; color: var(--muted); }
.cookie-banner__text a { white-space: nowrap; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.cookie-banner--box .cookie-banner__actions { margin-top: 16px; }
.cookie-banner--box .cookie-banner__actions .btn { flex: 1 1 auto; }
.cookie-banner__close {
	position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; background: none; color: var(--muted);
	border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.cookie-banner__close:hover { background: var(--azzurro-light); color: var(--navy); }
.cookie-banner--bar .cookie-banner__close { top: 6px; right: 10px; }
.cookie-banner .btn { padding: 11px 18px; font-size: 13.5px; box-shadow: none; }
/* "Rifiuta" e "Accetta" con la stessa evidenza (linee guida Garante) */
.cookie-banner [data-consent-action="reject"].btn,
.cookie-modal [data-consent-action="reject"].btn { background: var(--navy); border-color: var(--navy); color: #fff; }
.cookie-banner [data-consent-action="reject"].btn:hover,
.cookie-modal [data-consent-action="reject"].btn:hover { background: var(--azzurro-dark); border-color: var(--azzurro-dark); }
html.has-cookie-banner .wa-float, html.has-cookie-banner .to-top { opacity: 0; pointer-events: none; }

.cookie-modal {
	position: fixed; inset: 0; z-index: 99995; background: rgba(6, 14, 28, .6); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal__box {
	position: relative; background: #fff; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
	border-radius: 18px; padding: 34px 32px 28px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--azzurro);
}
.cookie-modal__title { font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.cookie-modal__intro { color: var(--muted); font-size: 15.5px; }
.cookie-modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.cookie-modal__close:hover { background: var(--azzurro-light); color: var(--navy); }
.cookie-cats { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; }
.cookie-cat { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfdff; }
.cookie-cat__desc { margin: 6px 0 0 58px; font-size: 14.5px; color: var(--muted); }
.cookie-cat__label { font-weight: 700; color: var(--navy); }
.cookie-cat__label em { font-weight: 400; color: var(--muted); font-style: normal; font-size: 14px; }
.cookie-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-switch__track { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #c9d4de; flex: none; transition: background .2s; }
.cookie-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.cookie-switch input:checked + .cookie-switch__track { background: var(--azzurro); }
.cookie-switch input:checked + .cookie-switch__track::after { transform: translateX(20px); }
.cookie-switch input:disabled + .cookie-switch__track { opacity: .6; }
.cookie-switch input:focus-visible + .cookie-switch__track { outline: 3px solid var(--azzurro); outline-offset: 2px; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal__actions .btn { padding: 11px 18px; font-size: 13.5px; box-shadow: none; }
html.cookie-modal-open { overflow: hidden; }

.consent-embed { position: relative; width: 100%; height: 100%; min-height: inherit; background: var(--azzurro-light); }
.consent-embed iframe { width: 100%; height: 100%; min-height: inherit; border: 0; display: block; }
.consent-embed:not(.is-active) iframe { visibility: hidden; }
.consent-embed.is-active .consent-embed__placeholder { display: none; }
.consent-embed__placeholder {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	padding: 24px; text-align: center; color: var(--navy); font-size: 16px;
	background: repeating-linear-gradient(-18deg, var(--azzurro-light) 0 22px, #fff 22px 44px);
}
.consent-embed__placeholder p { margin: 0 0 10px; max-width: 420px; }
.consent-embed__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.consent-embed__placeholder--video { border-radius: var(--radius); background: rgba(8, 22, 44, .88); color: #fff; z-index: 3; }
.consent-embed__placeholder--video strong { color: #fff; }

.site-footer__legal { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.cookie-policy .table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.cookie-policy table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cookie-policy th, .cookie-policy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-policy th { font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 13.5px; color: var(--azzurro-dark); background: var(--azzurro-light); }

@media (max-width: 900px) {
	.cookie-banner--bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 18px 18px; }
	.cookie-banner__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 640px) {
	.cookie-banner--box { left: 10px; bottom: 10px; width: calc(100vw - 20px); }
	.cookie-modal__box { padding: 28px 20px 20px; }
	.cookie-cat__desc { margin-left: 0; }
	.cookie-modal__actions .btn { flex: 1 1 auto; }
}

/* Footer mobile: logo e testo affiancati, con respiro sopra */
@media (max-width: 640px) {
	.site-footer__grid { padding-top: 48px; }
	.site-footer__brand { display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; align-items: start; }
	.site-footer__logo { width: 76px; height: 76px; margin: 2px 0 0; grid-row: 1 / span 2; }
	.site-footer__brand p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; }
	.site-footer__brand .social { grid-column: 2; }
}

/* Slider orizzontale su smartphone (opzione) */
@media (max-width: 640px) {
	.hero-slider--m-horizontal { height: auto; min-height: 0; max-height: none; aspect-ratio: var(--m-ratio, 4/3); }
	.hero-slider--m-horizontal .hero-slide__content { padding-top: 0; padding-bottom: 34px; }
	.hero-slider--m-horizontal .hero-slide__title { font-size: clamp(22px, 6.4vw, 28px); margin-bottom: 8px; max-width: none; }
	.hero-slider--m-horizontal .hero-slide__text {
		font-size: 14.5px; line-height: 1.4; margin-bottom: 12px;
		display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	}
	.hero-slider--m-notext .hero-slide__text { display: none; }
	.hero-slider--m-horizontal .hero-slide .btn { padding: 9px 16px; font-size: 12.5px; }
	.hero-slider--m-horizontal .hero-slider__dots { bottom: 8px; }
	.hero-slider--m-horizontal .hero-slider__dots span { width: 28px; }
}
