/* ==========================================================================
   Valentinis — stile del tema (replica del sito Elementor originale)
   ========================================================================== */

:root {
	--c-verde:      #34D7A1;
	--c-verde-h:    #61CE70;
	--c-azzurro:    #6EC1E4;
	--c-arancio:    #FF8800;
	--c-giallo:     #FFB44A;
	--c-rosa:       #FF006E;
	--c-viola:      #8766FF;
	--c-grigio:     #55595C;
	--c-testo:      #333333;
	--c-nero:       #000000;
	--c-bianco:     #ffffff;

	--f-base:    -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--f-titoli:  "Poppins", sans-serif;
	--f-script:  "Satisfy", cursive;
	--f-paint:   "Finger Paint", cursive;
	--f-testo:   "Nobile", Georgia, serif;
	--f-roboto:  "Roboto", sans-serif;

	--container: 1200px;
	--gutter:    16px;
	--shadow:    0 0 24px rgba(0, 0, 0, .15);
	--radius:    20px;
}

/* ---------- Reset leggero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-base);
	font-size: 16px;
	line-height: 1.5;
	color: var(--c-testo);
	background: var(--c-bianco);
	overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-verde); text-decoration: none; }
a:hover, a:focus { color: var(--c-verde-h); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; font-family: var(--f-titoli); font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 16px; background: var(--c-verde); color: #fff; border-radius: 100px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

/* ---------- Pulsanti ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 24px;
	background: var(--c-verde); color: #fff;
	font-family: var(--f-titoli); font-weight: 600; font-size: 16px; text-transform: uppercase;
	border: 0; border-radius: 100px; line-height: 1.2;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover, .btn:focus { background: var(--c-verde-h); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .12); }
.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--big { padding: 16px 34px; font-size: 18px; }
.btn--outline { background: transparent; color: var(--c-verde); box-shadow: inset 0 0 0 2px var(--c-verde); }
.btn--outline:hover { background: var(--c-verde); }
.btn__arrow { font-size: 1.1em; line-height: 1; }

/* ---------- Header ---------- */
.site-header {
	position: relative; z-index: 50;
	background: #fff;
	box-shadow: var(--shadow);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.site-header__logo img { width: 195px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.nav-menu { display: flex; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu a {
	display: block; padding: 20px;
	font-family: var(--f-titoli); font-size: 16px; font-weight: 600; text-transform: uppercase;
	color: var(--c-verde); white-space: nowrap;
}
.nav-menu > li > a:hover, .nav-menu > li > a:focus, .nav-menu > li.current-menu-item > a, .nav-menu > li.current-menu-ancestor > a { color: var(--c-verde-h); }
.menu-caret { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 60;
	min-width: 230px; padding: 6px 0;
	background: #fff; box-shadow: 0 40px 30px rgba(0, 0, 0, .15);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-menu > li:hover > .sub-menu, .nav-menu > li:focus-within > .sub-menu, .nav-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .sub-menu a { padding: 12px 20px; font-size: 15px; }
.nav-menu .sub-menu a:hover, .nav-menu .sub-menu a:focus, .nav-menu .sub-menu .current-menu-item > a { background: var(--c-verde); color: #fff; }
.nav-menu > li.menu-cta { margin-left: 12px; }
.nav-menu > li.menu-cta > a {
	padding: 12px 24px; background: var(--c-verde); color: #fff; border-radius: 100px; font-size: 16px;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.nav-menu > li.menu-cta > a:hover, .nav-menu > li.menu-cta > a:focus { background: var(--c-verde-h); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .12); }

/* Varianti colore pulsanti (palette del tema) */
.btn--verde   { background: var(--c-verde); }
.btn--azzurro { background: var(--c-azzurro); }
.btn--arancio { background: var(--c-arancio); }
.btn--giallo  { background: var(--c-giallo); }
.btn--rosa    { background: var(--c-rosa); }
.btn--viola   { background: var(--c-viola); }
.btn--verde:hover, .btn--azzurro:hover, .btn--arancio:hover, .btn--giallo:hover, .btn--rosa:hover, .btn--viola:hover,
.btn--verde:focus, .btn--azzurro:focus, .btn--arancio:focus, .btn--giallo:focus, .btn--rosa:focus, .btn--viola:focus { filter: brightness(1.08); }

.menu-toggle {
	display: none; align-items: center; gap: 10px;
	padding: 10px 14px; background: transparent; border: 0;
	color: var(--c-verde); font-family: var(--f-titoli); font-weight: 600; text-transform: uppercase;
}
.menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-toggle__bars span { display: block; width: 24px; height: 3px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Forma "nuvole" (shape divider) ---------- */
.shape { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 9.8vw, 140px); line-height: 0; overflow: hidden; color: #fff; pointer-events: none; }
.shape svg { display: block; width: calc(100% + 1.3px); height: 100%; transform: scaleX(-1); }
.shape path { fill: currentColor; }

/* ---------- Hero home ---------- */
.hero {
	position: relative; isolation: isolate;
	min-height: 580px; display: flex; align-items: center;
	background: var(--c-verde) center / cover no-repeat;
}
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(360deg, var(--c-azzurro) 0%, var(--c-verde) 100%); opacity: .9; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding-top: 40px; padding-bottom: clamp(70px, 12vw, 170px); }
.hero__text { grid-column: 2; padding: 10px; }
.hero__title { font-family: var(--f-script); font-weight: 400; font-size: clamp(48px, 6.5vw, 83px); line-height: 1.1; color: #fff; margin: 0; }
.hero__subtitle { font-family: var(--f-titoli); font-weight: 500; font-size: clamp(22px, 3vw, 36px); color: #fff; margin: .2em 0 0; }

/* ---------- Sezioni ---------- */
.section { padding: 60px 0; }
.section--presentazione { padding-top: 50px; }
.section__title {
	margin: 0 0 40px; text-align: center;
	font-family: var(--f-paint); font-weight: 400; font-size: clamp(36px, 5vw, 58px); line-height: 1;
	color: var(--c-verde);
}
.section__title--orange { color: var(--c-arancio); }
.section__subtitle {
	margin: 0 0 30px; text-align: center;
	font-family: var(--f-paint); font-weight: 400; font-size: clamp(28px, 4vw, 42px); line-height: 1.1;
	color: var(--c-verde);
}
.section--cta { padding: 20px 0 60px; }

.video { max-width: 760px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .3); background: #000; }
.video__player { width: 100%; aspect-ratio: 16 / 9; }

/* ---------- Card attività ---------- */
.cards { display: grid; gap: 4px; padding: 0 2px; }
.cards--two { grid-template-columns: repeat(2, 1fr); }
.cards--three { grid-template-columns: repeat(3, 1fr); }
.card {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 258px; display: flex; align-items: center; justify-content: center;
	background: var(--c-verde) center / cover no-repeat; color: #fff;
}
.card__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--c-azzurro) 0%, var(--c-verde) 100%); opacity: .75; transition: opacity .3s, background .3s; }
.card:hover .card__overlay, .card:focus .card__overlay { background: var(--c-verde-h); opacity: .9; }
.card__body { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; text-align: center; }
.card__title { font-family: var(--f-titoli); font-weight: 600; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; color: #fff; }
.card__arrow { font-size: 50px; line-height: 1; transition: transform .3s; }
.card:hover .card__arrow { animation: bounce-in .6s; }
@keyframes bounce-in { 0% { transform: scale(1); } 30% { transform: scale(1.25); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }

/* ---------- Bacheca / news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; }
.news-card__box {
	position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px;
	padding: 20px 20px 0; background: var(--c-arancio); border-radius: var(--radius);
	box-shadow: 0 30px 30px -15px rgba(0, 0, 0, .15); color: #fff;
}
.news-card__badge { align-self: flex-start; padding: 5px 10px; background: #fff; color: var(--c-arancio); font-family: var(--f-titoli); font-weight: 500; font-size: 13px; text-transform: uppercase; border-radius: 6px; }
.news-card__title { margin: 0; font-size: 22px; text-transform: uppercase; }
.news-card__title a { color: var(--c-testo); }
.news-card__title a:hover { color: #fff; }
.news-card__date { font-family: var(--f-titoli); font-size: 14px; }
.news-card__excerpt { font-family: var(--f-titoli); font-size: 15px; line-height: 1.5; flex: 1; }
.news-card__more {
	display: inline-flex; align-items: center; gap: 8px; align-self: center; margin-top: 10px;
	padding: 15px 30px; background: #fff; color: var(--c-arancio);
	font-family: var(--f-roboto); font-size: 16px; border-radius: 11px 11px 0 0;
}
.news-card__more:hover { color: var(--c-testo); }
.news-card__more-ico { width: 18px; height: 18px; }

/* ---------- Citazione ---------- */
.quote { background: var(--c-giallo); padding: 70px 0 90px; color: #fff; }
.quote__inner { display: flex; flex-direction: column; gap: 24px; }
.quote__mark { font-family: Georgia, serif; font-size: 90px; line-height: .5; color: #fff; }
.quote__text { margin: 0; font-family: var(--f-script); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.35; color: #fff; }
.quote__text p { margin: 0 0 24px; }
.quote__author { font-family: var(--f-titoli); font-size: 20px; font-weight: 600; font-style: normal; }

/* ---------- Intestazione pagine interne ---------- */
.page-hero {
	position: relative; isolation: isolate; overflow: hidden;
	padding: 90px 0 clamp(110px, 13vw, 190px); text-align: center; color: #fff;
	background: linear-gradient(180deg, var(--c-rosa) 0%, var(--c-arancio) 100%);
}
.page-hero--verde   { background: linear-gradient(180deg, var(--c-azzurro) 0%, var(--c-verde) 100%); }
.page-hero--arancio { background: linear-gradient(180deg, var(--c-arancio) 0%, #FFB000 100%); }
.page-hero--viola   { background: linear-gradient(180deg, var(--c-viola) 0%, var(--c-rosa) 100%); }
.page-hero__icon {
	--icon-size: 140px;
	width: var(--icon-size); height: var(--icon-size); margin: 0 auto 24px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: #fff; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .25);
	animation: pop-in .5s ease .2s both;
}
.page-hero__icon img { width: 60%; height: 60%; object-fit: contain; }
.page-hero__icon--bianco  { background: #fff; }
.page-hero__icon--verde   { background: var(--c-verde); }
.page-hero__icon--azzurro { background: var(--c-azzurro); }
.page-hero__icon--arancio { background: var(--c-arancio); }
.page-hero__icon--giallo  { background: var(--c-giallo); }
.page-hero__icon--rosa    { background: var(--c-rosa); }
.page-hero__icon--viola   { background: var(--c-viola); }
.page-hero__title { margin: 0; font-family: var(--f-paint); font-weight: 400; font-size: clamp(36px, 5vw, 58px); line-height: 1; color: #fff; }
.page-hero__deco { position: absolute; top: 40px; width: 150px; height: auto; color: #fff; opacity: .95; animation: tada 1.4s ease .3s both; }
.page-hero__deco--left { left: 8%; }
.page-hero__deco--right { right: 8%; top: 50px; width: 157px; }
@keyframes tada {
	0% { transform: scale(1); } 10%, 20% { transform: scale(.9) rotate(-3deg); }
	30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); } 40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
	100% { transform: scale(1) rotate(0); }
}

/* ---------- Contenuti testuali ---------- */
.page-content > .section:first-child { padding-top: 40px; }
.entry-content { font-family: var(--f-testo); font-size: 18px; line-height: 1.5; color: var(--c-nero); }
.entry-content p { margin: 0 0 1em; }
.entry-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .4em; }
.entry-content h2, .entry-content h3 { font-family: var(--f-paint); font-weight: 400; color: var(--c-verde); text-align: center; margin: 1.2em 0 .6em; }
.entry-content h2 { font-size: clamp(28px, 4vw, 42px); }
.entry-content h3 { font-size: clamp(22px, 3vw, 30px); }
.entry-content h4 { font-family: var(--f-titoli); text-transform: uppercase; }
.entry-content a { text-decoration: underline; }
.entry-content img { margin: 1em auto; border-radius: 12px; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { font-size: 14px; text-align: center; color: var(--c-grigio); }
.entry-content blockquote { margin: 1.5em 0; padding: 1em 1.5em; border-left: 4px solid var(--c-giallo); background: #fff8ee; }
.entry-content--cols { columns: 2; column-gap: 40px; }
/* Gallerie dentro il contenuto (figure con elenco, [gallery] classico, blocchi): griglia, niente puntini */
.entry-content figure ul, .entry-content .wp-block-gallery, .entry-content .gallery, .entry-content ul:has(> li > figure > img:only-child), .entry-content ul:has(> li > img:only-child) {
	list-style: none; padding: 0; margin: 1.5em 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.entry-content figure ul li, .entry-content .wp-block-gallery li, .entry-content .gallery .gallery-item, .entry-content ul:has(> li > figure > img:only-child) li { margin: 0; padding: 0; }
.entry-content figure ul figure, .entry-content .gallery figure, .entry-content .gallery .gallery-item { margin: 0; }
.entry-content figure ul img, .entry-content .wp-block-gallery img, .entry-content .gallery img, .entry-content ul:has(> li > figure > img:only-child) img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 12px; display: block;
}
.entry-content figure ul a, .entry-content .gallery a { display: block; overflow: hidden; border-radius: 12px; }
.entry-content figure ul a img { transition: transform .4s; }
.entry-content figure ul a:hover img { transform: scale(1.05); }
.entry-content .gallery-caption { font-size: 13px; color: var(--c-grigio); text-align: center; margin-top: 4px; }
@media (max-width: 600px) {
	.entry-content figure ul, .entry-content .wp-block-gallery, .entry-content .gallery, .entry-content ul:has(> li > figure > img:only-child) { grid-template-columns: 1fr; gap: 12px; }
	.entry-content figure ul img, .entry-content .wp-block-gallery img, .entry-content .gallery img, .entry-content ul:has(> li > figure > img:only-child) img { aspect-ratio: auto; }
}

.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 16px; }
.entry-content th, .entry-content td { padding: 8px 10px; border-bottom: 1px solid #e5e5e5; text-align: left; }

/* ---------- Documenti ---------- */
.doc-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.doc {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 18px 24px; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
}
.doc__info { display: flex; flex-direction: column; gap: 2px; }
.doc__title { font-family: var(--f-titoli); font-size: 17px; color: var(--c-testo); }
.doc__desc, .doc__size { font-size: 13px; color: var(--c-grigio); }
.doc__btn { flex-shrink: 0; }
.doc-list__note { margin-top: 20px; }

/* ---------- Galleria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid__item { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 1; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid__item:hover img { transform: scale(1.06); }
.layout-galleria + .layout-galleria { padding-top: 0; }

/* ---------- Carosello (immagini e timeline) ---------- */
.carousel { position: relative; }
.carousel__nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.carousel__count { font-family: var(--f-titoli); font-size: 13px; font-weight: 600; color: var(--c-grigio); min-width: 48px; text-align: center; }
.carousel__btn {
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: var(--c-verde); color: #fff; font-size: 22px; line-height: 1;
	box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .3); transition: background .2s, transform .2s, opacity .2s;
}
.carousel__btn:hover, .carousel__btn:focus-visible { background: var(--c-verde-h); transform: translateY(-2px); }
.carousel__btn[disabled] { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.carousel__track {
	display: flex; gap: 16px; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab;
	/* spazio per le ombre: il track sborda e rientra con il padding */
	margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) 36px; scroll-padding-inline: var(--gutter);
	scrollbar-width: thin; scrollbar-color: var(--c-verde) #eee;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--c-verde); border-radius: 3px; }
.carousel__track::-webkit-scrollbar-track { background: #eee; border-radius: 3px; margin: 0 var(--gutter); }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
/* Sfumatura sul bordo dove c'è altro contenuto da scorrere */
.carousel__track:not(.is-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 70px), transparent); }
.carousel__track:not(.is-end):not(.is-start) { -webkit-mask-image: linear-gradient(to right, transparent, #000 60px, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(to right, transparent, #000 60px, #000 calc(100% - 70px), transparent); }
.carousel__item { flex: 0 0 calc(50% - 8px); scroll-snap-align: start; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.carousel__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Tab (schede / costi / progetti) ---------- */
.tabs__list { display: flex; justify-content: center; gap: 6px; margin-bottom: 36px; border-bottom: 2px solid #eee; }
.tabs__btn {
	padding: 14px 26px; background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
	font-family: var(--f-titoli); font-weight: 600; font-size: 16px; text-transform: uppercase; line-height: 1.15;
	color: var(--c-grigio); transition: color .2s, border-color .2s;
}
.tabs__btn:hover, .tabs__btn.is-active { color: var(--c-verde); border-bottom-color: var(--c-verde); }
.tabs--pills .tabs__list { border: 0; gap: 10px; flex-wrap: wrap; }
.tabs--pills .tabs__btn { border: 0; border-radius: 100px; margin: 0; background: #f2f2f2; }
.tabs--pills .tabs__btn:hover { background: #e9e9e9; }
.tabs--pills .tabs__btn.is-active { background: var(--c-verde); color: #fff; }
.tabs__panel[hidden] { display: none; }
/* Switcher stile originale: pillola grigia, voce attiva colorata */
.tabs--switch .tabs__list { display: inline-flex; margin: 0 auto 36px; padding: 6px; border: 0; gap: 0; background: var(--c-grigio); border-radius: 100px; box-shadow: 0 10px 25px -10px rgba(0, 0, 0, .35); }
.tabs--switch { text-align: center; }
.tabs--switch .tabs__btn { margin: 0; padding: 12px 34px; border: 0; border-radius: 100px; background: transparent; color: #fff; font-size: 15px; line-height: 1.1; text-transform: none; transition: background .25s, color .25s; }
.tabs--switch .tabs__btn:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.tabs--switch .tabs__btn.is-active { color: #fff; background: var(--c-rosa); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .35); }
.tabs--switch .tabs__btn--verde.is-active   { background: var(--c-verde); }
.tabs--switch .tabs__btn--azzurro.is-active { background: var(--c-azzurro); }
.tabs--switch .tabs__btn--arancio.is-active { background: var(--c-arancio); }
.tabs--switch .tabs__btn--giallo.is-active  { background: var(--c-giallo); }
.tabs--switch .tabs__btn--rosa.is-active    { background: var(--c-rosa); }
.tabs--switch .tabs__btn--viola.is-active   { background: var(--c-viola); }
.tabs--switch .tabs__panel { text-align: left; }
.tabs__cta { text-align: center; margin: 30px 0 0; }

/* ---------- Personale ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.staff-group { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.staff-group__title { margin: 0; padding: 18px 20px; text-align: center; font-size: 17px; text-transform: uppercase; color: #fff; background: var(--c-verde); }
.staff-group--azzurro .staff-group__title { background: var(--c-azzurro); }
.staff-group--arancio .staff-group__title { background: var(--c-arancio); }
.staff-group--rosa .staff-group__title { background: var(--c-rosa); }
.staff-group--viola .staff-group__title { background: var(--c-viola); }
.staff-list { padding: 10px 20px; }
.staff { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.staff--icon { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.staff--icon .staff__name { grid-column: 2; }
.staff--icon .staff__role { grid-column: 2; }
.staff__ico { grid-row: 1 / 3; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f4f4f4; }
.staff__ico img { width: 24px; height: 24px; object-fit: contain; }
.staff-group--verde .staff__ico   { background: rgba(52, 215, 161, .15); }
.staff-group--azzurro .staff__ico { background: rgba(110, 193, 228, .2); }
.staff-group--arancio .staff__ico { background: rgba(255, 136, 0, .15); }
.staff-group--rosa .staff__ico    { background: rgba(255, 0, 110, .12); }
.staff-group--viola .staff__ico   { background: rgba(135, 102, 255, .15); }
.staff:last-child { border: 0; }
.staff__name { font-family: var(--f-titoli); font-weight: 600; }
.staff__role { font-size: 14px; color: var(--c-grigio); }
.staff-group__empty { padding: 20px; text-align: center; color: var(--c-grigio); }

/* ---------- Costi / pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 0 auto; align-items: start; }
.price-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.price-card__head { padding: 28px 20px 10px; }
.price-card__title { margin: 0; font-size: 22px; text-transform: uppercase; color: var(--c-testo); }
.price-card__sub { margin: 6px 0 0; font-family: var(--f-titoli); font-size: 14px; text-transform: uppercase; color: var(--c-grigio); }
.price-card__price { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; font-family: var(--f-titoli); font-weight: 700; font-size: 56px; line-height: 1; color: var(--c-verde); }
.price-card__cur { font-size: 28px; align-self: flex-start; margin-top: 4px; }
.price-card__period { font-size: 16px; font-weight: 500; color: var(--c-grigio); }
.price-card--verde .price-card__price   { color: var(--c-verde); }
.price-card--azzurro .price-card__price { color: var(--c-azzurro); }
.price-card--arancio .price-card__price { color: var(--c-arancio); }
.price-card--giallo .price-card__price  { color: var(--c-giallo); }
.price-card--rosa .price-card__price    { color: var(--c-rosa); }
.price-card--viola .price-card__price   { color: var(--c-viola); }
.price-card__list { padding: 10px 24px 24px; text-align: left; font-family: var(--f-testo); font-size: 16px; }
.price-card__list li { padding: 8px 0 8px 26px; border-bottom: 1px solid #f0f0f0; position: relative; }
.price-card__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--c-verde); font-weight: 700; }
.price-card__cta { padding: 10px 24px 30px; margin: 0; }
.price-card__note { padding: 0 20px 24px; margin: 0; font-family: var(--f-titoli); font-size: 15px; }
.pricing__note { max-width: 900px; margin: 30px auto 0; text-align: center; font-size: 16px; }

/* Open day */
.openday-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 30px; justify-content: center; margin-top: 30px; }
.price-card--openday .price-card__title { color: var(--c-arancio); }
.price-card__price--date { flex-direction: column; gap: 0; }
.openday__day { font-size: 64px; }
.openday__month { font-size: 22px; letter-spacing: .1em; }
.openday__year { font-size: 14px; font-weight: 500; color: var(--c-grigio); }

/* ---------- Timeline giornata tipo ---------- */
.timeline { position: relative; }
.timeline--orizzontale { gap: 24px; padding-top: 16px; }
.timeline--orizzontale .timeline__item { flex: 0 0 250px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.timeline--orizzontale .timeline__item::before { content: ""; position: absolute; top: 44px; left: 50%; width: calc(100% + 24px); height: 3px; background: #e5e5e5; z-index: 0; }
.timeline--orizzontale .timeline__item:last-child::before { display: none; }
.timeline__time { font-family: var(--f-titoli); font-weight: 600; font-size: 15px; color: var(--c-arancio); margin-bottom: 14px; }
.timeline__dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--c-verde); box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--c-verde); margin-bottom: 22px; }
.timeline__item--extra .timeline__dot { background: var(--c-arancio); box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--c-arancio); }
.timeline__card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px 16px; width: 100%; }
.timeline__title { margin: 0 0 6px; font-size: 15px; text-transform: uppercase; color: var(--c-verde); }
.timeline__item--extra .timeline__title { color: var(--c-arancio); }
.timeline__desc { margin: 0; font-family: var(--f-testo); font-size: 15px; color: var(--c-nero); }
.timeline--verticale { max-width: 760px; margin: 0 auto; padding-left: 130px; border-left: 3px solid #e5e5e5; margin-left: auto; }
.timeline--verticale .timeline__item { position: relative; padding: 0 0 30px 30px; }
.timeline--verticale .timeline__time { position: absolute; left: -130px; top: 0; width: 110px; text-align: right; margin: 0; }
.timeline--verticale .timeline__dot { position: absolute; left: -12px; top: 0; margin: 0; }
.timeline__note { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--c-grigio); }

/* ---------- Progetti ---------- */
.progetti-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.progetto-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.progetto-card__thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-azzurro); }
.progetto-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.progetto-card:hover .progetto-card__thumb img { transform: scale(1.05); }
.progetto-card__placeholder { display: flex; height: 100%; align-items: center; justify-content: center; color: #fff; }
.progetto-card__placeholder svg { width: 90px; }
.progetto-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.progetto-card__label { font-family: var(--f-titoli); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-arancio); }
.progetto-card__title { margin: 0; font-size: 18px; text-transform: uppercase; }
.progetto-card__title a { color: var(--c-testo); }
.progetto-card__title a:hover { color: var(--c-verde); }
.progetto-card__date { font-size: 13px; color: var(--c-grigio); flex: 1; }
.progetto-card .btn { align-self: flex-start; }

/* ---------- Singolo (news / progetto) ---------- */
.single__meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.single__date { font-family: var(--f-titoli); font-weight: 600; font-size: 14px; color: var(--c-arancio); }
.single__badge { padding: 5px 12px; background: var(--c-arancio); color: #fff; font-family: var(--f-titoli); font-size: 13px; text-transform: uppercase; border-radius: 6px; }
.single__badge:hover { background: var(--c-verde); color: #fff; }
.single__nav { display: flex; gap: 20px; font-family: var(--f-titoli); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.single__title { font-size: clamp(26px, 3.5vw, 36px); text-transform: uppercase; color: var(--c-testo); margin-bottom: 24px; }
.single__thumb { margin: 0 0 30px; border-radius: 16px; overflow: hidden; }
.single__back { margin-top: 40px; text-align: center; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee; }
.share__label { font-family: var(--f-titoli); font-weight: 600; font-size: 14px; margin-right: 6px; }
.share__btn { padding: 8px 16px; border: 0; border-radius: 100px; background: #f2f2f2; color: var(--c-testo); font-family: var(--f-titoli); font-size: 14px; font-weight: 500; }
.share__btn:hover { color: #fff; }
.share__btn--fb:hover { background: #1877f2; }
.share__btn--wa:hover { background: #25d366; }
.share__btn--mail:hover { background: var(--c-arancio); }
.share__btn--print:hover { background: var(--c-grigio); }

/* ---------- Contatti ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ---------- Archivio / paginazione ---------- */
.pagination { margin-top: 40px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-block; padding: 10px 16px; border-radius: 100px; background: #f2f2f2; color: var(--c-testo); font-family: var(--f-titoli); font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--c-verde); color: #fff; }
.search-results li { padding: 12px 0; border-bottom: 1px solid #eee; font-family: var(--f-titoli); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
	position: relative; isolation: isolate;
	padding: 90px 0 15px; color: #fff;
	background: var(--c-verde) center / cover no-repeat;
}
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--c-verde-h) 0%, var(--c-azzurro) 100%); opacity: .85; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer__title { margin: 0 0 16px; font-family: var(--f-roboto); font-weight: 500; font-size: 18px; color: #fff; }
.footer__text { font-family: var(--f-titoli); font-size: 15px; line-height: 1.5; }
.footer__text p { margin: 0 0 12px; }
.footer__menu li { margin-bottom: 6px; }
.footer__menu a, .footer__contacts a { color: #fff; font-family: var(--f-titoli); font-size: 14px; }
.footer__menu a:hover, .footer__contacts a:hover { text-decoration: underline; color: #fff; }
.footer__contacts li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-family: var(--f-titoli); font-size: 13px; }
.footer__ico { width: 22px; height: 22px; flex-shrink: 0; color: #fff; }
.footer__social { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; margin-top: 10px; border-radius: 50%; background: #fff; color: #818A91; }
.footer__social:hover { color: var(--c-verde); }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .25); }
.footer__copy { margin: 0; font-family: var(--f-roboto); font-size: 13px; line-height: 1.5; }
.footer__copy a { color: #fff; }
.footer__heart { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; color: var(--c-rosa); }
.footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.footer__legal-menu { display: flex; gap: 14px; }
.footer__legal a, .footer__legal .cmplz-manage-consent { color: #fff; font-family: var(--f-roboto); font-size: 13px; }
.footer__login { padding: 10px 24px; background: transparent; border: 1px solid rgba(255, 255, 255, .6); border-radius: 3px; color: #fff; font-family: var(--f-roboto); font-size: 13px; }
.footer__login:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.site-footer .cmplz-manage-consent { display: inline !important; position: static !important; background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; font-size: 13px !important; }

/* ---------- Popup login ---------- */
.login-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-popup[hidden] { display: none; }
.login-popup__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.login-popup__box {
	position: relative; width: 100%; max-width: 420px; padding: 40px 36px 30px; overflow: hidden;
	background: linear-gradient(180deg, var(--c-azzurro) 0%, var(--c-verde) 100%); color: #fff;
	border-radius: 24px; box-shadow: 0 40px 60px rgba(0, 0, 0, .3); text-align: center;
	animation: pop-in .25s ease-out;
}
@keyframes pop-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.login-popup__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; }
.login-popup__icon { width: 70px; margin: 0 auto 10px; }
.login-popup__title { margin: 0; font-family: var(--f-paint); font-weight: 400; font-size: 40px; color: #fff; }
.login-popup__text { margin: 4px 0 24px; font-family: var(--f-titoli); }
.login-popup form p { margin: 0 0 14px; text-align: left; }
.login-popup label { display: block; font-family: var(--f-titoli); font-size: 12px; font-weight: 600; letter-spacing: .05em; margin-bottom: 4px; }
.login-popup input[type="text"], .login-popup input[type="password"] {
	width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; font: inherit; color: var(--c-testo);
}
.login-popup .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; text-transform: none; }
.login-popup .login-submit { text-align: center; }
.login-popup input[type="submit"] {
	padding: 12px 36px; border: 0; border-radius: 100px; background: #fff; color: var(--c-verde);
	font-family: var(--f-titoli); font-weight: 600; text-transform: uppercase; cursor: pointer;
}
.login-popup input[type="submit"]:hover { background: var(--c-giallo); color: #fff; }
.login-popup__lost { display: inline-block; margin-top: 10px; color: #fff; font-size: 13px; text-decoration: underline; }
.login-popup__deco { position: absolute; right: -30px; bottom: -40px; width: 160px; color: #fff; opacity: .25; pointer-events: none; }

/* ---------- GLightbox: comandi coerenti con i caroselli (cerchio verde, icona bianca) ---------- */
.glightbox-clean .gclose, .glightbox-clean .gnext, .glightbox-clean .gprev,
.glightbox-mobile .glightbox-container .gclose, .glightbox-mobile .glightbox-container .gnext, .glightbox-mobile .glightbox-container .gprev {
	width: 44px; height: 44px; padding: 0; border-radius: 50%;
	background: var(--c-verde); opacity: 1; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .4);
	display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.glightbox-clean .gclose:hover, .glightbox-clean .gnext:hover, .glightbox-clean .gprev:hover { background: var(--c-verde-h); transform: translateY(-2px); }
.glightbox-clean .gclose svg, .glightbox-clean .gnext svg, .glightbox-clean .gprev svg { width: 18px; height: 18px; }
.glightbox-clean .gclose svg path, .glightbox-clean .gnext svg path, .glightbox-clean .gprev svg path { fill: #fff; }
.glightbox-clean .gclose { top: 16px; right: 16px; }
.glightbox-clean .gnext { right: 16px; }
.glightbox-clean .gprev { left: 16px; }
.glightbox-clean .gslide-description { background: #fff; font-family: var(--f-base); }
.glightbox-clean .gslide-title { font-family: var(--f-titoli); font-size: 15px; color: var(--c-testo); }
@media (max-width: 600px) {
	.glightbox-clean .gclose, .glightbox-clean .gnext, .glightbox-clean .gprev { width: 40px; height: 40px; }
}

/* ---------- Breadcrumb Rank Math ---------- */
.breadcrumbs { font-size: 13px; margin-bottom: 16px; color: var(--c-grigio); }

/* ---------- Cookie banner Complianz: solo colori ---------- */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--c-verde) !important; border-color: var(--c-verde) !important; }

/* ---------- Stampa ---------- */
@media print {
	.site-header, .site-footer, .share, .single__nav, .page-hero__deco, .shape, .login-popup { display: none !important; }
	.page-hero { background: none !important; color: #000 !important; padding: 20px 0; }
	.page-hero__title { color: #000 !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.hero__title { font-size: clamp(44px, 6vw, 70px); }
	.news-grid, .progetti-grid { grid-template-columns: repeat(2, 1fr); }
	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.page-hero__deco { display: none; }
}

@media (max-width: 900px) {
	.site-header__inner { min-height: 84px; }
	.site-header__logo img { width: 160px; }
	.menu-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; box-shadow: 0 30px 30px rgba(0, 0, 0, .15);
		max-height: 0; overflow: hidden; transition: max-height .3s ease;
	}
	.site-nav.is-open { max-height: 100vh; overflow-y: auto; }
	.nav-menu { flex-direction: column; align-items: stretch; }
	.nav-menu a { padding: 14px 24px; border-bottom: 1px solid #f2f2f2; white-space: normal; }
	.nav-menu .sub-menu { position: static; min-width: 0; padding: 0; box-shadow: none; background: #f7fdfa; opacity: 1; visibility: visible; transform: none; display: none; }
	.nav-menu > li.is-open > .sub-menu { display: block; }
	.nav-menu .sub-menu a { padding-left: 44px; }
	.nav-menu > li.menu-cta { margin: 12px 24px 20px; }
	.nav-menu > li.menu-cta > a { display: inline-block; border-bottom: 0; }
	.hero { min-height: 460px; }
	.hero__inner { grid-template-columns: 1fr; text-align: center; }
	.hero__text { grid-column: 1; }
	.cards--two, .cards--three { grid-template-columns: 1fr 1fr; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.contacts, .pricing { grid-template-columns: 1fr; }
	.entry-content--cols { columns: 1; }
	.timeline--verticale { padding-left: 0; border-left: 0; }
	.timeline--verticale .timeline__item { padding-left: 30px; border-left: 3px solid #e5e5e5; margin-left: 10px; }
	.timeline--verticale .timeline__time { position: static; width: auto; text-align: left; margin-bottom: 8px; }
	.timeline--verticale .timeline__dot { left: -12px; }
}

@media (max-width: 600px) {
	.section { padding: 44px 0; }
	.cards--two, .cards--three { grid-template-columns: 1fr; }
	.card { min-height: 200px; }
	.news-grid, .progetti-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
	.news-grid { grid-template-columns: 1fr; }
	.progetti-grid { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.footer__bottom { flex-direction: column; align-items: flex-start; }
	.doc { flex-direction: column; align-items: flex-start; }
	.carousel__item { flex-basis: 82%; }
	.timeline--orizzontale .timeline__item { flex-basis: 80%; }
	.carousel__nav { justify-content: space-between; }
	.carousel__btn { width: 48px; height: 48px; }
	.tabs__list { flex-wrap: wrap; }
	.tabs__btn { padding: 10px 14px; font-size: 14px; }
	.tabs--switch .tabs__btn { padding: 10px 18px; font-size: 14px; }
	.page-hero { padding: 60px 0 100px; }
	.single__meta { flex-direction: column; align-items: flex-start; }
}

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