/* ==========================================================================
   AES – dettagli premium (ognuno legato a una classe aes-fx-* sul body)
   ========================================================================== */

/* ---------- Sipario e caricamento ---------- */
.aes-curtain {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--c-black);
	color: var(--c-white);
	transform: translate3d(0, 100%, 0);
	visibility: hidden;
	pointer-events: none;
	will-change: transform;
}
html.aes-cover .aes-curtain {
	transform: none;
	visibility: visible;
	pointer-events: auto;
	/* Rete di sicurezza: se lo script non parte, il sipario si toglie da solo. */
	animation: aes-curtain-failsafe 0.6s ease 5s forwards;
}
@keyframes aes-curtain-failsafe { to { transform: translate3d(0, -100%, 0); visibility: hidden; } }
.aes-curtain.is-moving { animation: none !important; }

.aes-curtain__logo { width: min(220px, 52vw); opacity: 0.95; }
.aes-curtain__logo img { width: 100%; height: auto; }

.aes-loader { display: none; }
html.aes-cover--loader .aes-loader { display: block; }
html.aes-cover--loader .aes-curtain__logo { width: min(170px, 44vw); margin-bottom: 48px; }

.aes-loader__count {
	position: absolute;
	right: 40px;
	bottom: 26px;
	font-family: var(--f-head);
	font-size: clamp(5rem, 14vw, 13rem);
	line-height: 0.8;
	letter-spacing: -0.06em;
	font-variant-numeric: tabular-nums;
	color: var(--c-white);
}
.aes-loader__count sup { font-size: 0.22em; letter-spacing: 0; vertical-align: top; margin-left: 0.15em; color: var(--c-muted); }
.aes-loader__bar {
	width: min(260px, 60vw);
	height: 1px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.18);
	overflow: hidden;
}
.aes-loader__bar span { display: block; height: 100%; background: var(--c-white); transform: scaleX(0); transform-origin: left; }
.aes-loader__tag {
	position: absolute;
	left: 40px;
	bottom: 34px;
	font-size: 11px;
	letter-spacing: 0.22em;
	color: var(--c-muted);
}
@media (max-width: 767px) {
	.aes-loader__count { right: 22px; bottom: 22px; }
	.aes-loader__tag { left: 22px; bottom: auto; top: 26px; font-size: 10px; }
}

/* ---------- Ingresso hero: prima della rivelazione, i contenuti aspettano ---------- */
html.aes-intro .aes-hero__content > *,
html.aes-intro .aes-phero__title:not([data-anim]),
html.aes-intro .aes-ahero__title,
html.aes-intro .aes-ahero__top > :not(.aes-ahero__img) {
	opacity: 0;
	animation: aes-intro-failsafe 0.01s linear 5s forwards;
}
@keyframes aes-intro-failsafe { to { opacity: 1; } }
html.aes-intro.aes-intro-done .aes-hero__content > *,
html.aes-intro.aes-intro-done .aes-phero__title,
html.aes-intro.aes-intro-done .aes-ahero__title,
html.aes-intro.aes-intro-done .aes-ahero__top > * { animation: none; }

/* ---------- Barra di avanzamento ---------- */
.aes-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 1002;
	pointer-events: none;
	mix-blend-mode: difference;
}
.aes-progress span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

/* ---------- Grana pellicola ---------- */
.aes-grain {
	position: fixed;
	inset: -100%;
	z-index: 9990;
	pointer-events: none;
	opacity: 0.055;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: aes-grain 0.9s steps(6) infinite;
}
@keyframes aes-grain {
	0% { transform: translate(0, 0); }
	20% { transform: translate(-4%, 3%); }
	40% { transform: translate(3%, -5%); }
	60% { transform: translate(-6%, -2%); }
	80% { transform: translate(5%, 4%); }
	100% { transform: translate(0, 0); }
}

/* ---------- Cursore ---------- */
.aes-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	body.aes-fx-cursor.aes-cursor-on,
	body.aes-fx-cursor.aes-cursor-on a,
	body.aes-fx-cursor.aes-cursor-on button,
	body.aes-fx-cursor.aes-cursor-on summary,
	body.aes-fx-cursor.aes-cursor-on label { cursor: none; }
	body.aes-fx-cursor.aes-cursor-on :is(input, textarea, select) { cursor: auto; }

	.aes-cursor {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 10001;
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.3s;
		/* L'inversione colore va sul contenitore: essendo fisso con z-index, isolerebbe i figli
		   e il cursore resterebbe sempre bianco (invisibile sul menu chiaro). */
		mix-blend-mode: difference;
	}
	.aes-cursor.is-visible { opacity: 1; }
	.aes-cursor.is-drag { mix-blend-mode: normal; }
	.aes-cursor__dot,
	.aes-cursor__ring {
		position: absolute;
		top: 0;
		left: 0;
		border-radius: 50%;
		will-change: transform;
	}
	.aes-cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
	.aes-cursor__ring {
		width: 38px;
		height: 38px;
		margin: -19px 0 0 -19px;
	}
	.aes-cursor__ring i {
		position: absolute;
		inset: 0;
		border: 1px solid #fff;
		border-radius: 50%;
		transition: transform 0.45s var(--ease-out), background-color 0.3s, border-color 0.3s;
	}
	.aes-cursor.is-link .aes-cursor__ring i { transform: scale(1.55); background: #fff; }
	.aes-cursor.is-link .aes-cursor__dot { opacity: 0; }
	.aes-cursor.is-down .aes-cursor__ring i { transform: scale(0.8); }
	.aes-cursor.is-hidden { opacity: 0; }

	/* Modalità «Trascina» sui caroselli */
	.aes-cursor__drag { position: absolute; top: 0; left: 0; will-change: transform; }
	.aes-cursor__label {
		position: absolute;
		top: 0;
		left: 0;
		width: 92px;
		height: 92px;
		margin: -46px 0 0 -46px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--c-white);
		color: var(--c-black);
		font-size: 10px;
		letter-spacing: 0.18em;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
		transform: scale(0);
		transition: transform 0.45s var(--ease-out);
	}
	.aes-cursor.is-drag .aes-cursor__label { transform: scale(1); }
	.aes-cursor.is-drag .aes-cursor__ring,
	.aes-cursor.is-drag .aes-cursor__dot { opacity: 0; }
}

/* ---------- Pulsanti magnetici ---------- */
body.aes-fx-magnetic [data-magnetic] { transition: translate 0.6s var(--ease-out); }
body.aes-fx-magnetic [data-magnetic].is-magnet { transition: translate 0.15s linear; }

/* ---------- Foto che si svelano ---------- */
.aes-ipx { overflow: hidden; }

/* ---------- Footer ---------- */
body.aes-fx-footer .aes-footer { overflow: hidden; }

/* ---------- Rifiniture ---------- */
body.aes-fx-details ::selection { background: var(--c-black); color: var(--c-white); }
body.aes-fx-details .aes-dark ::selection,
body.aes-fx-details .aes-footer ::selection { background: var(--c-white); color: var(--c-black); }

body.aes-fx-details :is(.aes-legal, .aes-faq, .aes-principles) p a,
body.aes-fx-details .aes-form a,
body.aes-fx-details .aes-contact__cell a:not(.aes-btn) {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 100% 100%;
	background-repeat: no-repeat;
	transition: background-size 0.5s var(--ease-out);
}
body.aes-fx-details :is(.aes-legal, .aes-faq, .aes-principles) p a:hover,
body.aes-fx-details .aes-form a:hover,
body.aes-fx-details .aes-contact__cell a:not(.aes-btn):hover {
	background-size: 100% 1px;
	background-position: 0 100%;
}
body.aes-fx-details :is(.aes-legal, .aes-faq, .aes-principles) p a { background-size: 100% 1px; }
body.aes-fx-details :is(.aes-legal, .aes-faq, .aes-principles) p a:hover { animation: aes-underline 0.7s var(--ease-out); }
@keyframes aes-underline {
	0% { background-size: 100% 1px; background-position: 100% 100%; }
	50% { background-size: 0 1px; background-position: 100% 100%; }
	51% { background-position: 0 100%; }
	100% { background-size: 100% 1px; background-position: 0 100%; }
}

@media (hover: hover) and (pointer: fine) {
	html:has(body.aes-fx-details) { scrollbar-width: thin; scrollbar-color: #9a9ca3 transparent; }
	html:has(body.aes-fx-details)::-webkit-scrollbar { width: 8px; }
	html:has(body.aes-fx-details)::-webkit-scrollbar-track { background: transparent; }
	html:has(body.aes-fx-details)::-webkit-scrollbar-thumb { background: #9a9ca3; border-radius: 8px; border: 2px solid var(--c-white); }
}

@media (prefers-reduced-motion: reduce) {
	.aes-grain { animation: none; }
	.aes-curtain { display: none; }
}

/* ==========================================================================
   Ritocchi di stile 0.7.1 (sempre attivi, non legati agli interruttori)
   ========================================================================== */

/* Home: tre card aree ferme, senza arrotondamenti, con margine esterno uguale allo spazio tra le card */
body.aes .aes-area-cards { gap: 14px; padding: 14px; margin-left: 0; margin-right: 0; }
body.aes .aes-area-card { border-radius: 0; -webkit-mask-image: none; }
@media (max-width: 767px) {
	body.aes .aes-area-cards { gap: 10px; padding: 10px; scroll-padding: 0 10px; }
	body.aes .aes-area-cards > * { flex-basis: 88%; }
	body.aes .aes-area-card { border-radius: 0; }
}

/* Sfondo a pallini più leggero */
.aes-dotgrid { background: var(--c-white); position: relative; isolation: isolate; }
.aes-dotgrid::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--aes-bg, none) center / cover no-repeat;
	opacity: 0.3;
}

/* Card in vetro su sfondi scuri e su foto */
body.aes .aes-method__card,
body.aes .aes-ncard,
body.aes .aes-dark .aes-feat__item {
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 100%);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	backdrop-filter: blur(22px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.22);
	color: var(--c-white);
	border-radius: 10px;
}
body.aes .aes-method__title,
body.aes .aes-ncard .t-h4 { color: var(--c-white); }
body.aes .aes-method__card .t-p,
body.aes .aes-ncard p:not(.aes-ncard__num):not(.t-h4) { color: rgba(255, 255, 255, 0.74); }
body.aes .aes-method__icon { filter: invert(1); }
body.aes .aes-ncard__num { color: rgba(255, 255, 255, 0.28); }
/* Su desktop le colonne scure diventano card in vetro con un po' d'aria */
@media (min-width: 768px) {
	body.aes .aes-dark .aes-feat__item { padding: 36px 30px; }
}

/* Il riquadro video ora chiude la pagina: un po' di bianco prima del footer */
body.aes .aes-vcta { padding-bottom: 20px; }

/* Hero seguita da una sezione scura (es. Approval): niente sfumatura verso il nero, velo uniforme e stacco netto */
body.aes .aes-phero:has(+ .aes-dark)::before { background: rgba(19, 19, 19, 0.62); opacity: 1; }

/* ---------- Hero interne: occhiello, sottotitolo, percorso e invito a scorrere ---------- */
body.aes .aes-phero { padding-bottom: 120px; }
.aes-phero__kicker { position: relative; z-index: 2; margin-bottom: 26px; }
.aes-phero__sub { position: relative; z-index: 2; max-width: 520px; margin: 24px auto 0; color: rgba(255, 255, 255, 0.78); }
.aes-phero__bar {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 0;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 0 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	text-align: left;
}
.aes-phero__crumbs { display: flex; gap: 10px; }
.aes-phero__crumbs a { transition: color 0.3s; }
.aes-phero__crumbs a:hover,
.aes-phero__crumbs [aria-current] { color: var(--c-white); }
.aes-phero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.aes-phero__scroll i { position: relative; width: 1px; height: 26px; overflow: hidden; background: rgba(255, 255, 255, 0.25); }
.aes-phero__scroll i::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--c-white);
	animation: aes-scroll-cue 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes aes-scroll-cue {
	0% { transform: translateY(-100%); }
	60%, 100% { transform: translateY(100%); }
}
@media (max-width: 767px) {
	body.aes .aes-phero { padding-bottom: 96px; }
	body.aes .aes-phero__kicker { margin-bottom: 16px; }
	body.aes .aes-phero__sub { margin: 16px 0 0; max-width: 34ch; text-align: left; font-size: 15px; }
	body.aes .aes-phero__bar { padding: 16px 0 18px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.aes-phero__scroll i::after { animation: none; }
}
html.aes-intro .aes-phero__kicker,
html.aes-intro .aes-phero__sub,
html.aes-intro .aes-phero__bar {
	opacity: 0;
	animation: aes-intro-failsafe 0.01s linear 5s forwards;
}
html.aes-intro.aes-intro-done .aes-phero__kicker,
html.aes-intro.aes-intro-done .aes-phero__sub,
html.aes-intro.aes-intro-done .aes-phero__bar { animation: none; }

/* Leggibilità dei testi sulle foto chiare: velo più deciso in alto (occhiello) e al centro (titolo, sottotitolo) */
body.aes .aes-phero::before { background: linear-gradient(180deg, rgba(19, 19, 19, 0.58) 0%, rgba(19, 19, 19, 0.6) 45%, rgba(19, 19, 19, 0.8) 75%, #131313 100%); opacity: 1; }
body.aes .aes-phero__kicker,
body.aes .aes-phero__sub,
body.aes .aes-phero__bar { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
body.aes .aes-phero__bar { color: rgba(255, 255, 255, 0.8); }
body.aes .aes-phero__sub { color: rgba(255, 255, 255, 0.88); }

/* Leggibilità dei testi sulle card con foto: gradiente scuro più alto e più denso dietro al testo */
body.aes .aes-area-card::after { background: linear-gradient(180deg, rgba(19, 19, 19, 0) 15%, rgba(19, 19, 19, 0.55) 40%, rgba(19, 19, 19, 0.82) 62%, rgba(19, 19, 19, 0.94) 100%); }
body.aes .aes-cta::before { background: linear-gradient(180deg, rgba(19, 19, 19, 0.62) 0%, rgba(19, 19, 19, 0.42) 40%, rgba(19, 19, 19, 0.9) 100%); }
body.aes .aes-ncard__num { color: rgba(255, 255, 255, 0.62); }
@media (max-width: 767px) {
	body.aes .aes-area-card::after { background: linear-gradient(180deg, rgba(19, 19, 19, 0.1) 0%, rgba(19, 19, 19, 0.62) 28%, rgba(19, 19, 19, 0.86) 52%, rgba(19, 19, 19, 0.95) 100%); }
	body.aes .aes-cta::before { background: linear-gradient(180deg, rgba(19, 19, 19, 0.7) 0%, rgba(19, 19, 19, 0.6) 45%, rgba(19, 19, 19, 0.92) 100%); }
}
body.aes .aes-ncard p:not(.aes-ncard__num):not(.t-h4) { color: rgba(255, 255, 255, 0.84); }

/* ---------- Pagina 404 ---------- */
.aes-phero--404 { min-height: 70vh; }
.aes-404 { max-width: 1100px; margin: 0 auto; padding: 100px 20px 140px; }
.aes-404__links { margin-top: 30px; border-top: 1px solid #d1d1d1; }
.aes-404__links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; border-bottom: 1px solid #d1d1d1; color: var(--c-black); transition: padding 0.5s var(--ease-out), color 0.3s; }
.aes-404__links a svg { width: 26px; height: 26px; fill: currentColor; flex: none; transition: transform 0.5s var(--ease-out); }
.aes-404__links a:hover { padding-left: 14px; }
.aes-404__links a:hover svg { transform: translateX(6px); }
@media (max-width: 767px) {
	.aes-404 { padding: 64px 20px 90px; }
	.aes-404__links a { padding: 20px 0; }
	.aes-404__links .t-h4 { font-size: 1.8rem; }
}

/* ---------- Tablet (768–1024px) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
	/* Chi siamo: colonna foto più stretta, così il testo ha spazio e non viene tagliato */
	body.aes .aes-about--overlap .aes-about__side { width: 300px; }
	body.aes .aes-about--overlap .aes-about__main { max-width: calc(100% - 320px); }
	body.aes .aes-about--overlap .aes-about__img { height: 420px; margin-bottom: -160px; }
	body.aes .aes-about__body { margin-left: 0; width: auto; max-width: 480px; }
	/* Tre card aree una sotto l'altra, a tutta larghezza */
	body.aes .aes-area-cards { flex-direction: column; }
	body.aes .aes-area-card { flex: none; width: auto; min-height: 480px; }
}
/* Card contatti: il testo non passa sotto la freccia */
body.aes .aes-cta > *:not(.aes-cta__img):not(.aes-cta__icon) { padding-right: 84px; }
@media (min-width: 768px) and (max-width: 1024px) {
	/* Citazione di Azienda: il testo copre quasi tutta la larghezza, serve un velo verticale come su mobile */
	body.aes .aes-quote .aes-parallax-bg::after { background: linear-gradient(180deg, rgba(19, 19, 19, 0.3) 0%, rgba(19, 19, 19, 0.75) 50%, rgba(19, 19, 19, 0.9) 100%); }
}

/* ---------- Selettore lingua (IT / EN) nell'header ---------- */
.aes-lang {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;
	border-radius: 5px;
	background: var(--c-black);
	color: var(--c-white) !important;
	font-size: 12px;
	letter-spacing: 0.08em;
	transition: background-color 0.3s, color 0.3s;
}
.aes-lang:hover { background: var(--c-white); color: var(--c-black) !important; }

/* ---------- Riquadro finale "Contattaci ora": foto al posto del video ---------- */
body.aes .aes-vcta__box > .aes-vcta__bg { position: absolute; inset: 0; z-index: 0; }
/* Velo più scuro al centro, dove stanno titolo e testo */
body.aes .aes-vcta__box::after { background: radial-gradient(ellipse 60% 55% at center, rgba(19, 19, 19, 0.78) 0%, rgba(19, 19, 19, 0.62) 70%, rgba(19, 19, 19, 0.55) 100%); }
@media (max-width: 767px) {
	/* Su mobile il testo sta in basso a sinistra: velo che scurisce verso il basso */
	body.aes .aes-vcta__box::after { background: linear-gradient(180deg, rgba(19, 19, 19, 0.3) 0%, rgba(19, 19, 19, 0.72) 40%, rgba(19, 19, 19, 0.9) 100%); }
}

/* ---------- Transizione tra pagine: un pannello scuro che scorre, con il nome della pagina ---------- */
.aes-wipe { position: fixed; inset: 0; z-index: 10000; visibility: hidden; pointer-events: none; overflow: hidden; }
.aes-wipe.is-on,
html.aes-wipe-in .aes-wipe { visibility: visible; pointer-events: auto; }
html.aes-wipe-in .aes-wipe { animation: aes-wipe-failsafe 0.01s linear 4s forwards; }
html.aes-wipe-in .aes-wipe.is-on { animation: none; }
@keyframes aes-wipe-failsafe { to { visibility: hidden; pointer-events: none; } }
.aes-wipe__panel { position: absolute; inset: 0; background: var(--c-black); transform: translate3d(0, 100%, 0); will-change: transform; }
html.aes-wipe-in .aes-wipe__panel { transform: none; }
.aes-wipe__text { position: absolute; left: 40px; right: 40px; bottom: 36px; color: var(--c-white); will-change: transform, opacity; }
.aes-wipe__kicker { display: flex; align-items: center; margin-bottom: 16px; font-size: 12px; letter-spacing: 0.2em; color: var(--c-muted); }
.aes-wipe__kicker .aes-label__sq { margin-left: 0; }
.aes-wipe__label { font-family: var(--f-head); font-size: clamp(3.6rem, 10vw, 11rem); line-height: 1.02; letter-spacing: -0.055em; }
@media (max-width: 767px) {
	.aes-wipe__text { left: 22px; right: 22px; bottom: 28px; }
}

/* ---------- Sezione finale "Contattaci ora" a tutto schermo (come Azienda) ---------- */
.aes-bigcta--end { min-height: 100vh; }
.aes-bigcta--end .aes-bigcta__inner { margin-top: 0; }
.aes-bigcta__text { max-width: 460px; color: rgba(255, 255, 255, 0.86); }

/* ---------- Azienda: più aria tra galleria, tre colonne e numeri ---------- */
@media (min-width: 768px) {
	body.aes .aes-pillars { padding-top: 90px; }
	body.aes .aes-pillars__cols { gap: 72px; margin-bottom: 130px; }
	body.aes .aes-pillars__cols p { line-height: 1.75; }
	body.aes .aes-stats { margin-top: 0; }
	body.aes .aes-stat { padding: 26px 10px; }
}
body.aes .aes-pillars__cols strong { display: block; margin-bottom: 14px; line-height: 1.2; }
body.aes .aes-pillars__cols strong + br { display: none; }
body.aes .aes-bigcta--end .aes-parallax-bg::after { background: rgba(19, 19, 19, 0.72); }

/* ---------- Menu laterale ----------
   Colonna sinistra: pagine principali, poi Manifesto e F.A.Q., poi Link utili (Privacy, Cookie).
   In basso a destra: contatti con Instagram e Facebook. Le voci grandi si adattano all'altezza dello schermo. */
body.aes .aes-menu__card { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(20px, 3.5vh, 36px); }
.aes-menu__main { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 2vh, 20px); }
body.aes .aes-menu__nav a { font-size: clamp(28px, 5.6vh, 52px); line-height: 1.22; }
.aes-menu__more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(2px, 0.8vh, 8px); }
.aes-menu__more a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px 11px 18px;
	border: 1px solid rgba(19, 19, 19, 0.2);
	border-radius: 5px;
	font-size: 15px;
	line-height: 1;
	color: var(--c-black);
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.aes-menu__more svg { width: 16px; height: 16px; fill: currentColor; transition: transform 0.4s var(--ease-out); }
.aes-menu__more a:hover,
.aes-menu__more a.is-current { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); }
.aes-menu__more a:hover svg { transform: translateX(4px); }
.aes-menu__useful { margin-top: clamp(6px, 1.6vh, 18px); }
.aes-menu__useful .aes-label,
.aes-menu__contact .aes-label { margin-bottom: 10px; }
body.aes .aes-menu__legal { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; }
.aes-menu__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
body.aes .aes-menu__social { display: flex; flex-direction: row; gap: 22px; margin-top: 12px; }
@media (min-width: 768px) {
	body.aes .aes-menu__card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 40px;
		padding: clamp(24px, 4.5vh, 44px) clamp(28px, 3vw, 44px);
	}
	.aes-menu__main { align-self: start; }
	.aes-menu__contact { align-self: end; padding-bottom: 4px; }
}
@media (max-width: 767px) {
	body.aes .aes-menu__card { padding: clamp(64px, 9vh, 80px) 22px clamp(18px, 3vh, 28px); }
	body.aes .aes-menu__nav a { font-size: clamp(24px, 4.2vh, 32px); line-height: 1.2; }
	.aes-menu__more a { padding: 9px 14px; font-size: 14px; }
}
/* Telefoni bassi (es. iPhone SE): niente etichetta sopra le voci */
@media (max-width: 767px) and (max-height: 720px) {
	body.aes .aes-menu__main > .aes-label { display: none; }
}
@media (max-width: 767px) and (max-height: 600px) {
	body.aes .aes-menu__card { gap: 12px; padding-top: 62px; padding-bottom: 14px; }
	body.aes .aes-menu__main { gap: 8px; }
	body.aes .aes-menu__nav a { font-size: 22px; }
	body.aes .aes-menu__more a { padding: 7px 12px; font-size: 13px; }
	body.aes .aes-menu__useful { margin-top: 2px; }
	body.aes .aes-menu__useful .aes-label, body.aes .aes-menu__contact .aes-label { margin-bottom: 4px; }
	body.aes .aes-menu__social { margin-top: 6px; }
}
/* Colonna sinistra a tutta altezza: pagine in alto, Manifesto/F.A.Q. e link utili in basso */
.aes-menu__main { justify-content: space-between; flex: 1 1 auto; }
.aes-menu__pages,
.aes-menu__sub { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 2vh, 20px); }
.aes-menu__sub { gap: clamp(14px, 2.6vh, 26px); }
.aes-menu__sub .aes-menu__more { margin-top: 0; }
.aes-menu__sub .aes-menu__useful { margin-top: 0; }
@media (min-width: 768px) {
	.aes-menu__main { align-self: stretch; }
	.aes-menu__sub { padding-bottom: 4px; }
}
@media (max-width: 767px) and (max-height: 720px) {
	body.aes .aes-menu__pages > .aes-label { display: none; }
}
@media (max-width: 767px) and (max-height: 600px) {
	.aes-menu__pages, .aes-menu__sub { gap: 8px; }
}

/* ---------- Banner cookie ---------- */
.aes-cc {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9995;
	width: min(440px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 26px 26px 22px;
	border-radius: 10px;
	background: var(--c-white);
	color: var(--c-black);
	box-shadow: 0 24px 60px rgba(19, 19, 19, 0.22), 0 0 0 1px rgba(19, 19, 19, 0.06);
	font-family: var(--f-body);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.aes-cc.is-open { opacity: 1; transform: none; }
.aes-cc[hidden] { display: none; }
.aes-cc__x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 5px; transform: rotate(45deg); }
.aes-cc__x svg { width: 14px; height: 14px; fill: currentColor; }
.aes-cc__x:hover { background: #f3f4f7; }
.aes-cc__kicker { display: flex; align-items: center; margin: 0 0 12px; font-size: 11px; letter-spacing: 0.16em; color: var(--c-black); }
.aes-cc__kicker .aes-label__sq { margin-left: 0; }
.aes-cc__title { margin: 0 0 8px; font-family: var(--f-head); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.aes-cc__text { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--c-text); }
.aes-cc__text a { text-decoration: underline; text-underline-offset: 2px; }
.aes-cc__prefs { margin: 0 0 18px; border-top: 1px solid #ececf1; }
.aes-cc__prefs[hidden] { display: none; }
.aes-cc__dialog { margin: 14px 0 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
.aes-cc__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #ececf1; cursor: pointer; }
.aes-cc__row strong { display: block; font-weight: 500; font-size: 14px; }
.aes-cc__row span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--c-muted); }
.aes-cc__always { flex: none; font-size: 11px !important; letter-spacing: 0.06em; color: var(--c-black) !important; white-space: nowrap; }
.aes-cc__switch { position: relative; flex: none; width: 42px; height: 24px; }
.aes-cc__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.aes-cc__switch i { position: absolute; inset: 0; border-radius: 24px; background: #d4d6de; transition: background-color 0.25s; }
.aes-cc__switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.25s var(--ease-out); }
.aes-cc__switch input:checked + i { background: var(--c-black); }
.aes-cc__switch input:checked + i::after { transform: translateX(18px); }
.aes-cc__switch input:focus-visible + i { outline: 2px solid var(--c-black); outline-offset: 2px; }
.aes-cc__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* "Rifiuta" e "Accetta" identici: stessa evidenza, come richiesto dal Garante Privacy */
.aes-cc__btn { flex: 1 1 0; min-width: 110px; padding: 13px 16px; border-radius: 5px; background: var(--c-black); color: var(--c-white); font-size: 14px; line-height: 1; transition: opacity 0.25s; }
.aes-cc__btn:hover { opacity: 0.85; }
.aes-cc__btn--save { flex-basis: 100%; }
.aes-cc__btn[hidden] { display: none; }
.aes-cc__link { flex-basis: 100%; padding: 8px 0 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--c-text); text-align: center; }
.aes-cc.has-prefs .aes-cc__link { display: none; }
@media (max-width: 767px) {
	.aes-cc { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 22px 20px 18px; }
	.aes-cc__title { font-size: 20px; }
}

/* ---------- Pagine legali: data, tabelle cookie, pulsante preferenze ---------- */
.aes-legal__updated { font-size: 12px !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.aes-legal li { margin-bottom: 8px; }
.aes-legal table { width: 100%; margin: 6px 0 22px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.aes-legal th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); padding: 10px 12px 10px 0; border-bottom: 1px solid #d1d1d1; }
.aes-legal td { padding: 12px 12px 12px 0; border-bottom: 1px solid #ececf1; vertical-align: top; }
.aes-legal td:first-child { font-family: ui-monospace, Menlo, monospace; font-size: 13px; white-space: nowrap; }
body.aes .aes-legal a.aes-legal__btn { display: inline-flex; align-items: center; padding: 13px 20px; border-radius: 5px; background: var(--c-black); color: var(--c-white); text-decoration: none; font-size: 14px; background-image: none; }
@media (max-width: 767px) {
	.aes-legal table { display: block; overflow-x: auto; }
}
.aes-form__note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--c-muted); }
.aes-form__note a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
