/* ==========================================================================
   Comunità di Rinascita — foglio di stile del tema
   Grafica ispirata ai triangoli del logo: tre verdi, angoli arrotondati,
   "schegge" separate da piccoli spazi bianchi.
   ========================================================================== */

/* ---------- Font ospitati nel tema (nessuna richiesta a Google) ---------- */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/baloo-2-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/baloo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
/* Motto del pulmino: TeX Gyre Adventor (carattere tipo Avant Garde, licenza GUST, file originali non modificati) */
@font-face { font-family: "TeX Gyre Adventor"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/texgyreadventor-regular.otf") format("opentype"); }
@font-face { font-family: "TeX Gyre Adventor"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/texgyreadventor-italic.otf") format("opentype"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

/* ---------- Variabili ---------- */
:root {
	/* I tre verdi del logo */
	--c-dark: #0a7f43;
	--c-mid: #33a95c;
	--c-light: #58b567;
	/* Derivati */
	--c-deep: #0b5d33;
	--c-footer-bottom: #086a38;
	--c-tint: #eaf5ed;
	--c-tint-2: #d4ebda;
	--c-bg: #ffffff;
	--c-ink: #1e2b23;
	--c-muted: #4f5f55;
	--c-line: #dce8df;

	--f-head: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
	--f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
	/* Carattere del motto sul pulmino: "Accogliere condividere progettare" */
	--f-motto: "TeX Gyre Adventor", "ITC Avant Garde Gothic", "Avant Garde", "Century Gothic", system-ui, sans-serif;

	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 18px 40px -22px rgba(11, 93, 51, .45);
	--shadow-sm: 0 8px 22px -14px rgba(11, 93, 51, .4);

	--container: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(64px, 9vw, 120px);
	--ridge-h: clamp(34px, 5.5vw, 80px);
	--header-h: 146px;
	--gap: var(--c-bg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.site-main { display: block; overflow-x: clip; }
.site-main:focus { outline: none; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--c-dark); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--c-deep); }
:focus-visible { outline: 3px solid var(--c-mid); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--c-deep); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
abbr[title] { text-decoration: none; }
small { font-size: .85em; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(780px + 2 * var(--gutter)); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 12px; top: -80px; z-index: 1000; background: var(--c-deep); color: #fff;
	padding: .7rem 1.1rem; border-radius: 999px; font-family: var(--f-head); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }

/* ---------- Icone ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Pulsanti ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55rem;
	padding: .78rem 1.35rem .72rem;
	border-radius: 999px; border: 2px solid transparent;
	font-family: var(--f-head); font-weight: 600; font-size: 1.06rem; line-height: 1.1;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 1rem; height: 1rem; margin-top: -2px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--c-dark); color: #fff; }
.btn-primary:hover { background: var(--c-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--c-deep); border-color: var(--c-dark); }
.btn-secondary:hover { background: var(--c-dark); color: #fff; }
.btn-light { background: #fff; color: var(--c-deep); }
.btn-light:hover { background: var(--c-tint); color: var(--c-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.is-center { justify-content: center; margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Sopratitolo con triangolino ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .55rem;
	margin: 0 0 .9rem; color: var(--c-dark);
	font-family: var(--f-head); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
}
.eyebrow::before {
	content: ""; width: .95rem; height: .82rem; flex: none; margin-top: -.18rem;
	background: var(--c-mid); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---------- Intestazione ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s, border-color .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 10px 30px -24px rgba(11, 93, 51, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); transition: min-height .25s; }
.is-scrolled .header-inner { min-height: 84px; }
.brand { display: block; flex: none; padding-block: 8px; border-radius: 10px; }
.brand-logo { height: 126px; width: auto; transition: height .25s; }
.is-scrolled .brand-logo { height: 72px; }

.site-nav .menu { display: flex; align-items: center; gap: clamp(4px, 1vw, 12px); list-style: none; margin: 0; padding: 0; }
.site-nav .menu a {
	position: relative; display: block; padding: .55rem .7rem .45rem;
	color: var(--c-ink); text-decoration: none;
	font-family: var(--f-head); font-weight: 600; font-size: 1.07rem; line-height: 1.2; border-radius: 10px;
}
.site-nav .menu a:hover { color: var(--c-dark); background: var(--c-tint); }
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a,
.site-nav .menu .current-menu-ancestor > a,
.site-nav .menu .current_page_parent > a { color: var(--c-dark); }
.site-nav .menu .current-menu-item > a::after,
.site-nav .menu .current_page_item > a::after,
.site-nav .menu .current_page_parent > a::after {
	content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 10px; transform: translateX(-50%);
	background: var(--c-mid); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.site-nav .menu li:last-child a[lang="en"],
.site-nav .menu li:last-child a[href*="english"] { border: 2px solid var(--c-line); margin-left: 4px; }
.nav-contacts { display: none; }

.nav-toggle {
	display: none; align-items: center; gap: .6rem;
	padding: .55rem .9rem; border: 2px solid var(--c-line); border-radius: 999px;
	background: #fff; color: var(--c-deep); cursor: pointer;
	font-family: var(--f-head); font-weight: 600; font-size: 1rem; line-height: 1;
}
.nav-toggle-bars { position: relative; width: 20px; height: 14px; display: inline-block; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
	:root { --header-h: 96px; }
	.brand-logo { height: 80px; }
	.is-scrolled .brand-logo { height: 60px; }
	.is-scrolled .header-inner { min-height: 72px; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-top: 1px solid var(--c-line);
		box-shadow: 0 30px 40px -30px rgba(11, 93, 51, .45);
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		padding: 12px var(--gutter) 28px;
	}
	.nav-open .site-nav { display: block; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu a { font-size: 1.3rem; padding: .85rem .4rem .75rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
	.site-nav .menu a:hover { background: transparent; }
	.site-nav .menu .current-menu-item > a::after,
	.site-nav .menu .current_page_item > a::after,
	.site-nav .menu .current_page_parent > a::after { left: auto; right: 8px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(90deg); }
	.site-nav .menu li:last-child a[lang="en"],
	.site-nav .menu li:last-child a[href*="english"] { border: 0; border-bottom: 1px solid var(--c-line); margin: 0; }
	.nav-contacts { display: block; margin-top: 20px; }
}

/* ---------- Crinale di triangoli ---------- */
.ridge { position: relative; height: var(--ridge-h); line-height: 0; pointer-events: none; }
.ridge svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ridge-hero { margin-top: clamp(24px, 4vw, 48px); }
.ridge-hero path, .ridge-hero .ridge-base { fill: var(--c-bg); }
.ridge-footer { margin-top: calc(-1 * var(--ridge-h)); z-index: 1; }
.ridge-footer .ridge-light { fill: var(--c-light); }
.ridge-footer .ridge-mid { fill: var(--c-mid); }
.ridge-footer .ridge-dark { fill: var(--c-dark); }
.ridge-footer .ridge-base { fill: var(--c-dark); }

/* ---------- Foto a forma di montagna ---------- */
.mountain { display: block; width: 100%; height: auto; overflow: visible; }
.mountain .shard-dark { fill: var(--c-dark); }
.mountain .shard-mid { fill: var(--c-mid); }
.mountain .shard-light { fill: var(--c-light); }
.mountain .mountain-bg { fill: var(--c-tint-2); }
.mountain .mountain-gap { fill: none; stroke: var(--gap); stroke-width: 11; stroke-linejoin: round; }
.mountain.on-dark .shard-dark { fill: var(--c-tint-2); }

/* Gruppo di schegge decorative */
.shards { display: block; width: 100%; height: auto; }
.shards .shard-dark { fill: var(--c-dark); }
.shards .shard-mid { fill: var(--c-mid); }
.shards .shard-light { fill: var(--c-light); }

/* ---------- Cornice foto con angolo "a scheggia" ----------
   L'angolo in basso viene tagliato in diagonale (colore dello sfondo)
   e riempito da un triangolo verde: lo stesso gioco di pieni e spazi del logo. */
.frame { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--c-tint-2); }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frame.frame-portrait img, .frame.frame-tall img { aspect-ratio: 4 / 5; }
.frame::before, .frame::after {
	content: ""; position: absolute; left: 0; bottom: 0; z-index: 1; pointer-events: none;
	clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.frame::before { width: 42%; height: 30%; background: var(--gap); }
.frame::after { width: 34%; height: 24.3%; background: var(--c-light); }
.frame.is-right::before, .frame.is-right::after { left: auto; right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.frame.is-mid::after { background: var(--c-mid); }
.frame.is-dark::after { background: var(--c-dark); }

/* ---------- Foto "normale" con angoli arrotondati ---------- */
.photo-round { margin: 0; border-radius: 26px; overflow: hidden; background: var(--c-tint-2); box-shadow: var(--shadow-sm); }
.photo-round img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-round.is-wide img { aspect-ratio: 16 / 10; }

/* ---------- Sezioni ---------- */
.section { padding-block: var(--section); position: relative; }
.section-tint { background: var(--c-tint); --gap: var(--c-tint); }
.section:not(.section-tint) + .section:not(.section-tint):not(.section-contact) { padding-top: 0; }
.anchor-section { scroll-margin-top: calc(var(--header-h) + 16px); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: .35em; }
.section-lead { font-size: 1.18rem; color: var(--c-muted); }
.section-lead p { margin-bottom: .7em; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-icon { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-icon .section-head { margin-bottom: 0; }
.section-head-icon .value-icon { width: clamp(72px, 8vw, 96px); }
.sub-title { font-size: 1.35rem; margin-top: 1.6em; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 88px); }
/* Evita che contenuti che scorrono (schede, scorciatoie) allarghino le colonne */
.hero-grid > *, .page-hero-grid > *, .split > *, .item-row > *, .services-layout > *, .join-panel > *, .section-head-row > *, .section-head-icon > *, .duo-grid > * { min-width: 0; }
.split-reverse .split-media { order: -1; }
.split .section-head { margin-bottom: 0; }
.split-text .prose { margin-top: 1rem; }

/* ---------- Home: apertura ---------- */
.hero { background: var(--c-tint); --gap: var(--c-tint); padding-top: clamp(28px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-title {
	font-family: var(--f-motto); font-size: clamp(2.1rem, 4.8vw, 3.9rem); font-weight: 400; line-height: 1.16; letter-spacing: .06em;
	text-transform: uppercase; margin: 0 0 .5em; color: var(--c-dark);
}
.hero-title .t-line-3 { font-style: italic; }
/* Protezione da vecchi CSS (plugin, snippet) che cambiano maiuscole o carattere del motto */
.hero .hero-title, .hero .hero-title .t-line, .footer-claim { text-transform: uppercase !important; font-family: var(--f-motto) !important; font-variant: normal !important; }
.hero-title .t-line { display: flex; align-items: center; gap: .4em; }
.hero-title .t-line::before {
	content: ""; flex: none; width: .38em; height: .33em; margin-top: -.08em;
	clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--c-dark);
}
.hero-title .t-line-2::before { background: var(--c-mid); }
.hero-title .t-line-3::before { background: var(--c-light); }
.hero-subtitle { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; color: var(--c-ink); max-width: 30ch; font-weight: 600; }
.hero-media { max-width: 640px; justify-self: end; width: 100%; }

/* ---------- Home: valori ---------- */
.split-about { margin-bottom: clamp(48px, 7vw, 88px); }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.value-card {
	position: relative; display: flex; flex-direction: column; align-items: flex-start;
	padding: 26px 24px 58px; border: 1px solid var(--c-line); border-radius: var(--radius);
	background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.value-card.has-photo { padding: 0 0 54px; overflow: hidden; }
.value-card.has-photo > :not(.value-photo):not(.value-more) { margin-left: 22px; margin-right: 22px; }
.value-card.has-photo .value-title { margin-top: 18px; }
.value-photo { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-tint-2); }
.value-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.value-card.has-photo:hover .value-photo img { transform: scale(1.04); }
.value-icon { display: block; width: 88px; margin-bottom: 14px; }
.value-icon svg { display: block; width: 100%; height: auto; }
.value-icon.is-dark .value-tile { fill: var(--c-dark); }
.value-icon.is-mid .value-tile { fill: var(--c-mid); }
.value-icon.is-light .value-tile { fill: var(--c-light); }
.value-title { font-size: 1.4rem; margin-bottom: .3em; }
.value-title a { color: inherit; text-decoration: none; }
.value-text { color: var(--c-muted); font-size: 1rem; }
.value-more { position: absolute; right: 22px; bottom: 20px; color: var(--c-dark); display: inline-flex; }
.value-more .icon { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.value-card:hover .value-more .icon { transform: translateX(4px); }

/* Link che rende cliccabile tutta la card */
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--c-mid); outline-offset: 3px; border-radius: var(--radius); }

/* ---------- Home: servizi ---------- */
.services-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.services-layout.no-image { grid-template-columns: 1fr; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-item {
	position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
	padding: 22px 22px 24px; background: #fff; border-radius: var(--radius-sm);
	transition: transform .25s, box-shadow .25s;
}
.service-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.service-title { font-size: 1.22rem; margin: 2px 0 .3em; }
.service-title a { color: inherit; text-decoration: none; }
.service-text { font-size: .98rem; color: var(--c-muted); line-height: 1.55; }

/* ---------- Triangolo con numero ---------- */
.badge { position: relative; display: inline-grid; place-items: center; width: 60px; height: 54px; flex: none; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge path { fill: var(--c-dark); }
.badge > span { position: relative; padding-top: 30%; color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; line-height: 1; }
.badge-sm { width: 44px; height: 40px; }
.badge-sm > span { font-size: .84rem; }

/* ---------- Card ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.section-tint .card { border-color: transparent; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
.card-media .badge { z-index: 1; }
.card-media .badge { position: absolute; right: 18px; bottom: 2px; }
.card-placeholder { display: grid; place-items: end center; width: 100%; height: 100%; padding: 12% 14% 0; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); background: var(--c-tint); }
.card-placeholder .shards { width: 100%; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 26px; }
.card-title { font-size: 1.32rem; margin-bottom: .4em; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--c-dark); }
.card-text { color: var(--c-muted); font-size: 1rem; line-height: 1.55; margin-bottom: 1.1em; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; color: var(--c-dark); font-family: var(--f-head); font-weight: 700; }
.card-link .icon { width: .95rem; height: .95rem; margin-top: -2px; transition: transform .2s; }
.card:hover .card-link .icon { transform: translateX(4px); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: .6em; font-size: .92rem; color: var(--c-muted); }
.card-cat { display: inline-block; padding: .12rem .6rem; border-radius: 999px; background: var(--c-tint); color: var(--c-deep); font-weight: 600; font-size: .82rem; }
.card-news .card-title a { position: static; }
.card-news .card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-news .card-title a:focus-visible { outline: none; }
.card-news .card-title a:focus-visible::after { outline: 3px solid var(--c-mid); outline-offset: -3px; border-radius: var(--radius); }

/* ---------- Home: collabora ---------- */
.join-panel {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 64px);
	padding: clamp(32px, 5vw, 72px); border-radius: 32px;
	background: var(--c-dark); color: #fff; --gap: var(--c-dark);
}
.join-panel .eyebrow { color: #fff; }
.join-panel .eyebrow::before { background: var(--c-light); }
.join-panel .section-title { color: #fff; }
.join-panel .section-lead { color: #fff; }
.join-panel .section-head { margin-bottom: 0; }
.join-shards { position: absolute; left: -40px; bottom: -8px; width: 300px; opacity: .22; z-index: -1; }
.join-shards .shards path { fill: #fff; }
.join-media { max-width: 560px; justify-self: end; width: 100%; }

/* ---------- Intestazione pagine interne ---------- */
.page-hero { background: var(--c-tint); --gap: var(--c-tint); padding-top: clamp(24px, 4vw, 48px); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero.no-image .page-hero-grid { grid-template-columns: 1fr; }
.page-hero.no-image .page-hero-text { max-width: 820px; }
.page-hero-media { width: 100%; max-width: 540px; justify-self: end; }
.page-hero-media.is-shards { max-width: 340px; align-self: end; margin-bottom: -8px; }
.page-title { font-size: clamp(2.15rem, 4.6vw, 3.5rem); line-height: 1.04; margin-bottom: .4em; }
.page-intro { font-size: 1.2rem; color: var(--c-ink); max-width: 60ch; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 1rem; color: var(--c-muted); }
.page-meta time { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.page-meta .icon { color: var(--c-dark); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 1.1rem; padding: 0; font-size: .92rem; color: var(--c-muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--c-mid); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-dark); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--c-ink); font-weight: 600; }

.chips, .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.filter-chips { margin: 0 0 36px; }
.chip {
	display: inline-flex; align-items: center; padding: .42rem .95rem .36rem;
	border: 1.5px solid var(--c-line); border-radius: 999px; background: #fff;
	color: var(--c-deep); text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: .98rem; line-height: 1.2;
	transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover, .chip.is-active { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.chip-sm { font-size: .85rem; padding: .25rem .7rem .2rem; }

/* ---------- Chi siamo ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.panel {
	position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px);
	border-radius: var(--radius); background: var(--c-tint);
}
.panel::after {
	content: ""; position: absolute; right: -8px; top: -4px; width: 64px; height: 56px;
	clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--c-light); opacity: .4;
}
.panel-vision::after { background: var(--c-mid); }
.panel-title { position: relative; font-size: clamp(1.45rem, 2.4vw, 1.8rem); color: var(--c-dark); padding-right: 56px; }

.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.number { position: relative; padding: 26px 22px 22px; background: #fff; border-radius: var(--radius-sm); }
.number::before { content: ""; display: block; width: 22px; height: 19px; margin-bottom: 12px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--c-dark); }
.number:nth-child(3n+2)::before { background: var(--c-mid); }
.number:nth-child(3n+3)::before { background: var(--c-light); }
.number-value { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(2.1rem, 3.5vw, 2.7rem); line-height: 1; color: var(--c-deep); margin-bottom: .25em; }
.number-label { display: block; color: var(--c-muted); font-size: .98rem; line-height: 1.45; }

.people-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 18px; }
.people-list li { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.person-name { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; color: var(--c-deep); }
.person-role { display: block; color: var(--c-muted); font-size: .95rem; }

.network-list { display: flex; flex-wrap: wrap; gap: 12px; }
.network > a, .network > span {
	display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.3rem .8rem;
	border-radius: var(--radius-sm); background: var(--c-tint); color: var(--c-deep); text-decoration: none;
	font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; line-height: 1.2;
}
.network > a::before, .network > span::before { content: ""; width: 14px; height: 12px; flex: none; margin-top: -3px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--c-mid); }
.network > a:hover { background: var(--c-dark); color: #fff; }
.network .icon { width: 1rem; height: 1rem; }

.docs-intro { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.doc-list { display: grid; gap: 12px; max-width: 760px; }
.doc {
	display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 16px;
	border: 1.5px solid transparent; border-radius: var(--radius-sm); background: #fff; color: var(--c-ink); text-decoration: none;
	transition: border-color .2s, box-shadow .2s;
}
.doc:hover { border-color: var(--c-dark); color: var(--c-ink); box-shadow: var(--shadow-sm); }
.doc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c-tint); color: var(--c-dark); flex: none; }
.doc-name { flex: 1; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; color: var(--c-deep); line-height: 1.25; }
.doc-name small { font-family: var(--f-body); font-weight: 600; color: var(--c-muted); }
.doc-action { color: var(--c-dark); display: inline-flex; }

/* Linea del tempo (La nostra storia) */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.timeline-step { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 0 60px; padding-bottom: 18px; }
.timeline-step::before { content: ""; position: absolute; left: 179px; top: 14px; bottom: -14px; width: 3px; border-radius: 2px; background: var(--c-tint-2); }
.timeline-step:last-child::before { display: none; }
.timeline-step::after { content: ""; position: absolute; left: 170px; top: 10px; width: 21px; height: 18px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--c-dark); }
.timeline-step:nth-child(3n+2)::after { background: var(--c-mid); }
.timeline-step:nth-child(3n+3)::after { background: var(--c-light); }
.timeline-year { white-space: nowrap; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; color: var(--c-deep); text-align: right; padding-top: 2px; }
.timeline-body { padding: 16px 22px; border-radius: var(--radius-sm); background: #fff; }
.timeline-body p { margin: 0; }

/* Le persone */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.team-card { position: relative; padding: 24px 24px 26px; border-radius: var(--radius); background: #fff; }
.team-card::before { content: ""; display: block; width: 24px; height: 21px; margin-bottom: 14px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--c-dark); }
.team-card:nth-child(3n+2)::before { background: var(--c-mid); }
.team-card:nth-child(3n+3)::before { background: var(--c-light); }
.team-title { font-size: 1.25rem; margin-bottom: .4em; }
.team-card p { color: var(--c-muted); font-size: 1rem; line-height: 1.55; }
.team-card:first-child { grid-column: 1 / -1; background: var(--c-dark); color: #fff; padding: 28px 32px; }
.team-card:first-child::before { background: var(--c-light); }
.team-card:first-child .team-title { color: #fff; font-size: 1.45rem; }
.team-card:first-child p { color: #fff; font-size: 1.1rem; max-width: 70ch; }

/* Organi sociali */
.duo-bodies { margin-top: clamp(24px, 4vw, 40px); }
.photo-round.bodies-photo img { aspect-ratio: 24 / 9; }
.acc-toggle { display: none; }

/* Le reti: loghi */
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.logo-card {
	display: grid; place-items: center; height: 100%; min-height: 130px; padding: 22px;
	border: 1.5px solid var(--c-line); border-radius: var(--radius); background: #fff;
	color: var(--c-deep); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.logo-card:hover { border-color: var(--c-dark); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.logo-card img { max-width: 100%; max-height: 76px; width: auto; object-fit: contain; }
.logo-name { font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; line-height: 1.15; text-align: center; }

/* Trasparenza: riquadri con più documenti */
.docbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.docbox { display: flex; flex-direction: column; padding: 26px 24px; border-radius: var(--radius); background: #fff; }
.docbox .doc-icon { margin-bottom: 14px; }
.docbox-title { font-size: 1.35rem; margin-bottom: .35em; }
.docbox-text { color: var(--c-muted); font-size: 1rem; line-height: 1.55; }
.docbox-links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.docbox-links a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--c-tint); color: var(--c-deep); font-weight: 600; text-decoration: none; line-height: 1.3; }
.docbox-links a:hover { background: var(--c-dark); color: #fff; }
.docbox-links .icon { width: 1.1rem; height: 1.1rem; flex: none; }
.docbox-links small { font-weight: 400; opacity: .8; }
.docbox-soon { margin-top: auto; padding-top: 16px; color: var(--c-muted); font-size: .95rem; font-style: italic; }

/* ---------- Righe alternate (Servizi, Progetti) ---------- */
.item-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.item-row + .item-row { margin-top: clamp(64px, 9vw, 120px); }
.item-row.is-reverse .item-media { order: 2; }
.item-row.no-media { grid-template-columns: 1fr; }
.item-row.no-media .item-text {
	position: relative; overflow: hidden; max-width: 900px; margin-inline: auto; width: 100%;
	padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--c-tint);
}
.item-row.no-media .item-text::after {
	content: ""; position: absolute; right: -14px; bottom: -10px; width: 140px; height: 120px;
	clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--c-light); opacity: .35;
}
.item-media { max-width: 520px; width: 100%; justify-self: center; }
.item-head { display: flex; align-items: center; gap: 16px; margin-bottom: 1rem; }
.item-title { font-size: clamp(1.75rem, 3vw, 2.35rem); margin: 0; }
.item-lead { font-size: 1.2rem; font-weight: 600; color: var(--c-deep); line-height: 1.5; }
.item-text .prose { margin-top: 1rem; }
.item-more { display: none; align-items: center; gap: .35rem; color: var(--c-dark); font-family: var(--f-head); font-weight: 700; text-decoration: none; }
.item-more .icon { width: .85rem; height: .85rem; }
.related-mini { margin-top: 26px; padding: 4px 0 4px 18px; border-left: 4px solid var(--c-light); }
.related-mini-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-dark); margin-bottom: .5em; }
.related-mini li { margin-bottom: .45em; line-height: 1.4; }
.related-mini a { font-weight: 600; }
.related-mini time { display: block; font-size: .88rem; color: var(--c-muted); }

/* ---------- Collabora ---------- */
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.join-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.join-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--c-tint); --gap: #fff; }
.join-card-media { overflow: hidden; }
.join-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.join-card-media::before, .join-card-media::after { z-index: 1; }
.join-card-media::before, .join-card-media::after { content: ""; position: absolute; left: 0; bottom: -1px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.join-card-media::before { width: 30%; height: 34%; background: var(--gap); }
.join-card-media::after { width: 23%; height: 26%; background: var(--c-dark); }
.join-card:nth-child(4n+2) .join-card-media::after { background: var(--c-mid); }
.join-card:nth-child(4n+3) .join-card-media::after { background: var(--c-light); }
.join-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 36px); }
.join-card-title { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: .3em; }
.join-card-lead { font-size: 1.15rem; font-weight: 600; color: var(--c-deep); line-height: 1.45; }
.join-card .prose { color: var(--c-ink); }
.join-card .btn-row { margin-top: auto; padding-top: 24px; }

/* ---------- Box contatti ---------- */
.section-contact { padding-top: 0; }
.section-tint + .section-contact, .section-rows + .section-contact { padding-top: 0; }
.contact-band {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; align-items: center;
	padding: clamp(28px, 4.5vw, 56px); border-radius: 30px; background: var(--c-tint);
}
.contact-band .section-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.contact-band-text p { color: var(--c-muted); font-size: 1.1rem; }
.contact-band-shards { position: absolute; right: -30px; bottom: -6px; width: 260px; opacity: .18; z-index: -1; }

/* ---------- Elenco contatti ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; line-height: 1.35; }
.contact-list li > a, .contact-list li > span { min-width: 0; overflow-wrap: break-word; }
.contact-list .icon { color: var(--c-dark); width: 1.2rem; height: 1.2rem; }
.contact-list a { color: var(--c-ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--c-dark); text-decoration: underline; }
.contact-list .contact-wa {
	display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 2px;
	border-radius: 50%; background: var(--c-dark); color: #fff;
}
.contact-list .contact-wa .icon { color: #fff; width: 1.15rem; height: 1.15rem; }
.contact-list .contact-wa:hover { background: var(--c-deep); text-decoration: none; }
.contact-list.is-band { gap: 14px; font-size: 1.12rem; }
.contact-list.is-band > li > .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: #fff; }

/* ---------- Testi lunghi ---------- */
.prose { font-size: 1.07rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5em; margin-bottom: .45em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: .72em; height: .62em; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--c-mid); }
.prose ol { padding-left: 1.3em; }
.prose blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 4px solid var(--c-light); font-size: 1.15em; color: var(--c-deep); }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .9rem; color: var(--c-muted); margin-top: .5em; }
.prose .alignwide { margin-inline: -8%; }
.prose .has-verde-scuro-color { color: var(--c-dark); }
.prose .has-verde-medio-color { color: var(--c-mid); }
.prose .has-verde-chiaro-color { color: var(--c-light); }
.prose .has-verde-tenue-background-color { background: var(--c-tint); }
.prose .has-verde-scuro-background-color { background: var(--c-dark); color: #fff; }

/* ---------- Notizia singola ---------- */
.section-article { padding-top: clamp(40px, 6vw, 72px); }
.article-figure { margin: 0 0 36px; }
.article-image { width: 100%; height: auto; border-radius: var(--radius); }
.article-figure figcaption { font-size: .9rem; color: var(--c-muted); margin-top: .5em; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.post-nav-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); text-decoration: none; color: var(--c-ink); }
.post-nav-link:hover { border-color: var(--c-dark); color: var(--c-ink); }
.post-nav-link.is-next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-nav-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--c-dark); font-weight: 600; }
.post-nav-label .icon { width: .85rem; height: .85rem; }
.post-nav-title { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; line-height: 1.25; color: var(--c-deep); }

.other-links { display: flex; flex-wrap: wrap; gap: 12px; }
.other-links a { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.2rem .75rem; border-radius: var(--radius-sm); background: var(--c-tint); color: var(--c-deep); text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; }
.other-links a:hover { background: var(--c-dark); color: #fff; }
.other-links .icon { width: .9rem; height: .9rem; margin-top: -2px; }

/* ---------- Paginazione, ricerca ---------- */
.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border: 1.5px solid var(--c-line); border-radius: 999px; color: var(--c-deep); text-decoration: none; font-family: var(--f-head); font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.page-numbers .icon { width: 1rem; height: 1rem; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.search-field { flex: 1 1 240px; min-width: 0; padding: .8rem 1.2rem; border: 2px solid var(--c-line); border-radius: 999px; font: inherit; color: var(--c-ink); background: #fff; }
.search-field:focus { border-color: var(--c-dark); outline: none; box-shadow: 0 0 0 3px rgba(51, 169, 92, .3); }
.empty-state { max-width: 640px; }

/* ---------- Pagina English ---------- */
.en-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.en-card { padding: 26px 24px; border-radius: var(--radius); background: #fff; }
.en-card.is-outline { background: var(--c-tint); }
.en-card .badge { margin-bottom: 12px; }
.en-card-title { font-size: 1.3rem; margin-bottom: .35em; }
.en-card p { color: var(--c-muted); font-size: 1rem; line-height: 1.55; }

/* ---------- Piè di pagina ---------- */
.site-footer { position: relative; color: #fff; }
.footer-main { background: var(--c-dark); padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 56px); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.45fr .75fr; gap: 36px 40px; }
.footer-logo { display: inline-block; padding: 14px 18px; background: #fff; border-radius: 20px; }
.footer-logo img { width: 160px; height: auto; }
.footer-claim { margin-top: 18px; font-family: var(--f-motto); font-weight: 400; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; max-width: 24ch; }
.footer-title { color: #fff; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-org { font-weight: 600; margin-bottom: .6em; }
.footer-address { display: flex; gap: 10px; align-items: flex-start; }
.footer-address .icon { color: var(--c-tint-2); margin-top: 2px; }
.site-footer a { color: #fff; }
.contact-list.is-footer .icon { color: var(--c-tint-2); }
.contact-list.is-footer a { color: #fff; font-weight: 600; }
.contact-list.is-footer .contact-wa { background: #fff; }
.contact-list.is-footer .contact-wa .icon { color: var(--c-dark); }
.contact-list.is-footer .contact-wa:hover { background: var(--c-tint); }
.footer-social { margin-top: 18px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; padding: .5rem .95rem .5rem .6rem; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; text-decoration: none; font-weight: 600; }
.social-link .icon { width: 1.5rem; height: 1.5rem; }
.social-link:hover { background: #fff; color: var(--c-dark) !important; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-menu a { text-decoration: none; font-weight: 600; }
.footer-menu a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { background: var(--c-footer-bottom); font-size: .92rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px; padding-block: 18px; }
.footer-legal { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legal-menu a { text-decoration: none; }
.legal-menu a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.en-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
	.team-grid, .docbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.services-layout { grid-template-columns: 1fr; }
	.services-media { max-width: 520px; margin-inline: auto; width: 100%; }
	.join-panel { grid-template-columns: 1fr; }
	.join-shards { display: none; }
	.join-media { justify-self: center; max-width: 480px; }
	.contact-band { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.hero-grid, .page-hero-grid, .page-hero.no-image .page-hero-grid { grid-template-columns: 1fr; }
	.hero-media, .page-hero-media { justify-self: center; max-width: 520px; }
	.page-hero-media.is-shards { display: none; }
	.split, .item-row, .duo-grid { grid-template-columns: 1fr; }
	.split-reverse .split-media { order: 0; }
	.item-row.is-reverse .item-media { order: 0; }
	.item-media { max-width: 560px; }
	.frame.frame-tall img, .frame.frame-portrait img { aspect-ratio: 4 / 3; }
	.join-grid { grid-template-columns: 1fr; }
	.hero-subtitle { max-width: none; }
}
@media (max-width: 640px) {
	body { font-size: 1.03rem; }
	.contact-list.is-band { font-size: 1.02rem; }
	.cards-grid, .values-grid, .service-list, .en-grid, .people-list, .post-nav, .team-grid, .docbox-grid { grid-template-columns: 1fr; }
	.logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.timeline-step { grid-template-columns: 1fr; padding-left: 40px; gap: 6px; }
	.timeline-step::before { left: 10px; }
	.timeline-step::after { left: 0; top: 6px; }
	.timeline-year { text-align: left; }
	.post-nav-link.is-next { grid-column: auto; }
	.footer-grid { grid-template-columns: 1fr; }
	.section-head-icon { grid-template-columns: 1fr; gap: 14px; }
	.value-card:not(.has-photo) { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: start; padding: 20px 44px 20px 18px; }
	.value-card.has-photo .value-photo { aspect-ratio: 16 / 9; }
	.value-card .value-icon { grid-row: span 2; width: 64px; margin: 2px 0 0; }
	.value-card .value-title { margin-top: 2px; }
	.value-card:not(.has-photo) .value-more { right: 16px; bottom: auto; top: 50%; transform: translateY(-50%); }
	.numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.join-panel { border-radius: 24px; }
	.hero-title .t-line::before { width: .34em; height: .3em; }
}
@media (max-width: 420px) {
	.number { padding: 18px 16px 16px; }
	.brand-logo { height: 66px; }
	.nav-toggle-label { display: none; }
}

/* ==========================================================================
   Telefono: pagine più corte e leggere
   - schede che scorrono in orizzontale (notizie, valori, progetti…)
   - testi lunghi accorciati con "Leggi tutto"
   - elenchi lunghi con "Mostra tutto"
   - foto secondarie nascoste, spazi ridotti
   ========================================================================== */
.readmore-btn {
	display: inline-flex; align-items: center; gap: .4rem; margin-top: 10px; padding: .5rem .9rem .45rem;
	border: 1.5px solid var(--c-line); border-radius: 999px; background: #fff; cursor: pointer;
	color: var(--c-deep); font-family: var(--f-head); font-weight: 700; font-size: .98rem; line-height: 1.1;
}
.readmore-btn[hidden], [hidden] { display: none !important; }
.readmore-btn { align-self: flex-start; }
.readmore-btn:hover { border-color: var(--c-dark); }
.readmore-btn .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.readmore-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.page-hero .readmore-btn, .panel .readmore-btn, .section-tint .readmore-btn { background: rgba(255, 255, 255, .85); }
.more-btn { margin-top: 16px; }
.carousel-dots { display: none; }

@media (max-width: 760px) {
	:root { --section: 48px; --ridge-h: 28px; }
	body { font-size: 1rem; }
	.section-head { margin-bottom: 22px; }
	.section-title { font-size: 1.7rem; }
	.section-lead { font-size: 1.05rem; }
	.section-head-row { margin-bottom: 22px; }
	.btn-row.is-center { margin-top: 26px; }
	.btn { font-size: 1rem; padding: .7rem 1.15rem .64rem; }

	/* Testo accorciato */
	[data-readmore].is-clamped:not(.is-open) {
		max-height: var(--rm-h, 9.5em); overflow: hidden;
		-webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
	}
	/* Elenchi accorciati */
	[data-more].is-collapsed > :nth-child(n+4) { display: none; }

	/* Schede che scorrono */
	.m-carousel {
		display: grid !important; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none !important;
		gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
		margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.m-carousel::-webkit-scrollbar { display: none; }
	.m-carousel > * { scroll-snap-align: start; min-width: 0; }
	.m-carousel .card:hover, .m-carousel .value-card:hover { transform: none; }
	.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
	.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--c-tint-2); transition: background-color .2s, width .2s; }
	.carousel-dots span.is-active { width: 22px; border-radius: 6px; background: var(--c-dark); }
	.section-tint .carousel-dots span { background: #cfe3d5; }
	.section-tint .carousel-dots span.is-active { background: var(--c-dark); }

	/* Card più compatte */
	.card-body { padding: 16px 18px 20px; }
	.card-title { font-size: 1.18rem; }
	.card-text { font-size: .96rem; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
	.card-media { aspect-ratio: 16 / 10; }

	/* Intestazioni */
	.hero { padding-top: 20px; }
	.hero-grid { gap: 18px; }
	.hero-title { font-size: 2.15rem; margin-bottom: .35em; }
	.hero-subtitle { font-size: 1.12rem; }
	.hero .btn-row { margin-top: 18px; }
	.hero-media { max-width: 320px; }
	.ridge-hero { margin-top: 14px; }
	.page-hero { padding-top: 16px; }
	.page-hero-grid { gap: 18px; }
	.page-title { font-size: 1.85rem; }
	.page-intro { font-size: 1.04rem; }
	.page-hero-media { max-width: none; }
	.page-hero-media .photo-round img { aspect-ratio: 16 / 9; }
	.breadcrumbs ol { margin-bottom: .6rem; }
	/* Scorciatoie della pagina su una riga che scorre */
	.chips, .filter-chips {
		flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
		margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px;
	}
	.chips::-webkit-scrollbar, .filter-chips::-webkit-scrollbar { display: none; }
	.chip { flex: none; }
	.chips { margin-top: 16px; }
	.filter-chips { margin-bottom: 22px; }

	/* Home */
	.m-hide-media .split-media, .services-media, .join-media, .join-shards { display: none; }
	.split-about { margin-bottom: 26px; }
	.values-grid .value-card.has-photo { padding-bottom: 48px; }
	.value-card.has-photo .value-photo { aspect-ratio: 16 / 10; }
	.service-list { gap: 10px; }
	.service-item { padding: 14px 16px; align-items: center; }
	.service-text { display: none; }
	.service-title { margin: 0; font-size: 1.1rem; }
	.service-item::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--c-dark); border-top: 2.5px solid var(--c-dark); transform: rotate(45deg); margin-right: 4px; }
	.service-item { grid-template-columns: auto 1fr auto; }
	.join-panel { padding: 26px 22px 28px; gap: 0; }
	.section-head-row { align-items: flex-start; gap: 14px; }

	/* Pagine interne */
	.split, .item-row { gap: 20px; }
	.split-media .photo-round img, .frame img, .frame.frame-tall img, .frame.frame-portrait img { aspect-ratio: 16 / 10; }
	.item-row + .item-row { margin-top: 44px; }
	.item-head { gap: 12px; margin-bottom: .6rem; }
	.item-title { font-size: 1.55rem; }
	.item-lead { font-size: 1.06rem; }
	.item-media { max-width: none; }
	/* Servizi e Progetti: elenco compatto (foto piccola, titolo, riassunto); il testo completo è nella scheda */
	.section-rows .item-row {
		position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start;
		padding: 12px; border: 1px solid var(--c-line); border-radius: 18px; background: #fff;
	}
	.section-rows .item-row.no-media { grid-template-columns: 1fr; }
	.section-rows .item-row.no-media .item-text { padding: 6px; background: none; }
	.section-rows .item-row.no-media .item-text::after { display: none; }
	.section-rows .item-row + .item-row { margin-top: 12px; }
	.section-rows .item-row .frame { border-radius: 12px; }
	.section-rows .item-row .frame img { aspect-ratio: 1 / 1 !important; }
	.section-rows .item-row .frame::before, .section-rows .item-row .frame::after { display: none; }
	.section-rows .item-head { gap: 8px; margin-bottom: .25rem; }
	.section-rows .item-head .badge { width: 34px; height: 31px; }
	.section-rows .item-head .badge > span { font-size: .7rem; }
	.section-rows .item-title { font-size: 1.12rem; line-height: 1.2; }
	.section-rows .item-lead { font-size: .93rem; font-weight: 400; color: var(--c-muted); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.section-rows .item-row .prose, .section-rows .item-row .readmore-btn, .section-rows .item-row .btn-row { display: none !important; }
	.section-rows .item-more { display: inline-flex; margin-top: 6px; font-size: .92rem; }
	.section-rows .item-more::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
	/* Intestazioni delle pagine interne: niente foto sul telefono, si va dritti al contenuto */
	.page-hero.has-image .page-hero-media { display: none; }
	.item-row .related-mini { display: none; }
	.join-card .prose[data-readmore] { --rm-h: 5em; }
	.section-head-icon { grid-template-columns: 52px 1fr; gap: 14px; margin-bottom: 20px; }
	.section-head-icon .value-icon { width: 52px; }
	.panel { padding: 22px 20px; }
	.panel-title { font-size: 1.3rem; }
	.duo-grid { gap: 14px; }
	.duo-bodies { margin-top: 20px; }
	.team-grid, .docbox-grid { gap: 12px; }
	.team-card, .docbox { padding: 18px 18px 20px; }
	.team-card:first-child { padding: 20px 20px 22px; }
	.team-card:first-child p { font-size: 1rem; }
	.timeline-step { padding-bottom: 12px; }
	.timeline-body { padding: 12px 16px; }
	.logo-card { min-height: 96px; padding: 14px; }
	.join-grid { gap: 16px; }
	.join-card-media { aspect-ratio: 16 / 9; }
	.join-card-body { padding: 18px 20px 22px; }
	.join-card-title { font-size: 1.45rem; }
	.join-card .btn-row { padding-top: 14px; }
	.contact-band { padding: 22px 20px; border-radius: 22px; gap: 14px; }
	.contact-band-shards { display: none; }
	.join-grid.m-carousel { grid-auto-columns: 86%; align-items: start; }
	.en-card { padding: 20px; }

	/* Chi siamo: sezioni a fisarmonica */
	.m-accordion.acc-on { padding-block: 0; }
	.m-accordion.acc-on > .container { padding-block: 18px; }
	.m-accordion.acc-on + .m-accordion.acc-on { padding-top: 0; }
	.m-accordion.acc-on:last-of-type > .container { padding-bottom: 44px; }
	.m-accordion.acc-on .acc-head { position: relative; margin-bottom: 0; padding-right: 48px; cursor: pointer; grid-template-columns: 44px 1fr; gap: 12px; }
	.m-accordion.acc-on .acc-head .value-icon { width: 44px; }
	.m-accordion.acc-on .acc-head .section-lead { display: none; }
	.m-accordion.acc-on.is-open .acc-head .section-lead { display: block; }
	.m-accordion.acc-on .acc-head .section-title { font-size: 1.3rem; margin-bottom: 0; }
	.m-accordion.acc-on .acc-head .eyebrow { margin-bottom: .3rem; font-size: .82rem; }
	.m-accordion.acc-on .acc-toggle {
		display: grid; place-items: center; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
		width: 40px; height: 40px; border: 1.5px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-dark); cursor: pointer;
	}
	.m-accordion.acc-on .acc-toggle .icon { width: 1.1rem; height: 1.1rem; transition: transform .25s; }
	.m-accordion.acc-on.is-open .acc-toggle .icon { transform: rotate(180deg); }
	.m-accordion.acc-on:not(.is-open) .acc-body { display: none; }
	.m-accordion.acc-on.is-open .acc-body { padding-top: 18px; padding-bottom: 12px; }
	.m-accordion.acc-on.is-open .acc-head .section-lead { margin-top: .6rem; }
	.photo-round.bodies-photo img { aspect-ratio: 16 / 10; }

	/* Archivio notizie: elenco compatto con miniatura */
	.news-list { grid-template-columns: 1fr !important; gap: 12px; }
	.news-list .card-news { display: grid; grid-template-columns: 104px 1fr; align-items: stretch; border-radius: 18px; }
	.news-list .card-media { aspect-ratio: auto; height: 100%; min-height: 110px; }
	.news-list .card-media img, .news-list .card-placeholder { clip-path: none; }
	.news-list .card-placeholder { padding: 18px 10px; place-items: center; }
	.news-list .card-body { padding: 12px 14px 14px; }
	.news-list .card-title { font-size: 1.04rem; margin-bottom: .2em; }
	.news-list .card-text, .news-list .card-link { display: none; }
	.news-list .card-meta { margin-bottom: .35em; font-size: .82rem; }
	.news-list .card-cat { display: none; }

	/* Piè di pagina più corto */
	.footer-main { padding: 30px 0 26px; }
	.footer-grid { grid-template-columns: 1fr; gap: 22px; }
	.footer-grid > nav.footer-col { display: none; }
	.footer-brand { display: flex; align-items: center; gap: 16px; }
	.footer-logo { padding: 10px 12px; border-radius: 16px; }
	.footer-logo img { width: 110px; }
	.footer-claim { margin-top: 0; font-size: .92rem; }
	.footer-title { margin-bottom: 10px; font-size: .95rem; }
	.footer-bottom-inner { padding-block: 14px; font-size: .85rem; }
}

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

@media print {
	.site-header, .site-footer, .ridge, .btn-row, .chips, .filter-chips { display: none !important; }
	.hero, .page-hero, .section-tint { background: none; }
}
