/* =====================================================================
   Sito pubblico - restyling 2026-10
   Stesso linguaggio di copper&steel / venanzieffe, slider come rpgmultimedia.
   Classi senza prefisso, variabili --cds-* ; valido solo sotto body.public (l'area
   riservata sovrascrive body_classes e non ne viene toccata).
   ===================================================================== */

:root {
	--cds-green: #7BA566;
	--cds-green-dark: #5E8A4B;
	--cds-green-soft: rgba(123, 165, 102, .1);
	--cds-green-line: rgba(123, 165, 102, .25);
	--cds-ink: #16201a;
	--cds-fg-1: #1d2620;
	--cds-fg-2: #4d5650;
	--cds-line: #e4e8e3;
	--cds-bg-soft: #f5f7f4;
	--cds-radius: 14px;
	--cds-radius-sm: 8px;
	--cds-radius-pill: 999px;
	--cds-shadow: 0 14px 34px rgba(22, 32, 26, .10);
	--cds-ease: cubic-bezier(.215, .61, .355, 1);
	--cds-t: .3s var(--cds-ease);
	--cds-font-display: "Poppins", sans-serif;
	--cds-font-body: "Inter", sans-serif;
}

/* ---------- Base tipografica ---------- */
.public {
	--cnvs-themecolor: var(--cds-green);
	--cnvs-themecolor-rgb: 123, 165, 102;
	--cnvs-primary-font: var(--cds-font-display);
	--cnvs-body-font: var(--cds-font-body);
	--cnvs-heading-color: var(--cds-fg-1);
	--cnvs-headings-font-weight: 700;
	--bs-primary: var(--cds-green);
	--bs-primary-rgb: 123, 165, 102;
}
.public :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--cds-font-display);
	letter-spacing: -.01em;
	line-height: 1.25;
	text-transform: none;
	color: var(--cds-fg-1);
}
.public #main :where(h1) { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.public #main :where(h2) { font-size: clamp(24px, 2.8vw, 36px); font-weight: 750; margin: 0 0 18px; }
.public #main :where(h3) { font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; margin: 0 0 12px; }
.public #main :where(h4) { font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; margin: 0 0 10px; }
.public #main .h3 { font-size: clamp(19px, 1.9vw, 24px); }
.public #main .h4 { font-size: clamp(17px, 1.5vw, 20px); }
.public #main :where(p, li) { color: var(--cds-fg-2); line-height: 1.75; }
.public #main :where(a:not(.button):not(.action)) { color: var(--cds-green-dark); text-underline-offset: 3px; }
.public #main :where(a:not(.button):not(.action):hover) { color: var(--cds-green); }
.public .txt_a_j { text-align: left !important; }
.public .lead { font-size: clamp(16px, 1.4vw, 18px); }

/* Menu: maiuscolo in CSS invece che inline su ogni voce */
.public .primary-menu .menu-link { text-transform: uppercase; }
.public .primary-menu .menu-link > div { font-weight: 700; }
.public .primary-menu .menu-link.color_pr { color: var(--cds-green); }
/* 11 voci: fra 1200 e 1400 non stanno in riga col logo */
@media (min-width: 1200px) and (max-width: 1399.98px) {
	.public.is-expanded-menu .menu-link { --cnvs-primary-menu-padding-x: 9px; --cnvs-primary-menu-ls: .5px; }
}

/* ---------- Pulsanti ---------- */
.action {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 13px 26px; border-radius: var(--cds-radius-pill);
	border: 1.5px solid transparent; font-family: var(--cds-font-display);
	font-weight: 600; font-size: 15px; line-height: 1.1; text-decoration: none !important;
	transition: background var(--cds-t), color var(--cds-t), border-color var(--cds-t), transform var(--cds-t), box-shadow var(--cds-t);
}
.action i { transition: transform var(--cds-t); }
.action:hover { transform: translateY(-2px); }
.action:hover i.fa-arrow-right { transform: translateX(4px); }
.action_primary { background: var(--cds-green); border-color: var(--cds-green); color: #fff !important; box-shadow: 0 12px 28px rgba(123, 165, 102, .30); }
.action_primary:hover { background: var(--cds-green-dark); border-color: var(--cds-green-dark); }
.action_outline { background: transparent; border-color: var(--cds-green); color: var(--cds-green-dark) !important; }
.action_outline:hover { background: var(--cds-green); color: #fff !important; }
.action_ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: #fff !important; backdrop-filter: blur(4px); }
.action_ghost:hover { background: #fff; border-color: #fff; color: var(--cds-ink) !important; }
.action_light { background: #fff; border-color: #fff; color: var(--cds-green-dark) !important; }
.action_light:hover { background: transparent; color: #fff !important; }
.action_sm { padding: 10px 20px; font-size: 14px; }
.action_icon { width: 46px; height: 46px; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .7em;
	font-family: var(--cds-font-display); font-size: 13px; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase; color: var(--cds-green-dark);
}
/* al posto della riga: la spiga del logo (come il cuore di mamyandfamily) */
.eyebrow::before { content: "\e2cd"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 1.15em; letter-spacing: 0; line-height: 1; color: var(--cds-green); }

/* ---------- Sezioni e titoli ---------- */
.page_section { padding-block: clamp(48px, 6.5vw, 88px); }
.page_section_soft { background: var(--cds-bg-soft); }
.page_section:not(.page_section_soft) + .page_section:not(.page_section_soft) { padding-top: 0; } /* due sezioni bianche di fila: niente doppio spazio */
.title { margin-bottom: clamp(26px, 3.4vw, 42px); max-width: 820px; }
.title h2 { margin: 10px 0 0 !important; }
.title_intro { margin: 16px 0 0; font-size: clamp(16px, 1.4vw, 18px); }
.title_full { max-width: none; }
.title_center { margin-left: auto; margin-right: auto; text-align: center; }

.more { margin-top: clamp(28px, 3.5vw, 44px); text-align: center; }

/* ---------- Slider home (fade, come rpgmultimedia) ---------- */
.hero { position: relative; overflow: hidden; height: clamp(440px, 64vh, 600px); background: var(--cds-ink); }
.hero_viewport { position: absolute; inset: 0; }
.hero_slide {
	position: absolute; inset: 0; opacity: 0; visibility: hidden;
	transition: opacity .9s var(--cds-ease), visibility 0s linear .9s;
}
.hero_slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--cds-ease), visibility 0s; }
.hero_img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero_slide.is-active .hero_img { animation: heroKen 9s ease-out both; }
@keyframes heroKen { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero_overlay {
	position: absolute; inset: 0;
	background:
		linear-gradient(105deg, rgba(16, 24, 18, .86) 0%, rgba(16, 24, 18, .55) 45%, rgba(16, 24, 18, .2) 100%),
		linear-gradient(to top, rgba(16, 24, 18, .65) 0%, rgba(16, 24, 18, 0) 45%);
}
.hero_content {
	position: relative; z-index: 2; height: 100%;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding-block: clamp(32px, 5vw, 64px);
}
.hero_content > * { max-width: 760px; opacity: 0; transform: translateY(22px); }
.hero_slide.is-active .hero_content > * { animation: heroRise .7s var(--cds-ease) forwards; }
.hero_slide.is-active .hero_content > *:nth-child(1) { animation-delay: .15s; }
.hero_slide.is-active .hero_content > *:nth-child(2) { animation-delay: .28s; }
.hero_slide.is-active .hero_content > *:nth-child(3) { animation-delay: .41s; }
.hero_slide.is-active .hero_content > *:nth-child(4) { animation-delay: .54s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }
.hero .eyebrow { color: #fff; margin-bottom: 6px; }
.hero .eyebrow::before { color: #b6dca2; }
.hero .hero_title {
	font-family: var(--cds-font-display); font-weight: 800;
	font-size: clamp(32px, 5vw, 58px); line-height: 1.08; letter-spacing: -.03em;
	color: #fff !important; margin: 14px 0 18px; text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero .hero_title .accent { color: #b6dca2; }
.hero .hero_text {
	color: rgba(255, 255, 255, .88); font-size: clamp(16px, 1.6vw, 20px);
	line-height: 1.6; max-width: 580px; margin: 0 0 28px;
}

/* ---------- Banner pagine interne ---------- */
.page_banner { position: relative; overflow: hidden; min-height: clamp(300px, 42vh, 440px); display: flex; background: var(--cds-ink); }
.page_banner_img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page_banner_overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(16, 24, 18, .30) 0%, rgba(16, 24, 18, .82) 100%); }
.page_banner_content {
	position: relative; z-index: 1; align-self: flex-end; width: 100%;
	padding-top: clamp(80px, 10vh, 120px); padding-bottom: clamp(32px, 4.5vw, 52px);
	animation: fadeUp .7s var(--cds-ease) .05s both;
}
.page_banner .eyebrow { color: #fff; }
.page_banner .eyebrow::before { color: #b6dca2; }
.page_banner h1 {
	font-family: var(--cds-font-display); font-weight: 800;
	font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.025em;
	color: #fff !important; margin: 12px 0 0; max-width: 900px; text-shadow: 0 2px 22px rgba(0, 0, 0, .3);
}
.page_banner p { color: rgba(255, 255, 255, .86); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; max-width: 640px; margin: 14px 0 0; }
.page_banner p:empty { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Banda foto (ex shape-divider) ---------- */
.band { position: relative; overflow: hidden; min-height: clamp(220px, 32vw, 380px); display: flex; align-items: center; background: var(--cds-ink) center / cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16, 24, 18, .72) 0%, rgba(16, 24, 18, .35) 60%, rgba(16, 24, 18, .15) 100%); }
.band_content { position: relative; z-index: 1; width: 100%; }
.public #main .band_quote {
	font-family: var(--cds-font-display); font-weight: 700; font-size: clamp(22px, 3vw, 38px);
	line-height: 1.2; letter-spacing: -.02em; color: #fff; max-width: 720px; margin: 0;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}

/* ---------- Card ---------- */
.panel {
	position: relative; height: 100%; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--cds-line); border-radius: var(--cds-radius); overflow: hidden;
	transition: transform var(--cds-t), box-shadow var(--cds-t), border-color var(--cds-t);
}
.panel:hover { transform: translateY(-5px); box-shadow: var(--cds-shadow); border-color: var(--cds-green-line); }
.panel_static:hover { transform: none; box-shadow: none; border-color: var(--cds-line); } /* card senza link */
.panel_media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--cds-bg-soft); }
.panel_media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel_media .panel_blur { object-fit: cover; filter: blur(18px) saturate(1.1) brightness(.92); transform: scale(1.15); }
.panel_media .panel_img { z-index: 1; object-fit: contain; transition: transform .6s var(--cds-ease); }
.panel:hover .panel_media .panel_img { transform: scale(1.03); }
.panel_media .panel_cover { object-fit: cover; }
.panel:hover .panel_media .panel_cover { transform: scale(1.05); }
.panel_badge {
	position: absolute; left: 14px; top: 14px; z-index: 2;
	padding: 5px 12px; border-radius: var(--cds-radius-pill);
	background: rgba(255, 255, 255, .92); color: var(--cds-green-dark);
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.panel_body { position: relative; display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.2vw, 26px); }
.panel_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--cds-fg-2); }
.panel_meta span { display: inline-flex; align-items: center; gap: 7px; }
.panel_meta i { color: var(--cds-green); }
.public #main .panel_title { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.panel_title a { color: var(--cds-fg-1) !important; text-decoration: none; }
.panel_title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* card tutta cliccabile */
.panel_title a:hover { color: var(--cds-green-dark) !important; }
.public #main .panel_text {
	margin: 0; font-size: 15px; line-height: 1.65;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Card orizzontale (elenchi: attivita', risultati, progetti, news) */
@media (min-width: 768px) {
	.panel_row { flex-direction: row; }
	.panel_row .panel_media { flex: 0 0 38%; aspect-ratio: auto; min-height: 240px; }
	.public #main .panel_row .panel_text { -webkit-line-clamp: 4; }
}

/* Card orizzontale anche su mobile (risultati) */
.panel_row_xs { flex-direction: row; }
.panel_row_xs .panel_media { flex: 0 0 36%; aspect-ratio: auto; min-height: 170px; }
@media (min-width: 768px) {
	.panel_row_xs .panel_media { flex-basis: 300px; max-width: 40%; min-height: 220px; }
}
@media (max-width: 575.98px) {
	.panel_row_xs .panel_body { padding: 14px 16px; }
	.public #main .panel_row_xs .panel_title { font-size: 16px; margin-bottom: 6px; }
	.public #main .panel_row_xs .panel_text { font-size: 14px; -webkit-line-clamp: 3; }
	.panel_row_xs .panel_meta { margin-bottom: 6px; font-size: 12px; }
}
/* Card immagine (gallerie, articoli) */
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--cds-radius); aspect-ratio: 4 / 3; background: var(--cds-bg-soft); }
.tile_tall { aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--cds-ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 24, 18, .8) 0%, rgba(16, 24, 18, 0) 55%); }
.tile:hover img { transform: scale(1.06); }
.tile_caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.public #main .tile_title { margin: 0; font-size: 17px; line-height: 1.3; color: #fff; }
.tile_caption small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.tile_caption i {
	flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-size: 13px;
	transition: background var(--cds-t), border-color var(--cds-t);
}
.tile:hover .tile_caption i { background: var(--cds-green); border-color: var(--cds-green); }

/* ---------- Icone ---------- */
.icon_box {
	flex: none; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
	background: var(--cds-green-soft); border: 1px solid var(--cds-green-line); color: var(--cds-green-dark); font-size: 22px;
	transition: background var(--cds-t), color var(--cds-t), border-color var(--cds-t);
}
.icon_round { border-radius: 50%; }
.icon_btn {
	flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
	background: var(--cds-green-soft); border: 1px solid var(--cds-green-line); color: var(--cds-green-dark) !important;
	font-size: 16px; text-decoration: none !important; transition: background var(--cds-t), color var(--cds-t), border-color var(--cds-t);
}
.icon_btn:hover { background: var(--cds-green); border-color: var(--cds-green); color: #fff !important; }

/* Riga documento (Abassavoce, moduli) */
.doc {
	height: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 18px;
	background: #fff; border: 1px solid var(--cds-line); border-radius: 12px;
	transition: border-color var(--cds-t), box-shadow var(--cds-t);
}
.doc:hover { border-color: var(--cds-green-line); box-shadow: 0 10px 25px rgba(22, 32, 26, .07); }
.doc_title { flex: 1; min-width: 0; margin: 0; font-weight: 600; color: var(--cds-fg-1); line-height: 1.35; }
.doc_title small { display: block; font-weight: 500; font-size: 13px; color: var(--cds-fg-2); }
.doc_actions { display: flex; gap: 8px; }

/* ---------- Call to action (Sostienici) ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 72px); background: linear-gradient(120deg, var(--cds-green-dark) 0%, var(--cds-green) 100%); color: #fff; }
.cta::after { content: "\f004"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -20px; bottom: -60px; font-size: 260px; line-height: 1; color: rgba(255, 255, 255, .08); pointer-events: none; }
.public #main .cta h2 { color: #fff; margin: 0 0 10px; }
.public #main .cta p { color: rgba(255, 255, 255, .9); margin: 0; max-width: 620px; }

/* ---------- Pagine di dettaglio ---------- */
.post_wrap { max-width: 960px; }
.post_meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: var(--cds-fg-2); }
.post_meta i { color: var(--cds-green); margin-right: 6px; }
.public .post img { max-width: 100%; height: auto; border-radius: var(--cds-radius-sm); }
.public .post video { max-width: 100%; height: auto; }
.public .post .masonry-thumbs img { border-radius: 0; }
.gallery { margin-top: clamp(28px, 4vw, 48px); }
.gallery a { display: block; overflow: hidden; border-radius: var(--cds-radius-sm); aspect-ratio: 4 / 3; }
.public .gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s var(--cds-ease); } /* vince su .post img (height:auto) */
/* gallerie dentro gli articoli: le foto sono figlie dirette della griglia -> CSS grid invece delle colonne Bootstrap */
.gallery:has(> a) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-left: 0; margin-right: 0; }
.gallery > a { width: auto; max-width: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .gallery:has(> a) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 992px) { .gallery:has(> a) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.gallery a:hover img { transform: scale(1.06); }
.post_nav {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--cds-line);
}
.post_nav_side { flex: 1 1 0; display: flex; }
.post_nav_side:last-child { justify-content: flex-end; }
.post_nav_link { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; font-weight: 600; color: var(--cds-fg-1) !important; text-decoration: none !important; }
.post_nav_link i {
	flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--cds-green-line); color: var(--cds-green-dark); transition: background var(--cds-t), color var(--cds-t);
}
.post_nav_link:hover i { background: var(--cds-green); color: #fff; }

/* Numeri in evidenza (Chi siamo, home) */
.stats { margin-top: clamp(32px, 4.5vw, 56px); }
.stat { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2.4vw, 28px); background: var(--cds-bg-soft); border: 1px solid var(--cds-line); border-radius: var(--cds-radius); }
.stat_value { font-family: var(--cds-font-display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.03em; color: var(--cds-fg-1); }
.stat_value small { font-size: .55em; margin-left: 3px; color: var(--cds-green); }
.stat_label { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--cds-fg-2); }
@media (max-width: 575.98px) { .stat .icon_box { width: 44px; height: 44px; font-size: 18px; } }

/* Frase finale degli articoli (prima era un h4) */
.public #main .closing {
	margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--cds-green); border-radius: 0 12px 12px 0;
	background: var(--cds-green-soft); font-family: var(--cds-font-display); font-weight: 700;
	font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--cds-fg-1);
}
.public #main .accent_title { color: #c0392b; letter-spacing: .04em; }

/* Singola news: niente banner, titolo nella pagina */
.news_single { padding-top: clamp(32px, 4.5vw, 56px); }
.news_head { margin-bottom: clamp(24px, 3.5vw, 40px); padding-bottom: clamp(18px, 2.5vw, 26px); border-bottom: 1px solid var(--cds-line); }
.public #main .news_head h1 { margin: 10px 0 14px; }

/* Storia del Comitato: linea del tempo orizzontale da lg, verticale sotto */
.storyline { position: relative; list-style: none; margin: 0; padding: 0 0 0 30px; }
.storyline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--cds-green), var(--cds-green-line)); }
.story { position: relative; padding: 0 0 30px 40px; }
.story:last-child { padding-bottom: 0; }
.story_dot {
	position: absolute; left: -30px; top: 0; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: #fff; color: var(--cds-green-dark); font-size: 17px;
	border: 2px solid var(--cds-green); box-shadow: 0 0 0 6px var(--cds-bg-soft);
	transition: background var(--cds-t), color var(--cds-t), transform var(--cds-t);
}
.story:hover .story_dot { background: var(--cds-green); color: #fff; transform: scale(1.08); }
.story_year { display: block; font-family: var(--cds-font-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.03em; color: var(--cds-green); margin-bottom: 8px; }
.public #main .story_title { font-size: 18px; margin: 0 0 6px; }
.public #main .story_body p { margin: 0; font-size: 15px; line-height: 1.6; }
@media (min-width: 992px) {
	.storyline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 0; }
	/* linea orizzontale all'altezza dei pallini (anno 40px + 8px + meta' pallino) */
	.storyline::before { left: 22px; right: 22px; top: 70px; bottom: auto; width: auto; height: 2px; background: linear-gradient(to right, var(--cds-green), var(--cds-green-line)); }
	.story { padding: 0; display: flex; flex-direction: column; }
	.story_year { height: 40px; display: flex; align-items: flex-end; }
	.story_dot { position: relative; left: auto; top: auto; margin: 6px 0 20px; }
}
/* Dettagli legali in evidenza (Il Comitato) */
.legal { padding-block: clamp(48px, 6.5vw, 88px); background: linear-gradient(120deg, #253b20 0%, #3d5f33 100%); color: #fff; } /* piu' scuro del footer verde che segue */
.legal .eyebrow { color: #fff; }
.public #main .legal h2 { color: #fff; margin: 10px 0 12px; }
.public #main .legal p { color: rgba(255, 255, 255, .9); }
.legal_item { height: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--cds-radius); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); }
.legal_icon { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--cds-green-dark); font-size: 17px; }
.legal_item dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-bottom: 4px; }
.legal_item dd { margin: 0; font-family: var(--cds-font-display); font-weight: 600; font-size: 16px; line-height: 1.4; color: #fff; }
.legal_item { align-items: center; }
.public #main .legal .legal_value { margin: 0; font-family: var(--cds-font-display); font-weight: 600; font-size: 15px; line-height: 1.45; color: #fff; }
/* Percorsi didattici (Scuola e territorio): testo e passaggi a sinistra, schede a destra */
.path { padding: 0; }
.path_main { padding: clamp(24px, 3vw, 40px); }
.path_docs { padding: clamp(24px, 3vw, 40px); background: var(--cds-bg-soft); border-top: 1px solid var(--cds-line); }
@media (min-width: 992px) { .path_docs { border-top: 0; border-left: 1px solid var(--cds-line); } }
.public #main .path_docs_title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cds-green-dark); }
.path_docs li + li { margin-top: 8px; }
.path_docs a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--cds-line); font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--cds-fg-1) !important; text-decoration: none !important; transition: border-color var(--cds-t), box-shadow var(--cds-t); }
.path_docs a:hover { border-color: var(--cds-green); box-shadow: 0 8px 20px rgba(22, 32, 26, .07); }
.path_docs a i { flex: none; font-size: 18px; color: var(--cds-green-dark); }

/* PDF incorporato (presentazioni dei progetti) */
.pdf { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--cds-line); border-radius: var(--cds-radius); overflow: hidden; background: var(--cds-bg-soft); box-shadow: var(--cds-shadow); }
.pdf iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 991.98px) { .pdf { aspect-ratio: 3 / 4; } }

/* Timeline (Carrellata dal passato), come la linea del tempo di simonettarossidesign:
   filo sottile, un rombo per voce, numero grande chiaro sopra il testo.
   Mobile: filo a sinistra. Da lg: filo al centro e voci alternate, una per riga (i rombi non si toccano). */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 6px; counter-reset: timeline; }
/* mobile: il filo e' il bordo di ogni voce, cosi' il rombo ci sta sempre sopra */
.timeline li { counter-increment: timeline; position: relative; margin: 0; padding: 14px 0 14px 28px; border-left: 1px solid rgba(123, 165, 102, .45); }
.timeline li::before {
	content: counter(timeline, decimal-leading-zero); display: block; margin-bottom: 4px;
	font-family: var(--cds-font-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.02em; color: #c5d3be;
}
.timeline li::after { content: ""; position: absolute; left: -6px; top: 26px; width: 11px; height: 11px; background: var(--cds-green); transform: rotate(45deg); }
.public #main .timeline li { color: var(--cds-fg-1); font-weight: 500; line-height: 1.55; }
@media (min-width: 992px) {
	.timeline { padding: 0; }
	.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--cds-green); opacity: .45; }
	.timeline li { width: calc(50% - 48px); padding: 18px 0; border-left: 0; }
	.timeline li:nth-child(odd) { text-align: right; }
	.timeline li:nth-child(even) { margin-left: calc(50% + 48px); }
	.timeline li::before { font-size: 40px; }
	.timeline li::after { top: 50%; transform: translateY(-50%) rotate(45deg); }
	.timeline li:nth-child(odd)::after { left: auto; right: -54px; }
	.timeline li:nth-child(even)::after { left: -53px; }
}
/* Box codice fiscale (Sostienici) */
.donor { position: relative; border-radius: var(--cds-radius); overflow: hidden; min-height: clamp(260px, 36vw, 440px); display: flex; align-items: center; justify-content: flex-end; padding: clamp(16px, 3vw, 40px); }
.donor > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.donor_card { position: relative; z-index: 1; background: #fff; border-radius: var(--cds-radius); box-shadow: var(--cds-shadow); padding: clamp(22px, 3vw, 36px) clamp(24px, 4vw, 48px); text-align: center; }
.donor_code { display: block; font-family: var(--cds-font-display); font-weight: 800; font-size: clamp(30px, 4.5vw, 52px); letter-spacing: .02em; color: var(--cds-fg-1); line-height: 1.1; margin: 8px 0 0; }

/* Elenco numerato (passaggi): semplice lista numerata, numeri verdi */
.steps { list-style: decimal; margin: 0 0 24px; padding-left: 1.4em; }
.steps li { padding-left: 6px; margin-bottom: 8px; }
.steps li:last-child { margin-bottom: 0; }
.steps li::marker { font-family: var(--cds-font-display); font-weight: 700; color: var(--cds-green-dark); }
/* ---------- Login / area riservata ---------- */
.login_wrap { background: var(--cds-bg-soft); }
.login {
	max-width: 480px; margin: 0 auto;
	background: #fff; border: 1px solid var(--cds-line); border-radius: var(--cds-radius); box-shadow: var(--cds-shadow); overflow: hidden;
}
.login_main { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.public #main .login_title { font-size: 32px; margin-bottom: 6px; }
.public #main .login_lead { color: var(--cds-fg-2); margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--cds-fg-1); margin-bottom: 6px; text-transform: none; letter-spacing: 0; }
.field_head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.public #main .login_link { font-size: 13px; font-weight: 500; color: var(--cds-green-dark); text-decoration: none; }
.public #main .login_link:hover { text-decoration: underline; }
.input { position: relative; }
.input > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--cds-fg-2); font-size: 15px; pointer-events: none; }
.input .form-control { height: 48px; padding-left: 44px; border-radius: var(--cds-radius-sm); border-color: var(--cds-line); }
.input .form-control:focus { border-color: var(--cds-green); box-shadow: 0 0 0 3px var(--cds-green-soft); }
.input:has(.input_toggle) .form-control { padding-right: 46px; }
.input_toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
	border: 0; background: transparent; border-radius: 50%; color: var(--cds-fg-2); display: grid; place-items: center;
}
.input_toggle:hover { background: var(--cds-green-soft); color: var(--cds-green-dark); }
.public #main .login_note { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--cds-line); font-size: 14px; color: var(--cds-fg-2); }
@media (max-width: 767.98px) {
	.login_main { padding: 32px 24px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
	.hero { height: auto; min-height: clamp(400px, 70vh, 520px); }
	.hero_content { min-height: clamp(400px, 70vh, 520px); }
	.hero_overlay, .page_banner_overlay {
		background:
			linear-gradient(105deg, rgba(16, 24, 18, .88) 0%, rgba(16, 24, 18, .65) 60%, rgba(16, 24, 18, .45) 100%),
			linear-gradient(to top, rgba(16, 24, 18, .7) 0%, rgba(16, 24, 18, 0) 50%);
	}
	.hero .actions .action { flex: 1 1 auto; }
	.donor { justify-content: center; }
}
@media (max-width: 575.98px) {
	.eyebrow { font-size: 12px; letter-spacing: .1em; }
	.doc { padding: 12px 14px; gap: 12px; }
	.icon_btn { width: 38px; height: 38px; font-size: 14px; }
	.cta::after { font-size: 180px; }
	.notice { width: auto; left: 5px; }
}
@media (prefers-reduced-motion: reduce) {
	.hero_slide.is-active .hero_img { animation: none; }
	.hero_content > *, .hero_slide.is-active .hero_content > * { opacity: 1; transform: none; animation: none; }
	.hero_slide { transition: opacity .3s linear; }
	.page_banner_content { animation: none; }
	.panel, .panel_media img, .tile img, .gallery img { transition: none; }
}

/* ---------- Footer (come simonettarossidesign, senza logo) ---------- */
/* grigio scuro del tema (.dark #footer), testo bianco, dettagli verdi */
#footer.foot { background: #7BA566 !important; border-top: 0 !important; }
.foot .foot_main { padding-block: clamp(40px, 5vw, 56px); }
#footer.foot .foot_name { font-family: var(--cds-font-display); font-size: 20px; font-weight: 700; line-height: 1.3; color: #fff; margin: 0 0 10px; }
#footer.foot .foot_claim { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .9); margin: 0 0 20px; max-width: 340px; }
#footer.foot .foot_label { font-family: var(--cds-font-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.foot_data { list-style: none; margin: 0; padding: 0; }
.foot_data li { display: flex; align-items: baseline; font-size: 15px; line-height: 1.7; color: #fff; margin-bottom: 16px; }
.foot_data li:last-child { margin-bottom: 0; }
.foot_data i { flex-shrink: 0; width: 16px; margin-right: 16px; color: #fff; text-align: center; } /* larghezza fissa: testi incolonnati */
.foot_data span { overflow-wrap: anywhere; }
#footer.foot .foot_data a { color: #fff; font-size: 15px; transition: opacity .2s ease; }
#footer.foot .foot_data a:hover { color: #fff; opacity: .75; } /* sul verde chiaro niente scuro: si schiarisce */
.foot_social { display: flex; gap: 8px; }
#footer.foot .foot_social a {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0;
	border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; color: #fff; font-size: 14px; line-height: 1; text-decoration: none;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
#footer.foot .foot_social a:hover, #footer.foot .foot_social a:focus-visible { background: #fff; border-color: #fff; color: #5E8A4B; }
#footer.foot #copyrights { background: #5E8A4B !important; border-top: none; }
.foot_bottom { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.foot_bottom .powered_by { display: inline-flex; align-items: center; gap: 5px; width: auto; height: auto; padding: 4px 8px; line-height: 1.2; }
.foot_bottom .powered_by img { height: 14px; margin-right: 0; }
/* xs: l'email della redazione deve stare su una riga senza spezzarsi */
@media (max-width: 399.98px) { .foot_data li, #footer.foot .foot_data a { font-size: 13.5px; } .foot_data span { overflow-wrap: normal; } }
