/* ───────── base ───────── */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 2px);
	-webkit-text-size-adjust: 100%;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	line-height: var(--body-leading);
	color: var(--text-primary);
	background: var(--surface-page);
	overflow-x: hidden;
}

body.is-menu-open {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: var(--vg-teal);
	text-decoration: none;
	transition: color var(--duration-fast) var(--ease-brand);
}

a:hover {
	color: var(--vg-green);
}

::selection {
	background: var(--vg-green);
	color: var(--vg-teal);
}

:focus-visible {
	outline: 2px solid var(--vg-green);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	margin: 0;
	text-wrap: pretty;
}

p {
	margin: 0;
}

.svg-defs {
	position: absolute;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -60px;
	z-index: 100;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	background: var(--vg-teal);
	color: #fff;
	font-weight: 600;
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

/* ───────── layout ───────── */

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.section {
	padding-top: var(--section-y);
	padding-bottom: var(--section-y);
}

.section--tint {
	background: var(--surface-tint);
}

.section--dark {
	background: var(--surface-dark);
	color: var(--text-on-dark);
}

.section__title {
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.05;
	margin-bottom: 14px;
}

.section__lead {
	font-size: 17px;
	line-height: 1.6;
	max-width: 62ch;
	margin-bottom: clamp(24px, 3vw, 40px);
}

.section--dark .section__lead {
	opacity: .9;
}

.grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 260px), 100%), 1fr));
}

.grid > * {
	min-width: 0;
}

/* ───────── componenti del design system ───────── */

/* Button */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: filter var(--duration-fast) var(--ease-brand), opacity var(--duration-fast) var(--ease-brand);
}

.btn:hover {
	filter: brightness(1.12);
}

.btn:active {
	opacity: .8;
}

.btn[aria-disabled='true'],
.btn:disabled {
	opacity: .45;
	cursor: default;
	filter: none;
	pointer-events: none;
}

.btn--primary,
.btn--primary:hover {
	background: var(--vg-teal);
	color: #fff;
}

.btn--accent,
.btn--accent:hover {
	background: var(--vg-green);
	color: var(--vg-teal);
}

.btn--ghost,
.btn--ghost:hover {
	background: transparent;
	color: var(--vg-teal);
	box-shadow: inset 0 0 0 1.5px var(--vg-teal);
}

.btn--on-dark,
.btn--on-dark:hover {
	background: #fff;
	color: var(--vg-teal);
}

.btn--sm {
	padding: 8px 18px;
	font-size: 13px;
}

.btn--md {
	padding: 12px 26px;
	font-size: 15px;
}

.btn--lg {
	padding: 16px 34px;
	font-size: 17px;
}

/* Tag */
.tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.5;
	text-transform: lowercase;
	letter-spacing: .02em;
	background: var(--vg-offwhite);
	color: var(--vg-teal);
	box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.tag--expo {
	background: var(--area-expo-bg);
	color: var(--area-expo-ink);
}

.tag--talk {
	background: var(--area-talk-bg);
	color: var(--area-talk-ink);
	box-shadow: none;
}

.tag--workshop {
	background: var(--area-workshop-bg);
	color: var(--area-workshop-ink);
	box-shadow: none;
}

.tag--entertainment {
	background: var(--area-entertainment-bg);
	color: var(--area-entertainment-ink);
	box-shadow: none;
}

/* Input */
.field {
	display: block;
}

.field__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.field__control {
	width: 100%;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.5;
	color: var(--vg-teal);
	background: #fff;
	border: 1.5px solid var(--border-subtle);
	border-radius: var(--radius-card);
	padding: 12px 16px;
	outline: none;
	transition: border-color var(--duration-fast) var(--ease-brand);
}

.field__control::placeholder {
	color: var(--vg-teal);
	opacity: .5;
}

.field__control:focus {
	border-color: var(--vg-green);
}

textarea.field__control {
	resize: vertical;
	min-height: 120px;
}

/* WaveLine */
.wave {
	width: 100%;
	overflow: visible;
}

.wave--flip {
	transform: scaleY(-1);
}

/* Immagine / segnaposto */
.media {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: var(--media-radius, var(--radius-panel));
	overflow: hidden;
	background: var(--vg-offwhite);
}

.media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: rgba(5, 81, 87, .55);
	background:
		repeating-linear-gradient(135deg, transparent 0 14px, rgba(5, 81, 87, .04) 14px 28px),
		var(--vg-offwhite);
}

.section--tint .media--placeholder,
.cta-espositori .media--placeholder {
	background:
		repeating-linear-gradient(135deg, transparent 0 14px, rgba(5, 81, 87, .05) 14px 28px),
		#fff;
}

/* ───────── header ───────── */

.site-header {
	position: sticky;
	top: 0;
	/* sopra il menu mobile, così logo e icona di chiusura restano visibili */
	z-index: 60;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.site-header::after {
	content: '';
	display: block;
	height: 2px;
	background: var(--vg-grad-full);
	opacity: .9;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
	padding-top: 12px;
	padding-bottom: 12px;
}

.site-header__logo {
	flex: none;
}

.site-header__logo img {
	height: 40px;
	width: auto;
}

.site-nav {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(12px, 1.8vw, 26px);
}

.site-nav a {
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
}

.site-nav a.is-active,
.mobile-menu__nav a.is-active {
	color: var(--vg-green);
}

.site-header__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}

.site-header__date {
	font-size: 13px;
	font-weight: 500;
	opacity: .7;
	white-space: nowrap;
}

.menu-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: none;
	background: none;
	color: var(--vg-teal);
	cursor: pointer;
}

.menu-toggle__bar {
	position: absolute;
	left: 11px;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--duration-base) var(--ease-brand), opacity var(--duration-fast) var(--ease-brand);
}

.menu-toggle__bar:nth-child(1) {
	top: 15px;
}

.menu-toggle__bar:nth-child(2) {
	top: 21px;
}

.menu-toggle__bar:nth-child(3) {
	top: 27px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Menu mobile a tutto schermo */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
	overflow-y: auto;
	background: var(--vg-white);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--duration-base) var(--ease-brand), visibility 0s linear var(--duration-base);
}

.mobile-menu.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--duration-base) var(--ease-brand);
}

.mobile-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mobile-menu__nav a {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(30px, 8vw, 44px);
	line-height: 1.2;
	text-transform: lowercase;
}

.mobile-menu__wave {
	margin: 32px 0;
	opacity: .7;
}

.mobile-menu__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-top: auto;
}

@media (max-width: 1099px) {
	.site-nav,
	.site-header__meta {
		display: none;
	}
	.site-header__inner {
		justify-content: space-between;
	}
	.menu-toggle {
		display: block;
	}
}

@media (min-width: 1100px) {
	.mobile-menu {
		display: none;
	}
}

/* ───────── hero ───────── */

.hero {
	position: relative;
	overflow: hidden;
}

.hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(24px, 3vw, 34px);
	padding-top: clamp(40px, 6vw, 88px);
	padding-bottom: clamp(40px, 6vw, 88px);
}

.hero__title {
	font-size: clamp(38px, 6.4vw, 80px);
	line-height: 1.02;
	letter-spacing: -0.015em;
	max-width: 20ch;
}

.hero__wave {
	width: 100%;
	max-width: 820px;
	opacity: .7;
}

.hero__when {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-family: var(--font-display);
	font-weight: 700;
}

.hero__date {
	font-size: clamp(40px, 7.4vw, 96px);
	line-height: .96;
	letter-spacing: -0.02em;
}

.hero__place {
	font-size: clamp(18px, 2.4vw, 30px);
	line-height: 1.2;
}

.hero__subtitle {
	font-size: clamp(16px, 1.8vw, 21px);
	line-height: 1.3;
	color: var(--vg-green);
}

.hero__lead {
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.6;
	max-width: 56ch;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ───────── hero con video di sfondo (variante home) ───────── */

.hero--video {
	display: flex;
	align-items: flex-end;
	min-height: min(calc(100svh - var(--header-h)), 900px);
	background: var(--vg-teal);
	color: #fff;
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Velo teal: più denso a sinistra e in basso, dove sta il testo */
.hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(5, 81, 87, .88) 0%, rgba(5, 81, 87, .6) 45%, rgba(5, 81, 87, .15) 100%),
		linear-gradient(0deg, rgba(5, 81, 87, .55) 0%, rgba(5, 81, 87, 0) 50%);
}

.hero--video .hero__inner {
	width: 100%;
}

.hero--video .hero__subtitle {
	color: var(--vg-green);
}

.hero--video .btn--ghost,
.hero--video .btn--ghost:hover {
	color: #fff;
	box-shadow: inset 0 0 0 1.5px #fff;
}

@media (max-width: 767px) {
	.hero__scrim {
		background: linear-gradient(0deg, rgba(5, 81, 87, .92) 0%, rgba(5, 81, 87, .7) 60%, rgba(5, 81, 87, .45) 100%);
	}
}

.hero-video__play {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 6px 20px 6px 6px;
	border-radius: var(--radius-pill);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}

.hero-video__play:hover {
	color: var(--vg-green);
}

.hero-video__icon {
	position: relative;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-pill);
	background: #fff;
	transition: background var(--duration-fast) var(--ease-brand);
}

.hero-video__play:hover .hero-video__icon {
	background: var(--vg-green);
}

/* triangolo "play" */
.hero-video__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent var(--vg-teal);
	transform: translate(-50%, -50%);
}

.hero-video__durata {
	font-weight: 500;
	opacity: .65;
}

@media (max-width: 559px) {
	.hero-video__play {
		white-space: nowrap;
	}
	.hero-video__durata {
		display: none;
	}
}

/* Finestra del video completo */
.video-dialog {
	width: min(1200px, calc(100vw - 2 * var(--gutter)));
	max-width: none;
	padding: 0;
	border: none;
	border-radius: var(--radius-panel);
	overflow: visible;
	background: #000;
}

.video-dialog::backdrop {
	background: rgba(5, 81, 87, .92);
}

.video-dialog__player {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-panel);
	background: #000;
}

.video-dialog__close {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	width: 44px;
	height: 44px;
	border: none;
	border-radius: var(--radius-pill);
	background: #fff;
	cursor: pointer;
}

.video-dialog__close::before,
.video-dialog__close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--vg-teal);
	transform: translate(-50%, -50%) rotate(45deg);
}

.video-dialog__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.video-dialog__close:hover {
	background: var(--vg-green);
}

/* ───────── numeri ───────── */

.numeri {
	margin-top: clamp(48px, 6vw, 88px);
}

.numeri .grid {
	--grid-min: 180px;
	gap: clamp(20px, 3vw, 40px);
	padding-top: clamp(40px, 5vw, 72px);
	padding-bottom: clamp(40px, 5vw, 72px);
}

.numeri__n {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(36px, 4.5vw, 60px);
	line-height: 1;
}

.numeri__label {
	font-size: 15px;
	line-height: 1.5;
	margin-top: 10px;
	opacity: .85;
}

/* ───────── card ───────── */

.card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	border-radius: var(--radius-panel);
	padding: clamp(22px, 2.4vw, 32px);
}

.card--tint {
	background: var(--vg-offwhite);
	min-height: 260px;
}

/* Card cliccabile (le 3 aree): tutta la card è il link */
.card--link {
	justify-content: space-between;
	gap: 24px;
	color: var(--vg-teal);
	transition: transform var(--duration-base) var(--ease-brand);
}

.card--link:hover {
	color: var(--vg-teal);
	transform: translateY(-4px);
}

.card__cta {
	font-size: 14px;
	font-weight: 600;
	color: var(--vg-green);
}

.card--link:hover .card__cta {
	color: var(--vg-teal);
}

.card--outline {
	box-shadow: inset 0 0 0 1px var(--border-subtle);
	justify-content: space-between;
	gap: 16px;
	min-height: 320px;
	padding: clamp(24px, 3vw, 36px);
}

.card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.card__title {
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.1;
}

.card--outline .card__title {
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.05;
}

.card__meta {
	font-size: 15px;
	font-weight: 600;
}

.card__text {
	font-size: 15px;
	line-height: 1.6;
	opacity: .9;
}

.card__note {
	font-size: 14px;
	font-weight: 600;
	opacity: .6;
}

/* ───────── workshop (dentro "partecipa") ───────── */

.workshop {
	margin-top: clamp(36px, 5vw, 56px);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.workshop .gruppo__titolo {
	margin-bottom: 6px;
}

.workshop__intro {
	font-size: 15px;
	margin-bottom: 18px;
}

.workshop__grid {
	--grid-min: 300px;
}

.card--workshop {
	justify-content: space-between;
	gap: 20px;
	padding: clamp(24px, 3vw, 36px);
	background: #fff;
}

.card--workshop .card__title {
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.1;
}

.workshop__sottotitolo {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.workshop__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.workshop__info div {
	display: flex;
	gap: 8px;
}

.workshop__info dt {
	flex: none;
	min-width: 62px;
	opacity: .6;
}

.workshop__info dd {
	margin: 0;
}

/* ───────── elenchi a righe (programma, collaterali) ───────── */

.rows {
	border-bottom: 1px solid var(--border-subtle);
}

.row {
	display: grid;
	gap: clamp(16px, 3vw, 40px);
	padding: clamp(18px, 2.2vw, 26px) 0;
	border-top: 1px solid var(--border-subtle);
	align-items: start;
}

.row > * {
	min-width: 0;
}

.row__stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

/* Colonna orari a larghezza fissa: ogni riga è una griglia a sé */
.programma .row {
	grid-template-columns: clamp(150px, 14vw, 190px) minmax(0, 1fr);
}

.programma__ora {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(17px, 1.8vw, 22px);
	line-height: 1.2;
	white-space: nowrap;
}

.programma__titolo {
	font-size: clamp(20px, 2.2vw, 28px);
	line-height: 1.1;
}

.programma__testo {
	font-size: 16px;
	line-height: 1.6;
	max-width: 64ch;
	opacity: .9;
}

@media (max-width: 559px) {
	.programma .row {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
}

.collaterali .rows {
	border-color: var(--border-on-dark);
}

.collaterali .row {
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: clamp(12px, 3vw, 40px);
	padding: clamp(20px, 2.4vw, 28px) 0;
	border-color: var(--border-on-dark);
}

.collaterali__quando {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.collaterali__data {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(22px, 2.6vw, 32px);
	line-height: 1.05;
}

.collaterali__luogo {
	font-size: 15px;
	opacity: .85;
}

.collaterali__orario {
	font-size: 15px;
	font-weight: 600;
	color: var(--vg-green);
}

.collaterali__cosa {
	font-size: 14px;
	opacity: .75;
}

.collaterali__titolo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(19px, 2.1vw, 26px);
	line-height: 1.15;
	max-width: 34ch;
}

.collaterali__sottotitolo {
	font-size: 16px;
	line-height: 1.5;
	max-width: 48ch;
	opacity: .9;
}

.collaterali__dettagli {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	opacity: .75;
}

.collaterali__iscrizioni {
	font-size: 14px;
	font-weight: 600;
	color: var(--vg-lilac);
}

.collaterali .row--principale .collaterali__titolo {
	color: var(--vg-green);
}

/* ───────── espositori ───────── */

.loghi {
	--grid-min: 150px;
	list-style: none;
	margin: 0;
	padding: 0;
	grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-min), 100%), 1fr));
	gap: 12px;
}

.gruppi {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 3.5vw, 44px);
}

.gruppo__titolo {
	font-size: clamp(18px, 1.8vw, 22px);
	line-height: 1.2;
	margin-bottom: 14px;
	text-transform: lowercase;
}

/* Formato per gruppo: la larghezza minima decide quanti loghi per riga */
.loghi--grande {
	--grid-min: 300px;
	gap: 16px;
}

.loghi--medio {
	--grid-min: 240px;
	gap: 14px;
}

/* Su mobile: grande 1, medio 2, piccolo 3 per riga */
@media (max-width: 599px) {
	.loghi {
		--grid-min: 96px;
		gap: 10px;
	}
	.loghi--medio {
		--grid-min: 140px;
	}
	.loghi--grande {
		--grid-min: 100%;
	}
	.loghi .logo-tile {
		padding: 8px;
		font-size: 12px;
	}
}

.loghi--grande .logo-tile {
	aspect-ratio: 16 / 9;
	padding: clamp(17px, 2.1vw, 28px);
	font-size: 17px;
}

.loghi--medio .logo-tile {
	padding: clamp(14px, 1.7vw, 21px);
	font-size: 15px;
}

.logo-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
	padding: 13px 15px;
	border-radius: var(--radius-card);
	background: var(--vg-offwhite);
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.logo-tile img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* I loghi restano nei colori originali: il link si riconosce dal riquadro che si alza */
a.logo-tile {
	transition: transform var(--duration-base) var(--ease-brand);
}

a.logo-tile:hover {
	transform: translateY(-3px);
}

/*
	Stesso peso visivo per loghi di proporzioni diverse: l'altezza cala con la radice
	delle proporzioni (--r = larghezza / altezza, calcolato in build), così un logo
	quadrato e uno lungo e sottile occupano più o meno la stessa area.
*/
.logo-tile:has(img[style]) {
	container-type: size;
}

.logo-tile img[style] {
	height: calc(var(--logo-quadrato, 78cqh) / sqrt(var(--r)));
}

.logo-tile--placeholder {
	font-size: 12px;
	font-weight: 500;
	opacity: .55;
}

.cta-espositori {
	--grid-min: 280px;
	margin-top: clamp(28px, 4vw, 48px);
	padding: clamp(24px, 3.4vw, 48px);
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
	border-radius: var(--radius-panel);
	background: var(--vg-green);
}

.cta-espositori__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.cta-espositori__title {
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.05;
}

.cta-espositori__text {
	font-size: 16px;
	line-height: 1.6;
	max-width: 46ch;
}

.cta-espositori__media {
	aspect-ratio: 4 / 3;
	--media-radius: 20px;
}

/* ───────── chi siamo ───────── */

.chi-siamo__grid {
	--grid-min: 320px;
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
}

.chi-siamo__testo {
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 16px;
	line-height: 1.65;
}

.chi-siamo__testo p {
	max-width: 60ch;
	opacity: .9;
}

.chi-siamo__testo .section__lead {
	margin-bottom: 0;
	opacity: 1;
}

.chi-siamo__testo .actions {
	margin-top: 8px;
}

.chi-siamo__foto {
	margin: 0;
}

.chi-siamo__foto img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius-panel);
}

.chi-siamo__foto figcaption {
	margin-top: 10px;
	font-size: 13px;
	opacity: .7;
}

/* ───────── contatti ───────── */

.contatti {
	--grid-min: 300px;
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}

.contatti__lead {
	max-width: 44ch;
	margin-bottom: 32px;
}

.contatti__info {
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-size: 16px;
	line-height: 1.6;
}

.contatti__label {
	font-weight: 600;
	margin-bottom: 4px;
}

.contatti__info a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(24px, 3vw, 40px);
	border-radius: var(--radius-panel);
	background: var(--vg-offwhite);
}

.form__privacy {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.5;
}

.form__privacy input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--vg-teal);
}

.form__privacy a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.form__status {
	font-size: 14px;
	font-weight: 600;
}

.form__status--error {
	color: #B3261E;
}

.form__honeypot {
	display: none;
}

/* ───────── footer ───────── */

.site-footer {
	background: var(--surface-dark);
	color: var(--text-on-dark);
}

.site-footer a {
	color: #fff;
	opacity: .85;
}

/* Comandi iubenda nel footer: bottoni che sembrano link */
.link-button {
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	transition: color var(--duration-fast) var(--ease-brand);
}

.site-footer .link-button {
	color: #fff;
}

.site-footer a:hover,
.site-footer .link-button:hover {
	color: var(--vg-green);
	opacity: 1;
}

.site-footer__wave {
	opacity: .4;
}

.site-footer__grid {
	--grid-min: 220px;
	gap: 32px;
	align-items: start;
	padding-top: clamp(24px, 3vw, 40px);
	padding-bottom: clamp(32px, 4vw, 56px);
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
}

.site-footer__brand {
	gap: 14px;
}

.site-footer__mark {
	width: 52px;
	height: 52px;
	/* il pittogramma è monolinea: in negativo diventa bianco pieno */
	filter: brightness(0) invert(1);
}

.site-footer__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
}

.site-footer__payoff,
.site-footer__note {
	font-size: 14px;
	line-height: 1.6;
	opacity: .75;
}

.site-footer__legal {
	border-top: 1px solid var(--border-on-dark);
}

.site-footer__legal .container {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding-top: 18px;
	padding-bottom: 22px;
	font-size: 13px;
	opacity: .75;
}

/* ───────── pagina 404 ───────── */

.errore {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: min(calc(100svh - var(--header-h)), 760px);
}

.errore__mark {
	position: absolute;
	right: -10%;
	top: 50%;
	width: min(60vw, 640px);
	opacity: .1;
	transform: translateY(-50%);
	pointer-events: none;
}

.errore__inner {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(20px, 2.6vw, 30px);
	padding-top: var(--section-y);
	padding-bottom: var(--section-y);
}

.errore__title {
	font-size: clamp(36px, 6vw, 76px);
	line-height: 1.02;
	letter-spacing: -0.015em;
	max-width: 16ch;
}

.errore__wave {
	width: 100%;
	max-width: 620px;
	opacity: .7;
}

.errore__lead {
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.6;
	max-width: 52ch;
}

/* ───────── accordion delle sezioni ───────── */

.section.accordion {
	padding-top: 0;
	padding-bottom: 0;
}

.accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(28px, 3.5vw, 44px) 0;
	list-style: none;
	cursor: pointer;
}

.accordion__summary::-webkit-details-marker {
	display: none;
}

.accordion__summary .section__title {
	margin-bottom: 0;
	transition: color var(--duration-fast) var(--ease-brand);
}

.accordion__summary:hover .section__title {
	color: var(--vg-green);
}

.accordion__summary:focus-visible {
	outline-offset: -2px;
	border-radius: var(--radius-sm);
}

/* Più che diventa meno: le due barre ruotano insieme */
.accordion__icon {
	position: relative;
	flex: none;
	width: clamp(40px, 4vw, 52px);
	height: clamp(40px, 4vw, 52px);
	border-radius: var(--radius-pill);
	box-shadow: inset 0 0 0 1.5px currentColor;
	transition: background var(--duration-fast) var(--ease-brand), color var(--duration-fast) var(--ease-brand);
}

.accordion__icon::before,
.accordion__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform var(--duration-base) var(--ease-brand);
}

.accordion__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__summary:hover .accordion__icon {
	background: var(--vg-green);
	color: var(--vg-teal);
	box-shadow: none;
}

details[open] > .accordion__summary .accordion__icon::before {
	transform: translate(-50%, -50%) rotate(180deg);
}

details[open] > .accordion__summary .accordion__icon::after {
	transform: translate(-50%, -50%) rotate(180deg);
}

details[open] > .accordion__body {
	padding-bottom: var(--section-y);
	animation: accordion-apri var(--duration-base) var(--ease-brand);
}

@keyframes accordion-apri {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}
