/* Adaxit cookie banner. Loaded without blocking rendering (media swap in inc/analytics.php).
   Palette: petrolio #022529, bianco #FCFCFC, menta #B4EAC2, verde #00C757 (verde-testo #007A3D for text on light).
   Fonts: Manrope (text), Outfit (title), the same families the theme preloads.
   Fixed position + transform/opacity only: opening or closing the banner never moves page content (no layout shift). */
.ax-consent {
	--c-p: var(--ax-p, #022529);
	--c-p2: #0b4046;
	--c-w: var(--ax-w, #fcfcfc);
	--c-m: var(--ax-m, #b4eac2);
	--c-vt: var(--ax-vt, #007a3d);
	--c-bd: var(--ax-bd, #dce7e2);
	--c-tx: var(--ax-tx, #1e3a3e);
	--c-g: var(--ax-g, #4b6164);
	position: fixed;
	z-index: 1000;
	/* Bottom right on desktop: the hero text and its buttons sit on the left of every page, so they stay uncovered. */
	right: 16px;
	bottom: max(16px, env(safe-area-inset-bottom));
	width: min(460px, calc(100vw - 32px));
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: var(--ax-fb, 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif);
	color: var(--c-p);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.28s ease, transform 0.28s ease;
	pointer-events: none;
}
.ax-consent[hidden] {
	display: none;
}
.ax-consent.is-open {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.ax-consent *,
.ax-consent *::before,
.ax-consent *::after {
	box-sizing: border-box;
}

.ax-consent__card {
	background: var(--c-w);
	border: 1px solid var(--c-bd);
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(2, 37, 41, 0.05), 0 18px 48px rgba(2, 37, 41, 0.16);
	padding: 24px 24px 20px;
	max-height: min(80vh, 680px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ax-consent__title {
	margin: 0 0 8px;
	font-family: var(--ax-fh, 'Outfit', 'Manrope', system-ui, sans-serif);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: var(--c-p);
}
.ax-consent__title:focus {
	outline: none;
}
.ax-consent__text,
.ax-consent__rd,
.ax-consent__ads,
.ax-consent__note {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--c-tx);
}
.ax-consent__text {
	margin-bottom: 20px;
}
.ax-consent a {
	color: var(--c-vt);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
.ax-consent a:hover {
	color: var(--c-p);
}

/* Accept and Reject are the same element in every respect: size, weight, colour, shape. */
.ax-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch; /* a label that wraps in one language makes both buttons of the pair equally tall */
	gap: 10px;
}
.ax-consent__btn {
	flex: 1 1 0;
	min-width: 120px;
	appearance: none;
	margin: 0;
	border: 1px solid var(--c-p);
	background: var(--c-p);
	color: #fff;
	font: 700 15px/1.2 var(--ax-fb, 'Manrope', system-ui, sans-serif);
	padding: 14px 18px;
	min-height: 48px;
	border-radius: 999px;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.ax-consent__btn:hover {
	background: var(--c-p2);
	border-color: var(--c-p2);
}
.ax-consent__more {
	flex: 1 0 100%;
	appearance: none;
	margin: 0;
	border: 0;
	background: none;
	color: var(--c-vt);
	font: 600 14.5px/1.2 var(--ax-fb, 'Manrope', system-ui, sans-serif);
	min-height: 44px;
	padding: 10px 12px;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	border-radius: 999px;
}
.ax-consent__more:hover {
	color: var(--c-p);
}

/* Focus: a dark ring with a mint halo, visible on white, on mint and on the dark footer. */
.ax-consent button:focus-visible,
.ax-consent a:focus-visible,
.ax-consent .ax-consent__sw:focus-visible {
	outline: 2px solid var(--c-p);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--c-m);
	border-radius: 999px;
}
.ax-consent a:focus-visible {
	border-radius: 4px;
}

/* Preferences panel */
.ax-consent__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 0;
	border-top: 1px solid var(--c-bd);
}
.ax-consent__row:first-of-type {
	margin-top: 14px;
}
.ax-consent__rt {
	display: block;
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	color: var(--c-p);
	cursor: pointer;
}
.ax-consent__rd {
	font-size: 13.5px;
	color: var(--c-g);
}
.ax-consent__ads {
	padding: 14px 0 4px;
	border-top: 1px solid var(--c-bd);
	font-size: 13.5px;
	color: var(--c-g);
}
.ax-consent__note {
	padding: 4px 0 18px;
	font-size: 13px;
	color: var(--c-g);
}

/* Switch: a real checkbox with role="switch". The knob position (not only the colour) shows the state. */
.ax-consent__sw {
	appearance: none;
	flex: none;
	position: relative;
	width: 48px;
	height: 28px;
	margin: 2px 0 0;
	border: 1px solid #6f8982;
	border-radius: 999px;
	background: #e8f0ec;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease;
}
.ax-consent__sw::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--c-p);
	transition: transform 0.18s ease, background 0.18s ease;
}
.ax-consent__sw:checked {
	background: var(--c-p);
	border-color: var(--c-p);
}
.ax-consent__sw:checked::after {
	transform: translateX(20px);
	background: #fff;
}
.ax-consent__sw:disabled {
	cursor: default;
	opacity: 0.6;
}

.ax-consent__live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.ax-consent {
		left: 12px;
		right: 12px;
		bottom: max(12px, env(safe-area-inset-bottom));
		width: auto;
	}
	.ax-consent__card {
		padding: 20px 18px 16px;
		border-radius: 18px;
		max-height: 78vh;
	}
	.ax-consent__title {
		font-size: 18px;
	}
	.ax-consent__text {
		margin-bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ax-consent {
		transition: none;
		transform: none;
	}
	.ax-consent__btn,
	.ax-consent__sw,
	.ax-consent__sw::after {
		transition: none;
	}
}

@media (forced-colors: active) {
	.ax-consent__card {
		border: 2px solid CanvasText;
		box-shadow: none;
	}
	.ax-consent__btn {
		border: 2px solid ButtonText;
	}
	.ax-consent__sw {
		border-color: ButtonText;
	}
	.ax-consent__sw::after {
		background: ButtonText;
	}
}

@media print {
	.ax-consent {
		display: none !important;
	}
}
