/* ============================================================
   RESET
   ============================================================ */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html,
body {
	height: 100%;
	overscroll-behavior: none;
	overflow: hidden;
}
img {
	max-width: 100%;
	display: block;
}
button {
	font-family: inherit;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}
a {
	text-decoration: none;
	color: inherit;
}

/* ============================================================
   FONT SELF-HOSTED
   ============================================================ */
@font-face {
	font-family: "Bitter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/bitter-400.woff2") format("woff2");
}

@font-face {
	font-family: "Bitter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/bitter-700.woff2") format("woff2");
}

@font-face {
	font-family: "Bitter";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/bitter-800.woff2") format("woff2");
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/manrope-400.woff2") format("woff2");
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/manrope-500.woff2") format("woff2");
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/manrope-600.woff2") format("woff2");
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/manrope-700.woff2") format("woff2");
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/manrope-800.woff2") format("woff2");
}

/* ============================================================
   VARIABILI
   ============================================================ */
:root {
	/* Palette principale */
	--primary: #2a3757;
	--primary-dark: #1e2841;
	--primary-light: #3d4d78;
	--accent: #4a5a8a;

	/* Testo */
	--text: #2c2c2c;
	--text-light: #5a5a5a;

	/* Superfici */
	--bg: #ffffff;
	--bg-alt: #f6f8fb;
	--border: #e3e7ee;

	/* Accenti semantici */
	--wa: #25d366;
	--wa-dark: #1ebe57;
	--star: #f5b301;
	--gold: #d4a017;
	--terracotta: #b8603a;

	/* Palette Guida Picena */
	--gp-terracotta: #d17c47;
	--gp-terracotta-dark: #c15f33;
	--gp-oliva: #9aa26f;
	--gp-cream: #fdf6ee;
	--gp-cream-alt: #f8f2e8;

	/* Ombre */
	--shadow: 0 2px 12px rgba(42, 55, 87, 0.08);
	--shadow-lg: 0 8px 24px rgba(42, 55, 87, 0.12);

	/* Tipografia */
	--font-display: "Bitter", Georgia, "Times New Roman", serif;
	--font-body:
		"Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
		Arial, sans-serif;

	/* Layout */
	--app-max: 540px;
	--header-pad-y: 0.9rem;
	--header-pad-x: 1rem;
	--slide-pad-y-top: 1.75rem;
	--slide-pad-x: 1.35rem;
	--slide-pad-y-bottom: 6.5rem;

	/* Timing interazioni — un unico punto di verità */
	--dur-fast: 0.15s; /* micro-feedback: link, testi */
	--dur-ui: 0.18s; /* bottoni, hover, tap */
	--dur-med: 0.25s; /* cambi di stato visibili */
	--dur-slow: 0.8s; /* transizioni "ampie" (header) */
	--dur-slower: 0.9s; /* logo insegna */
	--dur-modal: 0.3s; /* apertura modali */

	--ease-ui: ease;
	--ease-modal: cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* ============================================================
   BASE
   ============================================================ */
html {
	font-size: clamp(1rem, 0.35vw + 0.85rem, 1.375rem);
}

body {
	font-family: var(--font-body);
	color: var(--text);
	background: var(--bg-alt);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ============================================================
   ICONE (CSS mask + currentColor)
   ============================================================ */
.ico {
	display: inline-block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-image: var(--src);
	mask-image: var(--src);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* Registrazione icone */
.ico-star {
	--src: url(../img/icons/star.svg);
}
.ico-star-half {
	--src: url(../img/icons/star-half-stroke.svg);
}
.ico-location {
	--src: url(../img/icons/location-dot.svg);
}
.ico-whatsapp {
	--src: url(../img/icons/whatsapp.svg);
}
.ico-microchip {
	--src: url(../img/icons/microchip.svg);
}
.ico-warning {
	--src: url(../img/icons/triangle-exclamation.svg);
}
.ico-bolt {
	--src: url(../img/icons/bolt.svg);
}
.ico-car {
	--src: url(../img/icons/car-side.svg);
}
.ico-battery {
	--src: url(../img/icons/battery-full.svg);
}
.ico-bolt-lightning {
	--src: url(../img/icons/bolt-lightning.svg);
}
.ico-screwdriver {
	--src: url(../img/icons/screwdriver-wrench.svg);
}
.ico-book {
	--src: url(../img/icons/book-open.svg);
}
.ico-info {
	--src: url(../img/icons/circle-info.svg);
}
.ico-clock {
	--src: url(../img/icons/clock.svg);
}
.ico-phone {
	--src: url(../img/icons/phone.svg);
}
.ico-cash {
	--src: url(../img/icons/money-bill-wave.svg);
}
.ico-coffee {
	--src: url(../img/icons/mug-hot.svg);
}
.ico-chevron-left {
	--src: url(../img/icons/chevron-left.svg);
}
.ico-chevron-right {
	--src: url(../img/icons/chevron-right.svg);
}
.ico-external {
	--src: url(../img/icons/arrow-up-right-from-square.svg);
}
.ico-piggy {
	--src: url(../img/icons/piggy-bank.svg);
}
.ico-boxes {
	--src: url(../img/icons/boxes-stacked.svg);
}
.ico-helmet {
	--src: url(../img/icons/helmet-safety.svg);
}
.ico-sack {
	--src: url(../img/icons/sack-dollar.svg);
}
.ico-compass {
	--src: url(../img/icons/compass.svg);
}
.ico-shield {
	--src: url(../img/icons/shield-halved.svg);
}
.ico-user {
	--src: url(../img/icons/user.svg);
}
.ico-user-shield {
	--src: url(../img/icons/user-shield.svg);
}
.ico-github {
	--src: url(../img/icons/github.svg);
}
.ico-cookie {
	--src: url(../img/icons/cookie-bite.svg);
}
.ico-heart {
	--src: url(../img/icons/heart.svg);
}
.ico-code {
	--src: url(../img/icons/code.svg);
}
.ico-xmark {
	--src: url(../img/icons/xmark.svg);
}

/* ============================================================
   APP CONTAINER
   ============================================================ */
.app {
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	max-width: var(--app-max);
	margin: 0 auto;
	background: var(--bg);
	overflow: hidden;
}

/* ============================================================
   HEADER — insegna spenta
   ============================================================ */
.header-wrap {
	position: relative;
	flex-shrink: 0;
	z-index: 10;
}

.app-header {
	position: relative;
	background-color: #1a2238;
	padding: var(--header-pad-y) var(--header-pad-x);
	overflow: hidden;
	transition:
		background-color var(--dur-slow) var(--ease-ui),
		box-shadow var(--dur-slow) var(--ease-ui);
}

/* Alone interno diffuso (parte dell'effetto "accesa") */
.app-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse 80% 140% at 50% 50%,
		rgba(190, 215, 255, 0.22) 0%,
		rgba(150, 190, 255, 0.08) 45%,
		rgba(120, 170, 255, 0) 80%
	);
	opacity: 0;
	transition: opacity var(--dur-slower) var(--ease-ui);
	pointer-events: none;
	z-index: 0;
}

/* Stato acceso */
.app-header.is-lit {
	background-color: #354d7d;
	box-shadow:
		0 0 18px rgba(130, 175, 255, 0.45),
		0 0 42px rgba(110, 155, 240, 0.25),
		0 14px 32px -8px rgba(90, 130, 220, 0.35);
	animation: neonFlicker 14s linear infinite;
}

.app-header.is-lit::before {
	opacity: 1;
}

.app-header.is-lit .logo {
	background-color: #ffffff;
	filter: drop-shadow(0 0 1px #ffffff)
		drop-shadow(0 0 4px rgba(220, 235, 255, 0.75))
		drop-shadow(0 0 12px rgba(160, 200, 255, 0.4));
}

/* Flicker realistico da neon vecchio: due micro-sfarfallii per ciclo,
   uno a ~22% e uno a ~64%, il resto del tempo stabile. */
@keyframes neonFlicker {
	0% {
		filter: brightness(1);
	}
	22% {
		filter: brightness(1);
	}
	22.5% {
		filter: brightness(0.9);
	}
	23% {
		filter: brightness(1.04);
	}
	23.5% {
		filter: brightness(0.94);
	}
	24% {
		filter: brightness(1);
	}
	64% {
		filter: brightness(1);
	}
	64.5% {
		filter: brightness(0.87);
	}
	65% {
		filter: brightness(1.05);
	}
	65.5% {
		filter: brightness(0.93);
	}
	66% {
		filter: brightness(1);
	}
	100% {
		filter: brightness(1);
	}
}

.app-header .logo {
	width: min(22rem, 90%);
	aspect-ratio: 738 / 54;
	margin: 0 auto;
	background-color: #e0e7f2;
	-webkit-mask-image: url(../img/elettrauto-ricambi-logo.svg);
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask-image: url(../img/elettrauto-ricambi-logo.svg);
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	transition:
		background-color var(--dur-slower) var(--ease-ui),
		filter var(--dur-slower) var(--ease-ui);
}

/* ============================================================
   DECK
   ============================================================ */
.deck {
	flex: 1;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	user-select: none;
	-webkit-user-select: none;
	cursor: grab;
}

.deck.dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.deck::-webkit-scrollbar {
	display: none;
}

.slide {
	flex: 0 0 100%;
	width: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	background: var(--bg-alt);
	scrollbar-width: none;
}

.slide::-webkit-scrollbar {
	display: none;
}
.slide.white {
	background: #fff;
}

.slide-inner {
	padding: var(--slide-pad-y-top) var(--slide-pad-x) var(--slide-pad-y-bottom);
}

/* ============================================================
   HERO
   ============================================================ */
.slide.hero {
	position: relative;
	overflow-x: hidden;
	background:
		radial-gradient(
			circle 220px at calc(100% - 50px) 50px,
			rgba(42, 55, 87, 0.07) 0%,
			transparent 70%
		),
		radial-gradient(
			circle 260px at 50px calc(100% - 50px),
			rgba(74, 90, 138, 0.05) 0%,
			transparent 70%
		),
		linear-gradient(160deg, #f0f3fa 0%, #ffffff 40%, #f6f8fb 100%);
}

.hero-content {
	position: relative;
	z-index: 1;
	margin: 0 auto;
	text-align: center;
	padding: 1rem 0 0.5rem;
}

/* --- Rating pill --- */
.rating-wrap {
	display: inline-block;
	margin: 0 auto 1.5rem;
	cursor: pointer;
}

.rating-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	background: #fff;
	border: 1px solid #f0e2b5;
	padding: 0.5rem 1.1rem;
	border-radius: 50px;
	overflow: hidden;
	transition:
		transform var(--dur-ui) var(--ease-ui),
		box-shadow var(--dur-ui) var(--ease-ui);
	animation: edgeGlow 2.4s ease-in-out infinite;
}

/* Shimmer diagonale che attraversa la pill */
.rating-pill::after {
	content: "";
	position: absolute;
	top: -50%;
	left: -100%;
	width: 60%;
	height: 200%;
	background: linear-gradient(
		105deg,
		transparent 40%,
		rgba(255, 255, 255, 0.85) 48%,
		rgba(255, 255, 255, 1) 50%,
		rgba(255, 255, 255, 0.85) 52%,
		transparent 60%
	);
	transform: skewX(-20deg);
	animation: glint 4s ease-in-out infinite;
	pointer-events: none;
}

@keyframes edgeGlow {
	0%,
	100% {
		box-shadow:
			0 0 0 0 rgba(245, 179, 1, 0),
			0 2px 6px rgba(212, 160, 23, 0.15);
	}
	50% {
		box-shadow:
			0 0 0 6px rgba(245, 179, 1, 0.2),
			0 4px 16px rgba(245, 179, 1, 0.45);
	}
}

@keyframes glint {
	0% {
		left: -100%;
	}
	50% {
		left: 140%;
	}
	100% {
		left: 140%;
	}
}

.rating-wrap:hover .rating-pill {
	transform: translateY(-1px);
}

.rating-wrap:active .rating-pill {
	transform: translateY(0) scale(0.97);
}

.rating-wrap:focus-visible {
	outline: none;
}

.rating-wrap:focus-visible .rating-pill {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
}

.stars-row {
	display: inline-flex;
	gap: 2px;
	color: var(--star);
}

.stars-row .ico {
	width: 1rem;
	height: 1rem;
}

.rating-value {
	font-weight: 800;
	color: #8a6500;
	font-size: 0.9rem;
	border-left: 1px solid #e8d89c;
	padding-left: 0.55rem;
}

/* --- Titolo --- */
.hero-title {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 8vw, 3.1rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.3px;
	margin-bottom: 1rem;

	/* Gradiente animato */
	background: linear-gradient(
		100deg,
		var(--primary-dark) 0%,
		var(--primary) 25%,
		var(--primary-light) 50%,
		var(--accent) 75%,
		var(--primary) 100%
	);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;

	animation: titleGradient 12s ease-in-out infinite;
}

@keyframes titleGradient {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

/* --- Kicker --- */
.hero-kicker {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.85rem;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2.6px;
	color: var(--terracotta);
	margin: 0 auto 1.5rem;
}

.hero-kicker::before,
.hero-kicker::after {
	content: "";
	height: 1px;
	width: 34px;
	background: var(--terracotta);
	border-radius: 1px;
}

/* --- Sottotitolo --- */
.hero-subtitle {
	font-size: 0.95rem;
	color: var(--text-light);
	margin: 0 auto 1.75rem;
	max-width: 21rem;
	line-height: 1.55;
}

/* --- Location pill --- */
.hero-location {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #fff;
	border: 1px solid var(--border);
	padding: 0.4rem 0.9rem;
	border-radius: 50px;
	font-size: 0.8rem;
	color: var(--text-light);
	font-weight: 600;
	margin-bottom: 1.75rem;
	max-width: 100%;
}

.hero-location .ico {
	width: 0.8125rem;
	height: 0.8125rem;
	color: var(--accent);
}

.hero-location .loc-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.location-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #9aa6be;
	flex-shrink: 0;
	margin-left: 0.15rem;
	transition:
		background var(--dur-med) var(--ease-ui),
		box-shadow var(--dur-med) var(--ease-ui);
}

.location-dot.is-open {
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.location-dot.is-closing-soon {
	background: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.location-dot.is-lunch-break {
	background: #0ea5e9;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.location-dot.is-closed {
	background: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* --- Bottoni --- */
.cta-row {
	display: flex;
	gap: 0.6rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.92rem;
	border: none;
	transition:
		background-color var(--dur-ui) var(--ease-ui),
		transform var(--dur-ui) var(--ease-ui),
		box-shadow var(--dur-ui) var(--ease-ui),
		border-color var(--dur-ui) var(--ease-ui);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0) scale(0.97);
}

.btn .ico {
	width: 1.0625rem;
	height: 1.0625rem;
}

.btn-call {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 4px 12px rgba(42, 55, 87, 0.3);
}

.btn-call:hover {
	background: var(--primary-dark);
}

.btn-wa {
	background: var(--wa);
	color: #fff;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
	background: var(--wa-dark);
}

.btn-ghost {
	background: #fff;
	color: var(--primary);
	border: 1.5px solid var(--primary);
}

.btn-ghost:hover {
	background: #f0f3fa;
}

.btn-full {
	width: 100%;
}

/* ============================================================
   LABEL E TITOLO DI SEZIONE
   ============================================================ */
.slide-label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--accent);
	margin-bottom: 0.75rem;
}

.slide-label .ico {
	width: 0.875rem;
	height: 0.875rem;
	color: var(--gold);
}

.slide-title {
	font-family: var(--font-display);
	font-size: 1.85rem;
	font-weight: 700;
	color: var(--primary);
	line-height: 1.15;
	letter-spacing: -0.4px;
	margin-bottom: 1.1rem;
}

.slide-title.accent-line::after {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	background: var(--gold);
	border-radius: 3px;
	margin-top: 0.65rem;
}

.body-text {
	font-size: 0.92rem;
	color: var(--text-light);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

/* ============================================================
   SERVIZI
   ============================================================ */
.service-featured {
	background: linear-gradient(135deg, var(--primary), var(--primary-light));
	color: #fff;
	border-radius: 16px;
	padding: 1.35rem;
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
	box-shadow: var(--shadow-lg);
}

.featured-icon {
	width: 3rem;
	height: 3rem;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
}

.featured-icon .ico {
	width: 1.5rem;
	height: 1.5rem;
}

.service-featured h3 {
	font-family: var(--font-display);
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
	line-height: 1.25;
	letter-spacing: -0.2px;
}

.service-featured p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.88rem;
	margin: 0;
	line-height: 1.55;
}

.featured-tag {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	padding: 0.15rem 0.6rem;
	border-radius: 20px;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.6rem;
}

.services-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.service-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 1rem;
	box-shadow: var(--shadow);
}

.service-badge {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	background: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
	color: #fff;
}

.service-badge.is-warning {
	background: #ef4444;
}
.service-badge.is-electric {
	background: #f59e0b;
}
.service-badge.is-board {
	background: #3b82f6;
}
.service-badge.is-power {
	background: #22c55e;
}

.service-badge .ico {
	width: 1.15rem;
	height: 1.15rem;
}

.service-card h4 {
	font-family: var(--font-display);
	color: var(--primary);
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.45rem;
	line-height: 1.25;
	letter-spacing: -0.2px;
}

.service-card p {
	font-size: 0.78rem;
	color: var(--text-light);
	margin: 0;
	line-height: 1.5;
}

.service-card.wide {
	grid-column: 1 / -1;
}

.service-card.emergency {
	background: linear-gradient(135deg, #f97316, #ef4444);
	border: none;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.2rem;
	box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3);
}

.service-card.emergency .service-badge {
	background: rgba(255, 255, 255, 0.22);
	margin-bottom: 0;
	flex-shrink: 0;
}

.service-card.emergency h4 {
	color: #fff;
	font-size: 1.05rem;
}

.service-card.emergency p {
	color: rgba(255, 255, 255, 0.92);
}

.emergency-tag {
	display: inline-block;
	background: rgba(255, 255, 255, 0.22);
	padding: 0.1rem 0.5rem;
	border-radius: 20px;
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.35rem;
	color: #fff;
}

/* ============================================================
   STORIA
   ============================================================ */
.timeline {
	position: relative;
	padding-left: 26px;
	margin: 0.5rem 0 2rem;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background: linear-gradient(to bottom, var(--primary), var(--accent));
	border-radius: 2px;
}

.timeline-item {
	position: relative;
	margin-bottom: 1.5rem;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1rem 1.1rem;
	box-shadow: var(--shadow);
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-item::before {
	content: "";
	position: absolute;
	left: -28px;
	top: 1.1rem;
	width: 12px;
	height: 12px;
	background: #fff;
	border: 2px solid var(--primary);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(42, 55, 87, 0.1);
}

.timeline-year {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	padding: 0.15rem 0.6rem;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	letter-spacing: 0.5px;
}

.timeline-item h4 {
	font-family: var(--font-display);
	color: var(--primary);
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 0.3rem;
	letter-spacing: -0.2px;
}

.timeline-item p {
	font-size: 0.85rem;
	color: var(--text-light);
	margin: 0;
	line-height: 1.55;
}

/* ============================================================
   FOTO OFFICINA — SLIDESHOW
   ============================================================ */
.office-photo {
	margin: 0 0 2rem;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	background: var(--bg-alt);
}

.office-photo.office-slideshow {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--bg-alt);
}

.slideshow-track {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.slideshow-track img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.slideshow-track img.is-visible {
	opacity: 1;
}

.slideshow-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.6rem 1rem 0.85rem;
	background: linear-gradient(
		to top,
		rgba(26, 34, 56, 0.85) 0%,
		rgba(26, 34, 56, 0) 100%
	);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	z-index: 2;
}

.caption-text {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.decade-badge {
	position: absolute;
	top: 0.55rem;
	left: 0.55rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(26, 34, 56, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 0.3rem 0.6rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.decade-value {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.5px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	min-width: 2.4em;
	text-align: center;
}

/* Rispetta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.slideshow-track img {
		transition: none;
	}
}

/* ============================================================
   RECENSIONI
   ============================================================ */
.reviews-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 2rem 0 1.1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.reviews-header h3 {
	font-family: var(--font-display);
	color: var(--primary);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	letter-spacing: -0.2px;
}

.reviews-header .reviews-source {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.72rem;
	color: var(--text-light);
	font-weight: 600;
}

.reviews-header .reviews-source .ico {
	width: 0.75rem;
	height: 0.75rem;
	color: var(--star);
}

.reviews-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.review-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 0.95rem 1.1rem;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}

.review-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.review-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
}

.review-avatar {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--primary));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 800;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(42, 55, 87, 0.18);
}

.review-name {
	font-size: 0.83rem;
	font-weight: 700;
	color: var(--primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.review-stars {
	display: inline-flex;
	gap: 1px;
	flex-shrink: 0;
}

.review-stars .ico {
	width: 0.72rem;
	height: 0.72rem;
	color: var(--star);
}

.review-text {
	font-size: 0.87rem;
	color: var(--text);
	line-height: 1.55;
	margin: 0;
	font-style: italic;
}

.review-text::before {
	content: "\201C";
	margin-right: 0.1em;
}

.review-text::after {
	content: "\201D";
	margin-left: 0.1em;
}

.btn-reviews {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
	width: 100%;
	padding: 0.7rem 1rem;
	background: #fff;
	border: 1.5px solid var(--border);
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--primary);
	transition:
		background-color var(--dur-ui) var(--ease-ui),
		border-color var(--dur-ui) var(--ease-ui),
		transform var(--dur-ui) var(--ease-ui);
}

.btn-reviews:hover {
	background: var(--bg-alt);
	border-color: #cdd5e3;
	transform: translateY(-1px);
}

.btn-reviews:active {
	transform: translateY(0) scale(0.97);
}

.btn-reviews .ico {
	width: 0.9rem;
	height: 0.9rem;
	color: currentColor;
}

/* ============================================================
   CONTATTI / INFO
   ============================================================ */
.info-stack {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.info-block {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 1.15rem 1.2rem;
	box-shadow: var(--shadow);
}

.info-block .block-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--accent);
	margin-bottom: 0.85rem;
}

.block-label-left {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.info-block .block-label .ico {
	width: 0.9375rem;
	height: 0.9375rem;
	color: var(--gold);
}

/* ============================================================
   BADGE STATO APERTURA
   ============================================================ */
.open-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.28rem 0.65rem;
	border-radius: 50px;
	font-size: 0.62rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	white-space: nowrap;
	flex-shrink: 0;
	transition:
		background var(--dur-med) var(--ease-ui),
		color var(--dur-med) var(--ease-ui);
}

.open-status-badge .status-dot-small {
	position: relative;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.open-status-badge.is-open .status-dot-small::before,
.open-status-badge.is-closing-soon .status-dot-small::before,
.open-status-badge.is-lunch-break .status-dot-small::before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	opacity: 0.4;
	animation: dotPulseSmall 2.4s ease-out infinite;
	pointer-events: none;
}

@keyframes dotPulseSmall {
	0% {
		transform: scale(0.6);
		opacity: 0.55;
	}
	100% {
		transform: scale(1.8);
		opacity: 0;
	}
}

.open-status-badge.is-open {
	background: #dcfce7;
	color: #15803d;
}

.open-status-badge.is-closing-soon {
	background: #fef3c7;
	color: #b45309;
}

.open-status-badge.is-lunch-break {
	background: #e0f2fe;
	color: #0369a1;
}

.open-status-badge.is-closed {
	background: #fee2e2;
	color: #b91c1c;
}

/* --- Tabella orari --- */
.schedule-list {
	list-style: none;
	padding: 0;
}

.schedule-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.7rem;
	margin: 0 -0.7rem;
	border-bottom: 1px solid var(--border);
	font-size: 0.9rem;
	border-radius: 8px;
}

.schedule-list li:last-child {
	border-bottom: none;
}

.schedule-list .day {
	font-weight: 600;
	color: var(--primary);
}

.schedule-list .time {
	color: var(--text-light);
	text-align: right;
}

.schedule-list .closed {
	color: #c0392b;
	font-weight: 600;
}

/* Tabella orari */
.schedule-list li.is-today {
	background: #eef4fb;
	border-bottom-color: transparent;
}

.schedule-list li.is-today .day {
	color: var(--primary);
	font-weight: 800;
}

.schedule-list li.is-today .time,
.schedule-list li.is-today .closed {
	color: var(--primary);
	font-weight: 600;
}

.today-tag {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	font-size: 0.58rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0.1rem 0.4rem;
	border-radius: 20px;
	line-height: 1.2;
	margin-left: 0.4rem;
	vertical-align: middle;
}

.card-desc {
	font-size: 0.85rem;
	color: var(--text-light);
	line-height: 1.55;
	margin: 0 0 0.9rem;
}

.card-desc strong {
	color: var(--primary);
}

.contact-buttons {
	display: flex;
	gap: 0.5rem;
}

.contact-buttons .btn {
	flex: 1;
	padding: 0.6rem;
	font-size: 0.85rem;
}

/* --- Nota pagamento e caffè --- */
.trade-notes {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.trade-note {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #fbfaf5;
	border: 1px dashed #d9d1b8;
	border-radius: 12px;
	padding: 0.85rem 1rem;
}

.trade-note .ico {
	width: 1.1rem;
	height: 1.1rem;
	color: #b8964a;
	flex-shrink: 0;
}

.trade-note p {
	margin: 0;
	font-size: 0.83rem;
	color: var(--text-light);
	line-height: 1.55;
}

.trade-note.payment {
	background: #fff;
	border-style: solid;
	border-color: var(--border);
	border-left: 3px solid var(--gold);
	padding: 0.6rem 0.9rem;
}

.trade-note.payment .ico {
	color: var(--gold);
	width: 1rem;
	height: 1rem;
}

.trade-note.payment p {
	font-style: italic;
	color: var(--text);
	font-weight: 600;
	font-size: 0.85rem;
}

.trade-note.coffee {
	background: #faf4ec;
	border-color: #e6d5bf;
	align-items: flex-start;
}

.trade-note.coffee .ico {
	color: #8a5a2b;
	margin-top: 2px;
}

.info-extra-title {
	font-family: var(--font-display);
	color: var(--primary);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.2px;
	margin: 0 0 0.9rem;
	line-height: 1.25;
}

/* --- Mappa --- */
.map-wrap {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-lg);
	aspect-ratio: 16 / 13;
	margin-bottom: 0.9rem;
	background: #e8ecf5;
	position: relative;
}

.map-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.map-overlay {
	position: absolute;
	inset: 0;
	background: rgba(42, 55, 87, 0.15);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	padding: 1rem;
	transition: opacity var(--dur-med) var(--ease-ui);
}

.map-overlay.hidden {
	display: none;
}

.map-overlay-btn {
	background: var(--primary);
	color: #ffffff;
	border: none;
	border-radius: 50px;
	padding: 0.75rem 1.3rem;
	font-weight: 700;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	box-shadow: var(--shadow-lg);
	text-align: left;
	line-height: 1.3;
	max-width: 90%;
	transition:
		background-color var(--dur-ui) var(--ease-ui),
		transform var(--dur-ui) var(--ease-ui);
}

.map-overlay-btn:hover {
	background: var(--primary-dark);
}

.map-overlay-btn:active {
	transform: translateY(0) scale(0.97);
}

.map-overlay-btn .ico {
	width: 1.0625rem;
	height: 1.0625rem;
	flex-shrink: 0;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid var(--border);
	padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	z-index: 20;
}

.nav-btn {
	width: 2.625rem;
	height: 2.625rem;
	border-radius: 50%;
	border: 1.5px solid var(--border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition:
		background-color var(--dur-ui) var(--ease-ui),
		border-color var(--dur-ui) var(--ease-ui),
		transform var(--dur-ui) var(--ease-ui);
}

.nav-btn:focus-visible,
.dot:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
	border-radius: 50%;
}
.dot.active:focus-visible {
	border-radius: 4px;
}

.nav-btn .ico {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--primary);
	transition: color var(--dur-ui) var(--ease-ui);
}

.nav-btn:hover {
	background: var(--primary);
	border-color: var(--primary);
}

.nav-btn:hover .ico {
	color: #fff;
}

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

.nav-btn.disabled {
	opacity: 0.3;
	pointer-events: none;
	cursor: default;
}

.dots {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.dot {
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 50%;
	border: none;
	background: var(--border);
	transition:
		background var(--dur-med) var(--ease-ui),
		width var(--dur-med) var(--ease-ui),
		border-radius var(--dur-med) var(--ease-ui),
		transform var(--dur-ui) var(--ease-ui);
	display: block;
}

.dot:hover {
	transform: scale(1.25);
}

.dot:active {
	transform: scale(0.9);
}

.dot.active {
	background: var(--primary);
	width: 1.25rem;
	border-radius: 4px;
}

/* ============================================================
   FAB — Pulsanti flottanti (solo mobile)
   ============================================================ */
.fab {
	position: fixed;
	right: 1rem;
	bottom: calc(5.25rem + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	z-index: 40;
}

.fab-btn {
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	transition:
		transform var(--dur-ui) var(--ease-ui),
		box-shadow var(--dur-ui) var(--ease-ui);
}

.fab-btn .ico {
	width: 1.375rem;
	height: 1.375rem;
	color: #ffffff;
}

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

.fab-btn.call {
	background: var(--primary);
}

.fab-btn.call:hover {
	box-shadow: 0 8px 22px rgba(42, 55, 87, 0.45);
}

.fab-btn.wa {
	background: var(--wa);
}

.fab-btn.wa:hover {
	box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

/* ============================================================
   SWIPE HINT
   ============================================================ */
.swipe-hint {
	position: fixed;
	bottom: calc(6.25rem + env(safe-area-inset-bottom));
	left: 50%;
	transform: translateX(-50%);
	background: rgba(42, 55, 87, 0.92);
	color: #ffffff;
	padding: 0.5rem 1rem;
	border-radius: 50px;
	font-size: 0.78rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	z-index: 30;
	pointer-events: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	animation: hintPulse 2.4s ease-in-out infinite;
	animation-delay: 1.2s;
}

.swipe-hint .ico {
	width: 0.875rem;
	height: 0.875rem;
	color: #ffffff;
}

.swipe-hint.hidden {
	display: none;
}

@keyframes hintPulse {
	0%,
	100% {
		transform: translateX(-50%);
		opacity: 1;
	}
	50% {
		transform: translateX(calc(-50% + 10px));
		opacity: 0.65;
	}
}

/* ============================================================
   GUIDA PICENA
   ============================================================ */
.slide.gp-theme {
	background: linear-gradient(
		160deg,
		var(--gp-cream) 0%,
		#ffffff 45%,
		var(--gp-cream-alt) 100%
	);
}

.slide.gp-theme .slide-label {
	color: var(--gp-oliva);
}

.slide.gp-theme .slide-label .ico {
	color: var(--gp-oliva);
}

.slide.gp-theme .slide-title {
	color: var(--gp-terracotta-dark);
}

.slide.gp-theme .slide-title.accent-line::after {
	background: var(--gp-oliva);
}

.gp-hero {
	position: relative;
	background: linear-gradient(
		140deg,
		var(--gp-terracotta) 0%,
		var(--gp-terracotta-dark) 100%
	);
	border-radius: 20px;
	padding: 2rem 1.5rem;
	margin-bottom: 1.75rem;
	text-align: center;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(193, 95, 51, 0.28);
}

.gp-hero::before {
	content: "";
	position: absolute;
	top: -50px;
	right: -50px;
	width: 180px;
	height: 180px;
	background: radial-gradient(
		circle,
		rgba(255, 235, 215, 0.2) 0%,
		transparent 70%
	);
	border-radius: 50%;
	pointer-events: none;
}

.gp-hero::after {
	content: "";
	position: absolute;
	bottom: -70px;
	left: -40px;
	width: 200px;
	height: 200px;
	background: radial-gradient(
		circle,
		rgba(154, 162, 111, 0.25) 0%,
		transparent 70%
	);
	border-radius: 50%;
	pointer-events: none;
}

.gp-logo-circle {
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	background: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem;
	margin-bottom: 1rem;
	position: relative;
	z-index: 1;
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.22),
		inset 0 0 0 1px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.gp-logo-circle img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
}

.gp-name {
	font-family: var(--font-display);
	color: #ffffff;
	font-size: 1.65rem;
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 0.4rem;
	position: relative;
	z-index: 1;
	letter-spacing: -0.5px;
}

.gp-tagline {
	color: rgba(255, 240, 225, 0.92);
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.5;
	max-width: 18rem;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.gp-body {
	font-size: 0.92rem;
	color: var(--text-light);
	line-height: 1.65;
	margin-bottom: 1.5rem;
}

.gp-body strong {
	color: var(--gp-terracotta-dark);
}

.gp-saving {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: #ffffff;
	border: 1px solid #ecdccc;
	border-left: 4px solid var(--gp-oliva);
	border-radius: 12px;
	padding: 0.95rem 1.05rem;
	margin-bottom: 1.5rem;
}

.gp-saving .ico {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--gp-oliva);
	flex-shrink: 0;
	margin-top: 2px;
}

.gp-saving p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text);
	line-height: 1.6;
}

.gp-saving strong {
	color: var(--gp-terracotta-dark);
}

.gp-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1.75rem;
}

.gp-feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	background: #ffffff;
	border: 1px solid #ecdccc;
	border-radius: 12px;
	padding: 1rem 0.75rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--gp-terracotta-dark);
	text-align: center;
}

.gp-feature .ico {
	width: 1.15rem;
	height: 1.15rem;
	color: var(--gp-oliva);
	flex-shrink: 0;
}

.gp-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	padding: 0.9rem 1.2rem;
	background: var(--gp-terracotta-dark);
	color: #ffffff;
	border-radius: 50px;
	font-size: 0.92rem;
	font-weight: 800;
	box-shadow: 0 6px 18px rgba(193, 95, 51, 0.35);
	transition:
		background-color var(--dur-ui) var(--ease-ui),
		transform var(--dur-ui) var(--ease-ui),
		box-shadow var(--dur-ui) var(--ease-ui);
}

.gp-cta:hover {
	background: #a84f28;
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(193, 95, 51, 0.45);
}

.gp-cta:active {
	transform: translateY(0) scale(0.97);
}

.gp-cta .ico {
	width: 1rem;
	height: 1rem;
}

.gp-disclaimer {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px dashed #e0d3c0;
	font-size: 0.68rem;
	color: #9a9080;
	line-height: 1.5;
	text-align: center;
	letter-spacing: 0.2px;
}

/* ============================================================
   NOTE LEGALI
   ============================================================ */
.legal-stack {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	margin-top: 0.5rem;
}

.legal-block {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 1.15rem 1.2rem;
	box-shadow: var(--shadow);
}

.legal-block h3 {
	font-family: var(--font-display);
	color: var(--primary);
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	letter-spacing: -0.2px;
}

.legal-block h3 .ico {
	width: 1rem;
	height: 1rem;
	color: var(--gold);
	flex-shrink: 0;
}

.legal-block p {
	font-size: 0.85rem;
	color: var(--text-light);
	line-height: 1.6;
	margin: 0;
}

.legal-block p .ico {
	display: inline-block;
	width: 0.85rem;
	height: 0.85rem;
	vertical-align: -0.15em;
	margin-left: 0.25rem;
	color: currentColor;
}

.legal-block .disclaimer-note {
	background: #fff8e6;
	border-left: 3px solid var(--gold);
	border-radius: 8px;
	padding: 0.8rem 0.95rem;
	font-size: 0.83rem;
	color: var(--text);
	line-height: 1.6;
}

.legal-block .disclaimer-note p {
	color: var(--text);
	font-size: 0.83rem;
}

.legal-block .disclaimer-note strong {
	color: var(--primary);
}

.legal-block p a,
.legal-block .disclaimer-note a {
	color: var(--accent);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 0.25em;
	text-decoration-thickness: 1px;
	transition: color var(--dur-fast) var(--ease-ui);
	white-space: nowrap;
}

.legal-block p a:hover,
.legal-block .disclaimer-note a:hover {
	color: var(--primary);
}

.policy-links {
	display: flex;
	gap: 1rem;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.policy-links a {
	font-size: 0.78rem;
	color: var(--text-light);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 0.25em;
	text-decoration-thickness: 1px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	transition:
		color var(--dur-fast) var(--ease-ui),
		opacity var(--dur-fast) var(--ease-ui);
	padding: 0.2rem 0;
}

.policy-links a:hover {
	color: var(--primary);
}

.policy-links a:active {
	opacity: 0.6;
}

.policy-links a .ico {
	width: 0.75rem;
	height: 0.75rem;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #ffffff;
	border-bottom: 1px solid var(--border);
	padding: 1rem 1.15rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	z-index: 15;
}

.cookie-banner.hidden {
	display: none;
}

.cookie-banner-text {
	flex: 1;
	font-size: 0.82rem;
	color: var(--text-light);
	line-height: 1.55;
}

.cookie-banner-text strong {
	color: var(--primary);
}

.cookie-banner-text a {
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	color: var(--accent);
}

.cookie-banner-actions {
	display: flex;
	gap: 0.5rem;
	width: 100%;
}

.cookie-btn {
	flex: 1;
	border: none;
	padding: 0.65rem 0.9rem;
	border-radius: 50px;
	font-size: 0.86rem;
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color var(--dur-ui) var(--ease-ui),
		transform var(--dur-ui) var(--ease-ui);
	white-space: nowrap;
}

.cookie-btn:active {
	transform: translateY(0) scale(0.97);
}

.cookie-btn.accept {
	background: var(--primary);
	color: #ffffff;
}

.cookie-btn.accept:hover {
	background: var(--primary-dark);
}

.cookie-btn.reject {
	background: transparent;
	color: var(--text-light);
	border: 1px solid var(--border);
}

.cookie-btn.reject:hover {
	background: var(--bg-alt);
}

/* ============================================================
   MODALI
   ============================================================ */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(30, 40, 65, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 200;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity var(--dur-med) var(--ease-ui),
		visibility var(--dur-med) var(--ease-ui);
}

.modal-backdrop.show {
	opacity: 1;
	visibility: visible;
}

.modal-box {
	background: #ffffff;
	border-radius: 22px;
	padding: 2rem 1.5rem 1.6rem;
	max-width: 26.25rem;
	width: 100%;
	max-height: 85vh;
	position: relative;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	transform: translateY(10px) scale(0.97);
	transition: transform var(--dur-modal) var(--ease-modal);
	display: flex;
	flex-direction: column;
}

.modal-backdrop.show .modal-box {
	transform: translateY(0) scale(1);
}

.modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: transparent;
	border: none;
	width: 2.375rem;
	height: 2.375rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-light);
	z-index: 2;
	transition:
		background-color var(--dur-ui) var(--ease-ui),
		transform var(--dur-ui) var(--ease-ui);
}

.modal-close:hover {
	background: var(--bg-alt);
}

.modal-close:active {
	transform: scale(0.92);
}

.modal-close .ico {
	width: 1rem;
	height: 1rem;
}

/* --- Modale policy --- */
.modal-box.policy {
	max-width: 35rem;
	text-align: left;
	padding: 1.5rem 1.75rem;
}

.policy-header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
	padding-right: 2rem;
}

.policy-header .ico {
	width: 1.375rem;
	height: 1.375rem;
	color: var(--primary);
	flex-shrink: 0;
}

.policy-header h2 {
	font-family: var(--font-display);
	color: var(--primary);
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.3px;
}

.policy-content {
	overflow-y: auto;
	flex: 1;
	padding-right: 0.25rem;
	scrollbar-width: thin;
	scrollbar-color: var(--border) transparent;
}

.policy-content::-webkit-scrollbar {
	width: 6px;
}

.policy-content::-webkit-scrollbar-track {
	background: transparent;
}

.policy-content::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 3px;
}

.policy-content h3 {
	color: var(--primary);
	font-size: 0.95rem;
	margin: 1.1rem 0 0.4rem;
	font-weight: 700;
}

.policy-content h3:first-child {
	margin-top: 0;
}

.policy-content p {
	font-size: 0.82rem;
	color: var(--text);
	margin-bottom: 0.6rem;
	line-height: 1.55;
}

.policy-content ul {
	font-size: 0.82rem;
	color: var(--text);
	padding-left: 1.2rem;
	margin-bottom: 0.6rem;
}

.policy-content ul li {
	margin-bottom: 0.25rem;
}

.policy-content strong {
	color: var(--primary);
}

.policy-content a {
	color: var(--accent);
	font-weight: 600;
	text-decoration: underline;
}

.policy-content code {
	font-family:
		ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.78rem;
	background: var(--bg-alt);
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
	color: var(--primary);
}

.policy-meta {
	font-size: 0.72rem;
	color: var(--text-light);
	margin-top: 0;
	margin-bottom: 1rem !important;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
	font-style: italic;
}

/* --- Modale recensione --- */
.modal-box:not(.policy) {
	text-align: center;
	padding: 2.2rem 1.75rem 1.6rem;
}

.modal-stars {
	display: inline-flex;
	gap: 4px;
	align-self: center;
	margin: 0 auto 1rem;
	background: linear-gradient(135deg, #fff8e6, #ffffff);
	padding: 0.7rem 1rem;
	border-radius: 50px;
	box-shadow: 0 4px 12px rgba(212, 160, 23, 0.2);
}

.modal-stars .ico {
	width: 1.4rem;
	height: 1.4rem;
	color: var(--star);
}

.modal-box:not(.policy) h3 {
	font-family: var(--font-display);
	color: var(--primary);
	margin-bottom: 0.7rem;
	font-size: 1.35rem;
	font-weight: 700;
	text-align: center;
	letter-spacing: -0.3px;
}

.modal-box:not(.policy) p {
	color: var(--text-light);
	font-size: 0.92rem;
	margin: 0 auto 1.4rem;
	line-height: 1.55;
	max-width: 22rem;
	text-align: center;
}

.modal-box:not(.policy) .btn {
	width: 100%;
	margin-bottom: 0.6rem;
}

.btn-review {
	background: var(--star);
	color: #5c4300;
	box-shadow: 0 4px 12px rgba(245, 179, 1, 0.35);
}

.btn-review:hover {
	background: #e0a400;
}

.btn-review .ico {
	color: #5c4300;
}

.modal-dismiss {
	background: transparent;
	border: none;
	color: var(--text-light);
	font-size: 0.82rem;
	cursor: pointer;
	padding: 0.4rem 0.6rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	margin: 0 auto;
	display: block;
	transition:
		color var(--dur-fast) var(--ease-ui),
		opacity var(--dur-fast) var(--ease-ui);
}

.modal-dismiss:hover {
	color: var(--primary);
}

.modal-dismiss:active {
	opacity: 0.6;
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 541px) {
	.app {
		max-width: none;
		box-shadow: none;
	}

	:root {
		--header-pad-y: 1.25rem;
		--header-pad-x: 1.5rem;
		--slide-pad-y-top: 3rem;
		--slide-pad-x: 3rem;
	}

	.app-header .logo {
		width: min(26rem, 65%);
	}

	.slide-inner {
		margin: 0 auto;
		max-width: clamp(43.75rem, 50vw, 75rem);
		width: 100%;
	}

	.reviews-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.gp-features {
		grid-template-columns: repeat(4, 1fr);
	}

	.gp-logo-circle {
		width: 7rem;
		height: 7rem;
		padding: 0.85rem;
	}

	.gp-name {
		font-size: 1.9rem;
	}

	.cookie-banner {
		flex-direction: row;
		align-items: center;
		padding: 0.9rem 1.5rem;
	}

	.cookie-banner-actions {
		width: auto;
		gap: 0.4rem;
	}

	.cookie-btn {
		flex: none;
		padding: 0.55rem 1.1rem;
	}

	.fab {
		display: none;
	}

	.bottom-nav {
		left: 50%;
		right: auto;
		bottom: 1.5rem;
		transform: translateX(-50%);
		max-width: 22rem;
		width: auto;
		border-radius: 50px;
		border: 1px solid var(--border);
		border-bottom: 1px solid var(--border);
		padding: 0.5rem 1rem;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
		gap: 1rem;
	}

	.decade-badge {
		top: 0.85rem;
		left: 0.85rem;
		padding: 0.55rem 1rem;
		border-radius: 14px;
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
	}

	.decade-value {
		font-size: 1.75rem;
		letter-spacing: -1px;
	}
}

@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;
	}
}
