/* ==========================================================================
   Fameis — stili del tema
   Grafica ripresa dal sito Elementor: Ruda (titoli, menu), Raleway (testi),
   Kristi (corsivo), viola #833885, turchese #4493A6, azzurro #87C9ED.
   ========================================================================== */

@font-face {
	font-family: "Ruda";
	src: url("../fonts/ruda-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Raleway";
	src: url("../fonts/raleway-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Raleway";
	src: url("../fonts/raleway-latin-wght-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Kristi";
	src: url("../fonts/kristi-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--c-viola: #833885;
	--c-viola-dark: #6a2c6c;
	--c-teal: #4493a6;
	--c-teal-dark: #36788a;
	--c-azzurro: #87c9ed;
	--c-celeste: #6ec1e4;
	--c-rosa: #ff9bb5;
	--c-rosso: #dd3333;
	--c-text: #54595f;
	--c-muted: #7a7a7a;
	--c-bg: #ffffff;
	--c-soft: #f3f8fa;
	--c-line: #dde7ea;

	--f-head: "Ruda", "Arial Narrow", system-ui, sans-serif;
	--f-body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-script: "Kristi", cursive;

	--container: 1140px;
	--gap: clamp(1rem, 2.5vw, 1.25rem);
	--section: clamp(3rem, 7vw, 5.5rem);
	--shadow: 0 10px 30px rgb(0 0 0 / 12%);
	--radius: 0;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-bg);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-teal); text-underline-offset: .18em; }
a:hover { color: var(--c-viola); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.05; margin: 0 0 .6em; font-weight: 800; color: var(--c-teal); }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--c-azzurro); outline-offset: 2px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; flex: none; }

.container { width: min(100% - 2 * var(--gap), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.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: -999px; top: 0; z-index: 100; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }

/* Colori di fascia ------------------------------------------------------- */
.band--viola { background: var(--c-viola); --band: var(--c-viola); }
.band--azzurro { background: var(--c-azzurro); --band: var(--c-celeste); }
.band--teal { background: var(--c-teal); --band: var(--c-teal); }
.band--rosa { background: var(--c-rosa); --band: #e0607f; }
.band--rosso { background: var(--c-rosso); --band: var(--c-rosso); }

/* Bottoni ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .9em 1.8em; border: 2px solid var(--c-teal); border-radius: var(--radius);
	background: var(--c-teal); color: #fff;
	font-family: var(--f-head); font-size: 1.125rem; font-weight: 500; letter-spacing: .02em;
	text-transform: uppercase; text-decoration: none; line-height: 1.1;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover { background: var(--c-teal-dark); border-color: var(--c-teal-dark); color: #fff; }
.btn:hover .icon { transform: translateX(4px); }
.btn--viola { background: var(--c-viola); border-color: var(--c-viola); }
.btn--viola:hover { background: var(--c-viola-dark); border-color: var(--c-viola-dark); }
.btn--teal { background: var(--c-teal); border-color: var(--c-teal); }
.btn--accent { background: var(--c-viola); border-color: var(--c-viola); }
.btn--accent:hover { background: var(--c-viola-dark); border-color: var(--c-viola-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-teal); }
.btn--ghost:hover { background: var(--c-teal); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--band, var(--c-viola)); }
.btn--white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--block { display: flex; width: 100%; }
.badge {
	display: inline-block; padding: .1em .6em; font-size: .72em; font-weight: 700;
	background: var(--c-soft); color: var(--c-muted); vertical-align: middle; text-transform: uppercase; letter-spacing: .04em;
}

/* Header ----------------------------------------------------------------- */
.site-header {
	--h: 90px;
	background: rgb(255 255 255 / 96%); position: sticky; top: 0; z-index: 60;
	box-shadow: 0 1px 0 var(--c-line); animation: fameis-fadein 1.25s ease both;
	transition: transform .3s ease, box-shadow .3s ease;
}
@supports (backdrop-filter: blur(8px)) { @media (min-width: 1201px) { .site-header { background: rgb(255 255 255 / 95%); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); } } }
.site-header.is-scrolled { --h: 70px; box-shadow: 0 6px 24px rgb(0 0 0 / 10%); }
.site-header.is-hidden { transform: translateY(-100%); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@keyframes fameis-fadein { from { opacity: 0; } to { opacity: 1; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--h); transition: min-height .3s ease; }
.site-logo { display: flex; flex-direction: column; flex: none; text-decoration: none; line-height: 1.1; }
.site-logo img { width: 165px; height: auto; transition: width .3s ease; }
.is-scrolled .site-logo img { width: 128px; }
.site-logo__name { font-family: var(--f-head); font-size: 1.8rem; font-weight: 800; color: var(--c-teal); }
.site-logo__tag { font-size: .75rem; color: var(--c-teal); text-transform: uppercase; }

/* Navigazione desktop */
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav__head, .site-nav__contacts { display: none; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li > a,
.primary-nav .menu-parent {
	position: relative; display: inline-flex; align-items: center; gap: .35em;
	padding: .7rem .85rem; border: 0; background: none; cursor: pointer; text-decoration: none;
	color: var(--c-viola); font-family: var(--f-head); font-size: 1rem; font-weight: 600; text-transform: uppercase; line-height: 20px; letter-spacing: .02em;
}
.primary-nav .menu > li > a::after,
.primary-nav .menu-parent::after {
	content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 3px; border-radius: 3px;
	background: var(--c-teal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.primary-nav .menu > li:hover > a::after,
.primary-nav .menu > li:hover > .menu-parent::after,
.primary-nav .menu > li > a:focus-visible::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav .current-menu-ancestor > .menu-parent::after,
.primary-nav .current-menu-parent > .menu-parent::after { transform: scaleX(1); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-menu-ancestor > .menu-parent,
.primary-nav .current-menu-parent > .menu-parent { color: var(--c-teal); }
.primary-nav .submenu-toggle {
	display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -.6rem; padding: 0;
	border: 0; border-radius: 50%; background: none; color: var(--c-viola); cursor: pointer;
}
.primary-nav .submenu-toggle:hover { background: var(--c-soft); }
.menu-chevron { transition: transform .25s ease; }
.primary-nav li.is-open > [data-submenu-toggle] .menu-chevron { transform: rotate(180deg); }

.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 6px); left: 50%; min-width: 240px;
	background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgb(0 0 0 / 14%), 0 0 0 1px var(--c-line);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.primary-nav .sub-menu::before { /* ponte invisibile per non perdere l'hover */
	content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1201px) {
	.primary-nav .menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
	.primary-nav .menu > li:hover > [data-submenu-toggle] .menu-chevron { transform: rotate(180deg); }
	.primary-nav .sub-menu { transition-delay: .15s; }
	.primary-nav .menu > li:hover > .sub-menu { transition-delay: 0s; }
}
.primary-nav .sub-menu a {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .65rem .9rem; border-radius: 6px; text-decoration: none;
	color: var(--c-viola); font-family: var(--f-head); font-size: .95rem; font-weight: 600; text-transform: none; white-space: nowrap;
}
.primary-nav .sub-menu a::after {
	content: ""; width: .45em; height: .45em; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
	transform: rotate(45deg) translateX(-4px); opacity: 0; transition: .2s;
}
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus-visible { background: var(--c-soft); color: var(--c-teal); }
.primary-nav .sub-menu a:hover::after, .primary-nav .sub-menu a:focus-visible::after { opacity: 1; transform: rotate(45deg) translateX(0); }
.primary-nav .sub-menu .current-menu-item > a { color: var(--c-teal); background: var(--c-soft); }

.site-nav__dona { padding: .7em 1.3em; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: .95rem; }
.site-nav__dona .icon { width: 1.15em; height: 1.15em; }
.site-nav__dona:hover .icon { transform: scale(1.15); }

/* Pulsante menu */
.nav-toggle {
	display: none; align-items: center; gap: .55rem; padding: .55rem .9rem .55rem .7rem;
	border: 2px solid var(--c-line); border-radius: 999px; background: #fff; cursor: pointer;
	color: var(--c-viola); font-family: var(--f-head); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
}
.nav-toggle:hover { border-color: var(--c-viola); }
.nav-toggle__icon { display: flex; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; }
/* barre a pixel interi (2px): nessun arrotondamento diverso tra una barra e l'altra sugli schermi retina */
.nav-toggle__icon span { display: block; width: 100%; height: 2px; border-radius: 1px; background: currentColor; transition: width .25s; }
.nav-toggle__icon span:nth-child(2) { width: 70%; }
.nav-toggle:hover .nav-toggle__icon span:nth-child(2) { width: 100%; }

.nav-backdrop {
	position: fixed; inset: 0; z-index: 75; background: rgb(30 20 35 / 45%);
	opacity: 0; transition: opacity .3s ease;
}
.nav-backdrop.is-visible { opacity: 1; }
@supports (backdrop-filter: blur(2px)) { .nav-backdrop { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); } }

/* Navigazione mobile: pannello laterale */
@media (max-width: 1200px) {
	.site-header { --h: 72px; background: #fff; }
	body.nav-open .site-header { transform: none; }
	.site-header.is-scrolled { --h: 64px; }
	.site-logo img, .is-scrolled .site-logo img { width: 118px; }
	.nav-toggle { display: inline-flex; }

	.site-nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
		width: min(420px, 100%); height: 100dvh;
		display: flex; flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; box-shadow: -20px 0 50px rgb(0 0 0 / 18%);
		overflow-y: auto; overscroll-behavior: contain;
		transform: translateX(100%); visibility: hidden;
		transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
	}
	.site-nav.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
	.admin-bar .site-nav { top: var(--wp-admin--admin-bar--height, 46px); height: auto; }

	.site-nav__head {
		display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1;
		padding: 1rem 1.25rem; background: #fff; border-bottom: 1px solid var(--c-line);
	}
	.site-nav__title { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-size: .85rem; }
	.site-nav__close {
		display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
		background: var(--c-soft); color: var(--c-viola); cursor: pointer;
	}
	.site-nav__close:hover { background: var(--c-viola); color: #fff; }

	.primary-nav { padding: .5rem 1.25rem; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
	.primary-nav .menu > li > a,
	.primary-nav .menu-parent { flex: 1; min-height: 56px; padding: .9rem 0; font-size: 1.2rem; justify-content: space-between; text-align: left; }
	.primary-nav .menu > li > a::after,
	.primary-nav .menu-parent::after { display: none; }
	.primary-nav .menu-parent .menu-chevron { width: 20px; height: 20px; }
	.primary-nav .submenu-toggle { width: 44px; height: 44px; margin: 0; background: var(--c-soft); }
	.site-nav:focus { outline: none; }

	.primary-nav .sub-menu {
		position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .6rem; margin: 0; border-radius: 0; box-shadow: none; background: none;
		display: none; opacity: 1; visibility: visible; transform: none;
	}
	.primary-nav .sub-menu::before { display: none; }
	.primary-nav li.is-open > .sub-menu { display: block; transform: none; animation: fameis-submenu .3s ease both; }
	.primary-nav .sub-menu a { padding: .75rem 1rem; font-size: 1.05rem; white-space: normal; }
	.primary-nav .sub-menu a::after { opacity: 1; transform: rotate(45deg); }

	.site-nav__cta { padding: 1.25rem; }
	.site-nav__dona { display: flex; width: 100%; padding: 1em; font-size: 1.05rem; }
	.site-nav__contacts {
		display: grid; gap: .25rem; list-style: none; margin: auto 0 0; padding: 1.25rem;
		background: var(--c-soft); border-top: 1px solid var(--c-line);
	}
	.site-nav__contacts a { display: flex; align-items: center; gap: .75rem; min-height: 44px; color: var(--c-viola); font-weight: 600; text-decoration: none; word-break: break-word; }
	.site-nav__contacts .icon { width: 22px; height: 22px; flex: none; color: var(--c-teal); }

	body.nav-open { overflow: hidden; }
}
@media (max-width: 380px) {
	.nav-toggle__label { display: none; }
	.nav-toggle { padding: .6rem; }
}
@keyframes fameis-submenu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.primary-nav li.is-open > .sub-menu { animation: none; }
	.site-header, .site-nav, .site-nav.is-open, .nav-backdrop, .primary-nav .sub-menu, .menu-chevron, .site-logo img { transition: none !important; }
}

/* Testate pagine interne (come il vecchio sito) ------------------------- */
.page-header { position: relative; overflow: hidden; background: var(--c-teal); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; margin-bottom: var(--section); }
.post-type-archive-corso .page-header, .single-corso .page-header, .tax-tipologia_evento .page-header, .single-evento .page-header, .post-type-archive-evento .page-header { background: var(--c-viola); }
.page-header__inner { position: relative; z-index: 1; }
.page-header__media { position: absolute; inset: 0; }
.page-header__bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.page-header__media::after { content: ""; position: absolute; inset: 0; }
/* Pagine e archivi: 60vh, velo nero (trasparente al 25% → nero), titolo in basso a sinistra */
.page-header--page.page-header--image { min-height: max(60vh, 380px); display: flex; align-items: flex-end; padding: 2rem 0 20px; }
.page-header--page .page-header__media::after { background: linear-gradient(180deg, rgb(0 0 0 / 0%) 25%, rgb(0 0 0) 100%); opacity: .7; }
/* Articoli, eventi, corsi: 400px, velo turchese, titolo centrato in verticale */
.page-header--single.page-header--image { min-height: 400px; display: flex; align-items: center; }
.page-header--single .page-header__media::after { background: linear-gradient(180deg, rgb(68 147 166) 25%, rgb(68 147 166 / 50%) 100%); opacity: .7; }
.page-header--image { background: #2d2d2d; }
.page-header__kicker { margin: 0 0 .4rem; font-size: 1.25rem; color: #fff; }
.page-header__title { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1; text-transform: uppercase; color: #fff; margin: 0; }
.page-header__subtitle { margin-top: .8rem; max-width: 60ch; color: #fff; }
.page-header__subtitle a { color: #fff; }
.breadcrumbs { font-size: .9rem; margin-bottom: .8rem; color: rgb(255 255 255 / 85%); }
.breadcrumbs a { color: #fff; }

/* Home: fasce "In evidenza" --------------------------------------------- */
.evidenza__band { color: #fff; padding: 20px 0; }
.evidenza__grid { display: grid; gap: 1.5rem 2.5rem; padding: 1.5rem 0; align-items: center; }
@media (min-width: 900px) { .evidenza__grid { grid-template-columns: 1fr 1fr; padding: 2rem 0; } }
.evidenza__kicker { margin: 0 0 .5rem; font-size: 1.25rem; text-transform: uppercase; }
.evidenza__title { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.25rem); line-height: 1; text-transform: uppercase; margin: 0; letter-spacing: .02em; }
.evidenza__script { font-family: var(--f-script); font-size: clamp(3.2rem, 7vw, 4.6rem); line-height: .9; margin: .3rem 0 0; }
.evidenza__sub { font-weight: 700; font-size: 1.25rem; text-transform: uppercase; margin: 0; line-height: 1.2; }
.evidenza__date { font-size: 1.25rem; margin: 0 0 1.4rem; }
.evidenza__right .btn { width: 100%; margin-top: .4rem; }
.evidenza__list { list-style: none; margin: 1rem 0 1.4rem; padding: 0; font-size: 1.25rem; line-height: 1.25; }
.evidenza__list li { padding: 1.1rem 0; border-bottom: 2px solid rgb(255 255 255 / 70%); }
.evidenza__list li:last-child { border-bottom: 0; }
.evidenza__list a { color: #fff; text-decoration: none; }
.evidenza__list a:hover { text-decoration: underline; }

/* Date compatte (evento con più date) */
.evidenza__dates { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 1.4rem; padding: 0; }
.evidenza__dates li { display: inline-flex; align-items: baseline; gap: .45em; padding: .35em .75em; border: 2px solid rgb(255 255 255 / 85%); font-size: 1.05rem; line-height: 1.2; white-space: nowrap; }
.evidenza__dates strong { text-transform: uppercase; letter-spacing: .02em; }
.evidenza__dates li.is-past { opacity: .55; text-decoration: line-through; }

/* Slider */
.evidenza--slider { position: relative; }
.evidenza__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.evidenza__track::-webkit-scrollbar { display: none; }
.evidenza--slider .evidenza__band { flex: 0 0 100%; scroll-snap-align: start; padding-bottom: 64px; }
.evidenza__controls { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 1rem; pointer-events: none; }
.evidenza__controls > * { pointer-events: auto; }
.evidenza__dots { display: flex; gap: .5rem; }
.evidenza__dot { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s, transform .2s; }
.evidenza__dot.is-active { background: #fff; transform: scale(1.15); }
.evidenza__arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgb(0 0 0 / 12%); color: #fff; cursor: pointer; }
.evidenza__arrow:hover { background: #fff; color: var(--c-viola); }
@media (max-width: 600px) { .evidenza__arrow { width: 36px; height: 36px; } }

/* Home: immagine con frase --------------------------------------------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	min-height: clamp(420px, 70vw, 970px); display: flex; align-items: center;
	background: linear-gradient(180deg, #8fbfcb 0%, var(--c-teal) 100%);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; animation: fameis-kenburns 10s linear infinite; }
/* Ken Burns come lo slideshow Elementor: zoom lento verso l'interno, ripartenza ogni 5s con dissolvenza. */
@keyframes fameis-kenburns {
	0%   { transform: scale(1);    opacity: 1; }
	47%  { transform: scale(1.15); opacity: 1; }
	50%  { transform: scale(1.16); opacity: .85; }
	50.01% { transform: scale(1); opacity: .85; }
	55%  { transform: scale(1.015); opacity: 1; }
	97%  { transform: scale(1.15); opacity: 1; }
	100% { transform: scale(1.16); opacity: .85; }
}
/* Velo turchese come l'overlay Elementor del vecchio sito: trasparente al 13%, pieno al 74%, opacità .97 */
.hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(68 147 166 / 0%) 13%, rgb(68 147 166) 74%); opacity: .97; }
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.25rem); line-height: 1; margin: 0; max-width: 1140px; text-shadow: 0 2px 12px rgb(0 0 0 / 15%); }
.hero__kicker { display: block; text-transform: uppercase; }

/* Home: testo di presentazione ----------------------------------------- */
.home-intro { padding: var(--section) 0; border-bottom: 2px solid var(--c-teal); }
.prose--intro { font-size: 1.25rem; line-height: 1.2; color: var(--c-teal); }
.prose--intro p { margin: 0 0 2.2em; }
.prose--intro p:last-child { margin-bottom: 0; }

/* Home: sezioni con immagine tonda ------------------------------------- */
.sezioni { overflow: hidden; }
.sezione__media { will-change: transform; }
.sezione { padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 2px solid var(--c-teal); }
.sezione:first-child { border-top: 0; }
.sezione--viola { --sez: var(--c-viola); border-top-color: var(--c-viola); }
.sezione--teal { --sez: var(--c-teal); border-top-color: var(--c-teal); }
.sezione__grid { display: grid; gap: 1.5rem 2rem; align-items: center; }
.sezione__media { display: flex; justify-content: center; }
.sezione__media img { width: min(100%, 470px); }
.sezione__ring {
	display: block; width: min(80vw, 390px); aspect-ratio: 1; border-radius: 50%;
	background: color-mix(in srgb, var(--sez) 14%, #fff);
	box-shadow: inset 0 0 0 26px color-mix(in srgb, var(--sez) 22%, #fff), inset 0 0 0 30px #fff;
}
.sezione__title { font-size: clamp(2.6rem, 6.5vw, 4.25rem); text-transform: uppercase; color: var(--sez); line-height: 1; margin: 0 0 1.2rem; }
@media (min-width: 900px) {
	.sezione__grid { grid-template-columns: 1fr 1fr; }
	.sezione--reverse .sezione__media { order: 2; }
	.sezione--reverse .sezione__body { text-align: right; }
}

/* Sezioni generiche ----------------------------------------------------- */
.site-main { padding-bottom: var(--section); }
.home-section { padding-top: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; margin: 0 0 1rem; }
.section-head .section-title { margin: 0; }
.link-more { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; text-decoration: none; color: var(--c-viola); display: inline-flex; gap: .4em; align-items: center; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; background: var(--c-soft); text-align: center; color: var(--c-teal); }
.empty__icon { width: 56px; height: 56px; color: var(--c-teal); opacity: .8; }
.empty__text { margin: 0; max-width: 46ch; font-size: 1.2rem; line-height: 1.4; }

/* Griglia e card -------------------------------------------------------- */
.grid { display: grid; gap: calc(var(--gap) * 1.5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; box-shadow: 0 4px 18px rgb(0 0 0 / 8%); border-top: 4px solid var(--c-teal); transition: transform .2s, box-shadow .2s; }
.card.type-evento, .card.type-corso { border-top-color: var(--tipo, var(--c-viola)); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 3 / 2; background: var(--c-soft); display: block; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--c-azzurro), var(--c-teal)); opacity: .35; }
.card__body { padding: 1.2rem 1.35rem 1.5rem; flex: 1; }
.card__kicker { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--tipo, var(--c-viola)) 78%, #000); }
.card__title { font-size: 1.45rem; margin: 0 0 .6rem; text-transform: uppercase; }
.card__title a { color: var(--c-teal); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__meta { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.card__meta li { padding-left: 1.7em; position: relative; }
.card__meta li + li { margin-top: .2rem; }
.card__meta li::before {
	content: ""; position: absolute; left: 0; top: .1em; width: 1.2em; height: 1.2em;
	background: var(--tipo, var(--c-viola)); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.meta-quando { --ico: url("../icons/e-calendar.svg"); }
.meta-luogo { --ico: url("../icons/e-pin.svg"); }
.card__excerpt { margin: 0; font-size: 1rem; }

/* Navigazione archivio -------------------------------------------------- */
.archive-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 2rem; margin-top: calc(var(--section) * -.5); }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { display: inline-block; padding: .5em 1.1em; border: 2px solid var(--c-teal); text-decoration: none; color: var(--c-teal); font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: .9rem; }
.pill.is-active, .pill:hover { background: var(--c-teal); color: #fff; }
.pills--secondary .pill { border-color: var(--c-viola); color: var(--c-viola); }
.pills--secondary .pill.is-active, .pills--secondary .pill:hover { background: var(--c-viola); color: #fff; }

.nav-links { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.nav-links .page-numbers { padding: .5em 1em; border: 2px solid var(--c-teal); text-decoration: none; font-family: var(--f-head); font-weight: 600; }
.nav-links .current { background: var(--c-teal); color: #fff; }

/* Contenuto -------------------------------------------------------------- */
.layout-sidebar { display: grid; gap: calc(var(--gap) * 2); }
.layout-sidebar__aside { order: -1; }
@media (min-width: 900px) {
	.layout-sidebar { grid-template-columns: minmax(0, 1fr) 350px; align-items: start; }
	.layout-sidebar__aside { position: sticky; top: 110px; order: 0; }
}
.entry__thumb { margin: 0 0 2rem; }
.entry__thumb img { width: 100%; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-top: 1.6em; text-transform: uppercase; }
.prose h3 { font-size: 1.5rem; margin-top: 1.4em; color: var(--c-viola); }
.prose figure { margin: 1.8rem 0; }
.prose figcaption, .wp-caption-text { font-size: .9rem; color: var(--c-muted); margin-top: .4rem; }
.prose blockquote { margin: 1.8rem 0; padding: .5rem 1.4rem; border-left: 4px solid var(--c-viola); background: var(--c-soft); }
.prose iframe { max-width: 100%; border: 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border-bottom: 1px solid var(--c-line); padding: .6rem; text-align: left; }
.prose ul li::marker { color: var(--c-teal); }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.25rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.25rem; }
.link-back { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; text-decoration: none; display: inline-block; margin-top: 2rem; color: var(--c-viola); }

/* Pagine: tipografia del vecchio sito (testo turchese 20px, titoli Raleway viola) */
.page .entry__content.prose { font-size: 1.25rem; line-height: 1.2; color: var(--c-teal); }
.page .entry__content.prose p { margin: 0 0 1.2em; }
.page .entry__content.prose h2 { font-family: var(--f-body); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.375rem); text-transform: none; color: var(--c-viola); margin: 2.4em 0 .15em; line-height: 1.1; }
.page .entry__content.prose h2 + p { color: var(--c-viola); }
.page .entry__content.prose h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.25rem; color: var(--c-viola); }

/* Scheda evento/corso --------------------------------------------------- */
.scheda { background: #fff; box-shadow: var(--shadow); padding: 1.5rem; border-top: 6px solid var(--c-viola); }
.scheda__list { margin: 0; }
.scheda__row { padding: .8rem 0; border-bottom: 1px solid var(--c-line); }
.scheda__row:first-child { padding-top: 0; }
.scheda__row dt { font-family: var(--f-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--c-viola); }
.scheda__row dd { margin: .15rem 0 0; font-weight: 600; color: var(--c-teal); }
.scheda__iscrizione { margin-top: 1.2rem; padding: 1.2rem; background: var(--c-azzurro); color: #fff; }
.scheda__iscrizione p { margin: 0 0 .6rem; }
.scheda__iscrizione a { color: #fff; }
.scheda__iscrizione .btn { margin-top: .4rem; }
.scheda__title { font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
.scheda__tel { font-weight: 700; white-space: nowrap; }
.scheda__concluso { margin: 0 0 1rem; padding: .5rem .8rem; background: var(--c-soft); font-family: var(--f-head); font-weight: 700; text-transform: uppercase; color: var(--c-muted); text-align: center; }

/* Galleria e allegati --------------------------------------------------- */
.galleria, .allegati { margin-top: 2.5rem; }
.galleria__grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.galleria__item { display: block; aspect-ratio: 1; overflow: hidden; }
.galleria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galleria__item:hover img { transform: scale(1.06); }
.allegati__list { list-style: none; padding: 0; margin: 0; }
.allegati__list li { padding: .7rem 0; border-bottom: 1px solid var(--c-line); }
.allegati__list a { font-weight: 700; }

.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { text-decoration: none; font-family: var(--f-head); font-weight: 600; border: 0; }

/* Pre-footer: Sostienici / Newsletter / Modulistica --------------------- */
.pre-footer { position: relative; z-index: 2; margin-top: var(--section); margin-bottom: -6rem; }
.site-main + .pre-footer { margin-top: 0; }
.pre-footer__stack { display: grid; gap: 6px; box-shadow: var(--shadow); background: #fff; padding: 0; }
.pre-footer__row { color: #fff; display: grid; gap: 1rem 2rem; align-items: center; padding: 1.75rem 1.4rem; }
@media (min-width: 800px) { .pre-footer__row { grid-template-columns: 1fr 1fr; padding: 2.4rem 1.4rem; } }
.pre-footer__title { font-family: var(--f-head); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.375rem); text-transform: uppercase; margin: 0; line-height: 1.2; letter-spacing: .02em; }
.pre-footer__title--small { font-size: clamp(1.4rem, 2.8vw, 1.875rem); text-transform: none; }
.pre-footer__lead { font-weight: 700; font-size: 1.25rem; text-transform: uppercase; margin: 0 0 1.2rem; line-height: 1.2; }
.pre-footer .btn--white { font-weight: 300; font-size: 1.375rem; padding: .55em 1em; }
.pre-footer__form input[type="email"], .pre-footer__form input[type="text"] { background: transparent; border: 1px solid #fff; color: #fff; text-align: center; }
.pre-footer__form input::placeholder { color: rgb(255 255 255 / 85%); }
.pre-footer__form label, .pre-footer__form .wpforms-field-label-inline { color: #fff; font-size: 1rem; }
.pre-footer__form a { color: #fff; font-weight: 700; }
.pre-footer__form button[type="submit"] { width: 100%; background: #fff; color: var(--c-viola); font-family: var(--f-head); font-weight: 300; font-size: 1.375rem; text-transform: uppercase; border-radius: 0; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--c-teal); color: #fff; padding: calc(6rem + var(--section)) 0 0; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__brand img { width: 183px; height: auto; }
.site-footer__claim { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 500; text-transform: uppercase; margin: .2rem 0 2rem; }
.site-footer__grid { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); padding-bottom: 3rem; }
.site-footer p { margin: 0 0 .9rem; }
.site-footer__big { font-size: 1.25rem; line-height: 1.15; }
.site-footer__big strong { font-weight: 700; }
.site-footer__title { font-weight: 600; text-transform: uppercase; margin-bottom: 1rem !important; }
.site-footer__contacts { list-style: none; margin: 1.6rem 0 0; padding: 0; font-weight: 700; }
.site-footer__contacts li { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .9rem; }
.site-footer__contacts .icon { width: 32px; height: 32px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; font-weight: 300; }
.site-footer__list li { display: flex; gap: .7rem; align-items: center; margin-bottom: .4rem; }
.site-footer__list .icon { width: 14px; height: 14px; }
.site-footer__menu { border-top: 1px solid rgb(255 255 255 / 25%); padding: 1rem 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .9rem; }
.site-footer__credits { background: #fff; color: var(--c-teal); text-align: center; font-size: 1rem; margin: 0; padding: .6rem 1rem; display: flex; align-items: center; justify-content: center; gap: .35em; }
.site-footer__credits a { color: var(--c-teal); }
.site-footer__credits img { display: inline-block; }

/* Form ------------------------------------------------------------------ */
.search-form { display: flex; gap: .5rem; margin: 1rem 0 2rem; }
.search-form label { flex: 1; }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], textarea, select {
	width: 100%; padding: .8em 1em; border: 1px solid var(--c-line); border-radius: 0; font: inherit; background: #fff;
}
.fameis-form button[type="submit"], .search-submit {
	padding: .8em 1.6em; border: 0; border-radius: 0; background: var(--c-teal); color: #fff;
	font-family: var(--f-head); font-size: 1.1rem; font-weight: 500; text-transform: uppercase; cursor: pointer;
}

/* Torna su --------------------------------------------------------------- */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px;
	display: flex; align-items: center; justify-content: center; background: #fff; color: var(--c-teal);
	box-shadow: 0 2px 10px rgb(0 0 0 / 20%); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-teal); color: #fff; }
.to-top__icon { transform: rotate(-90deg); width: 20px; height: 20px; }

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

/* Emoji sostituite da icone (inc/emoji.php) */
.emoji-icon {
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	margin: 0 .2em;
	vertical-align: -.18em;
	flex: none;
	color: inherit;
}
.emoji-icon:first-child { margin-left: 0; }
.emoji-icon--heart { color: var(--c-viola); }
.site-footer .emoji-icon--heart,
.page-header .emoji-icon--heart,
.hero .emoji-icon--heart,
.evidenza .emoji-icon--heart,
.btn .emoji-icon--heart { color: inherit; }

/* Singolo evento / corso (come il vecchio sito) --------------------------- */
.site-main--attivita { --tipo: var(--c-teal); --tipo-testo: color-mix(in srgb, var(--tipo) 72%, #000); }
.page-header.page-header--tipo { background: var(--tipo); }
.page-header--tipo .page-header__media::after { background: color-mix(in srgb, var(--tipo) 82%, #000); opacity: .8; }
.page-header--tipo .page-header__title { text-shadow: 0 2px 14px rgb(0 0 0 / 22%); }
.page-header--tipo.page-header--single { min-height: 400px; display: flex; flex-direction: column; justify-content: center; }
.page-header--tipo.page-header--tab .page-header__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.page-header--tipo .page-header__tabwrap, .page-header--tipo .page-header__inner { width: min(100% - 2 * var(--gap), var(--container)); }
.page-header--tipo .page-header__title { text-transform: none; font-size: clamp(2.2rem, 5.5vw, 4.25rem); line-height: 1.05; }
.site-main--attivita .page-header { margin-bottom: 0; }
.page-header--tab { padding-bottom: 0; }
.page-header--tab .page-header__inner { padding-top: 1rem; padding-bottom: 2rem; }
.page-header__tabwrap { position: relative; z-index: 1; margin-top: auto; }
.tipo-tab {
	display: flex; align-items: center; gap: 12px; width: min(570px, 100%); height: 48px; padding-right: 2rem;
	background: var(--tipo); border-top-right-radius: 65px; color: #fff; text-decoration: none;
	font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em;
}
.tipo-tab__arrow { display: grid; place-items: center; flex: none; width: 52px; height: 48px; background: #fff; color: var(--tipo); border: 3px solid var(--tipo); border-bottom: 0; }
.tipo-tab__arrow .icon { width: 30px; height: 30px; transition: transform .2s; }
.tipo-tab:hover { color: #fff; }
.tipo-tab:hover .tipo-tab__arrow .icon { transform: translateX(-4px); }
.tipo-tab__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.attivita { padding-bottom: var(--section); }
.dati { margin: 0 0 var(--section); }
.dati--top { margin-top: 4px; }
.dati--bottom { margin: 3rem 0; }
.dati__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; box-shadow: 0 25px 30px -18px rgb(0 0 0 / 18%); }
.dato {
	display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 16px;
	border: 3px solid var(--tipo); background: #fff;
	font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--tipo-testo);
}
.dato--big { text-transform: uppercase; font-size: 1.35rem; }
.dato__icon { flex: none; width: 32px; height: 32px; color: var(--tipo); }
.dato__label { font-weight: 600; }
.dato a { color: inherit; text-decoration: underline; text-decoration-color: var(--tipo); text-underline-offset: 3px; }
.dato a:hover { color: var(--tipo); }
.dato .badge { margin-left: .5rem; }
.dato--data .dato__text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .1rem; row-gap: .15rem; }
.dato--data strong { text-transform: uppercase; }
.dato--data em { font-style: normal; font-weight: 500; }
.dato__sep { margin: 0 .5rem; color: var(--tipo); }
.dato--passata { opacity: .55; }
.dato--passata strong { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--tipo); }
.dato__badge { padding: .1em .55em; background: var(--c-soft); color: var(--c-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dati__concluso {
	display: inline-block; margin: 0 0 8px; padding: .3em .9em; background: var(--c-soft); color: var(--c-muted);
	font-family: var(--f-head); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em;
}
.dati__cta { margin: 1.5rem 0 0; }
.btn--tipo { background: var(--tipo); border-color: var(--tipo); color: #fff; }
.btn--tipo:hover { background: var(--tipo-testo); border-color: var(--tipo-testo); }
.attivita__content { margin: 3rem 0 0; font-size: 1.25rem; line-height: 1.45; color: var(--c-teal); }
.attivita__content h2, .attivita__content h3 { color: var(--c-teal); text-transform: none; }
.attivita__content strong { color: var(--c-teal-dark); }

@media (max-width: 700px) {
	.page-header--tipo.page-header--single { min-height: 300px; }
	.tipo-tab { height: 44px; font-size: 1.05rem; border-top-right-radius: 44px; margin-left: calc(var(--gap) * -1); width: calc(100% + var(--gap)); }
	.tipo-tab__arrow { width: 48px; height: 44px; border-left: 0; }
	.dato { font-size: 1.05rem; gap: 12px; padding: 8px 12px; }
	.dato--big { font-size: 1.15rem; }
	.dato__icon { width: 28px; height: 28px; }
	.dati__list { gap: 6px; }
}

/* Ricerca ----------------------------------------------------------------- */
.search-form { display: flex; max-width: 560px; margin: 1.5rem 0; border: 2px solid var(--c-teal); background: #fff; }
.search-form__input { flex: 1; min-width: 0; height: 52px; padding: 0 1rem; border: 0 !important; box-shadow: none !important; border-radius: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--c-text); }
.search-form__input:focus { outline: none; }
.search-form:focus-within { box-shadow: 0 0 0 3px rgb(68 147 166 / 25%); }
.search-form__btn { display: grid; place-items: center; width: 56px; border: 0; background: var(--c-teal); color: #fff; cursor: pointer; }
.search-form__btn:hover { background: var(--c-teal-dark); }

/* 404 ---------------------------------------------------------------------- */
.error-404 { padding: clamp(3rem, 8vw, 6rem) 0 var(--section); background: linear-gradient(180deg, var(--c-soft), #fff); }
.error-404__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.error-404__art { display: flex; align-items: center; justify-content: center; gap: .2em; font-family: var(--f-head); font-weight: 800; font-size: clamp(6rem, 16vw, 12rem); line-height: 1; color: var(--c-teal); }
.error-404__num:last-child { color: var(--c-viola); }
.error-404__logo { width: .82em; height: .82em; object-fit: contain; animation: fameis-bob 3.5s ease-in-out infinite; }
@keyframes fameis-bob { 50% { transform: translateY(-.08em) rotate(-4deg); } }
.error-404__kicker { margin: 0 0 .5rem; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-viola); }
.error-404__title { margin: 0 0 1rem; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; color: var(--c-teal); }
.error-404__lead { margin: 0; font-size: 1.15rem; max-width: 52ch; }
.error-404__links { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 800px) {
	.error-404__inner { grid-template-columns: 1fr; text-align: left; }
	.error-404__art { justify-content: flex-start; font-size: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) { .error-404__logo { animation: none; } }

/* Pagina Grazie ----------------------------------------------------------- */
.grazie { padding: clamp(3.5rem, 9vw, 7rem) 0 var(--section); background: linear-gradient(180deg, var(--c-soft), #fff 70%); text-align: center; }
.grazie__inner { display: flex; flex-direction: column; align-items: center; }
.grazie__check { color: var(--c-teal); margin-bottom: 1.25rem; }
.grazie__circle { stroke-dasharray: 227; stroke-dashoffset: 227; animation: fameis-draw .8s ease-out forwards; }
.grazie__tick { stroke: var(--c-viola); stroke-width: 5; stroke-dasharray: 50; stroke-dashoffset: 50; animation: fameis-draw .45s .7s ease-out forwards; }
@keyframes fameis-draw { to { stroke-dashoffset: 0; } }
.grazie__title { margin: 0 0 1rem; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; color: var(--c-teal); text-transform: uppercase; }
.grazie__text { font-size: 1.25rem; color: var(--c-teal); max-width: 56ch; }
.grazie__text p { margin-inline: auto; }
.grazie__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) { .grazie__circle, .grazie__tick { animation: none; stroke-dashoffset: 0; } }

/* Pagina Contatti (come il vecchio sito) --------------------------------- */
.contatti { padding-bottom: var(--section); }
.contatti__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 2.5rem 4rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.contatti__title { margin: 0 0 1rem; font-family: var(--f-head); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--c-teal); }
.contatti__big { margin: 0 0 1rem; font-size: 1.3rem; line-height: 1.2; color: var(--c-teal); }
.contatti__big strong { font-weight: 700; }
.contatti__list { list-style: none; margin: 1.6rem 0 0; padding: 0; font-weight: 700; font-size: 1.1rem; }
.contatti__list li { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .9rem; color: var(--c-teal); }
.contatti__list .icon { width: 32px; height: 32px; flex: none; color: var(--c-teal); }
.contatti__list a { color: var(--c-teal); text-decoration: none; }
.contatti__list a:hover { color: var(--c-viola); }
.contatti__content { max-width: none; }
.contatti__content h2 { color: var(--c-viola); margin-bottom: .2em; }
.contatti__content h2 + p { color: var(--c-viola); }

/* Vetrina home ------------------------------------------------------------ */
.home-vetrina { padding-bottom: var(--section); }
.home-vetrina__blog { margin-top: clamp(2.5rem, 6vw, 4rem); }
.entry__back { margin-top: 2.5rem; }
.post-navigation { display: none; }

/* Evento collegato (articolo) e articoli collegati (evento) ---------------- */
.ev-link { --tipo-testo: color-mix(in srgb, var(--tipo) 72%, #000); display: grid; grid-template-columns: minmax(0, 1fr); margin: 2.5rem 0; border: 3px solid var(--tipo); background: #fff; box-shadow: 0 25px 30px -18px rgb(0 0 0 / 18%); }
.ev-link--media { grid-template-columns: 240px minmax(0, 1fr); }
.ev-link__media { display: block; min-height: 100%; background: var(--c-soft); }
.ev-link__media img { width: 100%; height: 100%; object-fit: cover; }
.ev-link__body { padding: 1.25rem 1.5rem 1.5rem; }
.ev-link__kicker { margin: 0 0 .3rem; font-family: var(--f-head); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tipo-testo); }
.ev-link__title { margin: 0 0 .6rem; font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.ev-link__title a { color: var(--c-teal); text-decoration: none; }
.ev-link__title a:hover { color: var(--tipo-testo); }
.ev-link__meta { list-style: none; margin: 0 0 1.1rem; padding: 0; color: var(--tipo-testo); font-family: var(--f-head); font-weight: 600; }
.ev-link__meta li { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.ev-link__icon { width: 24px; height: 24px; flex: none; color: var(--tipo); }
@media (max-width: 640px) {
	.ev-link--media { grid-template-columns: 1fr; }
	.ev-link__media { aspect-ratio: 3 / 2; }
}
.articoli-collegati { margin-top: var(--section); }

/* Elenco attività di sezione (in corso + archivio) ------------------------ */
.attivita-elenco { margin-top: var(--section); }
.attivita-elenco__block + .attivita-elenco__block { margin-top: clamp(2.5rem, 6vw, 4rem); }
.attivita-elenco .section-title { margin-bottom: 1.5rem; }
.attivita-elenco .section-head .section-title { margin-bottom: 0; }
.site-main > .container > .attivita-elenco { margin-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: var(--section); }
.loop-grid__title { margin: 1rem 0 1.5rem; }

/* Modulistica ------------------------------------------------------------- */
.modulistica { padding-bottom: var(--section); }
.modulistica__intro { margin-bottom: 2rem; }
.modulistica__group + .modulistica__group { margin-top: 2.5rem; }
.modulistica__title { margin: 0 0 1rem; font-size: 1.4rem; color: var(--c-viola); text-transform: uppercase; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border: 3px solid var(--c-teal); background: #fff; }
.doc__icon { flex: none; width: 36px; height: 36px; color: var(--c-teal); }
.doc__body { flex: 1; min-width: 0; }
.doc__title { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; color: var(--c-viola); text-decoration: none; }
.doc__title:hover { color: var(--c-teal); }
.doc__desc { margin: .2rem 0 0; font-size: 1rem; }
.doc__meta { margin: .2rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .05em; color: var(--c-muted); }
.doc__btn { flex: none; padding: .6em 1.2em; }
@media (max-width: 560px) {
	.doc { flex-wrap: wrap; }
	.doc__btn { width: 100%; }
}
.attivita-elenco__archivio { margin: 2rem 0 0; text-align: center; }
.site-main > .container > .attivita-elenco:has(> .attivita-elenco__archivio:only-child) { margin-top: 1rem; }

/* "In evidenza" a tutta altezza dello schermo (meno l'header), contenuti ridimensionati per starci */
:root { --hdr-h: 90px; }
@media (max-width: 1200px) { :root { --hdr-h: 72px; } }
.evidenza__band {
	--slide-h: calc(100svh - var(--hdr-h));
	height: var(--slide-h); min-height: 420px; max-height: 1000px;
	display: flex; align-items: center; overflow: hidden; padding: 0;
}
@supports not (height: 100svh) { .evidenza__band { --slide-h: calc(100vh - var(--hdr-h)); } }
.evidenza--slider .evidenza__band { padding: 0 0 56px; }
.evidenza__grid { width: min(100% - 2 * var(--gap), var(--container)); padding: 0; }
.evidenza__kicker { font-size: clamp(.9rem, 2svh, 1.25rem); margin-bottom: .3rem; }
.evidenza__title { font-size: clamp(2rem, min(10vw, 8svh), 4.25rem); }
.evidenza__script { font-size: clamp(2.2rem, min(11vw, 8.5svh), 4.6rem); }
.evidenza__sub { font-size: clamp(1rem, 2.4svh, 1.25rem); }
.evidenza__date { font-size: clamp(1rem, 2.4svh, 1.25rem); margin-bottom: clamp(.6rem, 2svh, 1.4rem); }
.evidenza__list { font-size: clamp(.95rem, 2.3svh, 1.25rem); margin: clamp(.4rem, 1.5svh, 1rem) 0 clamp(.6rem, 2svh, 1.4rem); }
.evidenza__list li { padding: clamp(.45rem, 1.6svh, 1.1rem) 0; }
.evidenza__list li:nth-child(n+5) { display: none; } /* al massimo 4 righe */
.evidenza__right .btn { padding-block: clamp(.6em, 1.6svh, .9em); }
@media (max-width: 899px) {
	.evidenza__grid { gap: clamp(.6rem, 2.2svh, 1.5rem); }
	.evidenza__list li:nth-child(n+4) { display: none; } /* da telefono al massimo 3 */
	.evidenza__dates li { font-size: .95rem; }
}
@media (max-height: 640px) {
	.evidenza__sub { display: none; }
	.evidenza__script { margin-top: 0; }
}

/* Pulsanti menu mobile: turchese con icona/testo bianchi */
.nav-toggle { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.nav-toggle:hover, .nav-toggle:focus-visible { background: var(--c-teal-dark); border-color: var(--c-teal-dark); color: #fff; }
.site-nav__close { background: var(--c-teal); color: #fff; }
.site-nav__close:hover, .site-nav__close:focus-visible { background: var(--c-teal-dark); color: #fff; }

/* Frecce del tema: forma lunga e sottile come la freccia "Indietro" dei moduli (colore invariato: currentColor) */
.icon.icon--arrow { width: 1.9em; height: 1em; vertical-align: -.18em; overflow: visible; }
.tipo-tab__arrow .icon.icon--arrow { width: 32px; height: 18px; }
.to-top__icon.icon--arrow { width: 28px; height: 28px; }
.emoji-icon.icon--arrow { width: 1.6em; }
.link-back { display: inline-flex; align-items: center; gap: .5em; }
.link-back .icon--arrow { transition: transform .2s; }
.link-back:hover .icon--arrow { transform: translateX(-4px); }
