/* ==========================================================================
   Carrelli Toscana Service – stili del tema
   Colori: blu #00264f, rosso #e30613 (più accesi del logo, su richiesta), verde tricolore #2b8a46.
   ========================================================================== */

:root {
	--navy: #00264f;
	--navy-900: #001a38;
	--navy-800: #002043;
	--navy-600: #1f4a86;
	--red: #e30613;
	--red-700: #bd0510;
	--green: #2b8a46;
	--ice: #f2f4f8;
	--ice-2: #e6e9f1;
	--line: #d9dde7;
	--text: #14213a;
	--muted: #46536d;
	--white: #fff;
	--on-navy-muted: #c4d3ea;

	--font: Archivo, "Helvetica Neue", Arial, sans-serif;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 6px;
	--header-h: 84px;
	--section: clamp(56px, 7vw, 96px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow-1: 0 1px 2px rgba(0, 26, 56, 0.06), 0 6px 18px rgba(0, 26, 56, 0.08);
	--shadow-2: 0 18px 48px rgba(0, 26, 56, 0.18), 0 4px 12px rgba(0, 26, 56, 0.08);
	--focus: var(--red);
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	scrollbar-color: var(--navy-600) var(--ice);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	caret-color: var(--red);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--white); }

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--navy); text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
table { font-variant-numeric: tabular-nums; }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke-width: 2; }

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

.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: 12px; top: -60px; z-index: 100;
	padding: 10px 16px; background: var(--navy); color: var(--white);
	font-weight: 700; border-radius: 0 0 4px 4px; text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }

.site-main:focus { outline: none; }

/* Tipografia di carattere: corsivo pesante e largo come il logo */
.hero__title,
.banner__title,
.section-title,
.brands__title,
.cta-band__title,
.usato-detail__title,
.empty-state__title {
	font-family: var(--font);
	font-style: italic;
	font-weight: 800;
	font-stretch: 112%;
	text-transform: uppercase;
	letter-spacing: -0.005em;
}

/* Riga tricolore */
.tricolore { display: flex; width: 168px; height: 5px; margin: 16px 0 18px; gap: 0; }
.tricolore i { flex: 1; transform-origin: left center; }
.tricolore i:nth-child(1) { background: var(--green); }
.tricolore i:nth-child(2) { background: var(--white); }
.tricolore i:nth-child(3) { background: var(--red); }
.usato-detail .tricolore i:nth-child(2) { background: var(--ice-2); }

/* ---------- Pulsanti e link ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 12px 24px;
	font: inherit; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
	line-height: 1.2; text-decoration: none; text-align: center;
	border: 2px solid transparent; border-radius: 4px; cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 0.8125rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 4px 12px rgba(0, 26, 56, 0.22); }
.btn--red:hover { background: var(--red-700); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-900); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.85); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn--ghost-dark { border-color: var(--line); color: var(--navy); background: var(--white); }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--red); text-decoration: none;
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--red-700); }
.link-arrow:hover .icon:last-child { transform: translateX(4px); }
.link-arrow--light { color: var(--white); }
.link-arrow--light:hover { color: var(--white); text-decoration: underline; }

/* ---------- Intestazione ---------- */

.site-header {
	position: sticky; top: 0; z-index: 60;
	background: var(--white);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 26, 56, 0.1); border-color: var(--line); }

.site-header__bar {
	position: relative;
	display: flex; align-items: center; gap: 20px;
	height: var(--header-h);
}

.brand { flex: none; display: block; }
.brand__logo { width: auto; height: 58px; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; list-style: none; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item.is-mega { position: static; }

.nav__link {
	position: relative;
	display: block; padding: 10px 8px;
	font-size: 0.78rem; font-weight: 700; letter-spacing: 0.035em; text-transform: uppercase;
	color: var(--navy); text-decoration: none; white-space: nowrap;
}
.nav__link::after {
	content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px;
	background: var(--red); transform: scaleX(0); transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__item.is-current > .nav__link,
.nav__link[aria-current="page"] { color: var(--red); }
.nav__item.is-current > .nav__link::after,
.nav__link[aria-current="page"]::after,
.nav__item:hover > .nav__link::after,
.nav__item.is-open > .nav__link::after { transform: scaleX(1); }

.nav__toggle {
	display: inline-grid; place-items: center;
	width: 22px; height: 30px; margin-left: -6px; padding: 0;
	background: none; border: 0; color: var(--navy); cursor: pointer;
}
.nav__toggle .icon { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.nav__item.is-open > .nav__toggle .icon { transform: rotate(180deg); }

/* Sottomenu semplice */
.submenu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	list-style: none; padding: 8px; margin: 0;
	background: var(--white); border: 1px solid var(--line);
	border-radius: 0 0 6px 6px; box-shadow: var(--shadow-2);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.submenu__link { display: block; padding: 8px 12px; font-weight: 600; text-decoration: none; border-radius: 4px; }
.submenu__link:hover { background: var(--ice); }

/* Mega menu */
.mega {
	position: absolute; top: calc(100% - 6px); left: var(--gutter); right: var(--gutter);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 0 0 8px 8px;
	box-shadow: var(--shadow-2);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
	z-index: 70;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.mega__inner { padding: 28px 32px 22px; }
.mega__grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 26px; }
.mega__link { display: block; text-decoration: none; color: var(--navy); }
.mega__media {
	display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--ice);
}
.mega__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.mega__noimg { display: grid; place-items: center; height: 100%; color: var(--navy-600); }
.mega__noimg .icon { width: 40px; height: 40px; }
.mega__title {
	display: inline-block; margin-top: 10px; padding-bottom: 6px;
	font-weight: 700; font-size: 1rem; letter-spacing: 0.005em;
	background: linear-gradient(var(--red), var(--red)) left bottom / 32px 3px no-repeat;
	transition: background-size 0.3s var(--ease);
}
.mega__link:hover .mega__media img { transform: scale(1.05); }
.mega__link:hover .mega__title { color: var(--red); background-size: 100% 3px; }

.mega--marchi .mega__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mega__logo {
	display: grid; place-items: center; height: 96px; padding: 14px;
	border: 1px solid var(--line); border-radius: 6px; background: var(--white);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mega__logo img { max-height: 64px; width: auto; object-fit: contain; }
.mega--marchi .mega__link:hover .mega__logo { border-color: var(--red); box-shadow: var(--shadow-1); }
.mega--marchi .mega__title { font-size: 0.875rem; }

.mega__all {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
	font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--red); text-decoration: none;
}

.wordmark {
	font-style: italic; font-weight: 800; font-stretch: 115%; text-transform: uppercase;
	font-size: 1.35rem; letter-spacing: 0.01em; color: var(--navy); line-height: 1;
}

.nav__item.is-open > .mega,
.nav__item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }

@media (hover: hover) and (min-width: 1261px) {
	.nav__item.has-sub:hover > .mega,
	.nav__item.has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0.08s; }
}

.site-header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: 0.875rem; color: var(--navy); text-decoration: none; white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.header-phone .icon { color: var(--red); }
.burger { display: none; }
.nav__mobile-extra { display: none; }

@media (max-width: 1360px) {
	.header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.header-phone { width: 42px; height: 42px; justify-content: center; border: 1.5px solid var(--line); border-radius: 4px; }
	.nav__link { padding-inline: 7px; }
}

/* Menu mobile e tablet */
@media (max-width: 1260px) {
	:root { --header-h: 72px; }
	.brand__logo { height: 48px; }
	.burger {
		display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
		background: var(--navy); color: var(--white); border: 0; border-radius: 4px; cursor: pointer;
	}
	.burger .icon { width: 24px; height: 24px; }
	.burger__close { display: none; }
	.burger[aria-expanded="true"] .burger__open { display: none; }
	.burger[aria-expanded="true"] .burger__close { display: block; }
	.site-header__actions { margin-left: auto; }

	.nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, var(--header-h));
		display: block; padding: 8px var(--gutter) 32px;
		background: var(--white); overflow-y: auto; overscroll-behavior: contain;
		border-top: 1px solid var(--line);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav__link { flex: 1; padding: 16px 4px; font-size: 0.95rem; }
	.nav__link::after { display: none; }
	.nav__toggle { width: 48px; height: 48px; margin: 0; }
	.nav__toggle .icon { width: 20px; height: 20px; }
	.mega, .submenu {
		position: static; flex-basis: 100%; display: none;
		opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0;
	}
	.nav__item.is-open > .mega, .nav__item.is-open > .submenu { display: block; }
	.mega__inner { padding: 4px 0 18px; }
	.mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.mega--marchi .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mega__title { font-size: 0.875rem; margin-top: 6px; }
	.mega__logo { height: 72px; }
	.nav__mobile-extra { display: grid; gap: 10px; margin-top: 24px; }
	body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
	.header-cta { display: none; }
}

/* ---------- Hero ---------- */

.hero {
	--focus: var(--white);
	position: relative; isolation: isolate;
	display: flex; align-items: center;
	min-height: clamp(540px, 76vh, 720px);
	padding: 64px 0 132px;
	background: var(--navy); color: var(--white);
	overflow: hidden;
}
.hero__media { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, var(--navy) 0%, rgba(0, 38, 79, 0.88) 18%, rgba(0, 38, 79, 0.35) 48%, rgba(0, 38, 79, 0) 75%);
}
.hero__content { position: relative; }
.hero__title {
	max-width: 17ch;
	font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.4rem);
	line-height: 0.98; color: var(--white);
}
.hero__slogan {
	margin: 0 0 10px; font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.25;
}
.hero__text { max-width: 44ch; color: var(--on-navy-muted); font-size: 1.0625rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__swoosh { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(56px, 8vw, 110px); }
.swoosh-red { fill: var(--red); }
.swoosh-white { fill: var(--white); }

@media (prefers-reduced-motion: no-preference) {
	.tricolore--hero i { animation: rule-in 0.9s var(--ease) both; }
	.tricolore--hero i:nth-child(2) { animation-delay: 0.12s; }
	.tricolore--hero i:nth-child(3) { animation-delay: 0.24s; }
	.hero__swoosh .swoosh-red { animation: swoosh-in 1.2s var(--ease) 0.1s both; }
}
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes swoosh-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 860px) {
	.hero { min-height: 0; padding: 48px 0 104px; align-items: flex-end; }
	.hero__media { width: 100%; }
	.hero__media::after { background: linear-gradient(180deg, rgba(0, 38, 79, 0.55) 0%, rgba(0, 38, 79, 0.82) 45%, var(--navy) 100%); }
	.hero__content { padding-top: 120px; }
	.hero__title { font-size: clamp(1.85rem, 8.2vw, 2.9rem); font-stretch: 104%; max-width: none; }
	.hero__actions .btn { flex: 1 1 220px; }
}

/* ---------- Striscia attività ---------- */

.quick { position: relative; margin-top: -2px; background: var(--white); }
.quick__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 8px 8px; }
.quick + .section { padding-top: clamp(40px, 5vw, 72px); }
.quick__list li + li { border-left: 1px solid var(--line); }
.quick__list a {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
	padding: 14px 16px; text-decoration: none; color: var(--navy);
}
.quick__list .icon { width: 40px; height: 40px; margin-bottom: 8px; color: var(--red); stroke-width: 1.75; transition: transform 0.3s var(--ease); }
.quick__list strong { font-weight: 800; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.02em; }
.quick__list span { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.quick__list a:hover .icon { transform: translateY(-3px); }
.quick__list a:hover strong { color: var(--red); }

@media (max-width: 760px) {
	.quick__list { grid-template-columns: repeat(2, 1fr); padding-bottom: 12px; }
	.quick__list li + li { border-left: 0; }
	.quick__list li:nth-child(even) { border-left: 1px solid var(--line); }
	.quick__list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
	.quick__list .icon { width: 32px; height: 32px; }
	.quick__list strong { font-size: 0.95rem; }
	.quick__list span { font-size: 0.75rem; }
}

/* ---------- Sezioni ---------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--ice { background: var(--ice); }
.section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.section-title {
	position: relative; padding-bottom: 14px;
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.05;
}
.section-title::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--red);
}
.section-lead { max-width: 52ch; margin: 0; color: var(--muted); }

/* Riquadri servizi */
.service-tiles { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.service-tiles .service-tile__text strong { font-size: 0.9rem; }
.service-tiles .service-tile__icon { width: 46px; }
.service-tile a {
	display: flex; flex-direction: column; height: 100%;
	border-radius: var(--radius); overflow: hidden; text-decoration: none;
	background: var(--navy); box-shadow: var(--shadow-1);
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ice-2); }
.service-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-tile__bar {
	display: flex; align-items: center; gap: 12px; flex: 1;
	padding: 14px 14px 14px 0; color: var(--white);
	transition: background-color 0.3s var(--ease);
}
.service-tile__icon {
	display: grid; place-items: center; align-self: stretch; flex: none;
	width: 54px; margin-block: -14px; background: var(--red);
}
.service-tile__icon .icon { width: 26px; height: 26px; }
.service-tile__text { display: flex; flex-direction: column; min-width: 0; }
.service-tile__text strong { font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
.service-tile__text small { font-size: 0.8125rem; color: var(--on-navy-muted); }
.service-tile__chev { margin-left: auto; width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.service-tile a:hover { color: var(--white); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.service-tile a:hover .service-tile__media img { transform: scale(1.05); }
.service-tile a:hover .service-tile__bar { background: var(--red); }
.service-tile a:hover .service-tile__icon { background: var(--red-700); }
.service-tile a:hover .service-tile__chev { transform: translateX(4px); }

@media (max-width: 1100px) { .service-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .service-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .service-tile__icon { width: 44px; } .service-tile__text small { display: none; } }
@media (max-width: 340px) { .service-tiles { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .service-tile__bar { padding: 10px 10px 10px 0; gap: 10px; } .service-tile__icon { margin-block: -10px; } .service-tile__text strong { font-size: 0.875rem; } .service-tile__chev { display: none; } }

/* Categorie prodotto */
.product-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.product-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.product-card__media { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--ice-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card__title {
	align-self: flex-start; margin-top: 16px; padding-bottom: 8px;
	font-weight: 800; font-size: 1.25rem; color: var(--navy); line-height: 1.2;
	background: linear-gradient(var(--red), var(--red)) left bottom / 40px 3px no-repeat;
	transition: background-size 0.35s var(--ease), color 0.2s;
}
.product-card__text { margin-top: 10px; color: var(--muted); font-size: 0.975rem; }
.product-card a:hover .product-card__media img { transform: scale(1.05); }
.product-card a:hover .product-card__title { color: var(--red); background-size: 100% 3px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .product-grid { gap: 22px 14px; } .product-card__title { font-size: 1rem; margin-top: 10px; } .product-card__text { display: none; } }
@media (max-width: 340px) { .product-grid { grid-template-columns: 1fr; } }

/* Presentazione */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.about__media::after {
	content: ""; position: absolute; left: -14px; bottom: -14px; width: 46%; height: 46%; z-index: -1;
	background: var(--red); border-radius: var(--radius);
}
.about__media { isolation: isolate; }
.about__text p { color: var(--muted); max-width: 56ch; }
.about__text .section-title { margin-bottom: 22px; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } .about__media::after { left: -8px; bottom: -8px; } }

/* ---------- Usato: griglia e schede ---------- */

.usato-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .usato-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .usato-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 480px) { .usato-grid { grid-template-columns: 1fr; } }

.usato-card {
	display: flex; flex-direction: column;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.usato-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.usato-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ice); overflow: hidden; }
.usato-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.usato-card:hover .usato-card__media img { transform: scale(1.04); }
.usato-card__noimg { display: grid; place-items: center; height: 100%; color: var(--navy-600); }
.usato-card__noimg .icon { width: 56px; height: 56px; stroke-width: 1.5; }
.usato-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.usato-card__title { font-size: 1.0625rem; font-weight: 800; line-height: 1.25; }
.usato-card__title a { text-decoration: none; color: var(--navy); }
.usato-card__title a:hover { color: var(--red); }
.usato-card__facts { margin: 10px 0 0; font-size: 0.9rem; }
.usato-card__facts div { display: flex; gap: 6px; }
.usato-card__facts dt { color: var(--muted); }
.usato-card__facts dt::after { content: ":"; }
.usato-card__facts dd { margin: 0; font-weight: 700; color: var(--text); }
.usato-card__price { margin: 12px 0 14px; margin-top: auto; padding-top: 12px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.usato-card.is-sold .usato-card__media img { filter: grayscale(0.85); opacity: 0.75; }

.badge {
	position: absolute; top: 12px; left: 12px;
	padding: 5px 10px; border-radius: 3px;
	font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge--sold { background: var(--navy); color: var(--white); }

/* Filtri */
.filters { background: var(--ice); border-bottom: 1px solid var(--line); }
.filters__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; padding-block: 22px; }
.field.field--select label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; font-size: 0.875rem; color: var(--navy); }
.field--select label .icon { color: var(--red); width: 18px; height: 18px; }
.filters .btn { min-width: 150px; }
@media (max-width: 820px) {
	.filters__inner { grid-template-columns: 1fr 1fr; }
	.filters .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .filters__inner { grid-template-columns: 1fr; } }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.results-bar__count { margin: 0; font-weight: 700; color: var(--muted); }

/* Scheda di dettaglio */
.usato-head { background: var(--ice); border-bottom: 1px solid var(--line); padding-block: 14px; }
.usato-detail__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(28px, 4vw, 56px); }
@media (max-width: 900px) { .usato-detail__grid { grid-template-columns: 1fr; } }

.gallery__main { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--ice); border-radius: var(--radius); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__noimg { display: grid; place-content: center; justify-items: center; gap: 10px; height: 100%; color: var(--navy-600); font-weight: 700; }
.gallery__noimg .icon { width: 72px; height: 72px; stroke-width: 1.4; }
.gallery__thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.gallery__thumb { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; }
.gallery__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--red); }

.usato-detail__title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.05; }
.usato-detail__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 20px; }
.usato-detail__facts dt { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.usato-detail__facts dd { margin: 2px 0 0; font-weight: 800; font-size: 1.125rem; color: var(--navy); }
.price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px 20px; background: var(--ice); border-radius: var(--radius); }
.price-box__label { flex-basis: 100%; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.price-box__value { font-style: italic; font-weight: 800; font-stretch: 110%; font-size: 1.75rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.price-box__code { font-size: 0.875rem; color: var(--muted); }
.usato-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.usato-detail__sub { margin: 32px 0 10px; font-size: 1.125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 48%; font-weight: 600; color: var(--muted); }
.spec-table td { font-weight: 700; }
.usato-detail__desc { padding-bottom: var(--section); }
.usato-detail__desc .entry-content { max-width: 760px; }

.request { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.request__intro p { color: var(--muted); margin-top: 20px; }
@media (max-width: 900px) { .request { grid-template-columns: 1fr; } }

/* ---------- Marchi ---------- */

.brands { --focus: var(--white); background: var(--navy); color: var(--white); }
.brands__inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); padding-block: 26px; }
.brands__title { flex: none; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1; }
.brands__title a {
	position: relative; display: inline-block; padding: 14px 40px 14px 0; color: var(--white); text-decoration: none;
}
.brands__title a::after {
	content: ""; position: absolute; right: 0; top: 50%; width: 26px; height: 26px; margin-top: -13px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e30613' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.brands__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; flex: 1; }
.brands__list li { flex: 1 1 auto; display: flex; justify-content: center; padding: 8px clamp(12px, 2vw, 28px); }
.brands__list li + li { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.brands__list a { display: block; text-decoration: none; transition: transform 0.25s var(--ease); }
.brands__list a:hover { transform: translateY(-2px); }
.brands__list .wordmark { color: var(--white); font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.6rem); }
.brands__list a:hover .wordmark { color: #ffd3d1; }
.brands__list img { max-height: 48px; width: auto; padding: 8px 12px; background: var(--white); border-radius: 4px; }
@media (max-width: 900px) {
	.brands__inner { flex-direction: column; align-items: flex-start; }
	.brands__list { width: 100%; }
	.brands__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; }
	.brands__list li { border: 0 !important; justify-content: flex-start; padding: 6px 0; }
}

.logo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; padding-bottom: var(--section); }
.logo-grid a { display: block; text-decoration: none; text-align: center; }
.logo-grid__logo {
	display: grid; place-items: center; height: 140px; padding: 20px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.logo-grid__logo img { max-height: 90px; width: auto; }
.logo-grid__logo .wordmark { font-size: 1.75rem; }
.logo-grid__name { display: block; margin-top: 10px; font-weight: 700; color: var(--navy); }
.logo-grid a:hover .logo-grid__logo { border-color: var(--red); box-shadow: var(--shadow-1); }

/* ---------- Contatti ---------- */

.contacts__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); }
.contacts__where .section-title, .contacts__people .section-title { margin-bottom: 24px; }
.contacts__address { display: flex; gap: 14px; font-size: 1.125rem; }
.contacts__address .icon { width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.contacts__how { color: var(--muted); padding-left: 42px; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-left: 42px; }
.dept-list { list-style: none; display: grid; gap: 0; margin-bottom: 28px; }
.dept { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dept:first-child { border-top: 1px solid var(--line); }
.dept__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: var(--white); }
.dept__icon--navy { background: var(--navy); }
.dept__icon .icon { width: 26px; height: 26px; }
.dept__title { font-size: 0.875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.dept__name { margin: 2px 0 6px; font-weight: 700; font-size: 1.125rem; }
.dept__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.dept__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.dept__links .icon { color: var(--red); width: 18px; height: 18px; }
.dept__links a:hover { text-decoration: underline; }
@media (max-width: 900px) { .contacts__grid { grid-template-columns: 1fr; } .contacts__how, .contacts__actions { padding-left: 0; } }

.contact-page { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: 0 var(--section); }
.contact-page__form .section-title { margin-bottom: 24px; }
.contact-page__info { display: grid; gap: 16px; align-content: start; }
.info-card { --focus: var(--white); padding: 24px; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.info-card a { color: var(--white); }
.info-card__title { margin-bottom: 12px; color: var(--white); font-size: 0.875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.info-card__muted { color: var(--on-navy-muted); font-size: 0.95rem; }
.info-card__dept { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.info-card__dept span { display: block; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--on-navy-muted); }
.info-card .contact-list .icon { color: #ff8a86; }
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }

.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list a { text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Moduli ---------- */

.cts-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin: 0 0 16px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
	width: 100%; min-height: 50px; padding: 12px 14px;
	font: inherit; font-size: 1rem; color: var(--text);
	background: var(--white); border: 1.5px solid #bfc5d4; border-radius: 4px;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
select {
	appearance: none; padding-right: 42px; cursor: pointer;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300264f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
input::placeholder, textarea::placeholder { color: #6b7390; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 38, 79, 0.18); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.field__error { display: block; margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--red-700); }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--red); }
.field--check label { font-weight: 500; font-size: 0.9rem; color: var(--muted); margin: 0; }
.field--check .field__error { grid-column: 2; }
.cts-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.cts-form__note { font-size: 0.875rem; color: var(--muted); }
.cts-form__about { padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 18px 20px; background: #e7f4ea; border: 1px solid #b9dcc2; border-radius: var(--radius); color: #164f27; }
.form-errors { margin-bottom: 20px; padding: 16px 20px; background: #fbe9e8; border: 1px solid #f0c3c1; border-radius: var(--radius); color: var(--red-700); }
.form-errors ul { margin: 8px 0 0 18px; }
.form-errors a { color: var(--red-700); }
.notice { padding: 14px 18px; background: var(--ice); border-radius: var(--radius); }
@media (max-width: 600px) { .cts-form__grid { grid-template-columns: 1fr; } }

.search-form { display: flex; gap: 8px; max-width: 480px; margin: 20px auto; }
.search-form .btn { min-width: 54px; padding-inline: 14px; }

/* ---------- Testata pagine interne ---------- */

.banner {
	--focus: var(--white);
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(240px, 24vw, 340px);
	display: flex; align-items: center;
	background: var(--navy); color: var(--white);
}
.banner__media { position: absolute; inset: 0; z-index: -1; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.banner__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, var(--navy) 0%, rgba(0, 38, 79, 0.92) 28%, rgba(0, 38, 79, 0.45) 55%, rgba(0, 38, 79, 0) 80%);
}
.banner__content { padding-block: 36px 28px; }
.banner__headline { max-width: 52%; }
.banner__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1; color: var(--white); }
.banner__subtitle { margin: 12px 0 0; font-style: italic; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem); color: var(--white); }
.banner .tricolore { margin-bottom: 0; }
@media (max-width: 760px) {
	.banner { align-items: flex-end; min-height: 280px; }
	.banner__media::after { background: linear-gradient(180deg, rgba(0, 38, 79, 0.3), rgba(0, 38, 79, 0.92) 70%); }
	.banner__headline { max-width: none; }
}

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 14px; font-size: 0.8125rem; font-weight: 600; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: 0.55; }
.crumbs a { color: var(--on-navy-muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current] { color: var(--white); }
.crumbs--dark ol { margin: 0; }
.crumbs--dark a { color: var(--muted); }
.crumbs--dark a:hover { color: var(--red); }
.crumbs--dark [aria-current] { color: var(--navy); }

/* ---------- Contenuti delle pagine (editor a blocchi) ---------- */

.page-body { padding-top: clamp(32px, 5vw, 64px); }
.page-body__tiles { padding-bottom: var(--section); }
.entry-content { padding-bottom: var(--section); }
.entry-content--flush { padding-bottom: 0; }
.entry-content > * { max-width: 760px; }
.entry-content > .cts-features,
.entry-content > .cts-tiles,
.entry-content > .cts-perks,
.entry-content > .cts-media-row,
.entry-content > .cts-chips,
.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > .wp-block-columns { max-width: none; }
.entry-content > p:first-child { font-size: 1.1875rem; color: var(--navy); }
.entry-content p, .entry-content li { color: var(--text); }
.entry-content h2 {
	margin: clamp(40px, 5vw, 64px) 0 18px;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.12;
	font-style: normal; font-stretch: 100%; text-transform: none; letter-spacing: -0.01em;
}
.entry-content > h2:first-child { margin-top: 0; }
.entry-content h3 { margin: 28px 0 10px; font-size: 1.1875rem; font-weight: 800; }
.entry-content ul:not([class]), .entry-content ol:not([class]) { padding-left: 1.3em; margin-bottom: 1em; }
.entry-content img { border-radius: var(--radius); }
.entry-content a:not(.btn) { color: var(--red-700); }

/* Elenco di punti */
.cts-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 8px 0 24px; }
.cts-feature { position: relative; padding: 22px 0 18px 58px; border-top: 1px solid var(--line); }
.cts-feature::before {
	content: ""; position: absolute; left: 0; top: 22px; width: 40px; height: 40px; border-radius: 50%;
	background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.cts-feature:nth-child(4n + 2)::before, .cts-feature:nth-child(4n + 3)::before { background-color: var(--navy); }
.cts-feature h3 { margin: 6px 0 6px; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.02em; }
.cts-feature p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .cts-features { grid-template-columns: 1fr; } }

/* Elenco compatto */
.cts-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0 !important; margin: 8px 0 28px; }
.cts-chips li {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--white);
	font-weight: 700; font-size: 0.95rem; color: var(--navy);
}
.cts-chips li::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: skewX(-14deg); }

/* Griglia foto con didascalia */
.cts-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 8px 0 28px; }
.cts-tiles .wp-block-image { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.cts-tiles .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.cts-tiles .wp-element-caption {
	margin: 0; padding: 12px 16px; background: var(--navy); color: var(--white);
	font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; text-align: left;
}
.cts-tiles .wp-block-image:nth-child(even) .wp-element-caption { background: var(--red); }
@media (max-width: 900px) { .cts-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cts-tiles { grid-template-columns: 1fr; } }

/* Fascia vantaggi */
.cts-perks {
	--focus: var(--white);
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
	margin: 12px 0 8px; padding: 8px; border-radius: 8px; background: var(--navy);
}
.cts-perks h3 {
	display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 22px 16px;
	color: var(--white); font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; text-align: center;
}
.cts-perks h3 + h3 { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.cts-perks h3::before {
	content: ""; width: 48px; height: 48px; border-radius: 50%;
	background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 22px no-repeat;
}
@media (max-width: 760px) {
	.cts-perks { grid-template-columns: 1fr 1fr; }
	.cts-perks h3:nth-child(3) { border-left: 0; }
	.cts-perks h3:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.18); }
}

/* Testo accanto a foto */
.cts-media-row { margin: 24px 0 32px; gap: 0; background: var(--ice); border-radius: var(--radius); overflow: hidden; }
.cts-media-row .wp-block-media-text__media img { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; height: 100%; }
.cts-media-row .wp-block-media-text__content { padding: clamp(24px, 4vw, 48px); }
.cts-media-row .wp-block-media-text__content h2 { margin-top: 0; }

/* ---------- Fascia di richiesta ---------- */

.cta-band { --focus: var(--white); position: relative; background: var(--navy-800); color: var(--white); overflow: hidden; }
.cta-band::before {
	content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; border-radius: 50%;
	border: 26px solid rgba(255, 255, 255, 0.04);
}
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 88px); }
.cta-band__title { max-width: 26ch; color: var(--white); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.05; }
.cta-band__text { margin: 12px 0 0; color: var(--on-navy-muted); max-width: 54ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Stati vuoti, elenchi, paginazione ---------- */

.empty-state { max-width: 560px; margin: 24px auto; text-align: center; }
.empty-state__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: var(--ice); color: var(--red); }
.empty-state__icon .icon { width: 32px; height: 32px; }
.empty-state__title { margin-bottom: 12px; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.empty-state p { color: var(--muted); }
.empty-note { padding: 20px 24px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.post-list { list-style: none; display: grid; gap: 28px; }
.post-item { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-item:not(:has(.post-item__media)) { grid-template-columns: 1fr; }
.post-item__media img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.post-item__title { font-size: 1.375rem; font-weight: 800; }
.post-item__title a { text-decoration: none; }
.post-item__meta { margin: 6px 0 8px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 640px) { .post-item { grid-template-columns: 1fr; } }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 4px; font-weight: 700; text-decoration: none; color: var(--navy);
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ---------- Piè di pagina ---------- */

.site-footer { --focus: var(--white); position: relative; background: var(--navy-900); color: var(--on-navy-muted); }
.site-footer__wave { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: clamp(32px, 4vw, 60px); margin-bottom: -1px; pointer-events: none; }
.wave-red { fill: var(--red); }
.wave-navy { fill: var(--navy-900); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer__inner {
	display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 40px clamp(32px, 5vw, 72px);
	padding-block: clamp(40px, 5vw, 64px) 40px;
}
.site-footer__inner:has(> :nth-child(4)) { grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr; }
.site-footer__brand img { width: 210px; height: auto; margin-bottom: 18px; }
.site-footer__slogan { font-style: italic; font-size: 1.125rem; color: var(--white); }
.site-footer__address { margin-bottom: 14px; line-height: 1.6; }
.site-footer__address strong { color: var(--white); }
.site-footer__title { margin-bottom: 16px; color: var(--white); font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer .contact-list .icon { color: #ff8a86; }
.site-footer__dept { margin: 14px 0 0; font-size: 0.95rem; }
.site-footer__dept span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-menu { list-style: none; display: grid; gap: 8px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; }
.site-footer__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; }
.site-footer__legal p { margin: 0; }
.legal-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) {
	.site-footer__inner, .site-footer__inner:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__inner, .site-footer__inner:has(> :nth-child(4)) { grid-template-columns: 1fr; } }

/* Barra contatti rapidi (telefono) */
.action-bar { display: none; }
@media (max-width: 760px) {
	/* Lo spazio per la barra sta dentro il piè di pagina, così sotto resta blu e non una fascia bianca */
	.site-footer { padding-bottom: calc(76px + max(10px, env(safe-area-inset-bottom))); }
	.action-bar {
		--focus: var(--white);
		/* Barra staccata dal bordo: su iPhone resta sopra la fascia di sistema invece di allungarsi */
		position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 55;
		display: flex; height: 58px; border-radius: 14px; overflow: hidden;
		background: var(--navy); box-shadow: 0 8px 24px rgba(0, 26, 56, 0.35);
	}
	.action-bar a {
		flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		color: var(--white); text-decoration: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
	}
	.action-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.14); }
	.action-bar .icon { width: 22px; height: 22px; }
	.action-bar__main { background: var(--red); }
}

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Stampa */
@media print {
	.site-header, .action-bar, .site-footer__wave, .cta-band, .filters, .hero__swoosh { display: none !important; }
	body { padding: 0; }
}
.usato-detail__desc .section-title { margin-bottom: 20px; }
.filters .field { margin: 0; }


/* ==========================================================================
   Impaginazione delle pagine interne (mockup novembre 2026)
   ========================================================================== */

/* Titolo centrato tra due linee rosse */
.section-title--center,
.entry-content .is-style-centrato {
	display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.5vw, 28px);
	max-width: none; margin: clamp(48px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); padding: 0;
	font-style: normal; font-stretch: 100%; font-weight: 800; text-transform: uppercase; text-align: center;
	font-size: clamp(1.2rem, 0.95rem + 1vw, 1.7rem); letter-spacing: 0.01em; line-height: 1.15; color: var(--navy);
}
.section-title--center::before, .section-title--center::after,
.entry-content .is-style-centrato::before, .entry-content .is-style-centrato::after {
	content: ""; position: static; flex: 0 1 140px; height: 2px; background: var(--red);
}
.section-head--center { text-align: center; }
.section-head--center .section-title--center { margin-top: 0; }
.entry-content > .is-style-centrato { max-width: none; }
@media (max-width: 520px) {
	.section-title--center::before, .section-title--center::after,
	.entry-content .is-style-centrato::before, .entry-content .is-style-centrato::after { flex-basis: 28px; }
}

/* Introduzione: testo a sinistra, riquadro con elenco a destra */
.entry-content > .cts-intro { max-width: none; }
.cts-intro { gap: clamp(28px, 5vw, 64px) !important; align-items: center !important; margin: 0 0 8px; }
.cts-intro h2 { margin-top: 0 !important; }
.cts-intro p { color: var(--muted); }
.cts-checkbox { padding: clamp(20px, 3vw, 32px); background: var(--ice); border-radius: 8px; }
.cts-checks { list-style: none; display: grid; gap: 14px; padding: 0 !important; margin: 0; }
.cts-checks li { position: relative; padding-left: 36px; color: var(--text); line-height: 1.45; }
.cts-checks li::before {
	content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.cts-checks strong { color: var(--navy); }

/* Griglia di voci con foto (mezzi, categorie di ricambi, componenti) */
.entry-content > .cts-items { max-width: none; }
.cts-items { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.cts-items.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cts-items.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cts-items .wp-block-image {
	display: flex; flex-direction: column; margin: 0; padding: 12px 12px 16px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cts-items .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 0; }
.cts-items .wp-element-caption {
	margin: 12px 0 0; padding-bottom: 10px; text-align: center; line-height: 1.25;
	font-weight: 700; font-size: 0.95rem; color: var(--navy);
	background: linear-gradient(var(--red), var(--red)) center bottom / 32px 3px no-repeat;
}
.cts-items .wp-element-caption a { color: inherit; text-decoration: none; }
.cts-items .wp-block-image:hover { border-color: var(--red); box-shadow: var(--shadow-1); transform: translateY(-2px); }
@media (max-width: 1100px) { .cts-items, .cts-items.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cts-items, .cts-items.is-5, .cts-items.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Schede con icona */
.entry-content > .cts-icards { max-width: none; }
.cts-icards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 24px; }
.cts-icard {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 28px 20px 24px; background: var(--ice); border-radius: 8px;
	transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cts-icard::before {
	content: ""; width: 52px; height: 52px; margin-bottom: 14px; background: var(--red);
	-webkit-mask: var(--ic, url("../icons/settings.svg")) center / contain no-repeat;
	mask: var(--ic, url("../icons/settings.svg")) center / contain no-repeat;
}
.cts-icard h3 { margin: 0 !important; font-size: 1.0625rem !important; font-weight: 800; line-height: 1.25; color: var(--navy); text-transform: none !important; letter-spacing: 0 !important; }
.cts-icard p { margin: 8px 0 0 !important; font-size: 0.9375rem; color: var(--muted) !important; }
.cts-icard:hover { background: var(--white); box-shadow: var(--shadow-2); }
.cts-icards.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.cts-icards.is-compact .cts-icard { padding: 18px 10px; background: var(--white); border: 1px solid var(--line); }
.cts-icards.is-compact .cts-icard::before { width: 34px; height: 34px; margin-bottom: 8px; }
.cts-icards.is-compact .cts-icard h3 { font-size: 0.875rem !important; }
.is-icon-wrench { --ic: url("../icons/wrench.svg"); }
.is-icon-cog { --ic: url("../icons/cog.svg"); }
.is-icon-settings { --ic: url("../icons/settings.svg"); }
.is-icon-cable { --ic: url("../icons/cable.svg"); }
.is-icon-link { --ic: url("../icons/link.svg"); }
.is-icon-package { --ic: url("../icons/package.svg"); }
.is-icon-truck { --ic: url("../icons/truck.svg"); }
.is-icon-calendar { --ic: url("../icons/calendar-clock.svg"); }
.is-icon-shield { --ic: url("../icons/shield-check.svg"); }
.is-icon-map { --ic: url("../icons/map-pin.svg"); }
.is-icon-user { --ic: url("../icons/users.svg"); }
.is-icon-forklift { --ic: url("../icons/forklift.svg"); }
.is-icon-hammer { --ic: url("../icons/hammer.svg"); }
.is-icon-layers { --ic: url("../icons/layers.svg"); }
.is-icon-award { --ic: url("../icons/award.svg"); }
.is-icon-clock { --ic: url("../icons/clock.svg"); }
@media (max-width: 600px) { .cts-icards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cts-icard { padding: 22px 12px 18px; } .cts-icards.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Foto accanto al testo (Chi siamo, Oleodinamica, Servizi) */
.cts-media-row { background: transparent; border-radius: 0; overflow: visible; }
.cts-media-row .wp-block-media-text__media img { border-radius: var(--radius); aspect-ratio: 4 / 3; height: auto; }
.cts-media-row .wp-block-media-text__content { padding: 0 0 0 clamp(24px, 4vw, 56px); }
.cts-media-row.has-media-on-the-right .wp-block-media-text__content { padding: 0 clamp(24px, 4vw, 56px) 0 0; }
.cts-media-row .wp-block-media-text__content p { color: var(--muted); }
@media (max-width: 600px) { .cts-media-row .wp-block-media-text__content, .cts-media-row.has-media-on-the-right .wp-block-media-text__content { padding: 20px 0 0; } }

/* Tre foto affiancate */
.entry-content > .cts-photos { max-width: none; }
.cts-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 24px; }
.cts-photos .wp-block-image { margin: 0; }
.cts-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 600px) { .cts-photos { grid-template-columns: 1fr 1fr; } .cts-photos .wp-block-image:first-child { grid-column: 1 / -1; } }

/* Fascia finale rossa o blu con foto */
.entry-content > .cts-band { max-width: none; }
.cts-band { --focus: var(--white); margin: clamp(32px, 4vw, 56px) 0 0; background: var(--red); color: var(--white); border-radius: 8px; overflow: hidden; grid-template-columns: 45% 1fr !important; }
.cts-band.is-navy { background: var(--navy); }
.cts-band .wp-block-media-text__content { padding: clamp(24px, 4vw, 48px) !important; }
.cts-band h2 { margin: 0 0 8px !important; color: var(--white); font-style: italic !important; font-stretch: 108% !important; text-transform: uppercase !important; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem) !important; }
.cts-band p { color: rgba(255, 255, 255, 0.88) !important; margin-bottom: 18px; }
.cts-band .wp-block-media-text__media img { aspect-ratio: auto; height: 100%; min-height: 220px; object-fit: cover; border-radius: 0; }
@media (max-width: 600px) { .cts-band { grid-template-columns: 1fr !important; } .cts-band .wp-block-media-text__media { order: 2; } }

/* Pulsanti dell'editor a blocchi */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 24px;
	font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none !important;
	background: var(--red); color: var(--white) !important; border-radius: 4px; transition: background-color 0.2s var(--ease);
}
.wp-block-button__link:hover { background: var(--red-700); }
.cts-band .wp-block-button__link { background: var(--white); color: var(--navy) !important; }
.cts-band.is-navy .wp-block-button__link { background: var(--red); color: var(--white) !important; }
.cts-band .wp-block-button__link:hover { background: var(--navy-900); color: var(--white) !important; }

/* Prodotti del catalogo */
.prod-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.prod-badge { padding: 3px 9px; border-radius: 3px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--ice-2); color: var(--navy); }
.prod-badge.is-noleggio { background: #ffe3e4; color: var(--red-700); }
.usato-card__cat { margin: 4px 0 0; font-size: 0.875rem; color: var(--muted); }
.scheda-pdf { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 700; text-decoration: none; }
.scheda-pdf .icon { color: var(--red); }
.section-lead--center { margin: -12px auto 0; text-align: center; }
.usato-detail__lead { margin: 18px 0 0; color: var(--muted); }

/* Mega menu compatto (riferimento cliente, novembre 2026) */
@media (min-width: 1261px) {
	.mega { left: 0; right: 0; width: min(780px, calc(100% - 2 * var(--gutter))); margin-inline: auto; border-radius: 0 0 10px 10px; }
	.mega__inner { padding: 22px 26px 18px; }
	.mega__grid { gap: 18px 22px; }
	.mega__media { aspect-ratio: 16 / 10; max-height: 132px; border-radius: 6px; }
	.mega__link { text-align: center; }
	.mega__title { margin-top: 10px; font-size: 0.95rem; background-position: center bottom; }
	.mega__all { display: flex; justify-content: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
	.mega--marchi .mega__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.mega--marchi .mega__logo { height: 80px; }
}
.cts-band .wp-block-media-text__media { position: relative; align-self: stretch; min-height: 240px; }
.cts-band .wp-block-media-text__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; min-height: 0; }
.cts-band { align-items: stretch !important; }
.page-body + .section:not(.section--ice) { padding-top: 0; }
.hero__title { max-width: 19ch; font-size: clamp(2.2rem, 1.1rem + 3vw, 3.9rem); }
.mega__media { background: var(--white); }
.mega__media img { object-fit: contain; }

/* ==========================================================================
   Home (mockup novembre 2026): titoli corsivi, card soluzioni, card macchinari, loghi
   ========================================================================== */

.section-title--center.is-italic {
	font-style: italic; font-stretch: 112%; font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.5rem); letter-spacing: -0.005em;
}
.section-head--center .section-lead--center { margin-top: -18px; }

/* Soluzioni per il tuo lavoro */
.solution-cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.solution-card a {
	--focus: var(--white);
	position: relative; display: flex; flex-direction: column; height: 100%;
	border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--white);
	background: var(--navy); box-shadow: var(--shadow-1);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.solution-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.solution-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.solution-card__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(0, 38, 79, 0), var(--navy)); }
.solution-card__body { position: relative; display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 0 22px 22px; margin-top: -34px; }
.solution-card__head { display: flex; align-items: center; gap: 14px; }
.solution-card__icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 8px; background: var(--red); box-shadow: 0 6px 16px rgba(0, 26, 56, 0.35); }
.solution-card__icon .icon { width: 28px; height: 28px; }
.solution-card__title { font-style: italic; font-weight: 800; font-stretch: 110%; text-transform: uppercase; font-size: clamp(1.15rem, 0.9rem + 0.7vw, 1.45rem); line-height: 1.05; }
.solution-card__text { color: var(--on-navy-muted); font-size: 0.95rem; line-height: 1.45; }
.solution-card__more {
	display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px;
	font-style: italic; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase;
}
.solution-card__more .icon { width: 18px; height: 18px; color: var(--red); transition: transform 0.25s var(--ease); }
.solution-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--white); }
.solution-card a:hover .solution-card__media img { transform: scale(1.05); }
.solution-card a:hover .solution-card__more .icon { transform: translateX(4px); }
@media (max-width: 1100px) { .solution-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .solution-cards { grid-template-columns: 1fr; } }

/* I nostri macchinari */
.machine-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.machine-card a {
	display: grid; grid-template-columns: 48% 1fr; align-items: center; gap: 12px; height: 100%;
	padding: 16px 18px 16px 10px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-1);
	text-decoration: none; color: var(--text); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.machine-card__media { display: block; aspect-ratio: 1; }
.machine-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease); }
.machine-card__body { display: flex; flex-direction: column; gap: 8px; }
.machine-card__title { font-style: italic; font-weight: 800; font-stretch: 110%; text-transform: uppercase; font-size: clamp(1.05rem, 0.85rem + 0.5vw, 1.3rem); line-height: 1.05; color: var(--navy); }
.machine-card__text { font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.machine-card__more { display: inline-flex; align-items: center; gap: 4px; font-style: italic; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--red); }
.machine-card__more .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.machine-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.machine-card a:hover .machine-card__media img { transform: scale(1.05); }
.machine-card a:hover .machine-card__more .icon { transform: translateX(4px); }
@media (max-width: 1100px) { .machine-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .machine-cards { grid-template-columns: 1fr; } .machine-card a { grid-template-columns: 42% 1fr; } }

/* Loghi dei marchi */
.brands__list .brand-logo { height: clamp(26px, 2.6vw, 38px); width: auto; max-width: 160px; padding: 0; background: none; border-radius: 0; }
.brands__list li:last-child .brand-logo, .brands__list img[alt="BT"] { height: clamp(34px, 3.4vw, 48px); }
.mega__logo .brand-logo { max-height: 44px; max-width: 80%; width: auto; }
.mega__logo img[alt="BT"] { max-height: 56px; }
.logo-grid__logo .brand-logo { max-height: 64px; max-width: 80%; width: auto; }
.solution-card__title { font-size: clamp(1.02rem, 0.78rem + 0.6vw, 1.3rem); font-stretch: 104%; overflow-wrap: anywhere; }
.section-lead--center { max-width: 70ch; }
@media (min-width: 901px) {
	.brands__inner { gap: 32px; }
	.brands__list { flex-wrap: nowrap; justify-content: space-between; }
	.brands__list li { flex: 0 1 auto; padding-inline: clamp(10px, 1.6vw, 26px); }
}
.brands__list .brand-logo { max-width: 150px; }
@media (max-width: 900px) {
	.brands__list li { min-width: 0; }
	/* Altezza esplicita: con "height: auto" Safari su iPhone disegnava i loghi SVG larghi zero */
	.brands__list a { width: 100%; }
	.brands__list .brand-logo { height: 26px; width: auto; max-width: 100%; max-height: none; object-fit: contain; object-position: left center; }
	.brands__list li:last-child .brand-logo, .brands__list img[alt="BT"] { height: 38px; }
}
@media (max-width: 560px) { .solution-card__media { aspect-ratio: 16 / 9; } }

/* ==========================================================================
   Chi siamo (mockup novembre 2026)
   ========================================================================== */

/* Introduzione: testo a sinistra, foto a destra con angolo rosso */
.cts-media-row.is-intro { align-items: center; margin-bottom: 8px; }
.cts-media-row.is-intro h2 {
	position: relative; padding-bottom: 14px; margin-bottom: 18px !important;
	font-style: italic; font-stretch: 108%; font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.3rem);
}
.cts-media-row.is-intro h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--red); }
.cts-media-row.is-intro .wp-block-media-text__media { position: relative; }
.cts-media-row.is-intro .wp-block-media-text__media::after {
	content: ""; position: absolute; right: 0; bottom: 0; width: 22%; height: 26%;
	background: var(--red); clip-path: polygon(100% 0, 100% 100%, 0 100%); border-bottom-right-radius: var(--radius);
}
.cts-media-row.is-intro .cts-icards.is-compact .cts-icard { background: var(--ice); border: 0; }

/* Punti di forza su fascia grigia a tutta larghezza */
.entry-content > .is-style-centrato:has(+ .cts-points) {
	margin-bottom: 0; padding: clamp(36px, 4vw, 52px) 0 clamp(18px, 2vw, 28px);
	background: var(--ice); box-shadow: 0 0 0 100vmax var(--ice); clip-path: inset(0 -100vmax);
}
.entry-content > .cts-points { max-width: none; }
.cts-points {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 clamp(32px, 4vw, 48px);
	padding-bottom: clamp(32px, 4vw, 48px); background: var(--ice); box-shadow: 0 0 0 100vmax var(--ice); clip-path: inset(0 -100vmax);
}
.cts-point { position: relative; display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: start; padding: 4px clamp(14px, 2vw, 26px); }
.cts-point + .cts-point { border-left: 1px solid var(--line); }
.cts-point::before {
	content: ""; grid-row: 1 / span 2; width: 44px; height: 44px; background: var(--red);
	-webkit-mask: var(--ic, url("../icons/settings.svg")) center / contain no-repeat; mask: var(--ic, url("../icons/settings.svg")) center / contain no-repeat;
}
.cts-point h3 { margin: 0 !important; font-size: 1.0625rem !important; font-weight: 800; color: var(--navy); }
.cts-point p { margin: 4px 0 0 !important; font-size: 0.9rem; line-height: 1.4; color: var(--muted) !important; }
.is-icon-zap { --ic: url("../icons/zap.svg"); }
@media (max-width: 1000px) {
	.cts-points { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
	.cts-point:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) { .cts-points { grid-template-columns: 1fr; } .cts-point + .cts-point { border-left: 0; } }

/* Tre foto con tagli diagonali */
.entry-content > .cts-slanted { max-width: none; }
.cts-slanted { display: flex; margin: 0 0 clamp(36px, 5vw, 56px); }
.cts-slanted .wp-block-image { flex: 1; margin: 0; }
.cts-slanted .wp-block-image + .wp-block-image { margin-left: -4.5%; }
.cts-slanted img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.cts-slanted .wp-block-image:first-child img { clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); border-radius: var(--radius) 0 0 var(--radius); }
.cts-slanted .wp-block-image:nth-child(2) img { clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
.cts-slanted .wp-block-image:last-child img { clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 var(--radius) var(--radius) 0; }
.cts-slanted .wp-block-image:nth-child(2) { position: relative; left: 0.6%; }
.cts-slanted .wp-block-image:last-child { position: relative; left: 1.2%; }

/* Riquadro Dove siamo */
.entry-content > .where-box { max-width: none; }
.where-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.8fr); gap: clamp(20px, 3vw, 44px); align-items: center; margin: 0 0 clamp(16px, 3vw, 32px); }
.where-box__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-1); }
.where-box__info { position: relative; padding-left: clamp(20px, 2.5vw, 32px); }
.where-box__info::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--red); }
.where-box__title { margin: 0 0 16px !important; padding: 0 !important; font-style: italic !important; font-weight: 800; font-stretch: 110% !important; text-transform: uppercase !important; font-size: clamp(1.4rem, 1.05rem + 1vw, 1.9rem) !important; color: var(--navy); }
.where-box__title::after { display: none !important; }
.where-box__line { display: flex; gap: 12px; margin: 0 0 12px; color: var(--text); }
.where-box__line .icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--red); }
.where-box__line--muted { font-size: 0.9375rem; color: var(--muted) !important; }
.where-box__line--muted .icon { color: var(--navy); }
.where-box__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.where-box__map img { width: 100%; max-width: 280px; height: auto; margin-inline: auto; }
@media (max-width: 1000px) {
	.where-box { grid-template-columns: 1fr 1fr; }
	.where-box__photo { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .where-box { grid-template-columns: 1fr; } .where-box__map img { max-width: 220px; } }
.entry-content > .is-style-centrato:has(+ .cts-points) { font-style: italic; font-stretch: 112%; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); }
.cts-slanted { gap: 0; }
.cts-slanted .wp-block-image + .wp-block-image { margin-left: -3.2%; }
.cts-slanted .wp-block-image:nth-child(2), .cts-slanted .wp-block-image:last-child { left: 0; }
.cts-slanted .wp-block-image:first-child img { clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%); }
.cts-slanted .wp-block-image:nth-child(2) img { clip-path: polygon(7.5% 0, 100% 0, 92.5% 100%, 0 100%); }
.cts-slanted .wp-block-image:last-child img { clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%); }
.cts-slanted .wp-block-image:nth-child(2) { transform: translateX(0.8%); }
.cts-slanted .wp-block-image:last-child { transform: translateX(1.6%); }
.entry-content:has(> .where-box:last-child) { padding-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 600px) { .cts-slanted { flex-direction: column; gap: 10px; } .cts-slanted .wp-block-image + .wp-block-image { margin-left: 0; } .cts-slanted .wp-block-image { transform: none !important; } .cts-slanted img { clip-path: none !important; border-radius: var(--radius) !important; } }

/* ==========================================================================
   Servizi (mockup novembre 2026)
   ========================================================================== */
.cts-media-row.is-intro:not(.has-media-on-the-right) .wp-block-media-text__media::after { display: none; }
.cts-media-row.is-intro:not(.has-media-on-the-right) .wp-block-media-text__media { padding: 0 0 14px 14px; isolation: isolate; }
.cts-media-row.is-intro:not(.has-media-on-the-right) .wp-block-media-text__media::before {
	content: ""; position: absolute; left: 0; bottom: 0; width: 45%; height: 55%; z-index: -1; background: var(--red); border-radius: var(--radius);
}
.cts-media-row.is-plain-icons .cts-icards.is-compact { gap: 0; }
.cts-media-row.is-plain-icons .cts-icards.is-compact .cts-icard { background: none; border: 0; border-radius: 0; padding: 6px 8px; box-shadow: none; }
.cts-media-row.is-plain-icons .cts-icards.is-compact .cts-icard + .cts-icard { border-left: 1px solid var(--line); }
.cts-media-row.is-plain-icons .cts-icard:hover { box-shadow: none; }

.entry-content > .cts-scards { max-width: none; }
.cts-scards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 clamp(36px, 5vw, 56px); }
.cts-scard { grid-template-columns: 48% 1fr !important; align-items: stretch !important; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.cts-scard:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.cts-scard .wp-block-media-text__media { position: relative; min-height: 190px; }
.cts-scard .wp-block-media-text__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0; }
.cts-scard .wp-block-media-text__content { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-content: center; padding: 20px 22px !important; }
.cts-scard .wp-block-media-text__content::before {
	content: ""; grid-row: 1; width: 44px; height: 44px; border-radius: 8px; background: var(--red) var(--ic, url("../icons/settings.svg")) center / 24px no-repeat;
	background-image: none; -webkit-mask: none; mask: none;
}
.cts-scard .wp-block-media-text__content::before { background-color: var(--red); }
.cts-scard h3 { grid-column: 2; align-self: center; margin: 0 !important; font-style: italic; font-weight: 800; font-stretch: 108%; text-transform: uppercase; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.2rem) !important; line-height: 1.05; color: var(--navy); }
.cts-scard p { grid-column: 1 / -1; margin: 12px 0 0 !important; font-size: 0.9375rem; color: var(--muted) !important; }
.cts-scard .cts-scard__more { margin-top: 14px !important; }
.cts-scard__more a { display: inline-flex; align-items: center; gap: 4px; font-style: italic; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--red) !important; text-decoration: none; }
.cts-scard__more a::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform 0.25s var(--ease); }
.cts-scard:hover .cts-scard__more a::after { transform: translateX(4px); }
.cts-scard .wp-block-media-text__content { position: relative; }
.cts-scard .wp-block-media-text__content::after {
	content: ""; position: absolute; left: 22px; top: var(--ic-top, 20px); width: 44px; height: 44px; pointer-events: none;
	background: #fff; -webkit-mask: var(--ic) center / 24px no-repeat; mask: var(--ic) center / 24px no-repeat;
}
@media (max-width: 900px) { .cts-scards { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cts-scard { grid-template-columns: 1fr !important; } .cts-scard .wp-block-media-text__media { min-height: 180px; } }

.entry-content > .cts-why { max-width: none; }
.cts-why {
	display: grid; grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)); align-items: center;
	margin: 0 0 8px; padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 36px); background: var(--ice); border-radius: 10px;
}
.cts-why h2 { position: relative; margin: 0 !important; padding: 0 0 12px !important; font-style: italic; font-stretch: 110%; text-transform: uppercase; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem) !important; line-height: 1; }
.cts-why h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--red); }
.cts-why__item { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 !important; padding: 4px 14px; border-left: 1px solid var(--line); text-align: center; font-weight: 800; font-size: 0.9375rem; line-height: 1.25; color: var(--navy) !important; }
.cts-why__item::before { content: ""; width: 40px; height: 40px; background: var(--red); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
@media (max-width: 1000px) { .cts-why { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } .cts-why h2 { grid-column: 1 / -1; } .cts-why__item:nth-of-type(odd) { border-left: 0; } }
.entry-content:has(> .cts-why:last-child) { padding-bottom: clamp(48px, 6vw, 80px); }
.entry-content .is-style-centrato { font-style: italic; font-stretch: 112%; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); }
.cts-scard { padding: 0 !important; }
.cts-scard .wp-block-media-text__media { margin: 0; align-self: stretch; }
/* Loghi caricati dalle marche: sulla fascia blu diventano bianchi */
.brand-logo.is-on-dark { filter: brightness(0) invert(1); }

/* ==========================================================================
   Oleodinamica (mockup novembre 2026)
   ========================================================================== */
/* Titoli diritti con trattino rosso nelle introduzioni (come nel mockup) */
.cts-media-row.is-intro.is-plain-icons h2 { font-style: normal; font-stretch: 100%; text-transform: none; }

/* Card verticali */
.entry-content > .cts-vcards { max-width: none; }
.cts-vcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 clamp(8px, 2vw, 16px); }
.cts-vcard { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-1); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.cts-vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cts-vcard .wp-block-image { position: relative; margin: 0; }
.cts-vcard .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.cts-vcard::before {
	content: ""; position: absolute; z-index: 1; left: 16px; top: calc((100% - 0px) * 0); width: 46px; height: 46px; border-radius: 8px;
	background: var(--red); box-shadow: 0 6px 14px rgba(0, 26, 56, 0.3);
	margin-top: var(--vc-icon-top, 0);
}
.cts-vcard::after {
	content: ""; position: absolute; z-index: 2; left: 16px; width: 46px; height: 46px; background: #fff;
	-webkit-mask: var(--ic) center / 24px no-repeat; mask: var(--ic) center / 24px no-repeat; margin-top: var(--vc-icon-top, 0);
}
.cts-vcard h3 { margin: 34px 18px 0 !important; font-size: 1.125rem !important; font-weight: 800; line-height: 1.2; color: var(--navy); text-transform: none; }
.cts-vcard > p { margin: 10px 18px 0 !important; font-size: 0.9rem; color: var(--muted) !important; }
.cts-vcard > .cts-scard__more { margin: auto 18px 18px !important; padding-top: 14px; }
@media (max-width: 1100px) { .cts-vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cts-vcards { grid-template-columns: 1fr; } }

/* Fascia finale blu con taglio rosso e tricolore */
.cts-band.is-navy .wp-block-media-text__media { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.cts-band.is-navy .wp-block-media-text__media::before {
	content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 13%; background: var(--red);
	clip-path: polygon(77% 0, 100% 0, 23% 100%, 0 100%);
}
.cts-band.is-navy h2 { padding-bottom: 16px !important; margin-bottom: 14px !important; background: linear-gradient(90deg, var(--green) 0 56px, var(--white) 56px 112px, var(--red) 112px 168px) left bottom / 168px 5px no-repeat; }
@media (max-width: 600px) { .cts-band.is-navy .wp-block-media-text__media { clip-path: none; } .cts-band.is-navy .wp-block-media-text__media::before { display: none; } }
.cts-vcard { container-type: inline-size; }
.cts-vcard::before, .cts-vcard::after { top: calc(56.25cqw - 23px); margin-top: 0; }
/* Hover delle card "Soluzioni": niente riga chiara tra foto e parte blu */
.solution-card__media { background: var(--navy); transform: translateZ(0); }
.solution-card__media img { transform-origin: 50% 0; backface-visibility: hidden; }
.solution-card__media::after { inset: 40% 0 -2px; z-index: 1; }
.solution-card__body { z-index: 2; }
.solution-card__body::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 3px; margin-top: -2px; background: var(--navy); z-index: -1; }
.solution-card__media::after { background: linear-gradient(180deg, rgba(0, 38, 79, 0) 0%, rgba(0, 38, 79, 0.85) 60%, var(--navy) 88%); }

/* Avviso cookie */
.cookie-notice {
	--focus: var(--white);
	position: fixed; z-index: 80; left: 16px; bottom: 16px; max-width: 460px;
	display: flex; align-items: center; gap: 16px; padding: 16px 18px;
	background: var(--navy-900); color: var(--white); border-radius: 8px; box-shadow: var(--shadow-2);
	font-size: 0.875rem; line-height: 1.45;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-notice a { color: var(--white); text-decoration: underline; }
.cookie-notice .btn { flex: none; }
@media (max-width: 760px) { .cookie-notice { left: 10px; right: 10px; bottom: calc(76px + max(10px, env(safe-area-inset-bottom))); max-width: none; } }

/* Pagine legali */
.legal-box { padding: 18px 20px; background: var(--ice); border-radius: var(--radius); }
.entry-content .legal-table { max-width: none; margin: 8px 0 24px; overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.legal-table th, .legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--ice); color: var(--navy); font-weight: 800; }
.legal-table td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; overflow-wrap: anywhere; }

/* ==========================================================================
   Rifiniture e animazioni (v1.9.0)
   Tutte le animazioni sono dentro "prefers-reduced-motion: no-preference":
   chi ha chiesto meno movimento al proprio dispositivo vede il sito fermo.
   ========================================================================== */

/* ---------- Intestazione: non esce più dalla pagina ---------- */
.nav { min-width: 0; }
@media (max-width: 1560px) {
	.header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.header-phone { width: 42px; height: 42px; justify-content: center; border: 1.5px solid var(--line); border-radius: 4px; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
	.header-phone:hover { border-color: var(--red); background: var(--ice); }
}
@media (min-width: 1561px) {
	.site-header__bar.container { max-width: calc(1400px + 2 * var(--gutter)); }
}
@media (min-width: 1261px) and (max-width: 1340px) {
	.site-header__bar { gap: 12px; }
	.site-header__actions { gap: 10px; }
	.nav__link { padding-inline: 5px; }
}

/* Intestazione più bassa dopo lo scorrimento */
.site-header__bar { transition: height 0.3s var(--ease); }
.brand__logo { transition: height 0.3s var(--ease); }
@media (min-width: 1261px) {
	.site-header.is-scrolled .site-header__bar { height: 68px; }
	.site-header.is-scrolled .brand__logo { height: 48px; }
}

/* ---------- Pulsanti ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 65%);
	translate: -120% 0;
}
.btn--red:hover::after, .btn--navy:hover::after { translate: 120% 0; transition: translate 0.7s var(--ease); }
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(227, 6, 19, 0.3); }
.btn--navy:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 26, 56, 0.28); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.wp-block-button__link { transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 26, 56, 0.22); }

/* Invio del modulo in corso */
.btn.is-sending { pointer-events: none; opacity: 0.85; }
.btn.is-sending::before {
	content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: var(--white);
	animation: cts-spin 0.7s linear infinite;
}
@keyframes cts-spin { to { rotate: 360deg; } }

/* ---------- Card ---------- */
.solution-card a::after {
	content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red);
	transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.solution-card a:hover::after, .solution-card a:focus-visible::after { transform: scaleX(1); }
.solution-card__icon { transition: transform 0.35s var(--ease); }
.solution-card a:hover .solution-card__icon { transform: translateY(-3px) rotate(-5deg); }

.machine-card a { position: relative; overflow: hidden; }
.machine-card a::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red);
	transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s var(--ease);
}
.machine-card a:hover::before, .machine-card a:focus-visible::before { transform: scaleY(1); }
.machine-card__title { transition: color 0.2s var(--ease); }
.machine-card a:hover .machine-card__title { color: var(--red); }

.usato-card { border-radius: 10px; }
.usato-card:hover { transform: translateY(-4px); border-color: transparent; }
.usato-card__price { font-size: 1.0625rem; }
.badge--sold { box-shadow: 0 4px 10px rgba(0, 26, 56, 0.3); }

.cts-icard::before, .cts-point::before, .cts-why__item::before { transition: transform 0.35s var(--ease); }
.cts-icard:hover::before, .cts-point:hover::before, .cts-why__item:hover::before { transform: translateY(-3px) scale(1.06); }
.dept__icon { transition: transform 0.3s var(--ease); }
.dept:hover .dept__icon { transform: scale(1.08) rotate(-4deg); }

.brands__title a::after { transition: transform 0.25s var(--ease); }
.brands__title a:hover::after { transform: translateX(5px); }

.site-footer .footer-menu a, .site-footer .legal-menu a {
	text-decoration: none; padding-bottom: 2px;
	background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.3s var(--ease);
}
.site-footer .footer-menu a:hover, .site-footer .legal-menu a:hover { text-decoration: none; background-size: 100% 1px; }

/* ---------- Galleria: cambio foto in dissolvenza ---------- */
.gallery__main img { transition: opacity 0.22s ease; }
.gallery__main img.is-switching { opacity: 0; }
.gallery__thumb { transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease); opacity: 0.75; }
.gallery__thumb:hover, .gallery__thumb.is-active { opacity: 1; }

/* ---------- Torna su ---------- */
.to-top {
	position: fixed; z-index: 54; right: 16px; bottom: 16px;
	display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
	background: var(--navy); color: var(--white); border: 0; border-radius: 50%; box-shadow: var(--shadow-2); cursor: pointer;
	opacity: 0; visibility: hidden; translate: 0 12px;
	transition: opacity 0.3s var(--ease), translate 0.3s var(--ease), visibility 0.3s, background-color 0.2s var(--ease);
}
.to-top .icon { width: 22px; height: 22px; rotate: -90deg; }
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
.to-top:hover { background: var(--red); }
@media (max-width: 760px) { .to-top { right: 12px; bottom: calc(70px + max(10px, env(safe-area-inset-bottom))); width: 42px; height: 42px; } }
@media print { .to-top, .cookie-notice { display: none !important; } }

/* ---------- Animazioni ---------- */
@keyframes cts-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes cts-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cts-line { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes cts-progress { from { scale: 0 1; } to { scale: 1 1; } }

@media (prefers-reduced-motion: no-preference) {

	/* Ingresso della testata in home e nelle pagine interne (solo CSS) */
	.hero__title, .hero__slogan, .hero__text, .hero__actions,
	.banner__headline, .banner .crumbs { animation: cts-rise 0.8s var(--ease) both; }
	.hero__slogan { animation-delay: 0.28s; }
	.hero__text { animation-delay: 0.38s; }
	.hero__actions { animation-delay: 0.5s; }
	.banner .crumbs { animation-name: cts-fade; }
	.banner__headline { animation-delay: 0.08s; }
	.tricolore--hero i { animation-delay: 0.2s; }
	.tricolore--hero i:nth-child(2) { animation-delay: 0.32s; }
	.tricolore--hero i:nth-child(3) { animation-delay: 0.44s; }
	.tricolore--banner i { animation: rule-in 0.9s var(--ease) 0.25s both; }
	.tricolore--banner i:nth-child(2) { animation-delay: 0.37s; }
	.tricolore--banner i:nth-child(3) { animation-delay: 0.49s; }

	/* Riga rossa di avanzamento lettura sotto l'intestazione */
	@supports (animation-timeline: scroll()) {
		.site-header::after {
			content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
			transform-origin: left; pointer-events: none;
			animation: cts-progress linear both; animation-timeline: scroll(root);
		}
	}

	/* Comparsa allo scorrimento: gli attributi li mette main.js, solo sugli elementi fuori schermo */
	.js-anim [data-reveal="rise"]:not(.is-in) { opacity: 0; }
	.js-anim [data-reveal="rise"].is-in { animation: cts-rise 0.75s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }

	/* Le righe rosse dei titoli si disegnano */
	.js-anim [data-reveal].is-in .section-title--center::before,
	.js-anim [data-reveal].is-in.is-style-centrato::before { transform-origin: right; animation: cts-line 0.9s var(--ease) 0.2s both; }
	.js-anim [data-reveal].is-in .section-title--center::after,
	.js-anim [data-reveal].is-in.is-style-centrato::after { transform-origin: left; animation: cts-line 0.9s var(--ease) 0.2s both; }
	.js-anim [data-reveal].is-in .section-title::after,
	.js-anim [data-reveal].is-in.section-title::after { transform-origin: left; animation: cts-line 0.8s var(--ease) 0.25s both; }

	/* Menu su telefono: le voci entrano una dopo l'altra */
	@media (max-width: 1260px) {
		.nav.is-open .nav__list > li, .nav.is-open .nav__mobile-extra { animation: cts-rise 0.45s var(--ease) both; }
		.nav.is-open .nav__list > li:nth-child(2) { animation-delay: 0.04s; }
		.nav.is-open .nav__list > li:nth-child(3) { animation-delay: 0.08s; }
		.nav.is-open .nav__list > li:nth-child(4) { animation-delay: 0.12s; }
		.nav.is-open .nav__list > li:nth-child(5) { animation-delay: 0.16s; }
		.nav.is-open .nav__list > li:nth-child(6) { animation-delay: 0.2s; }
		.nav.is-open .nav__list > li:nth-child(7) { animation-delay: 0.24s; }
		.nav.is-open .nav__list > li:nth-child(8) { animation-delay: 0.28s; }
		.nav.is-open .nav__list > li:nth-child(n + 9) { animation-delay: 0.32s; }
		.nav.is-open .nav__mobile-extra { animation-delay: 0.38s; }
	}

	.cookie-notice:not([hidden]) { animation: cts-rise 0.5s var(--ease) 0.5s both; }
	.form-success, .form-errors { animation: cts-rise 0.5s var(--ease) both; }

	/* Passaggio morbido da una pagina all'altra (Chrome, Edge, Safari recenti) */
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
}

/* ==========================================================================
   Testata divisa in diagonale e fasce più morbide (v1.10.0)
   Su computer: pannello blu a sinistra, riga rossa in diagonale, foto a destra
   senza velatura. Su telefono resta la foto a tutto fondo con il velo blu.
   ========================================================================== */
@media (min-width: 761px) {
	.banner--image {
		/* Il taglio segue il contenuto: il titolo ha sempre lo stesso spazio, su ogni schermo */
		--split: max(42%, calc(50% - 40px));
		--slant: 110px;
		min-height: clamp(260px, 26vw, 380px);
	}
	.banner--image .banner__media {
		inset: 0 0 0 var(--split);
		clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
	}
	.banner--image .banner__media img { object-position: 72% 50%; }
	/* Solo una leggera ombra sul bordo sinistro della foto, per staccarla dal pannello */
	.banner--image .banner__media::after {
		background: linear-gradient(100deg, rgba(0, 26, 56, 0.55) 0%, rgba(0, 26, 56, 0) 26%);
	}
	/* Riga rossa: stessa sagoma della foto, spostata di qualche pixel a sinistra */
	.banner--image::before {
		content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; right: 0;
		left: calc(var(--split) - 9px);
		background: var(--red);
		clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
	}
	.banner--image .banner__headline { max-width: min(600px, calc(var(--split) - 20px)); }
	.banner--image .banner__title {
		font-size: clamp(1.9rem, 1.1rem + 2.3vw, 3.1rem);
		text-wrap: balance;
	}
}
@media (min-width: 761px) and (max-width: 1100px) {
	.banner--image { --slant: 70px; }
	.banner--image .banner__headline { max-width: calc(var(--split) - 50px); }
}


/* Introduzione con foto senza icone sotto il testo: i paragrafi chiudono il blocco */
.cts-media-row.is-intro .wp-block-media-text__content > p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Testata chiara con vantaggi e pulsante, fascia con icone (v1.11.0)
   ========================================================================== */
.is-icon-calendar-check { --ic: url("../icons/calendar-check.svg"); }
.is-icon-calendar-range { --ic: url("../icons/calendar-range.svg"); }
.is-icon-handshake { --ic: url("../icons/handshake.svg"); }
.is-icon-headset { --ic: url("../icons/headset.svg"); }
.is-icon-building { --ic: url("../icons/building-2.svg"); }

/* Vantaggi e pulsante nella testata */
.banner__features { list-style: none; display: flex; margin: 26px 0 0; padding: 0; }
.banner__features li {
	flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 2px 14px; text-align: center; font-size: 0.9rem; font-weight: 600; line-height: 1.25;
}
.banner__features li + li { border-left: 1px solid rgba(255, 255, 255, 0.3); }
.banner__features .icon { flex: none; width: 36px; height: 36px; stroke-width: 1.5; }
.banner__cta { margin-top: 26px; min-height: 54px; padding-inline: 28px; font-size: 1rem; }
.banner__cta .icon { width: 20px; height: 20px; }

/* Variante chiara: pannello grigio chiaro, testi blu, riga blu in diagonale */
.banner--light { --focus: var(--navy); background: linear-gradient(135deg, #f6f7fa 0%, #e7ebf2 100%); color: var(--navy); }
.banner--light .banner__title, .banner--light .banner__subtitle { color: var(--navy); }
.banner--light .banner__features li + li { border-left-color: rgba(0, 26, 56, 0.22); }
.banner--light .tricolore i:nth-child(2) { box-shadow: inset 0 0 0 1px rgba(0, 26, 56, 0.14); }
.banner--light .crumbs ol { margin-bottom: 14px; }

@media (min-width: 761px) {
	.banner--rich { min-height: clamp(400px, 34vw, 480px); }
	.banner--rich .banner__content { padding-block: 40px; }
	.banner--image .banner__features { max-width: min(600px, calc(var(--split) - 40px)); }
	.banner--light::before { background: var(--navy); }
	.banner--light .banner__media::after { display: none; }
	.banner--light .banner__media img { object-position: 60% 50%; }
}
@media (max-width: 760px) {
	/* Su telefono: foto in alto, testi sotto sul fondo chiaro */
	.banner--light { display: block; min-height: 0; }
	.banner--light .banner__media { position: relative; inset: auto; z-index: 0; height: 190px; }
	.banner--light .banner__media::after { display: none; }
	.banner--light .banner__content { padding-block: 22px 26px; }
	.banner__features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 20px; }
	.banner__features li { flex-direction: row; align-items: center; gap: 10px; padding: 0; text-align: left; font-size: 0.875rem; }
	.banner__features li + li { border-left: 0; }
	.banner__features .icon { width: 28px; height: 28px; }
	.banner__cta { width: 100%; margin-top: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
	.banner__features, .banner__cta { animation: cts-rise 0.8s var(--ease) 0.3s both; }
	.banner__cta { animation-delay: 0.42s; }
}

/* Fascia blu con quattro vantaggi (Noleggio, "Contratti flessibili") */
.cts-band.has-icons .cts-icards.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 4px 0 22px; }
.cts-band.has-icons .cts-icard {
	display: flex; flex-direction: column; align-items: center; padding: 4px 8px; text-align: center;
	background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important;
}
.cts-band.has-icons .cts-icard + .cts-icard { border-left: 1px solid rgba(255, 255, 255, 0.28) !important; }
.cts-band.has-icons .cts-icard::before { width: 34px; height: 34px; margin-bottom: 8px; background: var(--white); }
.cts-band.has-icons .cts-icard h3 {
	color: var(--white) !important; font-size: 0.6875rem !important; font-weight: 800; line-height: 1.25;
	text-transform: uppercase !important; letter-spacing: 0 !important; overflow-wrap: normal; word-break: normal; hyphens: none;
}
.cts-band.has-icons .cts-icard { padding-inline: 4px; }
/* La foto delle fasce riempie tutta l'altezza (prima restava una striscia al centro) */
.cts-band > .wp-block-media-text__media { align-self: stretch !important; }
.cts-band.has-icons { grid-template-columns: 50% 1fr !important; }
@media (max-width: 900px) {
	.cts-band.has-icons { grid-template-columns: 1fr !important; }
	.cts-band.has-icons .wp-block-media-text__media { order: 2; clip-path: none; }
	.cts-band.has-icons .wp-block-media-text__media::before { display: none; }
}
@media (max-width: 480px) {
	.cts-band.has-icons .cts-icards.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
	.cts-band.has-icons .cts-icard:nth-child(3) { border-left: 0 !important; }
}

/* Contatti: email e numeri lunghi vanno a capo invece di allargare la pagina (v1.11.1) */
.dept > div { min-width: 0; flex: 1; }
.dept__links a { min-width: 0; max-width: 100%; }
.dept__links a, .info-card__dept a, .site-footer__dept a { overflow-wrap: anywhere; }

/* Home: titolo più lungo e nuova foto (v1.12.0) */
.hero__title { max-width: 21ch; font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); }
.hero__slogan { max-width: 36ch; }
.hero__text { max-width: 46ch; }
.hero__img { object-position: 58% 55%; }
@media (max-width: 760px) {
	.hero__title { max-width: none; font-size: clamp(1.7rem, 7.4vw, 2.6rem); }
	.hero__slogan, .hero__text { max-width: none; }
}

/* Marchi: otto loghi invece di cinque (v1.13.0) */
.brands__list li:last-child .brand-logo { height: clamp(26px, 2.6vw, 38px); }
.brands__list img[alt="BT"], .brands__list img[alt="Fiori"] { height: clamp(34px, 3.4vw, 48px) !important; }
@media (min-width: 761px) {
	/* Due file da quattro, allineate */
	.brands__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 0; align-items: center; }
	.brands__list li { padding-inline: clamp(10px, 1.3vw, 22px); min-width: 0; }
	.brands__list li:nth-child(4n + 1) { border-left: 0; }
	.brands__list .brand-logo { height: clamp(22px, 2.1vw, 32px); max-width: 100%; object-fit: contain; }
	.brands__list img[alt="BT"], .brands__list img[alt="Fiori"] { height: clamp(30px, 2.9vw, 44px) !important; }
}
@media (max-width: 760px) {
	.brands__list li:last-child .brand-logo { height: 26px; }
	.brands__list img[alt="BT"], .brands__list img[alt="Fiori"] { height: 38px !important; }
	.brands__list { gap: 10px 14px; }
}
.mega--marchi .mega__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega__logo .brand-logo { max-width: 86%; }
.logo-grid__logo .brand-logo { max-height: 60px; max-width: 78%; object-fit: contain; }

/* Etichetta "Nuovo" sui prodotti (v1.15.0) */
.badge--new { z-index: 2; background: var(--red); color: var(--white); box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3); }
.prod-card .usato-card__media, .gallery__main { position: relative; }

/* Sezione "Corsi di formazione" (v1.18.0) */
.is-icon-piattaforma { --ic: url("../icons/piattaforma.svg"); }
.is-icon-graduation { --ic: url("../icons/graduation-cap.svg"); }
.entry-content > .cts-why + .is-style-centrato { margin-top: clamp(44px, 6vw, 72px); }
.entry-content > .cts-lead { max-width: 84ch; margin: -8px auto 30px; font-size: 1.0625rem; color: var(--muted); text-align: center; }
.entry-content > .cts-corsi { max-width: none; }
.cts-corsi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 30px; }
.cts-corso {
	position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-content: start;
	padding: 0 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
	box-shadow: var(--shadow-1); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cts-corso:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cts-corso > .wp-block-image { grid-column: 1 / -1; margin: 0 -20px 20px; }
.cts-corso > .wp-block-image img { display: block; width: 100%; aspect-ratio: 660 / 280; object-fit: cover; border-radius: 0; }
/* Riquadro rosso con l'icona bianca */
.cts-corso::before { content: ""; grid-column: 1; grid-row: 2 / span 2; width: 56px; height: 56px; border-radius: 10px; background: var(--red); box-shadow: 0 6px 14px rgba(227, 6, 19, 0.28); }
.cts-corso::after {
	content: ""; grid-column: 1; grid-row: 2 / span 2; align-self: start; position: relative; z-index: 1; width: 56px; height: 56px; background: var(--white);
	-webkit-mask: var(--ic) center / 30px no-repeat; mask: var(--ic) center / 30px no-repeat;
}
.cts-corso::before { align-self: start; }
.cts-corso h3 { grid-column: 2; margin: 2px 0 4px !important; font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.5rem) !important; font-style: italic; font-weight: 800; font-stretch: 108%; line-height: 1.1; text-transform: uppercase; color: var(--navy); }
.cts-corso > p { grid-column: 2; margin: 0 !important; font-size: 0.95rem; color: var(--muted); }
.entry-content > .cts-corsi-cta { max-width: none; }
.cts-corsi-cta { display: flex; justify-content: center; margin-bottom: clamp(8px, 2vw, 20px); }
.cts-corsi-cta .wp-block-button__link { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; font-size: 1rem; background: var(--red); color: var(--white); border-radius: 4px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.cts-corsi-cta .wp-block-button__link:hover { background: var(--red-700); color: var(--white); box-shadow: 0 10px 22px rgba(227, 6, 19, 0.3); }
.cts-corsi-cta .wp-block-button__link::before {
	content: ""; width: 24px; height: 24px; background: currentColor;
	-webkit-mask: url("../icons/graduation-cap.svg") center / contain no-repeat; mask: url("../icons/graduation-cap.svg") center / contain no-repeat;
}
@media (max-width: 760px) {
	.cts-corsi { grid-template-columns: 1fr; gap: 18px; }
	.cts-corso { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 0 16px 18px; }
	.cts-corso > .wp-block-image { margin: 0 -16px 16px; }
	.cts-corso::before, .cts-corso::after { width: 48px; height: 48px; }
	.cts-corso::after { -webkit-mask-size: 26px; mask-size: 26px; }
	.cts-corsi-cta .wp-block-button, .cts-corsi-cta .wp-block-button__link { width: 100%; justify-content: center; }
}

/* Testata tutta blu con titolo grande (pagina Marchi, v1.18.1) */
.banner--big { min-height: clamp(240px, 24vw, 340px); }
.banner--big .banner__title { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.5rem); letter-spacing: -0.01em; }
.banner--big .banner__subtitle { margin-top: 16px; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); }
.banner--big .tricolore { margin-top: 22px; }

/* Testata delle pagine dei singoli marchi: logo bianco accanto al titolo, senza sfondo (v1.18.3) */
.banner--logo .banner__content { position: relative; }
.banner__logo { display: flex; align-items: center; width: min(100%, 300px); margin-top: 26px; }
.banner__logo .brand-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: clamp(84px, 10vw, 150px); object-fit: contain; }
@media (min-width: 761px) {
	.banner--logo .banner__headline { max-width: calc(100% - 400px); }
	.banner__logo { position: absolute; top: 50%; right: var(--gutter); justify-content: flex-end; width: clamp(240px, 26vw, 340px); margin: 0; transform: translateY(-50%); }
}
@media (max-width: 760px) {
	.banner__logo { width: 180px; margin-top: 22px; }
	.banner__logo .brand-logo { max-height: 70px; }
}
@media (prefers-reduced-motion: no-preference) {
	.banner__logo { animation: cts-fade 0.8s var(--ease) 0.25s both; }
}

/* WhatsApp dei ricambi e icone social nel piè di pagina (v1.20.0) */
.wa-link .icon { color: #25d366; }
.site-footer__dept .wa-link { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 6px; }
.site-footer__dept .wa-link .icon { width: 18px; height: 18px; }
.social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.social a {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.1); color: var(--white);
	transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social a:hover { background: var(--red); transform: translateY(-2px); }
.social .icon { width: 19px; height: 19px; }
.site-footer__legal-inner { align-items: center; }
@media (min-width: 761px) { .site-footer__legal-inner .social { margin-left: auto; } .site-footer__legal-inner .legal-menu { margin-left: auto; } .site-footer__legal-inner .legal-menu + .social { margin-left: 12px; } }
.wa-link { white-space: nowrap; overflow-wrap: normal !important; }
.wa-link .icon, .social .icon { stroke: none; }
