/*
 * Happy Camper Livorno
 * Design read: sito commerciale per un'officina camper, rivolto a camperisti e vanlifer,
 * con linguaggio retro surf anni '70 preso dal logo (strisce del tramonto), CSS nativo.
 * Dial: DESIGN_VARIANCE 7, MOTION_INTENSITY 5, VISUAL_DENSITY 4.
 *
 * Sistema delle forme: pulsanti ed etichette a pillola, card e immagini con raggio 28px,
 * campi del modulo 14px. Archi (raggio pieno in alto) solo per le immagini di apertura.
 * Accento unico: arancio tramonto per le azioni. Le altre tinte del logo compaiono solo nelle strisce.
 */

/* ---------- Font (self-hosted, OFL) ---------- */
@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage-latin.woff2") format("woff2-variations"), url("../fonts/bricolage-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage-latin-ext.woff2") format("woff2-variations"), url("../fonts/bricolage-latin-ext.woff2") format("woff2");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin.woff2") format("woff2-variations"), url("../fonts/archivo-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-italic.woff2") format("woff2-variations"), url("../fonts/archivo-latin-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: italic;
	font-display: swap;
}

/* ---------- Token ---------- */
:root {
	color-scheme: light dark;

	/* Palette "Sgargiante" (scelta dal cliente a ottobre 2026): fondo neutro, colori accesi sulle azioni e sulle strisce. */
	--sand: #f5f3ee;
	--sand-2: #ebe7de;
	--paper: #fffdf9;
	--ink: #121a3a;
	--ink-2: #444b69;
	--line: rgb(18 26 58 / 0.14);
	--deep: #11296c;
	--deep-2: #0b1d52;
	--on-deep: #fbf8f2;
	--tint: 17 41 108; /* --deep in RGB, per ombre e velature */

	--red: #ff2f7d;
	--orange: #ff7417;
	--mustard: #ffd21f;
	--sage: #6fe0c0;
	--teal: #00a29c;
	--accent: #ff3d86;
	--accent-hover: #ff62a0;
	--on-accent: #140c2a;
	--fuchsia: #e3177d;

	--shadow: 0 1px 0 rgb(var(--tint) / 0.04), 0 18px 40px -18px rgb(var(--tint) / 0.3);
	--shadow-lg: 0 40px 80px -40px rgb(var(--tint) / 0.5);

	--font-display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-lg: 28px;
	--r-md: 18px;
	--r-sm: 14px;

	--container: 1320px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 78px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	/* Variabili condivise con i plugin Happy Camper */
	--hc-bg: var(--sand);
	--hc-paper: var(--paper);
	--hc-ink: var(--ink);
	--hc-muted: var(--ink-2);
	--hc-line: var(--line);
	--hc-accent: var(--accent);
	--hc-accent-hover: var(--accent-hover);
	--hc-on-accent: var(--on-accent);
	--hc-deep: var(--deep);
	--hc-on-deep: var(--on-deep);
	--hc-red: var(--red);
	--hc-orange: var(--orange);
	--hc-mustard: var(--mustard);
	--hc-sage: var(--sage);
	--hc-teal: var(--teal);
	--hc-radius: var(--r-lg);
	--hc-radius-sm: var(--r-sm);
	--hc-font-display: var(--font-display);
	--hc-font-body: var(--font-body);
	--hc-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
	:root {
		--sand: #0c1130;
		--sand-2: #111940;
		--paper: #17214d;
		--ink: #f4f1ea;
		--ink-2: #b8bdd6;
		--line: rgb(244 241 234 / 0.14);
		--deep: #070b24;
		--deep-2: #05081b;
		--shadow: 0 1px 0 rgb(0 0 0 / 0.2), 0 18px 40px -18px rgb(0 0 0 / 0.7);
		--shadow-lg: 0 40px 80px -40px rgb(0 0 0 / 0.8);
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--sand);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	line-height: 1.6;
	font-stretch: 100%;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

/* Grana leggera come la stampa consumata del logo: pseudo-elemento fisso, nessun repaint allo scroll. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 90;
	pointer-events: none;
	opacity: 0.07;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
	body::before { mix-blend-mode: soft-light; opacity: 0.12; }
}

img, svg, video { max-width: 100%; height: auto; display: block; }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 200;
	padding: 12px 18px;
	background: var(--ink);
	color: var(--sand);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Tipografia ---------- */
.h2,
.hero__title,
.masthead__title,
.h3,
.tile__title,
.cta-band__title,
.brands__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 75%;
	font-variation-settings: "opsz" 96;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); line-height: 0.95; }
.h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1; }
.lead {
	font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
	color: var(--ink-2);
	max-width: 52ch;
	text-wrap: pretty;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 1.1rem;
	font-size: 0.78rem;
	font-weight: 700;
	font-stretch: 125%;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--teal);
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--mustard); } }

/* Evidenziatore a strisce del logo sotto una parte del titolo */
.hl {
	position: relative;
	white-space: nowrap;
	background-image: linear-gradient(to bottom,
		var(--red) 0 20%, var(--orange) 20% 40%, var(--mustard) 40% 60%, var(--sage) 60% 80%, var(--teal) 80% 100%);
	background-repeat: no-repeat;
	background-size: 100% 0.3em;
	background-position: 0 92%;
	padding-inline: 0.04em;
}
html.js .hl { background-size: 0% 0.3em; animation: hl-in 1.1s var(--ease) 0.55s forwards; }
@keyframes hl-in { to { background-size: 100% 0.3em; } }

/* ---------- Strisce ---------- */
.stripes { display: grid; grid-template-rows: repeat(5, 1fr); }
.stripes i:nth-child(1) { background: var(--red); }
.stripes i:nth-child(2) { background: var(--orange); }
.stripes i:nth-child(3) { background: var(--mustard); }
.stripes i:nth-child(4) { background: var(--sage); }
.stripes i:nth-child(5) { background: var(--teal); }
.stripes--bar { height: 8px; }
.stripes--footer { height: 72px; gap: 4px; }
.stripes--mobile { height: 60px; gap: 3px; margin-top: auto; margin-inline: calc(var(--gutter) * -1); }
.stripes--masthead {
	position: absolute;
	left: 0; bottom: 0;
	width: min(62%, 860px);
	height: 40px;
	gap: 3px;
	border-radius: 0 999px 999px 0;
	overflow: hidden;
}
.stripes--404 { height: 56px; gap: 3px; margin-top: 64px; }

/* ---------- Pulsanti ---------- */
.btn {
	--btn-bg: transparent;
	--btn-fg: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	padding: 0.8em 1.45em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease, box-shadow 0.35s var(--ease), border-color 0.25s ease;
}
.btn .icon { font-size: 1.15em; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:hover .icon-arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--accent:hover { --btn-bg: var(--accent-hover); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--sand); border-color: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--sand); }
.btn--dark:hover { --btn-bg: var(--deep); --btn-fg: var(--on-deep); }
.btn--sm { min-height: 42px; padding: 0.6em 1.1em; font-size: 0.95rem; }
.btn--lg { min-height: 56px; padding: 0.95em 1.7em; font-size: 1.05rem; }

.round-btn {
	display: inline-grid;
	place-items: center;
	width: 48px; height: 48px;
	border-radius: 999px;
	border: 2px solid var(--ink);
	background: transparent;
	color: var(--ink);
	font-size: 1.2rem;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.round-btn:hover { background: var(--ink); color: var(--sand); }
.round-btn:active { transform: scale(0.94); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
}
.link-arrow .icon { transition: transform 0.35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
	padding: 0.38em 0.9em;
	border-radius: 999px;
	background: rgb(243 236 221 / 0.16);
	border: 1px solid rgb(243 236 221 / 0.3);
	font-size: 0.85rem;
	font-weight: 600;
	backdrop-filter: blur(6px);
}
.chips--light li { background: var(--sand-2); border-color: var(--line); backdrop-filter: none; }

/* ---------- Header ---------- */
.header-sentinel { position: absolute; top: 0; height: 40px; width: 1px; }
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--sand) 86%, transparent);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(var(--tint) / 0.5); }
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__logo { width: auto; height: 58px; transition: transform 0.5s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.32rem; letter-spacing: -0.01em; }
.brand__place { font-size: 0.72rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

.primary-nav { margin-left: auto; }
.primary-nav .menu { list-style: none; display: flex; align-items: center; gap: 4px; }
.primary-nav a {
	position: relative;
	display: block;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 0.98rem;
	white-space: nowrap;
	text-decoration: none;
	border-radius: 999px;
	transition: background-color 0.2s ease;
}
.primary-nav a:hover { background: var(--sand-2); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a { background: var(--ink); color: var(--sand); }
/* Voce "Promo" in evidenza (Personalizza > Happy Camper > Menu) */
.primary-nav .menu-item--highlight > a { background: var(--mustard); color: #121a3a; font-weight: 800; box-shadow: 0 8px 18px -10px rgb(var(--tint) / 0.6); }
.primary-nav .menu-item--highlight > a:hover { background: #ffe066; }
.primary-nav .menu-item--highlight.current-menu-item > a { box-shadow: inset 0 0 0 2px #121a3a; }
.mobile-menu__list .menu-item--highlight > a { color: var(--mustard); }

.site-header__tools { display: flex; align-items: center; gap: 14px; }
.lang ul { list-style: none; display: flex; gap: 2px; }
.lang a {
	display: grid;
	place-items: center;
	min-width: 34px; height: 30px;
	padding: 0 6px;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 800;
	font-stretch: 112%;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--ink-2);
}
.lang a:hover { color: var(--ink); background: var(--sand-2); }
.lang a[aria-current="true"] { background: var(--mustard); color: #142321; }
.social { display: flex; align-items: center; gap: 4px; }
.social a {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	border-radius: 999px;
	font-size: 1.25rem;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.3s var(--ease);
}
.social a:hover { background: var(--sand-2); transform: rotate(-8deg); }

.menu-toggle {
	display: none;
	width: 48px; height: 48px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--sand);
	cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 5px; width: 20px; margin: auto; }
.menu-toggle__bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1340px) {
	.social--header { display: none; }
	.site-header__inner { gap: 20px; }
	.primary-nav a { padding-inline: 11px; }
}
@media (max-width: 1220px) {
	.brand__place { display: none; }
}
@media (max-width: 1140px) {
	.primary-nav, .lang--header { display: none; }
	.menu-toggle { display: grid; }
	.site-header__tools { margin-left: auto; }
}
@media (max-width: 520px) {
	:root { --header-h: 68px; }
	.brand__logo { height: 48px; }
	.brand__place { display: none; }
	.header-call span { display: none; }
	.header-call { width: 48px; padding: 0; }
}

/* Menu mobile */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 45;
	padding-top: calc(var(--header-h) + 8px);
	background: var(--deep);
	color: var(--on-deep);
	overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { min-height: 100%; display: flex; flex-direction: column; gap: 28px; padding: 24px var(--gutter) 0; }
.mobile-menu__list { list-style: none; }
.mobile-menu__list a {
	display: block;
	padding: 10px 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: clamp(2.2rem, 9vw, 3.4rem);
	line-height: 1;
	text-decoration: none;
	border-bottom: 1px solid rgb(243 236 221 / 0.14);
}
.mobile-menu__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-menu__actions .btn--ghost { color: var(--on-deep); }
.mobile-menu__meta { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .lang a { color: rgb(243 236 221 / 0.75); }
.mobile-menu .social a:hover, .mobile-menu .lang a:hover { background: rgb(243 236 221 / 0.1); }
html.menu-open { overflow: hidden; }
html.menu-open .site-header { background: var(--deep); color: var(--on-deep); }
html.menu-open .site-header .brand__place { color: rgb(243 236 221 / 0.7); }
html.menu-open .menu-toggle { background: var(--mustard); color: #142321; }
@media (prefers-reduced-motion: no-preference) {
	.mobile-menu:not([hidden]) .mobile-menu__list li { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 60ms); }
}

/* ---------- Animazioni di ingresso ---------- */
@keyframes rise {
	from { opacity: 0; transform: translateY(26px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
	html.js [data-anim] { animation: rise 0.9s var(--ease) both; }
	html.js [data-anim="2"] { animation-delay: 0.08s; }
	html.js [data-anim="3"] { animation-delay: 0.16s; }
	html.js [data-anim="4"] { animation-delay: 0.24s; }

	html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
	html.js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; padding-block: clamp(20px, 3vw, 44px) clamp(8px, 2vw, 24px); }
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
	min-height: min(calc(100dvh - var(--header-h) - 60px), 820px);
}
.hero__eyebrow .icon { font-size: 1.2em; color: var(--red); }
.hero__title {
	font-size: clamp(3.3rem, 1.2rem + 6.4vw, 6.4rem);
	line-height: 0.9;
	letter-spacing: -0.02em;
	margin-bottom: 0.32em;
	max-width: 11ch;
}
.hero__lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 44ch; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual {
	position: relative;
	width: 100%;
	max-width: 560px;
	justify-self: end;
	padding: 6% 0 0 8%;
}
.hero__sun {
	position: absolute;
	top: 0; right: -6%;
	width: 86%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: linear-gradient(to bottom,
		var(--red) 0 19%, transparent 19% 21%,
		var(--orange) 21% 40%, transparent 40% 42%,
		var(--mustard) 42% 61%, transparent 61% 63%,
		var(--sage) 63% 81%, transparent 81% 83%,
		var(--teal) 83% 100%);
	opacity: 0.95;
}
.hero__slider { position: relative; }
.hero__arch {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 999px 999px var(--r-lg) var(--r-lg);
	overflow: hidden;
	background: var(--deep);
	box-shadow: var(--shadow-lg);
	isolation: isolate;
}
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
	.hero__slide .hero__img { transform: scale(1.08); transition: transform 7s linear; }
	.hero__slide.is-active .hero__img { transform: scale(1); }
}
.hero__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin-top: 18px;
}
.hero__dots { display: flex; gap: 6px; }
.hero__dot { position: relative; width: 34px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.hero__dot i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-done i { transform: scaleX(1); }
.hero__dot.is-active i { animation: dot 5.5s linear forwards; }
.hero__slider.is-paused .hero__dot.is-active i { animation-play-state: paused; }
@keyframes dot { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero__dot.is-active i { animation: none; transform: scaleX(1); } }

.sticker {
	position: absolute;
	left: 0; bottom: 64px;
	z-index: 3;
	width: clamp(112px, 11vw, 148px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--mustard);
	color: #142321;
	display: grid;
	place-items: center;
	box-shadow: 0 16px 30px -14px rgb(var(--tint) / 0.6);
	transform: rotate(-10deg);
	transition: transform 0.5s var(--ease);
	text-decoration: none;
}
.sticker:hover { transform: rotate(0) scale(1.05); }
.sticker__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker__ring text { font-family: var(--font-body); font-size: 15.5px; font-weight: 800; font-stretch: 112%; letter-spacing: 0.06em; fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
	.sticker__ring { animation: spin 26s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.sticker__core {
	width: 44%; aspect-ratio: 1;
	border-radius: 50%;
	background: #142321;
	color: var(--mustard);
	display: grid; place-items: center;
	font-size: clamp(1.6rem, 2vw, 2.1rem);
}

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; min-height: 0; }
	.hero__visual { justify-self: center; max-width: 480px; padding: 8% 0 0 6%; }
	.hero__title { max-width: 13ch; }
}

/* ---------- Prima / dopo ---------- */
.ba__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 88px);
	align-items: center;
}
.ba__intro .lead { margin-top: 1.1rem; margin-bottom: 2rem; }
.ba__tabs { display: grid; gap: 10px; }
.ba__tab {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 18px 22px 18px 30px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: transparent;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}
.ba__tab::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 8px;
	background: linear-gradient(to right, var(--red) 0 20%, var(--orange) 20% 40%, var(--mustard) 40% 60%, var(--sage) 60% 80%, var(--teal) 80% 100%);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.5s var(--ease);
}
.ba__tab:hover { border-color: var(--ink); }
.ba__tab.is-active { background: var(--paper); border-color: transparent; box-shadow: var(--shadow); }
.ba__tab.is-active::before { transform: scaleY(1); }
.ba__tab-title { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.55rem; line-height: 1; }
.ba__tab-text { color: var(--ink-2); font-size: 0.96rem; }

.ba__stage { position: relative; }
.ba__grid > *, .hero__grid > *, .story__grid > *, .contact-home__grid > *, .masthead__grid > * { min-width: 0; }
.compare {
	position: relative;
	aspect-ratio: 4 / 5;
	max-height: 78vh;
	width: 100%;
	margin-left: auto;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--deep);
	box-shadow: var(--shadow-lg);
	user-select: none;
	touch-action: pan-y;
}
.compare[hidden] { display: none; }
.compare__after, .compare__before { position: absolute; inset: 0; }
.compare__after img, .compare__before img { width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
	position: absolute;
	top: 0; bottom: 0;
	left: var(--pos);
	width: 3px;
	margin-left: -1.5px;
	background: var(--sand);
	pointer-events: none;
	box-shadow: 0 0 0 1px rgb(20 35 33 / 0.2);
}
.compare__handle span {
	position: absolute;
	top: 50%; left: 50%;
	width: 58px; height: 58px;
	margin: -29px 0 0 -29px;
	border-radius: 50%;
	background: var(--accent);
	color: #142321;
	display: grid; place-items: center;
	font-size: 1.5rem;
	box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.5);
	transition: transform 0.3s var(--ease);
}
.compare:hover .compare__handle span { transform: scale(1.08); }
.compare__range {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}
.compare__range:focus-visible ~ .compare__handle span,
.compare:has(.compare__range:focus-visible) .compare__handle span { outline: 3px solid var(--sand); outline-offset: 3px; }
.compare__label {
	position: absolute;
	top: 18px;
	z-index: 2;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	pointer-events: none;
}
.compare__label--before { left: 18px; background: #142321; color: #f3ecdd; }
.compare__label--after { right: 18px; background: #f3ecdd; color: #142321; }

@media (max-width: 900px) {
	.ba__grid { grid-template-columns: minmax(0, 1fr); }
	.ba__tabs { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.ba__tabs::-webkit-scrollbar { display: none; }
	.ba__tab { scroll-snap-align: start; }
	.compare { aspect-ratio: 4 / 5; max-height: 72vh; }
}

/* ---------- Servizi (bento) ---------- */
.services { background: var(--sand-2); border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0; }
.bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: minmax(300px, auto);
	gap: clamp(12px, 1.4vw, 20px);
}
.tile {
	position: relative;
	display: flex;
	border-radius: var(--r-lg);
	overflow: hidden;
	isolation: isolate;
	color: #f3ecdd;
	background: var(--deep);
	min-height: 300px;
	grid-column: span 6;
}
.bento--5 .tile--1 { grid-column: 1 / span 7; grid-row: span 2; min-height: 620px; }
.bento--5 .tile--2 { grid-column: 8 / span 5; }
.bento--5 .tile--3 { grid-column: 8 / span 5; }
.bento--5 .tile--4 { grid-column: 1 / span 5; }
.bento--5 .tile--5 { grid-column: 6 / span 7; }
.bento--4 .tile--1 { grid-column: span 7; }
.bento--4 .tile--2 { grid-column: span 5; }
.bento--4 .tile--3 { grid-column: span 5; }
.bento--4 .tile--4 { grid-column: span 7; }
.bento--3 .tile--1 { grid-column: span 12; }
.bento--1 .tile, .bento--2 .tile--1, .bento--2 .tile--2 { grid-column: span 12; }
.bento--2 .tile { grid-column: span 6; }
.bento--6 { grid-auto-rows: minmax(320px, auto); }
.bento--6 .tile--1, .bento--6 .tile--3 { grid-column: 1 / span 7; }
.bento--6 .tile--2, .bento--6 .tile--4 { grid-column: 8 / span 5; }
.bento--6 .tile--5 { grid-column: 1 / span 5; }
.bento--6 .tile--6 { grid-column: 6 / span 7; }
.bento--6 .tile--1 .tile__title { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.6rem); }

.tile__media { position: absolute; inset: 0; z-index: -2; }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__img { transform: scale(1.05); }
.tile--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgb(var(--tint) / 0.95) 0%, rgb(var(--tint) / 0.82) 40%, rgb(var(--tint) / 0.45) 70%, rgb(var(--tint) / 0.32) 100%);
}
.tile--solid { background: var(--mustard); color: #142321; }
.tile--solid .chips li { background: rgb(20 35 33 / 0.08); border-color: rgb(20 35 33 / 0.18); backdrop-filter: none; }
.tile--solid .tile__icon { background: #142321; color: var(--mustard); }
.tile--solid .tile__text { color: rgb(20 35 33 / 0.85); }
.tile--solid .tile__arrow { background: #142321; color: var(--mustard); }

.tile__body { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; width: 100%; padding: clamp(22px, 2.4vw, 36px); }
.tile__top { display: flex; align-items: center; gap: 12px; }
.tile__icon {
	display: grid; place-items: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--accent);
	color: #142321;
	font-size: 1.55rem;
}
.tile__kicker { font-size: 0.78rem; font-weight: 800; font-stretch: 125%; letter-spacing: 0.1em; text-transform: uppercase; }
.tile__title { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 0.95; margin-bottom: 0.4em; max-width: 16ch; }
.tile--1 .tile__title { font-size: clamp(2.3rem, 1.4rem + 3vw, 4.4rem); }
.tile__title a { text-decoration: none; }
.tile__title a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tile__text { color: rgb(243 236 221 / 0.86); max-width: 46ch; margin-bottom: 1rem; }
.tile__arrow {
	position: absolute;
	top: clamp(22px, 2.4vw, 36px);
	right: clamp(22px, 2.4vw, 36px);
	display: grid; place-items: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: #f3ecdd;
	color: #142321;
	font-size: 1.3rem;
	transition: transform 0.45s var(--ease);
}
.tile:hover .tile__arrow { transform: rotate(45deg); }
.tile:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.tile .stretched:focus-visible { outline: none; }
.services__more { margin-top: 32px; display: flex; justify-content: flex-end; }

/* Etichette sopra il titolo: "Anche per autovetture", "Novità" */
.tile__badge, .tile__new {
	display: inline-flex; align-items: center; gap: 8px;
	margin-bottom: 14px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.78rem; font-weight: 800; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase;
	box-shadow: 0 10px 22px -12px rgb(0 0 0 / 0.6);
	transform: rotate(-3deg);
	transform-origin: left center;
}
.tile__badge { background: var(--mustard); color: #121a3a; padding-left: 10px; }
.tile__badge .icon { font-size: 1.25rem; }
.tile__new { background: var(--fuchsia); color: #fff7ec; }
.tile:not(.tile--pop):not(.tile--solid) .tile__icon { background: var(--mustard); }
.chips li.is-hot { background: var(--sage); color: #121a3a; border-color: transparent; }

/* Riquadro colorato senza foto (Consulenze) */
.tile--pop {
	color: #121a3a;
	background:
		radial-gradient(120% 90% at 100% 0%, rgb(255 210 31 / 0.9) 0%, rgb(255 210 31 / 0) 55%),
		linear-gradient(150deg, #ff3f92 0%, #ff6a55 55%, #ff8a2b 100%);
}
.tile--pop::after {
	content: "";
	position: absolute;
	right: -8%; bottom: -26%;
	width: 62%; aspect-ratio: 1;
	z-index: -1;
	border-radius: 50%;
	background: repeating-linear-gradient(to bottom, rgb(255 247 236 / 0.42) 0 12px, transparent 12px 26px);
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 63%);
	mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 63%);
	transition: transform 0.9s var(--ease);
}
.tile--pop:hover::after { transform: translateY(-8%) rotate(-6deg); }
.tile--pop .tile__icon, .tile--pop .tile__arrow { background: #121a3a; color: var(--mustard); }
.tile--pop .tile__text { color: rgb(18 26 58 / 0.86); }
.tile--pop .chips li { background: rgb(255 247 236 / 0.55); border-color: rgb(18 26 58 / 0.16); color: #121a3a; backdrop-filter: none; }

/* Pulsante aggiuntivo nel riquadro (es. "Ordina la tua vernice"), sopra al link del riquadro */
.tile__cta {
	position: relative; z-index: 3;
	display: inline-flex; align-items: center; gap: 10px;
	margin-top: 4px;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--sage);
	color: #121a3a;
	font-weight: 800; font-size: 0.95rem; text-decoration: none;
	box-shadow: 0 12px 24px -14px rgb(0 0 0 / 0.8);
	transition: transform 0.3s var(--ease), filter 0.2s ease;
}
.tile__cta:hover { transform: translateY(-2px); filter: brightness(1.06); text-decoration: none; }
.tile__cta:active { transform: scale(0.98); }
.tile__cta:focus-visible { outline: 3px solid #fff7ec; outline-offset: 3px; }
.tile__cta .icon { font-size: 1.2rem; }

@media (max-width: 1024px) {
	.bento .tile { grid-column: span 12 !important; grid-row: auto !important; min-height: 380px; }
	.bento--5 .tile--2, .bento--5 .tile--3, .bento--6 .tile--2, .bento--6 .tile--4 { grid-column: span 6 !important; }
}
@media (max-width: 700px) {
	.bento--5 .tile--2, .bento--5 .tile--3, .bento--6 .tile--2, .bento--6 .tile--4 { grid-column: span 12 !important; }
	.bento .tile { min-height: 340px; }
	.bento .tile--1 { min-height: 460px; }
}

/* ---------- Marchi ---------- */
.brands { background: var(--sand-2); padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 88px); }
.brands__head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.brands__head::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.brands__title { font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); line-height: 1; }
.marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__list { list-style: none; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); padding-right: clamp(14px, 1.6vw, 22px); }
.marquee { padding-block: 10px; }
.marquee__item {
	display: grid; place-items: center;
	height: 78px; min-width: 132px; padding: 0 26px;
	border-radius: 20px;
	background: var(--b, var(--deep));
	color: var(--bf, #fff);
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06), 0 10px 20px -16px rgb(0 0 0 / 0.7);
	transition: transform 0.35s var(--ease);
}
.marquee__item:hover { transform: translateY(-4px) rotate(-2deg); }
.marquee__item .brand-svg { height: 40px; width: auto; }
.marquee__item .brand-img { height: 48px; width: auto; max-width: 150px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
	.marquee__track { animation: marquee 42s linear infinite; }
	.marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.marquee { -webkit-mask-image: none; mask-image: none; }
	.marquee__track { width: auto; }
	.marquee__list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); row-gap: 28px; }
	.marquee__list[aria-hidden="true"] { display: none; }
}

/* ---------- Promozioni (home) ---------- */
.promo-home { padding-bottom: clamp(40px, 5vw, 72px); }
.promo-home__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }
.promo-home__head .lead { margin: 1rem 0 0; }
@media (max-width: 640px) { .promo-home__head { flex-direction: column; align-items: start; } }

/* ---------- Usato (home) ---------- */
.usato-home__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }
.usato-home__head .lead { margin-top: 1rem; margin-bottom: 0; }
.usato-home__nav { display: flex; gap: 10px; flex: none; }
.usato-home__rail .hcu-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(400px, 84vw);
	grid-template-columns: none;
	gap: clamp(14px, 1.6vw, 22px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
	padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
	padding-bottom: 18px;
	scrollbar-width: none;
}
.usato-home__rail .hcu-grid::-webkit-scrollbar { display: none; }
.usato-home__rail .hcu-card { scroll-snap-align: start; }
.usato-home__more { margin-top: 24px; }
@media (max-width: 640px) { .usato-home__nav { display: none; } }

/* ---------- Storia ---------- */
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.story__collage { position: relative; aspect-ratio: 1 / 1.08; }
.story__ph {
	position: absolute;
	margin: 0;
	padding: 10px 10px 34px;
	background: var(--paper);
	border-radius: 6px;
	box-shadow: var(--shadow-lg);
	transition: transform 0.6s var(--ease);
}
.story__ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.story__ph--a { left: 0; top: 4%; width: 58%; height: 66%; transform: rotate(-4deg); z-index: 1; }
.story__ph--b { right: 0; top: 0; width: 44%; height: 50%; transform: rotate(5deg); z-index: 2; }
.story__ph--c { right: 8%; bottom: 0; width: 50%; height: 46%; transform: rotate(-2deg); z-index: 3; }
.story__collage:hover .story__ph--a { transform: rotate(-6deg) translate(-6px, -4px); }
.story__collage:hover .story__ph--b { transform: rotate(8deg) translate(6px, -6px); }
.story__collage:hover .story__ph--c { transform: rotate(0deg) translate(4px, 6px); }
.story__text { margin: 1.4rem 0 2.2rem; color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; }
.story__points { list-style: none; display: grid; gap: 18px; }
.story__points li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.story__points h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 2px; }
.story__points p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.story__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #f3ecdd; font-size: 1.35rem; }
@media (max-width: 900px) {
	.story__grid { grid-template-columns: 1fr; }
	.story__collage { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ---------- Contatti + promo ---------- */
.contact-home { background: linear-gradient(to bottom, var(--sand) 0, var(--sand-2) 100%); padding-top: clamp(40px, 5vw, 72px); }
.contact-home__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.contact-home__form {
	padding: clamp(24px, 3.4vw, 52px);
	background: var(--paper);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
}
.contact-home__form .lead { margin-top: 1rem; margin-bottom: 1.8rem; }
.contact-home__side { display: grid; gap: clamp(16px, 2vw, 24px); }
.contact-page .contact-home__form .h3 { margin-bottom: 1.2rem; }
@media (max-width: 960px) { .contact-home__grid { grid-template-columns: 1fr; } }

.contact-card { padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--deep); color: var(--on-deep); }
.contact-card__list { list-style: none; display: grid; gap: 18px; }
.contact-card__list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.contact-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(243 236 221 / 0.1); color: var(--mustard); font-size: 1.25rem; }
.contact-card__label { display: block; font-size: 0.74rem; font-weight: 800; font-stretch: 125%; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(243 236 221 / 0.7); margin-bottom: 2px; }
.contact-card a { text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

.map-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.map-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.map-card:hover img { transform: scale(1.04); }
.map-card__label { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 0.6em 1.1em; border-radius: 999px; background: #f3ecdd; color: #142321; font-weight: 700; }

/* ---------- Modulo ---------- */
.hc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.94rem; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
	width: 100%;
	min-height: 52px;
	padding: 0.8em 1em;
	border: 1.5px solid rgb(20 35 33 / 0.3);
	border-radius: var(--r-sm);
	background: var(--sand);
	color: var(--ink);
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
@media (prefers-color-scheme: dark) {
	.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea { border-color: rgb(241 232 214 / 0.28); }
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); background: var(--paper); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.6em; cursor: pointer; }
.select .icon { position: absolute; right: 1em; top: 50%; transform: translateY(-50%); pointer-events: none; }
.field__help { margin: 0; font-size: 0.85rem; color: var(--ink-2); }
.field__error { margin: 0; font-size: 0.88rem; font-weight: 600; color: #b3331f; min-height: 0; }
@media (prefers-color-scheme: dark) { .field__error { color: #f08a72; } }
.field__error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); }
.field--check label { font-weight: 500; font-size: 0.92rem; color: var(--ink-2); }
.field--check .field__error { grid-column: 2; }
.hc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hc-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.hc-form__status { margin: 0; font-weight: 600; }
.hc-form__status.is-ok { color: var(--teal); }
@media (prefers-color-scheme: dark) { .hc-form__status.is-ok { color: var(--mustard); } }
.hc-form__status.is-error { color: #b3331f; }
.hc-form.is-sending button[type="submit"] { opacity: 0.7; pointer-events: none; }
@media (max-width: 640px) { .hc-form__grid { grid-template-columns: 1fr; } }

.hc-form__subject { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--sand-2); }
.hc-form__subject .icon { color: var(--orange); font-size: 1.2rem; }

/* Integrazione plugin */
.contact-home .hcp-ticket__cut::before, .contact-home .hcp-ticket__cut::after { background: var(--sand-2); }
.masthead + .hcu-page, .masthead + .hcp-page { padding-top: clamp(28px, 4vw, 56px); }
.usato-home__rail .hcu-grid { padding-top: 8px; padding-bottom: 44px !important; margin-bottom: -26px; }

/* ---------- Masthead pagine interne ---------- */
.masthead { position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(72px, 8vw, 120px); }
.masthead__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.masthead--image .masthead__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.masthead__title { font-size: clamp(2.8rem, 1.4rem + 5vw, 5.6rem); line-height: 0.92; margin-bottom: 0.3em; max-width: 14ch; }
.masthead__lead { font-size: clamp(1.06rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 52ch; margin: 0; }
.masthead__media { border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.masthead__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 0.88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (max-width: 900px) {
	.masthead--image .masthead__grid { grid-template-columns: 1fr; }
	.masthead__media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
}

/* ---------- Testi (contenuto editor) ---------- */
.prose { max-width: 72ch; font-size: 1.08rem; }
.prose--compact { margin-bottom: 1.5rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; font-weight: 800; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--teal); font-weight: 600; }
@media (prefers-color-scheme: dark) { .prose a { color: var(--mustard); } }
.prose img, .prose figure img { border-radius: var(--r-md); }
.prose blockquote { margin: 1.6em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 6px solid var(--mustard); font-size: 1.2rem; }

/* ---------- Archivio servizi ---------- */
.svc-list { display: grid; gap: clamp(16px, 2vw, 24px); }
.svc {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(20px, 3vw, 48px);
	align-items: center;
	padding: clamp(14px, 1.6vw, 20px);
	background: var(--paper);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
}
.svc:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.svc:nth-child(even) .svc__media { order: 2; }
.svc--noimg { grid-template-columns: 1fr !important; padding: clamp(24px, 3vw, 44px); background: var(--mustard); color: #142321; }
.svc--noimg .svc__text, .svc--noimg .chips--light li { color: #142321; }
.svc--noimg .chips--light li { background: rgb(20 35 33 / 0.08); }
.svc__media { display: block; aspect-ratio: 4 / 3; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; }
.svc__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc:hover .svc__img { transform: scale(1.04); }
.svc__body { padding: clamp(6px, 1vw, 16px); }
.svc__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #142321; font-size: 1.5rem; margin-bottom: 16px; }
.svc__title { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 0.95; margin-bottom: 0.45em; }
.svc__title a { text-decoration: none; }
.svc__text { color: var(--ink-2); max-width: 56ch; }
.svc .chips { margin: 18px 0 22px; }
@media (max-width: 860px) {
	.svc, .svc:nth-child(even) { grid-template-columns: 1fr; }
	.svc:nth-child(even) .svc__media { order: 0; }
}

/* ---------- Singolo servizio ---------- */
.single-svc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.single-svc__side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { padding: 28px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); }
.side-card__title { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.7rem; line-height: 1; margin-bottom: 16px; }
.side-card--accent { background: var(--mustard); color: #142321; box-shadow: none; }
.side-card--cta { padding: 0; background: none; box-shadow: none; }
.side-card--cta .tile__cta { width: 100%; justify-content: center; padding-block: 16px; font-size: 1.02rem; }
.side-card--accent p { color: rgb(20 35 33 / 0.85); }
.side-card__wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; text-decoration: none; }
.side-card__wa:hover { text-decoration: underline; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.ticks .icon { margin-top: 3px; padding: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #f3ecdd; }
@media (max-width: 960px) {
	.single-svc { grid-template-columns: 1fr; }
	.single-svc__side { position: static; }
}
.others__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.others__list a {
	display: flex; align-items: center; gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}
.others__list a:hover { background: var(--paper); border-color: transparent; }
.others__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sand-2); font-size: 1.2rem; flex: none; }
.others__arrow { margin-left: auto; transition: transform 0.35s var(--ease); }
.others__list a:hover .others__arrow { transform: rotate(45deg); }

/* ---------- Fascia CTA ---------- */
.cta-band { padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 110px); }
.cta-band__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(32px, 5vw, 72px);
	border-radius: var(--r-lg);
	background: var(--deep);
	color: var(--on-deep);
	overflow: hidden;
	isolation: isolate;
}
.cta-band__inner::after {
	content: "";
	position: absolute;
	right: -80px; top: -80px;
	z-index: -1;
	width: 340px; height: 340px;
	border-radius: 50%;
	background: linear-gradient(to bottom, var(--red) 0 19%, transparent 19% 21%, var(--orange) 21% 40%, transparent 40% 42%, var(--mustard) 42% 61%, transparent 61% 63%, var(--sage) 63% 81%, transparent 81% 83%, var(--teal) 83% 100%);
	opacity: 0.9;
}
.cta-band__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); line-height: 0.95; margin-bottom: 0.3em; }
.cta-band__copy p { margin: 0; max-width: 48ch; color: rgb(243 236 221 / 0.82); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__actions { position: relative; z-index: 1; }
.cta-band .btn--ghost { color: var(--on-deep); background: var(--deep); }
.cta-band .btn--ghost:hover { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
@media (max-width: 700px) { .cta-band__inner::after { width: 200px; height: 200px; right: -70px; top: -70px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); }
.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 64px);
	padding-block: clamp(48px, 6vw, 88px) clamp(36px, 4vw, 56px);
}
.site-footer__brand img { width: 120px; height: auto; margin-bottom: 18px; }
.site-footer__claim { max-width: 36ch; color: rgb(243 236 221 / 0.78); }
.site-footer__title { font-size: 0.78rem; font-weight: 800; font-stretch: 125%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mustard); margin-bottom: 14px; }
.site-footer__col p { color: rgb(243 236 221 / 0.86); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-menu, .legal-menu { list-style: none; display: grid; gap: 8px; }
.site-footer .social a:hover { background: rgb(243 236 221 / 0.1); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-block: 22px 28px;
	position: relative;
	font-size: 0.88rem;
	color: rgb(243 236 221 / 0.7);
}
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgb(243 236 221 / 0.14); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .sep { margin: 0 0.4em; opacity: 0.5; }
.legal-menu { display: flex; gap: 18px; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp ---------- */
.wa-fab {
	position: fixed;
	right: clamp(14px, 2vw, 28px);
	bottom: clamp(14px, 2vw, 28px);
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 0;
	height: 60px;
	padding: 0 17px;
	border-radius: 999px;
	background: var(--teal);
	color: #f3ecdd;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 18px 34px -14px rgb(var(--tint) / 0.75);
	transition: transform 0.4s var(--ease), gap 0.4s var(--ease), background-color 0.25s ease;
}
.wa-fab .icon { font-size: 1.65rem; }
.wa-fab__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.45s var(--ease); }
.wa-fab:hover { gap: 10px; transform: translateY(-3px); background: var(--deep); }
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { max-width: 120px; }
@media (prefers-color-scheme: dark) { .wa-fab:hover { background: #1e4d4a; } }
html.menu-open .wa-fab { display: none; }

/* ---------- 404 ---------- */
.notfound { text-align: left; overflow: hidden; }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(7rem, 22vw, 18rem); line-height: 0.8; margin: 0 0 0.1em; color: var(--mustard); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.post-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card__body { padding: 22px; }
.post-card__date { font-size: 0.86rem; color: var(--ink-2); margin-bottom: 6px; }
.post-card__title { font-size: 1.35rem; font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.post-card__title a { text-decoration: none; }
.empty { padding: 48px; border: 2px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--ink-2); }
.nav-links { display: flex; gap: 10px; margin-top: 32px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.nav-links .current { background: var(--ink); color: var(--sand); }

/* ---------- Blocchi editor ---------- */
.has-ink-color { color: var(--ink) !important; }
.has-sand-background-color { background: var(--sand) !important; }
.has-sunset-background-color { background: var(--orange) !important; }
.has-mustard-background-color { background: var(--mustard) !important; }
.has-deep-background-color { background: var(--deep) !important; color: var(--on-deep); }
.wp-block-button__link { border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 0.85em 1.5em; text-decoration: none; }
.alignwide { max-width: 1100px; }
.wp-block-image figcaption { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Stampa ---------- */
@media print {
	.site-header, .wa-fab, .mobile-menu, .cta-band, .site-footer .stripes, body::before { display: none !important; }
	body { background: #fff; color: #000; }
}
