:root {
	--primary-blue: #003366;
	--secondary-blue: #004d99;
	--accent-orange: #f37021;
	/* Sfondi chiari tenui (blu-grigio, meno affaticamento del bianco puro) */
	--light-blue: #eef3f9;
	--text-primary: #2a3544;
	--text-dark: var(--text-primary);
	--text-muted: #5c6b7f;
	--text-light: #ffffff;
	--heading-color: #0f3558;
	--background: #e4e9f0;
	--surface: #f2f4f8;
	--surface-raised: #fbfcfe;
	--border-subtle: rgba(0, 51, 102, 0.09);
	--border-strong: rgba(0, 51, 102, 0.14);
	--input-bg: #ffffff;
	--focus-ring: rgba(243, 112, 33, 0.22);
	--nav-icon-on-hero: var(--text-light);
	--nav-icon-on-solid: var(--primary-blue);
	--nav-icon-menu-open: var(--primary-blue);
	/* Tipografia (font caricati negli HTML) */
	--font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Playfair Display", "Georgia", serif;
	--font-logo: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	--text-body: 1rem;
	--text-lead: clamp(1.05rem, 2.5vw, 1.125rem);
	--text-h1: clamp(2rem, 5vw, 2.75rem);
	--text-h2: clamp(1.65rem, 4vw, 2.1rem);
	--text-h3: clamp(1.25rem, 3vw, 1.5rem);
	--lh-tight: 1.2;
	--lh-body: 1.65;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--dur-fast: 160ms;
	--dur-med: 260ms;
	--dur-slow: 420ms;
	--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
	--ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-soft: cubic-bezier(0.7, 0, 0.84, 0);
	--tr-ui: transform var(--dur-med) var(--ease-out-soft),
		opacity var(--dur-med) var(--ease-out-soft),
		color var(--dur-fast) ease,
		background-color var(--dur-fast) ease,
		border-color var(--dur-fast) ease,
		box-shadow var(--dur-med) var(--ease-out-soft),
		filter var(--dur-fast) ease;
	--transition: var(--tr-ui);
	--shadow-sm: 0 1px 2px rgba(0, 51, 102, 0.05);
	--shadow-md: 0 4px 16px rgba(0, 51, 102, 0.08), 0 0 0 1px var(--border-subtle);
	--shadow-lg: 0 14px 40px rgba(0, 51, 102, 0.1), 0 0 0 1px var(--border-subtle);
	--page-gutter: clamp(1.35rem, 4.2vw + 0.65rem, 2rem);
	--cat-food-accent: var(--accent-orange);
	--cat-experiences-accent: color-mix(in srgb, var(--secondary-blue) 70%, #5b9bd5 30%);
	--cat-trips-accent: #22c55e;
	--header-nav-height: 72px;
}

@media (max-width: 576px) {
	:root {
		--header-nav-height: 70px;
	}
}

@media (max-width: 480px) {
	:root {
		--page-gutter: clamp(1.3rem, 5.5vw + 0.75rem, 1.9rem);
	}
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	color-scheme: light;
	background-color: var(--background);
}

/* ============================================
   TOUCH & ACCESSIBILITY OPTIMIZATIONS
   ============================================ */

/* TOUCH: Rimuove delay 300ms e highlight blu su mobile per UX più fluida */
a, button, input, select, textarea, .card, .search-item, .zoom-btn {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* ACCESSIBILITY: Rispetta le preferenze utente per animazioni ridotte */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	font-family: var(--font-sans);
	font-size: var(--text-body);
	color: var(--text-primary);
	line-height: var(--lh-body);
	background-color: var(--background);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	-webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
	body {
		font-size: 1.0625rem;
		line-height: 1.68;
	}
}

main {
	max-width: 100%;
	overflow-x: clip;
}

/* ============================================
   LISTING: caricamento contenuti (barra tematica per categoria)
   ============================================ */

.content-loading {
	--load-accent: var(--cat-trips-accent);
	--load-track: color-mix(in srgb, var(--load-accent) 16%, var(--surface));
	grid-column: 1 / -1;
}

.content-loading--trips {
	--load-accent: var(--cat-trips-accent);
}

.content-loading--food {
	--load-accent: var(--cat-food-accent);
}

.content-loading--experiences {
	--load-accent: var(--cat-experiences-accent);
}

.content-loading--all {
	--load-accent: var(--primary-blue);
}

.content-loading__visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.35rem;
	margin-bottom: 0.35rem;
}

.content-loading__glyph {
	font-size: clamp(2rem, 5vw, 2.65rem);
	color: color-mix(in srgb, var(--load-accent) 72%, var(--text-muted));
	opacity: 0.92;
}

.content-loading--trips .content-loading__glyph {
	animation: content-loading-glyph-suitcase 2.4s ease-in-out infinite;
}

.content-loading--food .content-loading__glyph {
	animation: content-loading-glyph-food 2.4s ease-in-out infinite;
}

.content-loading--experiences .content-loading__glyph {
	animation: content-loading-glyph-mappin 2.4s ease-in-out infinite;
}

.content-loading--all .content-loading__glyph {
	animation: content-loading-glyph-newspaper 2.4s ease-in-out infinite;
}

.content-loading__track {
	width: min(320px, 88vw);
	height: 9px;
	border-radius: 999px;
	background: var(--load-track);
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0, 51, 102, 0.08);
}

.content-loading--food .content-loading__track {
	height: 10px;
	border-radius: 14px;
}

.content-loading__bar {
	height: 100%;
	width: 42%;
	border-radius: inherit;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--load-accent) 25%, transparent),
		var(--load-accent),
		color-mix(in srgb, var(--load-accent) 55%, #ffffff)
	);
	animation: content-loading-shuttle 1.15s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
	will-change: transform;
}

.content-loading--trips .content-loading__bar {
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--cat-trips-accent) 20%, transparent),
		var(--cat-trips-accent),
		color-mix(in srgb, var(--cat-trips-accent) 40%, #86efac)
	);
	box-shadow: 0 0 14px color-mix(in srgb, var(--cat-trips-accent) 35%, transparent);
}

.content-loading--food .content-loading__bar {
	background: linear-gradient(
		90deg,
		#fff4e8,
		var(--cat-food-accent),
		color-mix(in srgb, var(--cat-food-accent) 65%, #fde68a)
	);
	box-shadow: 0 0 12px color-mix(in srgb, var(--cat-food-accent) 28%, transparent);
	animation-duration: 1.05s;
}

.content-loading--experiences .content-loading__bar {
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--cat-experiences-accent) 15%, transparent),
		var(--cat-experiences-accent),
		color-mix(in srgb, #a78bfa 40%, var(--cat-experiences-accent))
	);
	box-shadow: 0 0 16px color-mix(in srgb, var(--cat-experiences-accent) 32%, transparent);
	animation-duration: 1.28s;
}

.content-loading--all .content-loading__bar {
	width: 48%;
	background: linear-gradient(
		90deg,
		var(--cat-trips-accent),
		var(--cat-food-accent),
		var(--cat-experiences-accent),
		color-mix(in srgb, var(--secondary-blue) 65%, #7dd3fc),
		var(--cat-trips-accent)
	);
	background-size: 280% 100%;
	animation:
		content-loading-shuttle 1.22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite,
		content-loading-bg-flow 2.4s linear infinite;
	box-shadow: 0 0 12px color-mix(in srgb, var(--accent-orange) 22%, transparent);
}

@keyframes content-loading-shuttle {
	0% {
		transform: translateX(-115%);
	}
	100% {
		transform: translateX(290%);
	}
}

@keyframes content-loading-bg-flow {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 100% 50%;
	}
}

@keyframes content-loading-glyph-food {
	0%,
	100% {
		transform: translateY(0) scale(1);
	}
	45% {
		transform: translateY(-3px) scale(1.06);
	}
}

@keyframes content-loading-glyph-suitcase {
	0%,
	100% {
		transform: translateY(0) translateX(0) rotate(-5deg);
	}
	33% {
		transform: translateY(-5px) translateX(3px) rotate(4deg);
	}
	66% {
		transform: translateY(-2px) translateX(-3px) rotate(-3deg);
	}
}

@keyframes content-loading-glyph-mappin {
	0%,
	100% {
		transform: translateY(0) scale(1);
	}
	40% {
		transform: translateY(-6px) scale(1.08);
	}
	70% {
		transform: translateY(-2px) scale(1.03);
	}
}

@keyframes content-loading-glyph-newspaper {
	0%,
	100% {
		transform: translateY(0) rotate(-4deg);
		opacity: 0.88;
	}
	50% {
		transform: translateY(-4px) rotate(3deg);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.content-loading__bar {
		animation: none;
		width: 72%;
		margin: 0 auto;
		transform: none;
		opacity: 0.9;
	}

	.content-loading--all .content-loading__bar {
		background-position: 40% 50%;
	}

	.content-loading__glyph {
		animation: none;
	}
}

/* ============================================
   Card listing: anteprima senza immagine (per categoria)
   ============================================ */

.card-img-placeholder--default {
	position: relative;
}

.card-img-placeholder--default::before {
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	line-height: 1;
	pointer-events: none;
	font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.results-section .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--trips,
#itinerary-related-articles .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--trips {
	background: linear-gradient(
		140deg,
		color-mix(in srgb, var(--cat-trips-accent) 30%, var(--surface-raised)) 0%,
		color-mix(in srgb, var(--secondary-blue) 22%, var(--surface)) 100%
	);
}

.results-section .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--trips::before,
#itinerary-related-articles .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--trips::before {
	content: '\f5c1';
	color: color-mix(in srgb, var(--cat-trips-accent) 42%, rgba(15, 53, 88, 0.2));
}

.results-section .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--food,
#itinerary-related-articles .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--food {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--cat-food-accent) 26%, var(--surface-raised)) 0%,
		color-mix(in srgb, #fde68a 35%, var(--surface)) 100%
	);
}

.results-section .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--food::before,
#itinerary-related-articles .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--food::before {
	content: '\f2e7';
	color: color-mix(in srgb, var(--cat-food-accent) 48%, rgba(15, 53, 88, 0.18));
}

.results-section .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--experiences,
#itinerary-related-articles .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--experiences {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--cat-experiences-accent) 26%, var(--surface-raised)) 0%,
		color-mix(in srgb, #a78bfa 22%, var(--surface)) 100%
	);
}

.results-section .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--experiences::before,
#itinerary-related-articles .card-img-placeholder.card-img-placeholder--default.card-img-placeholder--experiences::before {
	content: '\f276';
	color: color-mix(in srgb, var(--cat-experiences-accent) 45%, rgba(15, 53, 88, 0.2));
}

/* ============================================
   SCROLLBAR CON LOGO (solo desktop >1024px, da JS)
   Nativa nascosta; cerchio piccolo + logo come controllo.
   ============================================ */

@media (min-width: 1025px) {
	html,
	body {
		scrollbar-width: none !important;
		-ms-overflow-style: none !important;
	}

	html::-webkit-scrollbar,
	body::-webkit-scrollbar {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
	}
}

.custom-scrollbar {
	position: fixed;
	right: 0;
	top: 0;
	width: 12px;
	height: 100vh;
	background: transparent;
	z-index: 10000;
	pointer-events: auto;
}

html.lightbox-open .custom-scrollbar,
body.lightbox-open .custom-scrollbar {
	display: none !important;
}

.custom-scrollbar-track {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
	overflow: visible;
}

.custom-scrollbar-track::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 3px;
	margin-left: -1.5px;
	background: rgba(0, 51, 102, 0.1);
	border-radius: 2px;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.custom-scrollbar:hover .custom-scrollbar-track::after {
	opacity: 1;
}

.custom-scrollbar:has(.custom-scrollbar-thumb.dragging) .custom-scrollbar-track::after {
	opacity: 1;
	background: rgba(0, 51, 102, 0.14);
}

/* Cerchio + logo più leggibile */
.custom-scrollbar-thumb {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 30px;
	height: 30px;
	background: var(--surface-raised);
	border-radius: 50%;
	border: 1.5px solid rgba(243, 112, 33, 0.38);
	box-shadow:
		0 2px 10px rgba(0, 51, 102, 0.1),
		0 0 0 1px rgba(255, 255, 255, 0.8) inset;
	cursor: grab;
	transition: box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	top: 0;
	opacity: 0.9;
	touch-action: none;
}

.custom-scrollbar:hover .custom-scrollbar-thumb {
	opacity: 1;
}

.custom-scrollbar-thumb:hover {
	border-color: rgba(243, 112, 33, 0.65);
	box-shadow:
		0 2px 12px rgba(243, 112, 33, 0.2),
		0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.custom-scrollbar-logo {
	width: 18px;
	height: 18px;
	background-image: url('../assets/images/intabiconte_logo.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	pointer-events: none;
	will-change: transform;
	filter: drop-shadow(0 0.5px 1px rgba(0, 51, 102, 0.2));
}

/* Durante drag: solo stato visivo, stesse dimensioni (niente scatto offset) */
.custom-scrollbar-thumb.dragging {
	cursor: grabbing;
	border-color: var(--accent-orange);
	box-shadow:
		0 2px 12px rgba(243, 112, 33, 0.25),
		0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

/* Attenzione iniziale sul thumb (come versione originale) */
@keyframes scroll-pulse {
	0%, 100% {
		box-shadow:
			0 2px 8px rgba(0, 51, 102, 0.08),
			0 0 0 1px rgba(255, 255, 255, 0.75) inset;
	}
	50% {
		box-shadow:
			0 4px 14px rgba(243, 112, 33, 0.2),
			0 0 0 1px var(--border-subtle) inset;
	}
}

@keyframes scroll-to-top-pulse-hover {
	0%, 100% {
		transform: translateY(0) scale(1);
		box-shadow:
			0 4px 14px rgba(0, 51, 102, 0.18),
			0 0 0 1px rgba(255, 255, 255, 0.25) inset;
	}
	50% {
		transform: translateY(0) scale(1.035);
		box-shadow:
			0 8px 22px rgba(0, 77, 153, 0.22),
			0 0 0 1px rgba(255, 255, 255, 0.3) inset;
	}
}

/* Pulsante "Top" — torna in cima (tutte le viewport) */
.scroll-to-top-btn {
	position: fixed;
	z-index: 9999;
	right: max(1rem, env(safe-area-inset-right, 0px));
	bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	color: var(--text-light);
	background: linear-gradient(
		145deg,
		color-mix(in srgb, var(--primary-blue) 72%, white 28%) 0%,
		var(--primary-blue) 42%,
		var(--secondary-blue) 100%
	);
	border: none;
	border-radius: 50%;
	box-shadow:
		0 4px 16px rgba(0, 51, 102, 0.2),
		0 0 0 1px rgba(255, 255, 255, 0.2) inset;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(10px);
	transition:
		opacity 0.28s ease,
		visibility 0.28s ease,
		transform 0.28s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

.scroll-to-top-btn.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

/* Desktop con mouse: più discreto a riposo, pieno solo in hover / focus */
@media (hover: hover) and (pointer: fine) {
	.scroll-to-top-btn.is-visible {
		opacity: 0.62;
		filter: saturate(0.92);
		transition:
			opacity 0.22s ease,
			filter 0.22s ease,
			visibility 0.28s ease,
			transform 0.28s ease,
			box-shadow 0.2s ease,
			background 0.2s ease;
	}

	.scroll-to-top-btn.is-visible:hover {
		opacity: 1;
		filter: none;
		background: linear-gradient(
			145deg,
			color-mix(in srgb, var(--secondary-blue) 40%, white 60%) 0%,
			var(--secondary-blue) 38%,
			color-mix(in srgb, var(--secondary-blue) 80%, var(--primary-blue) 20%) 100%
		);
		animation: scroll-to-top-pulse-hover 0.72s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
	}
}

/* Touch / mobile: niente pulsazione (evita effetti strani con :hover “appiccicoso”) */
@media (hover: none), (pointer: coarse) {
	.scroll-to-top-btn.is-visible:hover,
	.scroll-to-top-btn.is-visible:active {
		animation: none;
	}
}

.scroll-to-top-btn.is-visible:active {
	background: linear-gradient(
		145deg,
		#00264d 0%,
		#001a33 100%
	);
}

@media (prefers-reduced-motion: reduce) {
	.scroll-to-top-btn.is-visible:hover {
		animation: none;
		box-shadow:
			0 6px 18px rgba(243, 112, 33, 0.22),
			0 0 0 1px rgba(255, 255, 255, 0.2) inset;
	}
}

.scroll-to-top-btn:focus-visible {
	outline: 2px solid var(--primary-blue);
	outline-offset: 3px;
	opacity: 1;
	filter: none;
}

.scroll-to-top-btn i {
	font-size: 1rem;
	line-height: 1;
	opacity: 0.95;
}

@media (min-width: 1025px) {
	.scroll-to-top-btn {
		right: max(calc(12px + 0.85rem), env(safe-area-inset-right, 0px));
	}
}

/* Mobile / schermi piccoli: pulsante compatto (solo icona, meno ingombro) */
@media (max-width: 640px) {
	.scroll-to-top-btn {
		right: max(0.65rem, env(safe-area-inset-right, 0px));
		bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
		width: 2.6rem;
		height: 2.6rem;
	}

	.scroll-to-top-btn i {
		font-size: 0.92rem;
		margin: 0;
		opacity: 1;
	}

	.scroll-to-top-btn.is-visible:hover,
	.scroll-to-top-btn.is-visible:active {
		animation: none;
	}
}

@media (hover: none), (pointer: coarse) {
	.scroll-to-top-btn:focus {
		outline: none;
	}
}

@media (max-width: 1024px) {
	.custom-scrollbar {
		display: none !important;
	}

	html,
	body {
		scrollbar-width: thin !important;
		-ms-overflow-style: auto !important;
	}

	html::-webkit-scrollbar,
	body::-webkit-scrollbar {
		display: block !important;
		width: 6px !important;
		height: 6px !important;
	}

	html::-webkit-scrollbar-track,
	body::-webkit-scrollbar-track {
		background: rgba(228, 233, 240, 0.95);
	}

	html::-webkit-scrollbar-thumb,
	body::-webkit-scrollbar-thumb {
		background: rgba(243, 112, 33, 0.42);
		border-radius: 3px;
	}
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--heading-color);
	letter-spacing: -0.02em;
	line-height: var(--lh-tight);
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
	box-sizing: border-box;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
	background: transparent;
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
	transition: var(--transition);
	border-bottom: 1px solid transparent;
	will-change: background-color, box-shadow, border-color;
}

header .logo,
header .nav-links a {
	color: var(--text-light);
}

header .logo img {
	height: 40px;
	width: auto;
	filter: brightness(0) invert(1); /* Logo bianco all'inizio */
	transition: var(--transition);
}

header .nav-links a i {
	color: var(--text-light);
}

header.scrolled {
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	box-shadow: var(--shadow-sm);
	border-bottom: 1px solid var(--border-subtle);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

/* Con header trasparente (scroll in alto): niente ombra sul nav — altrimenti resta
   una striscia visibile sotto la barra (regola nav in @media sotto 576px). */
header:not(.scrolled) nav {
	box-shadow: none;
}

header.scrolled .logo {
	color: var(--primary-blue);
}

header.scrolled .logo img {
	filter: none;
}

header.scrolled .nav-links a {
	color: var(--text-primary);
}

header.scrolled .logo i,
header.scrolled .nav-links a i {
	color: var(--accent-orange);
}

header .search-form {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	padding: 3px 10px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: var(--transition);
	position: relative;
}

header .search-form input {
	background: transparent;
	border: none;
	outline: none;
	padding: 2px 6px;
	font-family: inherit;
	font-size: 0.8125rem;
	line-height: 1.25;
	width: 140px;
	color: var(--text-light);
	transition: width 0.35s ease;
}

header .search-form input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

header .search-form button {
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--text-light);
	font-size: 0.8125rem;
}

@media (min-width: 993px) {
	header .search-form button {
		min-width: 34px;
		min-height: 34px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border-radius: 8px;
	}
}

header.scrolled .search-form {
	background: var(--input-bg);
	border-color: var(--border-subtle);
}

header.scrolled .search-form input {
	color: var(--text-primary);
}

header.scrolled .search-form input::placeholder {
	color: var(--text-muted);
}

header.scrolled .search-form button {
	color: var(--text-muted);
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 72px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.8rem;
	font-family: var(--font-logo);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: var(--transition);
}

.logo span {
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
}

.logo img {
	height: 40px;
	width: auto;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 32px;
}

@media (max-width: 1200px) {
	.nav-links {
		gap: 18px;
	}

	.nav-links a {
		font-size: 0.82rem;
	}
}

.nav-links a {
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent-orange);
	transition: var(--transition);
}

.nav-links a:hover::after {
	width: 100%;
}

.nav-links a i {
	color: var(--accent-orange);
}

.nav-links a:hover {
	color: var(--accent-orange);
}

.nav-search {
	display: flex;
	align-items: center;
}

/* Pagina articoli/ricerca (blog): ricerca solo nel pannello filtri, non nei menu */
body[data-search-page] .nav-search,
body[data-search-page] .nav-links__search {
	display: none !important;
}

.nav-start {
	display: flex;
	align-items: center;
	min-width: 0;
	flex-shrink: 0;
}

.nav-end {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.search-form:focus-within {
	border-color: var(--accent-orange);
	box-shadow: 0 0 0 3px var(--focus-ring);
}

@media (min-width: 993px) {
	nav {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}

	/* Blog/articoli: il menu deve restare centrato anche senza ricerca in top bar */
	body[data-search-page] nav.container {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		column-gap: 24px;
	}

	body[data-search-page] nav.container .nav-start {
		display: none;
	}

	body[data-search-page] nav.container .logo {
		grid-column: 1;
		justify-self: start;
	}

	body[data-search-page] nav.container .nav-links {
		grid-column: 2;
		justify-self: center;
		flex: 0 1 auto;
	}

	body[data-search-page] nav.container .nav-end {
		grid-column: 3;
		justify-self: end;
		margin-left: 0;
	}

	nav .nav-start:empty {
		display: none;
	}

	nav .nav-start:not(:empty) {
		display: flex;
		align-items: center;
		flex-shrink: 0;
		order: 0;
		margin-right: 0.35rem;
	}

	nav .logo {
		order: 1;
		flex: 0 0 auto;
	}

	nav .nav-links {
		order: 2;
		flex: 1 1 auto;
		justify-content: center;
	}

	nav .nav-end {
		order: 3;
		display: flex;
		align-items: center;
		gap: 12px;
		flex: 0 0 auto;
		margin-left: 0;
	}

	/* Voce ricerca nel drawer: nascosta in barra desktop */
	.nav-links__search {
		display: none !important;
	}

	.nav-search {
		flex: 0 0 auto;
		margin-left: 0;
	}

	header .search-form:focus-within input {
		width: 260px;
	}
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
	position: relative;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary-blue);
	color: var(--text-light);
	overflow: hidden;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('../assets/images/intabiconte_bali_homepage.jpg') center/cover no-repeat;
	opacity: 60%;
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 800px;
	padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
}

.hero-content h1 {
	font-size: 4.5rem;
	margin-bottom: 24px;
	line-height: 1.1;
	color: var(--text-light);
}

.hero-content p {
	font-size: 1.25rem;
	margin-bottom: 40px;
	opacity: 0.9;
	font-weight: 400;
}

.hero-cta {
	display: flex;
	gap: 16px;
	justify-content: center;
}

/* ============================================
   BUTTONS & CTA
   Touch targets ≥48px per Apple/Google guidelines
   ============================================ */
.btn-primary, .btn-secondary, .btn-accent {
	padding: 14px 32px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: var(--transition);
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	min-height: 48px; /* IMPORTANTE: Minimo 48px per touch-friendly */
	line-height: 1.4;
}

.btn-primary {
	background: var(--accent-orange);
	color: var(--text-light);
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
	background: color-mix(in srgb, var(--accent-orange) 88%, black 12%);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-primary:focus-visible {
	outline: 2px solid var(--accent-orange);
	outline-offset: 3px;
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-secondary {
	background: var(--surface-raised);
	color: var(--text-primary);
	border: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
	background: color-mix(in srgb, var(--surface-raised) 85%, var(--accent-orange) 15%);
	border-color: color-mix(in srgb, var(--accent-orange) 28%, transparent);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-secondary:focus-visible {
	outline: 2px solid var(--accent-orange);
	outline-offset: 3px;
}

.btn-secondary:active {
	transform: translateY(0);
}

.btn-accent {
	background: var(--primary-blue);
	color: var(--text-light);
}

.btn-accent:hover {
	background: color-mix(in srgb, var(--primary-blue) 82%, white 18%);
}

.btn-accent:focus-visible {
	outline: 2px solid var(--accent-orange);
	outline-offset: 3px;
}

.mobile-menu-btn {
	display: none;
	background: transparent;
	border: none;
	color: var(--nav-icon-on-hero);
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 1001;
	transition: var(--transition);
}

header.scrolled .mobile-menu-btn {
	color: var(--nav-icon-on-solid);
}

/* ============================================
   MOBILE MENU
   Breakpoint tablet/mobile - menu hamburger slide-in
   ============================================ */
@media (max-width: 992px) {
	/* Ricerca globale solo nel menu hamburger, non in top bar */
	.nav-end .nav-search {
		display: none !important;
	}

	/* Logo a sinistra, hamburger a destra (anche pagine articolo: indietro è sotto l’header) */
	nav.container {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 0.5rem;
	}

	nav .nav-start:empty {
		display: none;
	}

	nav .logo {
		grid-column: 1;
		justify-self: start;
		text-align: left;
		min-width: 0;
		max-width: min(72vw, 280px);
	}

	nav .logo span {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 100%;
	}

	nav .nav-end {
		grid-column: 2;
		justify-self: end;
		padding-right: max(0px, env(safe-area-inset-right, 0px));
		gap: 0;
	}

	/* Ricerca in cima al drawer: linea sottile, niente “card” pesante */
	.nav-links__search {
		display: block !important;
		list-style: none;
		margin: 0 0 8px 0;
		padding: 0 0 12px 0;
		border-bottom: 1px solid var(--border-subtle);
		width: 100%;
	}

	.nav-drawer-search {
		width: 100%;
	}

	.nav-links .search-form--drawer {
		display: flex;
		align-items: stretch;
		width: 100%;
		background: transparent;
		border: none;
		border-bottom: 1px solid var(--border-subtle);
		border-radius: 0;
		padding: 0 0 6px 0;
		gap: 0;
		position: relative;
		transition: border-color 0.2s ease;
	}

	.nav-links .search-form--drawer:focus-within {
		border-bottom-color: var(--accent-orange);
		box-shadow: none;
	}

	.nav-links .search-form--drawer input {
		flex: 1;
		min-width: 0;
		background: transparent;
		border: none;
		outline: none;
		font-family: inherit;
		font-size: 0.9rem;
		font-weight: 500;
		padding: 10px 8px 10px 0;
		color: var(--text-primary);
		letter-spacing: 0.01em;
	}

	.nav-links .search-form--drawer input::placeholder {
		color: var(--text-muted);
		font-weight: 400;
	}

	.nav-links .search-form--drawer button {
		flex-shrink: 0;
		min-width: 40px;
		min-height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: none;
		border-radius: 8px;
		background: transparent;
		color: var(--text-muted);
		font-size: 0.95rem;
		cursor: pointer;
		transition: color 0.2s ease, background 0.2s ease;
	}

	.nav-links .search-form--drawer button:hover,
	.nav-links .search-form--drawer button:focus-visible {
		color: var(--accent-orange);
		background: color-mix(in srgb, var(--accent-orange) 14%, transparent);
	}

	.nav-links .search-form--drawer .search-results {
		left: 0;
		right: 0;
		margin-top: 6px;
		max-height: min(40vh, 280px);
		z-index: 2;
		border-radius: 10px;
		box-shadow: var(--shadow-lg);
	}

	.nav-links {
		position: fixed;
		top: 0;
		right: -100%;
		width: 85%;
		max-width: 340px;
		height: 100vh;
		background: var(--surface-raised) !important;
		display: flex !important;
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 0;
		transition: transform 0.4s ease-in-out, right 0.4s ease-in-out;
		box-shadow: -8px 0 32px rgba(0, 51, 102, 0.12);
		z-index: 1010;
		margin: 0;
		padding: 90px max(1.25rem, env(safe-area-inset-right, 0px)) max(2rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
		visibility: visible;
		opacity: 1;
		overflow-y: auto;
	will-change: transform;
	}

	.nav-links.active {
		right: 0 !important;
	}

	.nav-links li {
		width: 100%;
		text-align: left;
		margin-bottom: 6px;
	}

	.nav-links li a {
		color: var(--text-primary) !important;
		font-size: 1.2rem;
		font-weight: 700;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 18px;
		padding: 18px 16px;
		width: 100%;
		border-bottom: 1px solid var(--border-subtle);
		border-radius: var(--radius-md);
		min-height: 64px;
		transition:
			transform var(--dur-med) var(--ease-out-soft),
			background-color var(--dur-fast) ease,
			border-color var(--dur-fast) ease,
			color var(--dur-fast) ease;
		backface-visibility: hidden;
	}

	.nav-links li a:hover,
	.nav-links li a:active {
		background: color-mix(in srgb, var(--accent-orange) 12%, var(--surface) 88%);
		border-color: color-mix(in srgb, var(--accent-orange) 35%, transparent);
		transform: translateX(4px);
	}

	.nav-links li:last-child a {
		border-bottom: 1px solid var(--border-subtle);
	}

	.nav-links li a i {
		color: var(--accent-orange) !important;
		width: 32px;
		text-align: center;
		font-size: 1.4rem;
		flex-shrink: 0;
	}

	.mobile-menu-btn {
		display: block;
		z-index: 1011;
		min-width: 48px;
		min-height: 48px;
		padding: 12px;
		border-radius: 10px;
	}

	.mobile-menu-btn:active {
		background: color-mix(in srgb, var(--text-primary) 8%, transparent);
	}

	.menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999;
		display: none;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.menu-overlay.active {
		display: block;
		opacity: 1;
	}

	.hero {
		min-height: 100vh;
		height: auto;
	}

	/* FLUID TYPOGRAPHY: clamp() per scaling fluido senza breakpoint */
	.hero-content h1 {
		font-size: clamp(2.2rem, 8vw, 2.8rem); /* min 2.2rem, ideale 8vw, max 2.8rem */
		margin-bottom: 20px;
		line-height: 1.15;
	}

	.hero-content p {
		font-size: clamp(1rem, 4vw, 1.2rem); /* Scala fluido tra 1rem e 1.2rem */
		margin-bottom: 32px;
		line-height: 1.6;
	}

	.featured-sections {
		padding-top: 60px;
		padding-bottom: 60px;
	}

	.section-header {
		margin-bottom: 40px;
	}

	.section-header h2 {
		font-size: clamp(1.8rem, 6vw, 2.2rem);
	}

	.card-grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.card-info {
		padding: 26px 22px;
	}

	.card .card-info h3 {
		font-size: 1.35rem;
	}

	.card p {
		font-size: 0.95rem;
		line-height: 1.6;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 40px;
		text-align: center;
	}

	.footer-about p {
		margin: 0 auto;
		max-width: 100%;
	}

	.social-icons {
		justify-content: center;
	}

	.social-icons a {
		min-width: 48px;
		min-height: 48px;
		width: 48px;
		height: 48px;
	}
}

@media (max-width: 480px) {
	nav {
		height: 68px;
		padding: 0 16px;
	}

	header .logo {
		gap: 8px;
	}

	header .logo img {
		height: 30px;
	}

	header .logo span { font-size: inherit; }

	.mobile-menu-btn {
		font-size: 1.4rem;
	}
}

@media (max-width: 380px) {
	nav {
		height: 64px;
	}

	header .logo span { font-size: inherit; }

	header .logo img {
		height: 28px;
	}
}

.loading-overlay dotlottie-player {
	width: 300px !important;
	height: 300px !important;
}

@media (max-width: 768px) {
	.loading-overlay dotlottie-player {
		width: min(260px, 65vw) !important;
		height: min(260px, 65vw) !important;
	}
}

@media (max-width: 480px) {
	.loading-overlay dotlottie-player {
		width: min(220px, 60vw) !important;
		height: min(220px, 60vw) !important;
	}
}

@media (max-width: 360px) {
	.loading-overlay dotlottie-player {
		width: min(180px, 55vw) !important;
		height: min(180px, 55vw) !important;
	}
}

/* MOBILE SMALL: Breakpoint per smartphone (iPhone SE, Android standard) */
/* ========================================
   OTTIMIZZAZIONI MOBILE AVANZATE (< 576px)
   ======================================== */

@media (max-width: 576px) {
	/* === NAVIGATION === */
	nav {
		height: 70px;
		padding: 0 18px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	}

	.logo {
		font-size: 1.3rem;
		gap: 10px;
	}

	.logo span {
		display: block;
		font-size: inherit;
		font-weight: inherit;
		letter-spacing: 0.01em;
	}

	.logo img {
		height: 34px;
	}

	.mobile-menu-btn {
		width: 44px;
		height: 44px;
		padding: 10px;
	}

	/* === HERO SECTION === */
	.hero {
		min-height: 100vh;
		padding: 24px 0;
	}

	.hero-content h1 {
		font-size: clamp(2.2rem, 10vw, 2.8rem);
		margin-bottom: 20px;
		line-height: 1.15;
		letter-spacing: -0.02em;
	}

	.hero-content p {
		font-size: clamp(1.05rem, 4.5vw, 1.2rem);
		line-height: 1.7;
		margin-bottom: 32px;
	}

	.hero-cta {
		flex-direction: column;
		gap: 16px;
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}

	.btn-primary, .btn-secondary {
		width: 100%;
		text-align: center;
		min-width: 0;
		min-height: 52px;
		padding: 16px 28px;
		font-size: 1.05rem;
		font-weight: 700;
		border-radius: 12px;
	}

	.featured-sections {
		padding-top: 60px;
		padding-bottom: 60px;
	}

	.section-header {
		margin-bottom: 40px;
	}

	.section-header h2 {
		font-size: clamp(1.9rem, 7vw, 2.2rem);
		margin-bottom: 16px;
		line-height: 1.25;
	}

	.subtitle {
		font-size: 0.8rem;
		letter-spacing: 0.12em;
		margin-bottom: 14px;
	}

	/* === SECTION SEPARATION === */
	section {
		border-bottom: 8px solid var(--surface);
	}

	section:last-of-type {
		border-bottom: none;
	}

	/* === LINKS & INTERACTIVE ELEMENTS (solo target touch, non link nel testo) === */
	.nav-links li a,
	.hero-cta a,
	.footer-links a,
	.social-icons a {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	button:not(.mobile-menu-btn):not(.carousel-btn) {
		min-height: 52px;
		font-size: 1.05rem;
		padding: 16px 28px;
		border-radius: 14px;
	}

	/* === BLOG RESULTS === */
	.results-container {
		gap: 24px;
	}

	.content-preview {
		border: 2px solid var(--border-strong);
		border-radius: 16px;
		padding: 20px;
		margin-bottom: 20px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	}

	.content-preview:active {
		transform: scale(0.98);
	}

	.content-preview h3 {
		font-size: 1.3rem;
		line-height: 1.3;
		margin-bottom: 12px;
	}

	.content-preview p {
		font-size: 1rem;
		line-height: 1.7;
		margin-bottom: 16px;
	}

	.content-preview .meta {
		font-size: 0.9rem;
		color: var(--text-muted);
	}

	/* === RESULTS COUNT & STATS === */
	.results-count,
	.stats-info {
		font-size: 1.05rem;
		padding: 16px 20px;
		border-radius: 12px;
		margin: 20px 0;
	}

	/* === NO RESULTS MESSAGE === */
	.no-results {
		padding: 48px 24px;
		font-size: 1.1rem;
		line-height: 1.75;
		text-align: center;
	}

	.no-results i {
		font-size: 3.5rem;
		margin-bottom: 20px;
		display: block;
	}

	.no-results h3 {
		font-size: 1.5rem;
		margin-bottom: 14px;
	}

	.no-results p {
		font-size: 1.05rem;
		color: var(--text-muted);
	}

	/* === GALLERY & CAROUSEL === */
	.gallery-section {
		padding-top: 40px;
		padding-bottom: 40px;
		margin-top: 40px;
		border-top: 4px solid var(--border-subtle);
	}

	.gallery-title {
		font-size: 1.6rem;
		margin-bottom: 24px;
		text-align: center;
	}

	.carousel-container {
		border-radius: 16px;
		overflow: hidden;
		margin-bottom: 20px;
	}

	.carousel-track img {
		border-radius: 14px;
	}

	.carousel-btn {
		width: 48px;
		height: 48px;
		border-radius: 50%;
		font-size: 1.3rem;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	}

	.carousel-btn:active {
		transform: scale(0.92);
	}

	.carousel-indicators {
		gap: 10px;
		padding: 20px 0;
	}

	.carousel-indicator {
		width: 12px;
		height: 12px;
		border: 2px solid var(--accent-orange);
	}

	.carousel-indicator.active {
		width: 32px;
	}

	/* === IMAGES === */
	img {
		border-radius: 12px;
	}

	.card img,
	.card-img-placeholder {
		border-radius: 14px 14px 0 0;
	}

	figure {
		margin: 28px 0;
	}

	figcaption {
		font-size: 0.95rem;
		padding: 12px 16px;
		text-align: center;
		color: var(--text-muted);
	}

	/* === MAP CONTROLS === */
	.zoom-controls {
		gap: 12px;
	}

	.zoom-btn {
		width: 52px;
		height: 52px;
		font-size: 1.5rem;
		border: 2px solid var(--border-strong);
		border-radius: 12px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	}

	.zoom-btn:active {
		transform: scale(0.92);
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	}

	.map-legend {
		padding: 18px 20px;
		border-radius: 14px;
		font-size: 1rem;
		border: 2px solid var(--border-strong);
		gap: 16px;
	}

	.legend-item {
		font-size: 1rem;
		gap: 10px;
	}

	.legend-color {
		width: 28px;
		height: 28px;
		border-radius: 6px;
		border: 2px solid rgba(0, 0, 0, 0.1);
	}

	/* === BADGES (tag hashtag sulle card: .card-tags .tag, regole sotto in blocco 768px) === */
	.badge {
		padding: 8px 16px;
		font-size: 0.95rem;
		border-radius: 20px;
		min-height: 36px;
		display: inline-flex;
		align-items: center;
		gap: 8px;
	}

	.category-badge {
		font-size: 0.9rem;
		padding: 6px 14px;
		letter-spacing: 0.05em;
	}

	/* === BREADCRUMBS === */
	.breadcrumb {
		font-size: 1rem;
		padding: 16px 20px;
		margin-bottom: 24px;
	}

	.breadcrumb a {
		min-height: 32px;
		padding: 4px 8px;
		border-radius: 6px;
	}

	.breadcrumb a:active {
		background: var(--border-subtle);
	}

	/* === LOADING STATES === */
	.loading-overlay {
		backdrop-filter: blur(4px);
	}

	.spinner {
		width: 60px;
		height: 60px;
		border-width: 4px;
	}

	.loading-text {
		font-size: 1.1rem;
		margin-top: 20px;
	}

	/* === TOOLTIPS & POPUPS === */
	.tooltip {
		font-size: 1rem;
		padding: 12px 18px;
		border-radius: 10px;
		max-width: 280px;
		line-height: 1.5;
	}

	.social-icons a {
		width: 52px;
		height: 52px;
		font-size: 1.4rem;
		border-radius: 12px;
	}

	.social-icons a:active {
		transform: scale(0.92);
	}

	/* === PAGINATION === */
	.pagination {
		gap: 10px;
		margin: 40px 0;
	}

	.page-btn {
		min-width: 48px;
		min-height: 48px;
		font-size: 1.05rem;
		border-radius: 10px;
		border: 2px solid var(--border-strong);
	}

	.page-btn:active {
		transform: scale(0.94);
	}

	.page-btn.active {
		border-color: var(--accent-orange);
		background: var(--accent-orange);
		color: white;
		font-weight: 700;
	}

	/* === ACCORDIONS & COLLAPSIBLES === */
	.accordion-header {
		min-height: 60px;
		padding: 18px 20px;
		font-size: 1.1rem;
		border-radius: 12px;
	}

	.accordion-header:active {
		background: var(--surface);
	}

	.accordion-content {
		padding: 20px;
		font-size: 1.05rem;
		line-height: 1.75;
	}

	/* === TABLES (se presenti) === */
	table {
		font-size: 1rem;
		border-radius: 12px;
		overflow: hidden;
	}

	th,
	td {
		padding: 14px 16px;
		min-height: 52px;
	}

	th {
		font-size: 1rem;
		font-weight: 700;
	}

	/* === END MOBILE OPTIMIZATIONS === */
}

/* ============================================
   CATEGORY TILES (3-column layout)
   Usato in homepage e pagine nazione
   ============================================ */
.category-tiles-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 40px 0;
}

.category-tile {
	background: var(--surface);
	padding: 40px 20px;
	border-radius: 16px;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
	border: 1px solid var(--border-subtle);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	box-shadow: var(--shadow-sm);
}

.category-tile:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
	border-color: var(--accent-orange);
}

.category-tile i {
	font-size: 2.5rem;
	color: var(--accent-orange);
}

.category-tile h3 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	margin: 0;
	color: var(--heading-color);
}

.category-tile p {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin: 0;
}

/* ============================================
   SIDE PANEL / DRAWER
   ============================================ */
.side-panel {
	position: fixed;
	top: 0;
	right: -100%;
	width: 400px;
	max-width: 90%;
	height: 100vh;
	background: var(--surface-raised);
	z-index: 2000;
	box-shadow: -12px 0 32px rgba(0, 51, 102, 0.12);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	will-change: transform;
}

.side-panel.active {
	right: 0;
}

.side-panel-header {
	padding: 24px;
	border-bottom: 1px solid var(--border-subtle);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.side-panel-header h2 {
	font-size: 1.5rem;
	margin: 0;
}

.close-panel-btn {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-muted);
	transition: var(--transition);
}

.close-panel-btn:hover {
	color: var(--accent-orange);
}

.side-panel-content {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
}

.panel-resource-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.panel-resource-item {
	margin-bottom: 16px;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid var(--border-subtle);
	transition: var(--transition);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 16px;
}

.panel-resource-item:hover {
	border-color: var(--accent-orange);
	background: var(--light-blue);
}

.panel-resource-item img {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	object-fit: cover;
}

.panel-resource-info h4 {
	font-family: var(--font-sans);
	font-size: 1rem;
	margin: 0 0 4px 0;
	color: var(--heading-color);
}

.panel-resource-info p {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin: 0;
}

/* CATEGORY TILES MOBILE: Grid da 3 colonne → 1 colonna su tablet/mobile */
@media (max-width: 768px) {
	.category-tiles-container {
		grid-template-columns: 1fr; /* Stack verticale su mobile */
		gap: 26px;
	}

	.category-tile {
		padding: 38px clamp(1.25rem, 4vw, 1.75rem);
	}

	.category-tile i {
		font-size: 2.2rem;
	}

	.category-tile h3 {
		font-size: 1.2rem;
	}

	.category-tile p {
		font-size: 1.02rem;
		line-height: 1.65;
	}

	.side-panel {
		width: 100%;
		max-width: 100%;
	}

	.side-panel-header {
		padding: 20px;
	}

	.side-panel-header h2 {
		font-size: 1.3rem;
	}

	.close-panel-btn {
		min-width: 44px;
		min-height: 44px;
		font-size: 1.4rem;
	}

	.side-panel-content {
		padding: 20px;
	}

	.panel-resource-item {
		padding: 14px;
		gap: 14px;
	}

	.panel-resource-item img {
		width: 70px;
		height: 70px;
	}

	.panel-resource-info h4 {
		font-size: 1.05rem;
	}

	.panel-resource-info p {
		font-size: 0.9rem;
	}
}

@media (max-width: 576px) {
	/* === CARDS & TILES === */
	.card-grid {
		gap: 24px;
	}

	.card {
		border-radius: 16px;
		border: 2px solid var(--border-strong);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
		margin-bottom: 8px;
	}

	.card:active {
		transform: scale(0.98);
	}

	.card-content {
		padding: 24px 20px;
	}

	.card-content h3 {
		font-size: 1.3rem;
		margin-bottom: 12px;
		line-height: 1.3;
	}

	.card-content p {
		font-size: 1rem;
		line-height: 1.65;
		color: var(--text-muted);
		margin-bottom: 16px;
	}

	.card-img-placeholder {
		height: 220px;
		border-radius: 14px 14px 0 0;
	}

	.category-tiles-container {
		gap: 26px;
	}

	.category-tile {
		padding: 40px clamp(1.25rem, 5vw, 1.85rem);
		border: 2px solid var(--border-strong);
		border-radius: 16px;
		min-height: 140px;
	}

	.category-tile:active {
		transform: scale(0.97);
	}

	.category-tile i {
		font-size: 2.8rem;
		margin-bottom: 16px;
	}

	.category-tile h3 {
		font-size: 1.25rem;
		line-height: 1.3;
	}

	.category-tile p {
		font-size: 0.95rem;
		line-height: 1.6;
		margin-top: 10px;
	}
}

/* ============================================
   MARKDOWN CONTENT
   Styling per articoli e contenuti dinamici
   ============================================ */
.markdown-body {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-dark);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-family: var(--font-display);
	color: var(--heading-color);
	line-height: 1.3;
}

/* FLUID HEADINGS: Scale proporzionate per tutti gli schermi */
.markdown-body h1 {
	font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.markdown-body h2 {
	font-size: clamp(1.5rem, 4.5vw, 2rem);
}

.markdown-body h3 {
	font-size: clamp(1.25rem, 4vw, 1.65rem);
}

.markdown-body p {
	margin-bottom: 1.5rem;
	line-height: 1.75;
}

.markdown-body ul,
.markdown-body ol {
	margin-bottom: 1.5rem;
	padding-left: 1.8rem;
}

.markdown-body li {
	margin-bottom: 0.6rem;
	line-height: 1.7;
}

.markdown-body pre,
.markdown-body code {
	font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
}

.markdown-body code {
	background: var(--surface-raised);
	padding: 0.12em 0.4em;
	border-radius: 6px;
	font-size: 0.88em;
	border: 1px solid var(--border-subtle);
}

.markdown-body pre {
	background: var(--surface-raised);
	border: 1px solid var(--border-subtle);
	color: var(--text-primary);
}

/* Esclude miniature itinerario (data-itinerary-thumb-img), altrimenti height:auto le mostra intere */
.markdown-body img:not([data-itinerary-thumb-img]) {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 2rem 0;
	box-shadow: var(--shadow-md);
}

/*
 * Itinerario: thumb contrassegnate da data-itinerary-thumb-img (impostato da itinerary-body-render.js).
 */
.markdown-body img[data-itinerary-thumb-img],
.markdown-body .itinerary-part__thumb img[data-itinerary-thumb-img],
.markdown-body .itinerary-part__thumb-inner img[data-itinerary-thumb-img] {
	width: 300px !important;
	height: 300px !important;
	max-width: 300px !important;
	max-height: 300px !important;
	min-height: 0 !important;
	min-width: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 10px;
	display: block !important;
	box-sizing: border-box !important;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
}

/* Foto ancora nel primo paragrafo del body (marked non in thumb): riquadro fisso + testo che fluisce */
article#markdown-content.markdown-body .itinerary-part--with-media .itinerary-part__body > p:first-child > img:only-child:not([data-itinerary-thumb-img]),
article#markdown-content.markdown-body .itinerary-part--with-media .itinerary-part__body > p:first-child > a:only-child > img:only-child:not([data-itinerary-thumb-img]) {
	float: left;
	max-width: 300px !important;
	max-height: 300px !important;
	width: 300px !important;
	height: 300px !important;
	min-height: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	margin: 0 1rem 0.75rem 0 !important;
	box-shadow: var(--shadow-md);
	border-radius: 10px;
}

/* 769–1100px: thumb più stretta (dopo le regole base 300px così vince la cascata) */
@media (max-width: 1100px) and (min-width: 769px) {
	.markdown-body img[data-itinerary-thumb-img],
	.markdown-body .itinerary-part__thumb img[data-itinerary-thumb-img],
	.markdown-body .itinerary-part__thumb-inner img[data-itinerary-thumb-img] {
		width: 240px !important;
		height: 240px !important;
		max-width: 240px !important;
		max-height: 240px !important;
	}

	article#markdown-content.markdown-body .itinerary-part--with-media .itinerary-part__body > p:first-child > img:only-child:not([data-itinerary-thumb-img]),
	article#markdown-content.markdown-body .itinerary-part--with-media .itinerary-part__body > p:first-child > a:only-child > img:only-child:not([data-itinerary-thumb-img]) {
		max-width: 240px !important;
		max-height: 240px !important;
		width: 240px !important;
		height: 240px !important;
	}
}

/* block + height:0 evita strisce/buchi su WebKit (display:table + clear poteva lasciare una riga “bianca”) */
article#markdown-content.markdown-body .itinerary-part--with-media .itinerary-part__body::after {
	content: '';
	display: block;
	clear: both;
	height: 0;
	line-height: 0;
	font-size: 0;
	overflow: hidden;
}

@media (max-width: 768px) {
	.markdown-body {
		font-size: 1.08rem;
		line-height: 1.78;
	}

	.markdown-body h1,
	.markdown-body h2,
	.markdown-body h3 {
		margin-top: 1.5rem;
		line-height: 1.25;
	}

	.markdown-body p {
		margin-bottom: 1.25rem;
	}

	.markdown-body ul,
	.markdown-body ol {
		padding-left: 1.65rem;
	}

	.markdown-body img:not([data-itinerary-thumb-img]) {
		border-radius: 10px;
		margin: 1.5rem 0;
	}

	/* Thumb itinerario: riempie il riquadro quadrato a tutta larghezza (dimensioni dal wrapper) */
	.markdown-body img[data-itinerary-thumb-img],
	.markdown-body .itinerary-part__thumb img[data-itinerary-thumb-img],
	.markdown-body .itinerary-part__thumb-inner img[data-itinerary-thumb-img] {
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		min-width: 0 !important;
		min-height: 0 !important;
		object-fit: cover !important;
		object-position: center center !important;
		margin: 0 !important;
		border-radius: inherit;
		cursor: pointer;
		touch-action: manipulation;
		-webkit-user-select: none;
		user-select: none;
	}

	/* Foto solo nel body del blocco: stesso trattamento su mobile (quadrato larghezza colonna) */
	article#markdown-content.markdown-body .itinerary-part--with-media .itinerary-part__body > p:first-child > img:only-child:not([data-itinerary-thumb-img]),
	article#markdown-content.markdown-body .itinerary-part--with-media .itinerary-part__body > p:first-child > a:only-child > img:only-child:not([data-itinerary-thumb-img]) {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		aspect-ratio: 1 / 1 !important;
		max-height: none !important;
		object-fit: cover !important;
		object-position: center center !important;
		border-radius: 12px;
	}

	.markdown-body pre {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
		padding: 14px 16px;
		font-size: 0.9rem;
		line-height: 1.55;
		border-radius: 10px;
	}
}

@media (max-width: 576px) {
	body {
		font-size: 17px;
		line-height: 1.68;
	}

	.markdown-body {
		font-size: 1.08rem;
		line-height: 1.78;
	}

	.markdown-body h1 {
		font-size: clamp(1.9rem, 8vw, 2.3rem);
		margin-top: 2.5rem;
		margin-bottom: 1.25rem;
		line-height: 1.2;
	}

	.markdown-body h2 {
		font-size: clamp(1.6rem, 7vw, 1.9rem);
		margin-top: 2rem;
		margin-bottom: 1rem;
		line-height: 1.25;
	}

	.markdown-body h3 {
		font-size: clamp(1.35rem, 6vw, 1.6rem);
		margin-top: 1.75rem;
		margin-bottom: 0.875rem;
		line-height: 1.3;
	}

	.markdown-body p {
		margin-bottom: 1.5rem;
		line-height: 1.8;
		font-size: 1.05rem;
	}

	.markdown-body ul,
	.markdown-body ol {
		padding-left: 1.65rem;
		margin-bottom: 1.75rem;
	}

	.markdown-body li {
		margin-bottom: 0.875rem;
		line-height: 1.75;
		font-size: 1.05rem;
	}

	.markdown-body strong {
		font-weight: 700;
		color: var(--text-primary);
	}

	.markdown-body a {
		color: var(--accent-orange);
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

/* Dynamic Pages Helpers */
.scrolled .logo img {
	filter: none;
}

/* Global Responsive Optimizations */
html {
	scroll-behavior: smooth;
}

@media (max-width: 768px) {
	html {
		scroll-padding-top: 70px;
	}
}

img {
	display: block;
}

img:not([data-itinerary-thumb-img]) {
	max-width: 100%;
	height: auto;
}

/* Miniature itinerario: 300px desktop largo; 240px tra 769–1100px; ≤768px full-width (JS allineato) */
img[data-itinerary-thumb-img],
.itinerary-part__thumb img[data-itinerary-thumb-img],
.itinerary-part__thumb-inner img[data-itinerary-thumb-img] {
	width: 300px !important;
	height: 300px !important;
	max-width: 300px !important;
	max-height: 300px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
	box-sizing: border-box !important;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
}

@media (max-width: 1100px) and (min-width: 769px) {
	img[data-itinerary-thumb-img],
	.itinerary-part__thumb img[data-itinerary-thumb-img],
	.itinerary-part__thumb-inner img[data-itinerary-thumb-img] {
		width: 240px !important;
		height: 240px !important;
		max-width: 240px !important;
		max-height: 240px !important;
	}
}

@media (max-width: 768px) {
	img[data-itinerary-thumb-img],
	.itinerary-part__thumb img[data-itinerary-thumb-img],
	.itinerary-part__thumb-inner img[data-itinerary-thumb-img] {
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		min-width: 0 !important;
		min-height: 0 !important;
		object-fit: cover !important;
		object-position: center center !important;
		cursor: pointer;
		touch-action: manipulation;
		-webkit-user-select: none;
		user-select: none;
	}
}

/* Mobile First Hero */
.hero {
	height: 100vh;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-content h1 {
	font-size: clamp(2.2rem, 8vw, 4.5rem);
	line-height: 1.1;
	margin-bottom: 1.5rem;
}

.hero-content p {
	font-size: clamp(1rem, 4vw, 1.25rem);
	max-width: 600px;
	margin: 0 auto 2.5rem;
}

@media (max-width: 768px) {
	.hero-cta {
		flex-direction: column;
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}

	.btn-primary, .btn-secondary {
		width: 100%;
		text-align: center;
	}
}

/* Improved Typography & Spacing */
body {
	font-size: var(--text-body);
	color: var(--text-primary);
}

h2 {
	font-size: clamp(2rem, 5vw, 3rem);
}

.section-header {
	margin-bottom: clamp(40px, 10vw, 80px);
}

/* Flex Grid Improvements */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

@media (max-width: 480px) {
	.card-grid {
		grid-template-columns: 1fr;
	}
}

/* Search UI Helpers */
.search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--surface);
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	margin-top: 10px;
	max-height: 400px;
	overflow-y: auto;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	pointer-events: none;
	will-change: opacity, transform;
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.search-results.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}

/* SEARCH RESULTS: Touch-friendly con height minima per facile selezione */
.search-item {
	padding: 16px 20px;
	border-bottom: 1px solid var(--border-subtle);
	cursor: pointer;
	transition: background 0.2s;
	min-height: 48px;
	box-sizing: border-box;
	min-height: 64px; /* TOUCH TARGET: Altezza minima per tap facile */
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.search-item:last-child {
	border-bottom: none;
}

.search-item:hover {
	background: var(--surface-raised);
}

.search-item:active {
	background: var(--surface-raised);
}

.search-item h4 {
	margin: 0 0 6px 0;
	color: var(--heading-color);
	font-size: 1rem;
	line-height: 1.3;
}

.search-item p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.4;
}

@media (max-width: 768px) {
	.search-results {
		max-height: 350px;
	}

	.search-item {
		padding: 14px 18px;
		min-height: 60px;
	}

	.search-item h4 {
		font-size: 0.95rem;
	}

	.search-item p {
		font-size: 0.85rem;
	}
}

@media (max-width: 576px) {
	/* === SEARCH & FILTERS === */
	.search-results {
		max-height: 320px;
		margin-top: 10px;
		border-radius: 14px;
		border: 2px solid var(--border-strong);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	}

	.search-item {
		padding: 18px 20px;
		border-bottom: 2px solid var(--border-subtle);
		min-height: 70px;
	}

	.search-item:active {
		background: var(--surface);
	}

	.search-item h4 {
		font-size: 1.1rem;
		margin-bottom: 6px;
		line-height: 1.3;
		color: var(--heading-color);
	}

	.search-item p {
		font-size: 0.95rem;
		line-height: 1.5;
		color: var(--text-muted);
	}

	#global-search-input,
	#search-input {
		min-height: 40px;
		font-size: 0.9375rem;
		padding: 8px 44px 8px 16px;
		border: 2px solid var(--border-strong);
		border-radius: 10px;
		line-height: 1.25;
	}

	#global-search-input::placeholder,
	#search-input::placeholder {
		font-size: 0.875rem;
	}
}

/* ============================================
   FEATURED SECTIONS
   ============================================ */
/* Solo padding verticale: se la sezione ha anche .container, la shorthand
   padding: N 0 annullerebbe il padding orizzontale del container */
.featured-sections {
	padding-top: 120px;
	padding-bottom: 120px;
}

.section-header {
	text-align: center;
	margin-bottom: 80px;
}

.subtitle {
	display: block;
	color: var(--accent-orange);
	font-weight: 700;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 12px;
}

.section-header h2 {
	font-size: var(--text-h2);
	color: var(--heading-color);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

.card {
	background: var(--surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	height: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	cursor: pointer; /* Rende l'intera card cliccabile visivamente */
}

.card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
	border-color: var(--accent-orange);
}

.card[data-type="trips"] {
	--card-accent: var(--cat-trips-accent);
}

.card[data-type="food"] {
	--card-accent: var(--cat-food-accent);
}

.card[data-type="experiences"] {
	--card-accent: var(--cat-experiences-accent);
}

/* Griglia listing: contenimento stacking (placeholder ::before, hover transform) dentro il tassello */
.results-section .card {
	isolation: isolate;
}

/* Articoli (blog / categoria): solo bordo colorato per categoria (niente alone) */
.card[data-type="trips"],
.card[data-type="food"],
.card[data-type="experiences"] {
	border: 1px solid color-mix(in srgb, var(--card-accent) 42%, var(--border-subtle));
	box-shadow: var(--shadow-sm);
}

.card[data-type]:hover {
	border-color: var(--card-accent);
	box-shadow: var(--shadow-lg);
}

.card[data-type] .read-more {
	color: var(--card-accent);
}

.card[data-type] .read-more:hover {
	color: var(--card-accent);
}

/* Homepage — card categorie (Esperienze dal mondo): colori distintivi */
.featured-sections .card--cat-cibo {
	--cat-accent: var(--cat-food-accent);
	--cat-tag-bg: color-mix(in srgb, var(--accent-orange) 22%, var(--surface-raised));
	--cat-tag-text: color-mix(in srgb, var(--accent-orange) 55%, var(--text-primary));
	--cat-img-tint: color-mix(in srgb, var(--accent-orange) 26%, transparent);
}

.featured-sections .card--cat-esperienze {
	--cat-accent: var(--cat-experiences-accent);
	--cat-tag-bg: color-mix(in srgb, var(--secondary-blue) 28%, var(--surface-raised));
	--cat-tag-text: color-mix(in srgb, var(--secondary-blue) 45%, var(--text-primary));
	--cat-img-tint: color-mix(in srgb, var(--secondary-blue) 24%, transparent);
}

.featured-sections .card--cat-viaggi {
	--cat-accent: var(--cat-trips-accent);
	--cat-tag-bg: color-mix(in srgb, var(--cat-trips-accent) 24%, var(--surface-raised));
	--cat-tag-text: color-mix(in srgb, var(--cat-trips-accent) 40%, var(--text-primary));
	--cat-img-tint: rgba(34, 197, 94, 0.22);
}

/* Bordo colorato per categoria sempre visibile (come le card articolo con data-type) */
.featured-sections .card[class*="card--cat-"] {
	border: 1px solid color-mix(in srgb, var(--cat-accent) 40%, var(--border-subtle));
	box-shadow: var(--shadow-sm);
}

.featured-sections .card[class*="card--cat-"]:hover {
	border-color: var(--cat-accent);
}

.featured-sections .card[class*="card--cat-"] .card-info {
	box-shadow: inset 0 3px 0 0 var(--cat-accent);
}

.featured-sections .card[class*="card--cat-"] .card-img-placeholder::after {
	background: linear-gradient(to top, var(--cat-img-tint), transparent 48%),
		rgba(0, 0, 0, 0.04);
}

.featured-sections .card[class*="card--cat-"] .card-tags .tag {
	background: var(--cat-tag-bg);
	color: var(--cat-tag-text);
}

.featured-sections .card--cat-cibo .card-info h3 {
	color: color-mix(in srgb, var(--accent-orange) 72%, var(--text-primary));
}

.featured-sections .card--cat-esperienze .card-info h3 {
	color: color-mix(in srgb, var(--secondary-blue) 55%, var(--text-primary));
}

.featured-sections .card--cat-viaggi .card-info h3 {
	color: color-mix(in srgb, var(--cat-trips-accent) 58%, var(--text-primary));
}

.featured-sections .card[class*="card--cat-"] .read-more {
	color: var(--cat-accent);
}

.featured-sections .card[class*="card--cat-"] .read-more:hover {
	color: var(--cat-accent);
	filter: brightness(0.88);
}

.card-img-placeholder {
	height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	background: var(--surface-raised);
	color: var(--text-muted);
	position: relative;
	overflow: hidden;
}

.card-img-placeholder::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.03);
}

.card-info {
	padding: 32px;
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.card-tags {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 2px;
}

.card-tags::-webkit-scrollbar {
	display: none;
}

.card-tags .tag {
	flex: 0 0 auto;
	max-width: min(9.5rem, 42vw);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--text-muted);
	background: var(--input-bg);
	padding: 4px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.tag {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--text-muted);
	background: var(--input-bg);
	padding: 4px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.category {
	color: var(--card-accent, var(--accent-orange));
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 12px;
	display: inline-block;
}

/* Badge categoria sugli articoli */
.card[data-type] .category {
	padding: 4px 10px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--card-accent) 18%, var(--surface-raised));
	border: 1px solid color-mix(in srgb, var(--card-accent) 32%, transparent);
	margin-bottom: 10px;
}

.card .card-info h3 {
	margin: 0 0 12px;
	font-size: 1.5rem;
	line-height: 1.25;
	min-width: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.card p {
	color: var(--text-muted);
	font-size: 1rem;
	margin-bottom: 24px;
	line-height: 1.5;
}

.read-more {
	color: var(--heading-color);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.875rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: var(--transition);
	min-height: 32px;
	margin-top: auto;
	padding: 12px 0 4px;
	white-space: nowrap;
	flex-shrink: 0;
	align-self: flex-start;
}

.read-more i {
	transition: var(--transition);
}

.read-more:hover {
	color: var(--accent-orange);
}

.read-more:hover i {
	transform: translateX(4px);
}

.read-more:active {
	opacity: 0.8;
}

@media (max-width: 768px) {
	.card-tags {
		gap: 10px;
		margin-bottom: 14px;
		padding-bottom: 4px;
	}

	.card-tags .tag,
	.card-head .tag {
		font-size: 0.8rem;
		padding: 7px 12px;
		border-radius: 6px;
		line-height: 1.35;
		max-width: min(11rem, 48vw);
	}

	.tag {
		font-size: 0.8rem;
		padding: 7px 12px;
		border-radius: 6px;
		line-height: 1.35;
	}

	.card[data-type] .category {
		font-size: 0.82rem;
		padding: 6px 12px;
		line-height: 1.35;
	}

	.card .card-info h3 {
		font-size: clamp(1.28rem, 4.5vw, 1.48rem);
		line-height: 1.28;
	}

	.card p {
		font-size: 1.05rem;
		line-height: 1.62;
		margin-bottom: 20px;
	}

	.read-more {
		font-size: 0.95rem;
		min-height: 44px;
		margin-top: auto;
		padding: 14px 0 8px;
	}
}

/* ============================================
   FOOTER
   ============================================ */
footer {
	background: var(--primary-blue);
	color: var(--text-light);
	padding: 80px 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 80px;
	margin-bottom: 64px;
}

.footer-about h3 {
	font-size: 1.5rem;
	margin-bottom: 24px;
	color: var(--text-light);
}

.footer-about p {
	opacity: 0.8;
	max-width: 400px;
}

.social-icons {
	display: flex;
	gap: 16px;
	margin-top: 32px;
}

.social-icons a {
	color: var(--text-light);
	background: rgba(255, 255, 255, 0.1);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	transition: var(--transition);
	text-decoration: none; /* Rimuove la sottolineatura */
}

.social-icons a:hover {
	background: var(--accent-orange);
	transform: translateY(-4px);
}

.social-icons a[aria-label="Instagram"]:hover,
.social-icons a[aria-label="Instagram"]:focus-visible {
	background: linear-gradient(125deg, #f58529 0%, #dd2a7b 42%, #8134af 100%);
}

.social-icons a[aria-label="TikTok"]:hover,
.social-icons a[aria-label="TikTok"]:focus-visible {
	background: linear-gradient(135deg, #0b0b0f 0%, #111111 100%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.social-icons a[aria-label="Linktree"]:hover,
.social-icons a[aria-label="Linktree"]:focus-visible {
	background: #39e09b;
	color: #0b1f14;
}

.social-icons a[aria-label="YouTube"]:hover,
.social-icons a[aria-label="YouTube"]:focus-visible {
	background: #ff0000;
}

.social-icons a:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 3px;
}

/* ============================================
   LOADING OVERLAY (Airplane Spinner)
   ============================================ */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--background);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	opacity: 0; /* Di base è nascosto */
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
	backdrop-filter: blur(10px);
	will-change: opacity;
}

.loading-overlay.hidden {
	opacity: 0;
	visibility: hidden;
}

.loading-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* PERFORMANCE MOBILE: Rimuove backdrop-filter blur su mobile (pesante su GPU) */
@media (max-width: 768px) {
	.loading-overlay {
		backdrop-filter: none; /* Blur disabilitato per performance migliori */
	}
}

/* Overlay con messaggio (blog, categoria, articolo): Lottie + testo generico */
.loading-overlay.loading-overlay--itinerary {
	background:
		radial-gradient(ellipse 120% 90% at 50% 0%, color-mix(in srgb, var(--primary-blue) 22%, transparent), transparent 58%),
		var(--background);
}

.loading-overlay__itinerary-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-align: center;
	padding: 1.5rem 1.25rem 2rem;
	max-width: min(90vw, 26rem);
}

.loading-overlay__itinerary-tagline {
	font-family: var(--font-sans);
	font-size: clamp(0.88rem, 2.8vw, 1rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--heading-color);
	margin: 0.5rem 0 0;
	line-height: 1.4;
	animation: itineraryLoadTagline 2s ease-in-out infinite;
}

/* Uscita da pagina o navigazione generica: solo animazione, senza copy “contenuto” */
.loading-overlay.loading-overlay--exit .loading-overlay__itinerary-tagline {
	display: none !important;
}

@keyframes itineraryLoadTagline {
	0%,
	100% {
		opacity: 0.55;
	}
	50% {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.loading-overlay__itinerary-tagline {
		animation: none;
		opacity: 0.9;
	}
}

/* Ingresso articolo: Lottie → icona categoria → barra (solo icona+barra con data-overlay-cat) */
.loading-overlay__lottie-wrap {
	display: block;
}

.loading-overlay__cat-icon-wrap {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0.2rem 0 0;
	min-height: clamp(2.5rem, 8vw, 3.25rem);
}

.loading-overlay[data-overlay-cat] .loading-overlay__cat-icon-wrap {
	display: flex;
}

.loading-overlay__cat-icon-wrap .loading-overlay__cat-icon {
	display: none;
	font-size: clamp(2rem, 7.5vw, 2.85rem);
	line-height: 1;
}

.loading-overlay[data-overlay-cat='trips'] .loading-overlay__cat-icon-wrap .loading-overlay__cat-icon--trips,
.loading-overlay[data-overlay-cat='food'] .loading-overlay__cat-icon-wrap .loading-overlay__cat-icon--food,
.loading-overlay[data-overlay-cat='experiences'] .loading-overlay__cat-icon-wrap .loading-overlay__cat-icon--experiences {
	display: block;
}

.loading-overlay[data-overlay-cat='trips'] .loading-overlay__cat-icon-wrap .loading-overlay__cat-icon--trips {
	color: color-mix(in srgb, var(--cat-trips-accent) 78%, var(--heading-color));
	filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--cat-trips-accent) 26%, transparent));
	animation: overlay-cat-suitcase 1.85s ease-in-out infinite;
}

.loading-overlay[data-overlay-cat='food'] .loading-overlay__cat-icon-wrap .loading-overlay__cat-icon--food {
	color: color-mix(in srgb, var(--cat-food-accent) 82%, var(--heading-color));
	filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--cat-food-accent) 22%, transparent));
	animation: overlay-cat-utensils 1.7s ease-in-out infinite;
}

.loading-overlay[data-overlay-cat='experiences'] .loading-overlay__cat-icon-wrap .loading-overlay__cat-icon--experiences {
	color: color-mix(in srgb, var(--cat-experiences-accent) 80%, var(--heading-color));
	filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--cat-experiences-accent) 28%, transparent));
	animation: overlay-cat-map-pin 1.95s ease-in-out infinite;
}

@keyframes overlay-cat-suitcase {
	0%,
	100% {
		transform: translateY(0) translateX(0) rotate(-5deg);
	}
	33% {
		transform: translateY(-6px) translateX(3px) rotate(4deg);
	}
	66% {
		transform: translateY(-3px) translateX(-4px) rotate(-3deg);
	}
}

@keyframes overlay-cat-utensils {
	0%,
	100% {
		transform: translateY(0) scale(1);
	}
	45% {
		transform: translateY(-5px) scale(1.05);
	}
}

@keyframes overlay-cat-map-pin {
	0%,
	100% {
		transform: translateY(0) rotate(-6deg) scale(1);
	}
	50% {
		transform: translateY(-5px) rotate(6deg) scale(1.06);
	}
}

.loading-overlay__cat-progress {
	display: none;
	width: 100%;
	max-width: min(300px, 85vw);
	margin: 0.45rem auto 0;
	box-sizing: border-box;
}

.loading-overlay[data-overlay-cat] .loading-overlay__cat-progress {
	display: block;
}

.loading-overlay__cat-track {
	width: 100%;
	height: 9px;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0, 51, 102, 0.08);
}

.loading-overlay[data-overlay-cat='trips'] .loading-overlay__cat-track {
	background: color-mix(in srgb, var(--cat-trips-accent) 18%, var(--surface));
}

.loading-overlay[data-overlay-cat='food'] .loading-overlay__cat-track {
	height: 10px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--cat-food-accent) 16%, var(--surface));
}

.loading-overlay[data-overlay-cat='experiences'] .loading-overlay__cat-track {
	background: color-mix(in srgb, var(--cat-experiences-accent) 18%, var(--surface));
}

.loading-overlay__cat-bar {
	height: 100%;
	width: 40%;
	border-radius: inherit;
	animation: content-loading-shuttle 1.18s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
	will-change: transform;
}

.loading-overlay[data-overlay-cat='trips'] .loading-overlay__cat-bar {
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--cat-trips-accent) 25%, transparent),
		var(--cat-trips-accent),
		color-mix(in srgb, var(--cat-trips-accent) 45%, #86efac)
	);
	box-shadow: 0 0 14px color-mix(in srgb, var(--cat-trips-accent) 32%, transparent);
}

.loading-overlay[data-overlay-cat='food'] .loading-overlay__cat-bar {
	background: linear-gradient(
		90deg,
		#fff4e8,
		var(--cat-food-accent),
		color-mix(in srgb, var(--cat-food-accent) 62%, #fde68a)
	);
	box-shadow: 0 0 12px color-mix(in srgb, var(--cat-food-accent) 26%, transparent);
	animation-duration: 1.05s;
}

.loading-overlay[data-overlay-cat='experiences'] .loading-overlay__cat-bar {
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--cat-experiences-accent) 18%, transparent),
		var(--cat-experiences-accent),
		color-mix(in srgb, #a78bfa 38%, var(--cat-experiences-accent))
	);
	box-shadow: 0 0 16px color-mix(in srgb, var(--cat-experiences-accent) 28%, transparent);
	animation-duration: 1.26s;
}

@media (prefers-reduced-motion: reduce) {
	.loading-overlay__cat-bar {
		animation: none;
		width: 68%;
		margin: 0 auto;
		transform: none;
	}

	.loading-overlay[data-overlay-cat='trips'] .loading-overlay__cat-icon-wrap .loading-overlay__cat-icon--trips,
	.loading-overlay[data-overlay-cat='food'] .loading-overlay__cat-icon-wrap .loading-overlay__cat-icon--food,
	.loading-overlay[data-overlay-cat='experiences'] .loading-overlay__cat-icon-wrap .loading-overlay__cat-icon--experiences {
		animation: none;
	}
}

.plane-container {
	position: relative;
	width: 150px;
	height: 150px;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* L'aereo ruota attorno al centro del container */
.plane-wrapper {
	position: absolute;
	width: 100%;
	height: 100%;
	animation: planeRotate 2.5s linear infinite;
}

.plane-icon {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%) rotate(90deg); /* Ruotato di 90 gradi per puntare verso destra (direzione oraria) */
	color: var(--accent-orange);
	font-size: 1.8rem;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Scia circolare fluida */
.plane-trail-svg {
	position: absolute;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg); /* Inizia dall'alto */
}

.trail-path {
	fill: none;
	stroke: var(--accent-orange);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 283; /* 2 * PI * 45 (raggio) */
	stroke-dashoffset: 283;
	animation: trailFill 2.5s ease-in-out infinite;
	opacity: 0.4;
}

@keyframes planeRotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes trailFill {
	0% {
		stroke-dashoffset: 283;
	}
	50% {
		stroke-dashoffset: 0;
	}
	100% {
		stroke-dashoffset: -283;
	}
}

/* ============================================
   FOOTER LINKS
   ============================================ */

.footer-links h4 {
	margin-bottom: 24px;
	color: var(--text-light);
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer-links ul {
	list-style: none;
}

.footer-links li {
	margin-bottom: 12px;
}

.footer-links a {
	color: var(--text-light);
	text-decoration: none;
	opacity: 0.7;
	transition: var(--transition);
}

.footer-links a:hover {
	opacity: 1;
	color: var(--accent-orange);
}

.footer-bottom {
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 40px max(var(--page-gutter), env(safe-area-inset-left, 0px)) 0 max(var(--page-gutter), env(safe-area-inset-right, 0px));
	font-size: 0.875rem;
	opacity: 0.6;
}

.footer-bottom i {
	color: var(--accent-orange);
}

/* ============================================
   CONTACT FORM SECTION
   Stile unificato (come homepage): fascia, sfondo e form identici su tutte le pagine.
   ============================================ */
.contact-section {
	--contact-accent-a: var(--accent-orange);
	--contact-accent-b: var(--primary-blue);
	--contact-accent-c: var(--secondary-blue);
	--contact-bg-a: #eef3f9;
	--contact-bg-b: #e6eef7;
	--contact-bg-c: #dfe8f3;

	position: relative;
	isolation: isolate;
	padding: 80px 0;
	overflow: hidden;
	background: linear-gradient(
		155deg,
		var(--contact-bg-a) 0%,
		var(--contact-bg-b) 42%,
		var(--contact-bg-c) 100%
	);
}

.contact-section::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 6px;
	background: linear-gradient(
		90deg,
		var(--contact-accent-a) 0%,
		var(--contact-accent-b) 50%,
		var(--contact-accent-c) 100%
	);
	z-index: 1;
	pointer-events: none;
}

.contact-section::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(ellipse 85% 55% at 100% 0%, color-mix(in srgb, var(--accent-orange) 8%, transparent) 0%, transparent 55%),
		radial-gradient(ellipse 75% 50% at 0% 100%, color-mix(in srgb, var(--primary-blue) 10%, transparent) 0%, transparent 52%);
	pointer-events: none;
	z-index: 0;
}

.contact-section > .container {
	position: relative;
	z-index: 2;
}

.contact-content {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 44px;
	align-items: start;
}

.contact-info h2 {
	font-size: clamp(1.8rem, 5vw, 2.5rem);
	color: var(--heading-color);
	margin-bottom: 16px;
	font-family: var(--font-display);
}

.contact-info p {
	font-size: 1.1rem;
	color: var(--text-muted);
	margin-bottom: 22px;
	line-height: 1.55;
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.98rem;
	color: var(--text-primary);
	line-height: 1.35;
}

.contact-item i {
	font-size: 1.3rem;
	color: var(--contact-accent-a, var(--accent-orange));
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(243, 112, 33, 0.12);
	background: color-mix(in srgb, var(--contact-accent-a, var(--accent-orange)) 14%, transparent);
	border-radius: 50%;
}

.contact-section .contact-form {
	position: relative;
	overflow: hidden;
	background: var(--surface-raised);
	padding: 1.25rem 1.35rem 1.4rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border-subtle);
}

.contact-section .contact-form::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 5px;
	background: linear-gradient(
		90deg,
		var(--contact-accent-a) 0%,
		var(--contact-accent-b) 50%,
		var(--contact-accent-c) 100%
	);
	pointer-events: none;
}

.contact-section .form-row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
	margin-bottom: 0.75rem;
}

.contact-section .form-row--split .form-group {
	margin-bottom: 0;
}

.contact-section .contact-form > .form-group {
	margin-bottom: 0.75rem;
}

.contact-section .contact-form .form-group label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 0.35rem;
}

.contact-section .contact-form .form-group input,
.contact-section .contact-form .form-group textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	font-family: inherit;
	font-size: 0.98rem;
	color: var(--text-primary);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	background: var(--input-bg);
}

.contact-section .contact-form .form-group input::placeholder,
.contact-section .contact-form .form-group textarea::placeholder {
	color: var(--text-muted);
}

.contact-section .contact-form .form-group input:focus,
.contact-section .contact-form .form-group textarea:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--accent-orange) 55%, transparent);
	background: var(--surface);
	box-shadow:
		0 0 0 3px var(--focus-ring),
		0 0 0 1px var(--border-strong);
}

.contact-section .contact-form .form-group textarea {
	resize: none;
	min-height: 110px;
	padding-bottom: 34px;
}

.contact-section .contact-form .btn-submit {
	margin-top: 0.7rem;
}

.contact-section .btn-submit {
	width: 100%;
	min-height: 48px;
	padding: 14px 24px;
	background: linear-gradient(135deg, var(--accent-orange) 0%, #e65a00 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
		transition:
			transform var(--dur-med) var(--ease-out-soft),
			box-shadow var(--dur-med) var(--ease-out-soft),
			filter var(--dur-fast) ease,
			opacity var(--dur-fast) ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 16px rgba(243, 112, 33, 0.3);
	overflow: visible;
}

.contact-section .btn-submit:hover {
	background: linear-gradient(135deg, #e65a00 0%, #d9621c 100%);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(243, 112, 33, 0.4);
}

.contact-section .btn-submit:active {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(243, 112, 33, 0.3);
}

.contact-section .btn-submit:focus-visible {
	outline: 3px solid var(--contact-accent-b);
	outline: 3px solid color-mix(in srgb, var(--contact-accent-b) 65%, white 35%);
	outline-offset: 3px;
}

.contact-section .btn-submit i {
	display: inline-block;
	font-size: 1.1rem;
	transform-origin: 50% 50%;
}

.contact-section .btn-submit:not(.sending):hover i {
	animation: btn-paper-plane-loop 2.15s ease-in-out infinite;
}

.contact-section .btn-submit:not(.sending):hover:active i {
	animation-play-state: paused;
}

@keyframes btn-paper-plane-loop {
	0%,
	11% {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
	40% {
		transform: translate3d(1.55em, -1.4em, 0);
		opacity: 0;
	}
	41% {
		transform: translate3d(-1.55em, 1.4em, 0);
		opacity: 0;
	}
	70% {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
	100% {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
}


	.contact-section .btn-submit.sending {
		opacity: 0.7;
		pointer-events: none;
	}

	.contact-section .btn-submit.sending .btn-text::after {
		content: '...';
		animation: dots 1.5s infinite;
	}

	@keyframes dots {
		0%, 20% { content: '.'; }
		40% { content: '..'; }
		60%, 100% { content: '...'; }
	}

	.contact-section .form-message {
		padding: 16px 20px;
		border-radius: 12px;
		margin-bottom: 20px;
		font-size: 0.95rem;
		font-weight: 600;
		display: flex;
		align-items: center;
		gap: 10px;
		animation: slideIn 0.3s ease;
	}

	@keyframes slideIn {
		from {
			opacity: 0;
			transform: translateY(-10px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.contact-section .form-message.success {
		background: color-mix(in srgb, #22c55e 16%, var(--surface-raised));
		color: color-mix(in srgb, #86efac 85%, var(--text-primary));
		border: 1px solid color-mix(in srgb, #22c55e 35%, transparent);
		align-items: flex-start;
	}

	.contact-section .form-message.success .form-message__body {
		line-height: 1.45;
		min-width: 0;
		flex: 1;
	}

	.contact-section .form-message.success i {
		margin-top: 0.12em;
		flex-shrink: 0;
	}

	.contact-section .form-message.error {
		background: color-mix(in srgb, #f87171 14%, var(--surface-raised));
		color: #fecaca;
		border: 1px solid color-mix(in srgb, #f87171 40%, transparent);
	}

	.contact-section .form-message i {
		font-size: 1.2rem;
	}

	/* Character counter - posizionato dentro la textarea */
	.contact-section .char-counter {
		position: absolute;
		bottom: 16px;
		right: 20px;
		font-size: 0.75rem;
		color: rgba(183, 75, 23, 0.65);
		font-weight: 600;
		background: transparent;
		padding: 0;
		border-radius: 0;
		pointer-events: none;
		z-index: 10;
	}

	.contact-section .char-counter.warning {
		color: rgba(217, 119, 6, 0.75);
	}

	.contact-section .char-counter.error {
		color: rgba(220, 38, 38, 0.8);
	}

@media (max-width: 968px) {
	.contact-content {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.contact-section {
		padding: 60px 0;
	}
}

@media (max-width: 768px) {
	.nav-links { display: none; }
	.hero-content h1 { font-size: 3rem; }
	/* === FOOTER === */
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	footer {
		padding: 70px 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
	}

	.footer-about h3 {
		font-size: 1.4rem;
		margin-bottom: 18px;
	}

	.footer-about p {
		font-size: 1rem;
		line-height: 1.75;
	}

	.social-icons a {
		width: 48px;
		height: 48px;
		font-size: 1.3rem;
	}

	.footer-links h4 {
		font-size: 1rem;
		margin-bottom: 18px;
	}

	.footer-links a {
		font-size: 1rem;
		display: block;
		padding: 12px 0;
		min-height: 44px;
		line-height: 1.5;
	}

	/* === CONTACT FORM === */
	.contact-section {
		padding: 70px 0;
	}

	.contact-content {
		gap: 22px;
	}

	.contact-section .contact-form {
		padding: 1.1rem 1rem 1.2rem;
		border-radius: 18px;
	}

	.contact-section .form-row--split {
		grid-template-columns: 1fr;
		gap: 0.85rem 0;
		margin-bottom: 0.85rem;
	}

	.contact-section .contact-form > .form-group {
		margin-bottom: 0.85rem;
	}

	.contact-section .contact-form .form-group label {
		font-size: 0.85rem;
		margin-bottom: 0.45rem;
	}

	.contact-section .contact-form .form-group input,
	.contact-section .contact-form .form-group textarea {
		padding: 14px 16px;
		font-size: 1rem;
		border: 1px solid rgba(0, 51, 102, 0.12);
		border-radius: 14px;
		min-height: 48px;
	}

	.contact-section .contact-form .form-group input::placeholder,
	.contact-section .contact-form .form-group textarea::placeholder {
		font-size: 1rem;
	}

	.contact-section .contact-form .form-group textarea {
		resize: none;
		min-height: 120px;
		padding-bottom: 34px;
	}

	.contact-section .char-counter {
		bottom: 18px;
		right: 22px;
		font-size: 0.8rem;
	}

	.contact-section .btn-submit {
		min-height: 52px;
		padding: 14px 24px;
		font-size: 1.05rem;
		font-weight: 700;
		border-radius: 14px;
	}

	.contact-section .form-message {
		padding: 18px 22px;
		font-size: 1rem;
		border-radius: 14px;
		margin-top: 20px;
	}

	.contact-section .form-message.success .form-message__body {
		line-height: 1.5;
		font-size: 0.98rem;
	}

	.contact-info h2 {
		font-size: clamp(1.8rem, 7vw, 2rem);
		margin-bottom: 18px;
	}

	.contact-info p {
		font-size: 1.05rem;
		line-height: 1.75;
		margin-bottom: 18px;
	}

	.contact-item {
		padding: 10px 0;
	}

	.contact-item i {
		font-size: 1.6rem;
		width: 48px;
		height: 48px;
	}

	.contact-item h4 {
		font-size: 1.1rem;
	}

	.contact-item p {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.contact-section {
		padding: 50px 0;
	}

	.contact-section .contact-form {
		padding: 18px 16px;
		border-radius: 16px;
	}

	.contact-info h2 {
		font-size: 1.6rem;
	}

	.contact-info p {
		font-size: 1rem;
	}

	.contact-section .char-counter {
		bottom: 14px;
		right: 18px;
		font-size: 0.75rem;
	}
}
