/**
 * «Salone editoriale»: il sito pubblico come una rivista d'auto, non come
 * una bacheca di riquadri.
 *
 * Sta sopra il tema Notion e i fogli del plugin e toglie una cosa sola: le
 * scatole. Niente card con bordo, ombra e angoli tondi una dentro l'altra.
 * Al loro posto:
 *
 * - le foto grandi, a filo, con angoli appena smussati (2px);
 * - i titoli grandi e stretti, i prezzi in cifre tabulari;
 * - le sezioni separate da un filo sottile a tutta larghezza;
 * - i dati dell'auto come una riga di testo, non come gettoni colorati;
 * - il colore del concessionario solo sulle azioni e sui prezzi d'offerta.
 *
 * I selettori partono da `html:root body` per vincere sui fogli sotto senza
 * `!important`, qualunque sia l'ordine di stampa.
 *
 * Per tornare ai riquadri:
 * add_filter( 'dealer_crm_editorial_theme', '__return_false' );
 */

/*
 * I colori e i caratteri vengono dal sito: con il tema Dealer Showroom sono
 * quelli scelti in Aspetto → Personalizza → «Brand e colori» e «Tipografia».
 * I valori dopo la virgola sono quelli di serie, per i temi che non li
 * passano.
 */
:root {
	--dcrm-e-ink: var(--dcrm-site-ink, #1f1e1b);
	--dcrm-e-text: var(--dcrm-site-text, #3d3b36);
	--dcrm-e-muted: var(--dcrm-site-text, #6e6c66);
	--dcrm-e-rule: var(--dcrm-site-line, #e2dfd9);
	--dcrm-e-rule-strong: var(--dcrm-e-ink);
	--dcrm-e-wash: var(--dcrm-site-alt, #f5f3ef);
	--dcrm-e-photo: var(--dcrm-site-alt, #efede8);
	--dcrm-e-heading-font: var(--dcrm-site-font-heading, var(--dcrm-n-font, inherit));
	--dcrm-e-heading-w: var(--dcrm-site-heading-w, 700);
	/* Angoli: quelli di «Raggio dei bordi» nel tema; senza tema, arrotondati. */
	--dcrm-e-radius: var(--dcrm-site-radius, 16px);
	--dcrm-e-ctl: var(--dcrm-site-radius-sm, 10px);
	--dcrm-e-card-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .07);
	--dcrm-e-card-shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 32px rgba(16, 24, 40, .12);
	--dcrm-e-action: var(--dcrm-color-accent, var(--dcrm-accent, #c8102e));
	--dcrm-e-ease: cubic-bezier(.2, .8, .2, 1);
	--dcrm-e-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
	--dcrm-e-h2: clamp(1.625rem, 1.25rem + 1.4vw, 2.5rem);
}

/* ==========================================================================
   1. Titoli di sezione: un filo nero sopra, titolo grande, link a destra
   ========================================================================== */

html:root body .dcrm-of-section {
	margin-block: clamp(56px, 7vw, 104px);
}

html:root body .dcrm-of-head {
	align-items: end;
	margin-bottom: clamp(20px, 2.4vw, 32px);
	padding-top: 18px;
	border-top: 1px solid var(--dcrm-e-rule-strong);
}

html:root body .dcrm-of-head__title,
html:root body .dcrm-sr__section-title,
html:root body .dcrm-lp__title,
html:root body .dcrm-lp__contact-title {
	color: var(--dcrm-e-ink);
	font-size: var(--dcrm-e-h2);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.025em;
}

html:root body .dcrm-of-head__sub,
html:root body .dcrm-of-head__text p {
	color: var(--dcrm-e-muted);
}

html:root body .dcrm-of-more {
	color: var(--dcrm-e-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--dcrm-e-rule);
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
	transition: text-decoration-color .2s var(--dcrm-e-ease);
}

html:root body .dcrm-of-more:hover {
	text-decoration-color: currentColor;
}

/* Le frecce del carosello: cerchi sottili, non bottoni pieni. */
html:root body .dcrm-of-nav__btn {
	border: 1px solid var(--dcrm-e-rule);
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-of-nav__btn:hover {
	border-color: var(--dcrm-e-ink);
}

/* ==========================================================================
   2. Scheda auto: un riquadro morbido con foto, nome, prezzo, marca e dati
   ==========================================================================

   La griglia delle auto è l'unico posto del sito dove il riquadro serve:
   ogni scheda è un oggetto da prendere, e il bordo dice dove finisce. Il
   resto della pagina resta senza scatole.
*/

html:root body .dcrm-sr__grid {
	gap: clamp(18px, 2vw, 28px);
}

html:root body .dcrm-sr__card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 0;
	border-radius: var(--dcrm-e-radius);
	background: #fff;
	box-shadow: var(--dcrm-e-card-shadow);
	overflow: hidden;
	transition: box-shadow .25s var(--dcrm-e-ease), transform .25s var(--dcrm-e-ease);
}

html:root body .dcrm-sr__card:hover {
	box-shadow: var(--dcrm-e-card-shadow-hover);
	transform: translateY(-2px);
}

html:root body .dcrm-sr__card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 0;
	background: var(--dcrm-e-photo);
	overflow: hidden;
}

html:root body .dcrm-sr__card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--dcrm-e-ease);
}

html:root body .dcrm-sr__card:hover .dcrm-sr__card-media:not(.has-frames) img {
	transform: scale(1.03);
}

/* Le tacche delle foto: sul bordo basso della foto, l'attiva nel colore
   d'accento. Dicono che passando il mouse le foto cambiano. */
html:root body .dcrm-sr__card-bars {
	gap: 3px;
	height: 4px;
	background: #fff;
}

html:root body .dcrm-sr__card-bars i {
	background: rgba(16, 24, 40, .12);
	border-radius: 0;
}

html:root body .dcrm-sr__card-bars i.is-on {
	background: var(--dcrm-e-action);
}

html:root body .dcrm-sr__card-photos {
	right: 10px;
	bottom: 14px;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(15, 15, 15, .55);
	font-weight: 600;
}

/* «Immagine di repertorio»: una nota, non un'etichetta sopra la foto. */
html:root body .dcrm-sr__card-model em {
	inset: auto auto 10px 10px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	color: var(--dcrm-e-muted);
	font-size: 10.5px;
	font-style: normal;
	letter-spacing: .01em;
	box-shadow: none;
}

html:root body .dcrm-sr__card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
}

html:root body .dcrm-sr__card-title {
	margin: 0;
	color: var(--dcrm-e-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.01em;
}

html:root body .dcrm-sr__card-title a {
	color: inherit;
	text-decoration: none;
}

/* Marca e modello, poi la versione sulla stessa riga, più leggera. */
html:root body .dcrm-sr__card-trim {
	display: inline;
	margin: 0 0 0 .25em;
	color: var(--dcrm-e-muted);
	font-weight: 400;
}

/* Prezzo grande a sinistra, logo della marca a destra. */
html:root body .dcrm-sr__card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 0;
	padding: 0;
	border: 0;
}

html:root body .dcrm-sr__price {
	text-align: left;
}

html:root body .dcrm-sr__price strong {
	color: var(--dcrm-e-ink);
	font-size: 22px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
	white-space: nowrap;
}

html:root body .dcrm-sr__price-old {
	display: block;
	color: var(--dcrm-e-muted);
	font-size: 13px;
	text-decoration: line-through;
}

html:root body .dcrm-sr__card-brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: flex-end;
	width: 64px;
	height: 32px;
}

html:root body .dcrm-sr__card-brand img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .85;
}

/* I dati: etichette con l'icona, bordo sottile, angoli tondi. */
html:root body .dcrm-sr__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: auto 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--dcrm-e-rule);
	list-style: none;
}

html:root body .dcrm-sr__pills li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 5px 12px;
	border: 1px solid var(--dcrm-e-rule);
	border-radius: 999px;
	background: #fff;
	color: var(--dcrm-e-text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
}

html:root body .dcrm-sr__pills li + li::before {
	content: none;
}

html:root body .dcrm-sr__pills li svg,
html:root body .dcrm-sr__pills .dcrm-sr__pill-icon {
	display: inline-block;
	flex: none;
	width: 15px;
	height: 15px;
	color: var(--dcrm-e-muted);
}

/* Gli stati (Nuovo, In offerta, Km 0): piccole etichette tonde. */
html:root body .dcrm-sr__badge {
	border-radius: 999px;
	box-shadow: none;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
}

html:root body .dcrm-sr__fav {
	z-index: 2;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 4px rgba(16, 24, 40, .12);
}

/* ==========================================================================
   3. Home: la grande offerta in apertura
   ========================================================================== */

html:root body .dcrm-of-hero {
	border-radius: 0;
	box-shadow: none;
}

html:root body .dcrm-of-slide,
html:root body .dcrm-of-slide.is-composed {
	border-radius: 0;
	background: var(--dcrm-e-wash);
	color: var(--dcrm-e-ink);
	box-shadow: none;
}

html:root body .dcrm-of-slide.is-composed .dcrm-of-slide__title {
	color: var(--dcrm-e-ink);
	font-size: var(--dcrm-e-display);
	font-weight: 600;
	line-height: .98;
	letter-spacing: -.035em;
}

html:root body .dcrm-of-slide.is-composed .dcrm-of-slide__sub,
html:root body .dcrm-of-slide.is-composed .dcrm-of-slide__terms,
html:root body .dcrm-of-slide.is-composed .dcrm-of-note,
html:root body .dcrm-of-slide.is-composed .dcrm-of-slide__ends {
	color: var(--dcrm-e-muted);
	opacity: 1;
}

html:root body .dcrm-of-slide.is-composed .dcrm-of-slide__sub {
	font-size: clamp(17px, 1.1vw + 10px, 21px);
	color: var(--dcrm-e-text);
}

/* Il colore scelto per l'offerta resta, ma come etichetta: «Tua a». */
html:root body .dcrm-of-slide.is-composed .dcrm-of-lead,
html:root body .dcrm-of-card.is-composed .dcrm-of-lead {
	display: inline-block;
	width: fit-content;
	padding: 3px 8px;
	border-radius: var(--dcrm-e-ctl);
	background: var(--of-bg, var(--dcrm-e-action));
	color: var(--of-fg, #fff);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: 1;
}

html:root body .dcrm-of-slide.is-composed .dcrm-of-amount {
	color: var(--dcrm-e-ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.03em;
}

html:root body .dcrm-of-slide.is-composed .dcrm-of-btn {
	border-radius: var(--dcrm-e-ctl);
	background: var(--dcrm-e-action);
	color: #fff;
	box-shadow: none;
}

html:root body .dcrm-of-slide__car img {
	border-radius: var(--dcrm-e-radius);
	box-shadow: none;
}

html:root body .dcrm-of-hero__controls {
	padding-top: 16px;
}

html:root body .dcrm-of-dots button {
	width: 28px;
	height: 2px;
	border-radius: 0;
	background: var(--dcrm-e-rule);
}

html:root body .dcrm-of-dots button.is-on {
	background: var(--dcrm-e-ink);
}

/* ==========================================================================
   4. Offerte del mese: foto, nome, prezzo; il colore è l'etichetta
   ========================================================================== */

html:root body .dcrm-of-card,
html:root body .dcrm-of-card.is-composed {
	display: flex;
	flex-direction: column;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--dcrm-e-ink);
	box-shadow: none;
	text-align: left;
}

html:root body .dcrm-of-card:hover {
	transform: none;
	box-shadow: none;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__car {
	order: 1;
	margin: 0;
	padding: 0;
	border-radius: var(--dcrm-e-radius);
	background: var(--dcrm-e-photo);
	overflow: hidden;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__car img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	transition: transform .6s var(--dcrm-e-ease);
}

html:root body .dcrm-of-card:hover .dcrm-of-card__car img {
	transform: scale(1.03);
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__price {
	order: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 16px 0 0;
	padding: 0;
	text-align: left;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-amount {
	color: var(--dcrm-e-ink);
	font-size: clamp(24px, 1.2vw + 14px, 30px);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.025em;
	line-height: 1.05;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-amount.is-saving {
	font-size: clamp(20px, 1vw + 12px, 24px);
}

html:root body .dcrm-of-card.is-composed .dcrm-of-note {
	flex-basis: 100%;
	color: var(--dcrm-e-muted);
	font-size: 12.5px;
	opacity: 1;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__body {
	order: 3;
	margin: 0;
	padding: 10px 0 0;
	text-align: left;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__title {
	margin: 0;
	color: var(--dcrm-e-ink);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.01em;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__terms {
	color: var(--dcrm-e-muted);
	font-size: 14px;
	opacity: 1;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-tags {
	justify-content: flex-start;
	gap: 0;
	margin-top: 6px;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-tags span {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--dcrm-e-muted);
	font-size: 13.5px;
	font-weight: 400;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-tags span + span::before {
	content: "·";
	margin: 0 .5em;
	opacity: .5;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__foot {
	order: 4;
	margin: 14px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid var(--dcrm-e-rule);
	background: none;
	color: var(--dcrm-e-text);
	font-size: 13.5px;
}

/* Le offerte con il manifesto già fatto (poster): solo l'immagine, a filo. */
html:root body .dcrm-of-card:not(.is-composed) {
	border-radius: var(--dcrm-e-radius);
	overflow: hidden;
}

/* ==========================================================================
   5. Ricerca della home: una riga, campi sottolineati
   ========================================================================== */

html:root body .dcrm-hpg-search {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-hpg-search__title {
	color: var(--dcrm-e-ink);
	font-size: var(--dcrm-e-h2);
	font-weight: 600;
	letter-spacing: -.025em;
}

html:root body .dcrm-hpg-search__field select,
html:root body .dcrm-hpg-search__field input,
html:root body .dcrm-sr__hero input[type="search"],
html:root body .dcrm-sr__select {
	border: 0;
	border-bottom: 1px solid var(--dcrm-e-rule-strong);
	border-radius: 0;
	background-color: transparent;
	box-shadow: none;
	padding-left: 0;
	font-size: 16px;
	color: var(--dcrm-e-ink);
}

html:root body .dcrm-hpg-search__field select:focus,
html:root body .dcrm-hpg-search__field input:focus,
html:root body .dcrm-sr__hero input[type="search"]:focus {
	outline: none;
	border-bottom-width: 2px;
	box-shadow: none;
}

html:root body .dcrm-hpg-search__field > span,
html:root body .dcrm-sr__field > span {
	color: var(--dcrm-e-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* ==========================================================================
   6. Tipologie e marche: un indice, non una fila di tessere
   ========================================================================== */

html:root body .dcrm-home__bodies,
html:root body .dcrm-sr__tiles {
	gap: 0;
	border-top: 1px solid var(--dcrm-e-rule);
}

html:root body .dcrm-home__body,
html:root body .dcrm-sr__tile {
	padding: 22px 12px 20px;
	border: 0;
	border-right: 1px solid var(--dcrm-e-rule);
	border-bottom: 1px solid var(--dcrm-e-rule);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transition: background-color .2s var(--dcrm-e-ease);
}

html:root body .dcrm-home__body:hover,
html:root body .dcrm-sr__tile:hover {
	background: var(--dcrm-e-wash);
	transform: none;
	box-shadow: none;
}

html:root body .dcrm-home__makes,
html:root body .dcrm-sr__brands {
	gap: 0;
	border-top: 1px solid var(--dcrm-e-rule);
	border-left: 1px solid var(--dcrm-e-rule);
}

html:root body .dcrm-home__make,
html:root body .dcrm-sr__brand {
	border: 0;
	border-right: 1px solid var(--dcrm-e-rule);
	border-bottom: 1px solid var(--dcrm-e-rule);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transition: background-color .2s var(--dcrm-e-ease);
}

html:root body .dcrm-home__make:hover,
html:root body .dcrm-sr__brand:hover {
	background: var(--dcrm-e-wash);
	transform: none;
	box-shadow: none;
}

html:root body .dcrm-home__make-logo img,
html:root body .dcrm-sr__brand-logo img {
	filter: grayscale(1);
	opacity: .8;
	transition: filter .25s var(--dcrm-e-ease), opacity .25s var(--dcrm-e-ease);
}

html:root body .dcrm-home__make:hover img,
html:root body .dcrm-sr__brand:hover img {
	filter: none;
	opacity: 1;
}

html:root body .dcrm-home__count,
html:root body .dcrm-sr__tile-count,
html:root body .dcrm-sr__brand-count {
	color: var(--dcrm-e-muted);
}

/* ==========================================================================
   7. Vetrina: ricerca in testa, filtri senza pannello
   ========================================================================== */

html:root body .dcrm-sr__hero {
	padding: 0 0 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-sr__hero input[type="search"] {
	min-height: 56px;
	font-size: clamp(18px, 1vw + 12px, 22px);
}

html:root body .dcrm-sr__section {
	margin-top: clamp(40px, 5vw, 64px);
}

html:root body .dcrm-sr__section-title {
	margin-bottom: 16px;
	font-size: clamp(20px, .6vw + 16px, 24px);
}

html:root body .dcrm-sr__main {
	gap: clamp(28px, 3.5vw, 56px);
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: 20px;
	border-top: 1px solid var(--dcrm-e-rule-strong);
}

html:root body .dcrm-sr__sidebar {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-sr__group {
	border: 0;
	border-bottom: 1px solid var(--dcrm-e-rule);
	border-radius: 0;
	background: transparent;
}

html:root body .dcrm-sr__group-title {
	color: var(--dcrm-e-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
}

/* Le scelte dei filtri: testo e segno di spunta, non bottoni. */
html:root body .dcrm-sr__chip,
html:root body .dcrm-sr__opt {
	border-radius: var(--dcrm-e-ctl);
	box-shadow: none;
}

html:root body .dcrm-sr__opt-art,
html:root body .dcrm-sr__swatch-box {
	border-radius: var(--dcrm-e-ctl);
	box-shadow: none;
}

html:root body .dcrm-sr__range-field {
	border-radius: var(--dcrm-e-ctl);
	box-shadow: none;
}

html:root body .dcrm-sr__select {
	min-height: 40px;
	padding-right: 28px;
}

html:root body .dcrm-sr__count {
	color: var(--dcrm-e-ink);
	font-size: clamp(20px, .6vw + 16px, 24px);
	font-weight: 600;
	letter-spacing: -.015em;
}

html:root body .dcrm-sr__toolbar {
	align-items: end;
	padding-bottom: 16px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--dcrm-e-rule);
}

/* ==========================================================================
   8. Bottoni: angolo quasi vivo, pieni solo per l'azione principale
   ========================================================================== */

html:root body .dcrm-sr__cta,
html:root body .dcrm-sr__button,
html:root body .dcrm-sr__apply,
html:root body .dcrm-of-btn,
html:root body .dcrm-btn,
html:root body .dcrm-hpg-search button,
html:root body .dcrm-lp__actions a {
	border-radius: var(--dcrm-e-ctl);
	box-shadow: none;
	font-weight: 600;
	letter-spacing: 0;
}

/* ==========================================================================
   9. Landing di marca e modello
   ========================================================================== */

html:root body .dcrm-lp__stage {
	margin-inline: 0;
	padding-inline: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-lp__name {
	color: var(--dcrm-e-ink);
	letter-spacing: -.04em;
}

html:root body .dcrm-lp__badge {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}

html:root body .dcrm-lp__visual,
html:root body .dcrm-lp__visual img {
	border-radius: var(--dcrm-e-radius);
	box-shadow: none;
}

html:root body .dcrm-lp__facts {
	border-top: 1px solid var(--dcrm-e-rule);
	border-bottom: 1px solid var(--dcrm-e-rule);
	padding-block: 14px;
}

/* La barra dei modelli: una riga con il filo sotto, non una capsula. */
html:root body .dcrm-lp__bar {
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--dcrm-e-rule);
}

html:root body .dcrm-lp__bar-inner {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	padding-inline: 0;
}

html:root body .dcrm-lp__chips a,
html:root body .dcrm-lp__chips span {
	border-radius: var(--dcrm-e-ctl);
}

/* Elenco modelli: righe con il filo, foto a sinistra. */
html:root body .dcrm-lp__model {
	border: 0;
	border-bottom: 1px solid var(--dcrm-e-rule);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-lp__model-art,
html:root body .dcrm-lp__model-art img {
	border-radius: var(--dcrm-e-radius);
}

/* Il blocco contatti: due colonne sul bianco, separate dal filo nero. */
html:root body .dcrm-lp__contact {
	padding: clamp(24px, 3vw, 40px) 0 0;
	border: 0;
	border-top: 1px solid var(--dcrm-e-rule-strong);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-lp__contact .dcrm-form,
html:root body .dcrm-lp__contact-form > * {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-form input:not([type="checkbox"]):not([type="radio"]),
html:root body .dcrm-form select,
html:root body .dcrm-form textarea {
	border-radius: var(--dcrm-e-ctl);
	box-shadow: none;
}

/* ==========================================================================
   10. Pagina e archivio offerte
   ========================================================================== */

html:root body .dcrm-of-single__media img,
html:root body .dcrm-of-single img {
	border-radius: var(--dcrm-e-radius);
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	html:root body .dcrm-sr__card-media img,
	html:root body .dcrm-of-card__car img {
		transition: none;
	}

	html:root body .dcrm-sr__card:hover .dcrm-sr__card-media img,
	html:root body .dcrm-of-card:hover .dcrm-of-card__car img {
		transform: none;
	}
}

/* ==========================================================================
   11. Ritocchi dopo la prima prova
   ========================================================================== */

/* Apertura della home: sul bianco, la foto grande a destra, nessun riquadro. */
html:root body .dcrm-of-hero__track {
	border-radius: 0;
}

html:root body .dcrm-of-slide.is-composed {
	align-items: center;
	padding: clamp(8px, 2vw, 24px) 0 clamp(24px, 3vw, 40px);
	background: transparent;
	border-bottom: 1px solid var(--dcrm-e-rule);
}

html:root body .dcrm-of-slide.is-composed .dcrm-of-slide__car img {
	max-height: none;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (min-width: 900px) {
	html:root body .dcrm-of-slide.is-composed {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(32px, 4vw, 72px);
	}
}

/* Le foto riempiono la cornice, anche quelle di repertorio. */
html:root body .dcrm-sr__card-model img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	mix-blend-mode: normal;
}

/* Offerta in griglia: prezzo sotto la foto, tutto allineato a sinistra. */
html:root body .dcrm-of-card,
html:root body .dcrm-of-card.is-composed {
	aspect-ratio: auto;
	gap: 0;
	overflow: visible;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__car {
	display: block;
	aspect-ratio: 4 / 3;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__car img {
	height: 100%;
	aspect-ratio: auto;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__price {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-note {
	flex-basis: auto;
	margin-top: -2px;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__body {
	align-items: flex-start;
	gap: 2px;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__foot {
	margin-top: auto;
}

html:root body .dcrm-of-card.is-composed .dcrm-of-card__body {
	margin-bottom: 14px;
}

/* Le tipologie stanno su una riga sola, come un indice. */
html:root body .dcrm-home__bodies {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	border-left: 1px solid var(--dcrm-e-rule);
}

/* Le offerte di una fila finiscono tutte alla stessa altezza. */
html:root body .dcrm-of-card,
html:root body .dcrm-of-card.is-composed {
	height: 100%;
}

/* Tipologie: solo i fili tra una voce e l'altra. */
html:root body .dcrm-home__bodies {
	border-left: 0;
	border-bottom: 1px solid var(--dcrm-e-rule);
}

html:root body .dcrm-home__body {
	border-bottom: 0;
}

html:root body .dcrm-home__body:last-child {
	border-right: 0;
}

/*
 * Nei temi a blocchi la pagina della home stampa il suo titolo («Home»)
 * sopra l'apertura. Resta per i motori di ricerca e i lettori di schermo,
 * ma non si vede: il titolo vero è quello dell'offerta.
 */
html:root body:has(.dcrm-hpg) .wp-block-post-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Ricerca della vetrina: il campo prende lo spazio, il bottone no. */
html:root body .dcrm-sr__hero-fields {
	display: flex;
	align-items: flex-end;
	gap: 16px;
}

html:root body .dcrm-sr__hero .dcrm-sr__field--grow {
	flex: 1 1 auto;
	min-width: 0;
}

html:root body .dcrm-sr__hero .dcrm-sr__cta {
	flex: 0 0 auto;
	width: auto;
	min-height: 48px;
	padding-inline: 28px;
}

/*
 * La barra dei modelli ora è una striscia, non una capsula sospesa: si
 * attacca al bordo alto (o sotto la barra di WordPress), senza fessura da
 * cui si veda il testo che scorre sotto.
 */
html:root body .dcrm-lp {
	--dcrm-lp-sticky-top: 0px;
}

html:root body .dcrm-lp__bar-inner {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

html:root body .dcrm-lp__bar {
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}

/* Sul telefono il titolo di sezione sta a sinistra, il link sotto. */
@media (max-width: 599px) {
	html:root body .dcrm-of-head {
		align-items: flex-start;
		text-align: left;
	}

	html:root body .dcrm-of-head__text {
		text-align: left;
	}
}



/* =========================================================================
 * 12. Slider con le auto, recensioni, blocchi dell'auto
 * ====================================================================== */

/* Una slide fatta da un'auto: la foto vera, a filo, senza scontorno. */
html:root body .dcrm-of-slide.is-vehicle .dcrm-of-slide__car {
	display: block;
	overflow: hidden;
	border-radius: var(--dcrm-e-radius);
	background: var(--dcrm-e-photo);
}

html:root body .dcrm-of-slide.is-vehicle .dcrm-of-slide__car img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	mix-blend-mode: normal;
	filter: none;
}

html:root body .dcrm-of-slide__eyebrow {
	margin: 0 0 .75rem;
	color: var(--dcrm-e-muted);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

html:root body .dcrm-of-slide.is-vehicle .dcrm-of-amount {
	color: var(--dcrm-e-ink);
}

/* Recensioni: niente riquadri, una fila di citazioni divise da un filo. */
html:root body .dcrm-hpg__reviews .dcrm-reviews {
	padding: 0;
	background: none;
}

html:root body .dcrm-hpg__reviews .dcrm-review {
	border: 0;
	border-left: 1px solid var(--dcrm-e-rule);
	border-radius: 0;
	background: none;
	box-shadow: none;
	padding: 0 1.5rem;
}

html:root body .dcrm-hpg__reviews .dcrm-review__rating {
	color: var(--dcrm-e-ink);
	letter-spacing: .1em;
}

/* --- Apertura di una landing: foto grande, testo accanto. --- */
html:root body .dcrm-vb-open {
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	align-items: center;
}

@media (min-width: 900px) {
	html:root body .dcrm-vb-open {
		grid-template-columns: 7fr 5fr;
	}
}

html:root body .dcrm-vb-open__photo {
	margin: 0;
	overflow: hidden;
	border-radius: var(--dcrm-e-radius);
	background: var(--dcrm-e-photo);
}

html:root body .dcrm-vb-open__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

html:root body .dcrm-vb-open__title {
	margin: 0;
	color: var(--dcrm-e-ink);
	font-size: var(--dcrm-e-display);
	line-height: 1;
	letter-spacing: -.03em;
}

html:root body .dcrm-vb-open__trim {
	margin: .5rem 0 0;
	color: var(--dcrm-e-muted);
	font-size: 1.125rem;
}

html:root body .dcrm-vb-open__price {
	display: flex;
	align-items: baseline;
	gap: .75rem;
	margin: 1.5rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--dcrm-e-rule-strong);
}

html:root body .dcrm-vb-open__price strong {
	color: var(--dcrm-e-ink);
	font-size: var(--dcrm-e-h2);
	letter-spacing: -.02em;
}

html:root body .dcrm-vb-open__price s {
	color: var(--dcrm-e-muted);
}

html:root body .dcrm-vb-open__facts {
	margin: .75rem 0 0;
	color: var(--dcrm-e-text);
}

html:root body .dcrm-vb-open__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 1.75rem 0 0;
}

/* --- Foto dell'auto in griglia. --- */
html:root body .dcrm-vb-photos__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: .5rem;
}

html:root body .dcrm-vb-photos__item {
	display: block;
	overflow: hidden;
	border-radius: var(--dcrm-e-radius);
	background: var(--dcrm-e-photo);
}

html:root body .dcrm-vb-photos__item img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .4s ease;
}

html:root body .dcrm-vb-photos__item:hover img {
	transform: scale(1.03);
}

/* --- Dati e dotazioni: righe divise da fili. --- */
html:root body .dcrm-vb-specs__cols {
	display: grid;
	gap: 2rem 3rem;
}

@media (min-width: 900px) {
	html:root body .dcrm-vb-specs__cols {
		grid-template-columns: 1fr 1fr;
	}
}

html:root body .dcrm-vb-specs__list {
	margin: 0;
}

html:root body .dcrm-vb-specs__list > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .75rem 0;
	border-bottom: 1px solid var(--dcrm-e-rule);
}

html:root body .dcrm-vb-specs__list dt {
	color: var(--dcrm-e-muted);
}

html:root body .dcrm-vb-specs__list dd {
	margin: 0;
	color: var(--dcrm-e-ink);
	font-weight: 600;
	text-align: right;
}

html:root body .dcrm-vb-specs__features {
	columns: 2 14rem;
	column-gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

html:root body .dcrm-vb-specs__features li {
	break-inside: avoid;
	padding: .5rem 0;
	border-bottom: 1px solid var(--dcrm-e-rule);
	color: var(--dcrm-e-text);
}

html:root body .dcrm-vb-form {
	scroll-margin-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
	html:root body .dcrm-vb-photos__item img {
		transition: none;
	}
}

/* --- Modulo di contatto e sedi: senza riquadri, divisi da fili. --- */
html:root body .dcrm-block .dcrm-form {
	padding: 1.5rem 0 0;
	border: 0;
	border-top: 1px solid var(--dcrm-e-rule-strong);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-locations {
	gap: 0 2rem;
}

html:root body .dcrm-location {
	padding: 1.25rem 0 0;
	border: 0;
	border-top: 1px solid var(--dcrm-e-rule-strong);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

html:root body .dcrm-location h3 {
	color: var(--dcrm-e-ink);
	font-size: 1.25rem;
	letter-spacing: -.01em;
}

html:root body .dcrm-location a {
	color: var(--dcrm-e-ink);
	text-decoration: underline;
	text-underline-offset: .2em;
}


/* =========================================================================
 * 13. Titoli con il carattere scelto per il sito
 * ====================================================================== */

html:root body :is(.dcrm-hpg, .dcrm-lp, .dcrm-sr, .dcrm-block, .dcrm-of-page, .dcrm-of-section) :is(h1, h2, h3),
html:root body :is(.dcrm-of-slide__title, .dcrm-vb-open__title, .dcrm-of-amount, .dcrm-vb-open__price strong) {
	font-family: var(--dcrm-e-heading-font);
	font-weight: var(--dcrm-e-heading-w);
}

/* =========================================================================
 * 14. Categorie e marche come tessere morbide
 * ======================================================================
 *
 * Come le schede delle auto: tessere separate, angoli del sito, bordo
 * sottile e un'ombra leggera al passaggio. Prima erano un indice a fili,
 * coerente ma spigoloso accanto alle schede arrotondate.
 */

html:root body .dcrm-home__bodies,
html:root body .dcrm-sr__tiles,
html:root body .dcrm-home__makes,
html:root body .dcrm-sr__brands {
	gap: 12px;
	border: 0;
}

html:root body .dcrm-home__body,
html:root body .dcrm-sr__tile,
html:root body .dcrm-home__make,
html:root body .dcrm-sr__brand {
	border: 1px solid var(--dcrm-e-rule);
	border-radius: var(--dcrm-e-ctl);
	background: #fff;
	box-shadow: none;
	transition: box-shadow .2s var(--dcrm-e-ease), border-color .2s var(--dcrm-e-ease), transform .2s var(--dcrm-e-ease);
}

html:root body .dcrm-home__body:hover,
html:root body .dcrm-sr__tile:hover,
html:root body .dcrm-home__make:hover,
html:root body .dcrm-sr__brand:hover {
	border-color: transparent;
	background: #fff;
	box-shadow: var(--dcrm-e-card-shadow-hover);
	transform: translateY(-1px);
}

/* Il riquadro di ricerca e i campi seguono gli angoli del sito. */
html:root body .dcrm-sr__hero .dcrm-of-btn,
html:root body .dcrm-of-btn {
	border-radius: 999px;
}

html:root body .dcrm-of-hero__track,
html:root body .dcrm-of-slide__car,
html:root body .dcrm-of-slide__car img {
	border-radius: var(--dcrm-e-radius);
}

@media (prefers-reduced-motion: reduce) {
	html:root body .dcrm-sr__card,
	html:root body .dcrm-home__body,
	html:root body .dcrm-sr__brand,
	html:root body .dcrm-home__make,
	html:root body .dcrm-sr__tile {
		transition: none;
	}

	html:root body .dcrm-sr__card:hover {
		transform: none;
	}
}


/* =========================================================================
 * 15. Loghi delle marche grandi
 * ======================================================================
 *
 * Il logo è il modo più rapido di riconoscere una marca, e i file sono SVG:
 * ingranditi restano nitidi. Ogni logo riempie il suo riquadro (il lato più
 * lungo arriva al bordo, l'altro segue la proporzione), a colori, senza
 * il grigio che li spegneva. Prima un'immagine «auto × auto» dentro un tetto
 * di 40 px restava piccola, perché un SVG senza misure non sa quanto è grande.
 */

html:root body .dcrm-home__make {
	justify-content: space-between;
	padding: 18px 14px 14px;
}

html:root body .dcrm-home__make-logo {
	width: 86%;
	height: clamp(64px, 3.5rem + 2vw, 96px);
	margin: 0 auto 12px;
}

html:root body .dcrm-sr__brand-logo {
	width: 90%;
	height: 52px;
	margin: 0 auto 6px;
}

html:root body .dcrm-home__make-logo img,
html:root body .dcrm-sr__brand-logo img,
html:root body .dcrm-sr__card-brand img {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	object-fit: contain;
	filter: none;
	opacity: 1;
}

/* Le iniziali delle marche senza logo occupano lo stesso spazio. */
html:root body .dcrm-home__make-logo.is-empty {
	font-size: clamp(30px, 1.6rem + 1vw, 44px);
	color: var(--dcrm-e-rule-strong);
	opacity: .3;
}

html:root body .dcrm-home__make-logo::after {
	content: none;
}

/* Nella scheda dell'auto il logo sta accanto al prezzo, alto quanto lui. */
html:root body .dcrm-sr__card-brand {
	width: 96px;
	height: 40px;
}

@media (max-width: 599px) {
	html:root body .dcrm-sr__card-brand {
		width: 84px;
		height: 36px;
	}
}

html:root body .dcrm-sr__card-brand img {
	object-position: right center;
}

/* =========================================================================
 * 16. Landing della singola auto, nel nuovo stile
 * ====================================================================== */

html:root body .dcrm-vb-open__eyebrow {
	margin: 0 0 .75rem;
	color: var(--dcrm-e-action);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

html:root body .dcrm-vb-open__note {
	margin: .5rem 0 0;
	color: var(--dcrm-e-muted);
	font-size: .9375rem;
}

/* «Perché sceglierla»: un elenco di punti con il segno di spunta. */
html:root body .dcrm-landing-points {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: .75rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

html:root body .dcrm-landing-points li {
	position: relative;
	padding: .9rem 1rem .9rem 2.6rem;
	border: 1px solid var(--dcrm-e-rule);
	border-radius: var(--dcrm-e-ctl);
	background: #fff;
	color: var(--dcrm-e-ink);
	font-weight: 600;
	line-height: 1.35;
}

html:root body .dcrm-landing-points li::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 1.15rem;
	width: .8rem;
	height: .45rem;
	border-left: 2px solid var(--dcrm-e-action);
	border-bottom: 2px solid var(--dcrm-e-action);
	transform: rotate(-45deg);
}

/* La barra fissa in basso: bianca, morbida, con il colore del sito sul
   pulsante principale (prima era un blocco blu del vecchio layout). */
html:root body .dcrm-landing-bar {
	left: 50%;
	right: auto;
	bottom: max(12px, env(safe-area-inset-bottom));
	width: min(100% - 24px, 760px);
	transform: translateX(-50%);
	padding: 10px 10px 10px 18px;
	border: 1px solid var(--dcrm-e-rule);
	border-radius: 999px;
	background: rgba(255, 255, 255, .96);
	color: var(--dcrm-e-ink);
	box-shadow: var(--dcrm-e-card-shadow-hover);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}

html:root body .dcrm-landing-bar__info span {
	color: var(--dcrm-e-muted);
	opacity: 1;
}

html:root body .dcrm-landing-bar__call {
	border: 1px solid var(--dcrm-e-rule);
	background: #fff;
	color: var(--dcrm-e-ink);
}

html:root body .dcrm-landing-bar__call:hover,
html:root body .dcrm-landing-bar__call:focus {
	background: var(--dcrm-e-wash);
	color: var(--dcrm-e-ink);
}

html:root body .dcrm-landing-bar__cta,
html:root body .dcrm-landing-bar__cta:hover,
html:root body .dcrm-landing-bar__cta:focus {
	background: var(--dcrm-e-action);
	color: #fff;
}

@media (max-width: 599px) {
	html:root body .dcrm-landing-bar {
		width: calc(100% - 16px);
		padding-left: 14px;
		border-radius: 18px;
	}
}

/* =========================================================================
 * 17. Movimento: slider della home e landing
 * ======================================================================
 *
 * Pochi gesti, tutti al servizio della lettura: il testo della slide sale
 * una riga alla volta, l'auto scivola in posizione e poi si avvicina appena,
 * la barretta della slide si riempie nel tempo che manca alla prossima.
 * Le curve sono «ease-out» lunghe: niente rimbalzi, niente che distragga
 * dal prezzo. Con «riduci movimento» tutto è fermo e già visibile.
 */

html:root {
	--dcrm-m-ease: cubic-bezier(.16, 1, .3, 1);
}

/* --- Slider: il testo entra a righe. --- */
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide .dcrm-of-slide__text > * {
	opacity: 0;
	translate: 0 18px;
	transition: opacity .5s var(--dcrm-m-ease), translate .8s var(--dcrm-m-ease);
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-of-slide__text > * {
	opacity: 1;
	translate: 0 0;
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-of-slide__text > :nth-child(1) { transition-delay: .10s; }
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-of-slide__text > :nth-child(2) { transition-delay: .17s; }
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-of-slide__text > :nth-child(3) { transition-delay: .24s; }
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-of-slide__text > :nth-child(4) { transition-delay: .31s; }
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-of-slide__text > :nth-child(5) { transition-delay: .38s; }
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-of-slide__text > :nth-child(n+6) { transition-delay: .45s; }

/* --- Slider: l'auto scivola dentro, poi si avvicina piano. --- */
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide__car {
	overflow: hidden;
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-slide .dcrm-of-slide__car img {
	opacity: 0;
	translate: 7% 0;
	scale: 1.06;
	transition: opacity .7s var(--dcrm-m-ease), translate 1.2s var(--dcrm-m-ease), scale 1.4s var(--dcrm-m-ease);
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-of-slide__car img {
	opacity: 1;
	translate: 0 0;
	scale: 1;
}

/* Mentre la slide resta, un avvicinamento lentissimo (proprietà separata
   da «scale», così non litiga con l'entrata). */
@keyframes dcrm-drift {
	from { transform: scale(1); }
	to { transform: scale(1.045); }
}

html:root body .dcrm-of-hero.is-motion.is-playing .dcrm-of-slide.is-active .dcrm-of-slide__car img {
	animation: dcrm-drift var(--of-interval, 6.5s) linear forwards;
}

/* --- Slider: barrette di avanzamento al posto dei pallini. --- */
html:root body .dcrm-of-hero.is-motion .dcrm-of-dots {
	gap: 6px;
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button {
	position: relative;
	width: 28px;
	height: 4px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--dcrm-e-rule);
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--dcrm-e-ink);
	transform: scaleX(0);
	transform-origin: left center;
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button.is-on {
	width: 44px;
	background: var(--dcrm-e-rule);
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button.is-on::after {
	transform: scaleX(1);
}

@keyframes dcrm-fill {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

html:root body .dcrm-of-hero.is-motion.is-playing .dcrm-of-dots button.is-on::after {
	animation: dcrm-fill var(--of-interval, 6.5s) linear forwards;
}

/* Pulsante pausa: mostra l'icona dell'azione che farà. */
html:root body .dcrm-of-hero__pause svg {
	width: 16px;
	height: 16px;
}

html:root body .dcrm-of-hero__pause .is-play,
html:root body .dcrm-of-hero__pause[aria-pressed="true"] .is-pause {
	display: none;
}

html:root body .dcrm-of-hero__pause[aria-pressed="true"] .is-play {
	display: block;
}

/* --- Landing: le parti compaiono entrando nello schermo. --- */
html.dcrm-motion body .dcrm-reveal > * {
	opacity: 0;
	translate: 0 24px;
	transition: opacity .7s var(--dcrm-m-ease), translate .9s var(--dcrm-m-ease);
	transition-delay: calc(var(--dcrm-i, 0) * 80ms);
}

html.dcrm-motion body .dcrm-reveal.is-in > * {
	opacity: 1;
	translate: 0 0;
}

/* L'apertura della landing: la foto si scopre da sinistra e si assesta,
   il testo segue a righe. */
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open > .dcrm-vb-open__photo {
	translate: 0 0;
	clip-path: inset(0 100% 0 0 round var(--dcrm-e-radius));
	transition: opacity .4s ease, clip-path 1.1s var(--dcrm-m-ease);
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in > .dcrm-vb-open__photo {
	clip-path: inset(0 0 0 0 round var(--dcrm-e-radius));
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open > .dcrm-vb-open__photo img {
	scale: 1.08;
	transition: scale 1.6s var(--dcrm-m-ease);
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in > .dcrm-vb-open__photo img {
	scale: 1;
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open > .dcrm-vb-open__text {
	opacity: 1;
	translate: 0 0;
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open .dcrm-vb-open__text > * {
	opacity: 0;
	translate: 0 16px;
	transition: opacity .6s var(--dcrm-m-ease), translate .8s var(--dcrm-m-ease);
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in .dcrm-vb-open__text > * {
	opacity: 1;
	translate: 0 0;
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in .dcrm-vb-open__text > :nth-child(1) { transition-delay: .25s; }
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in .dcrm-vb-open__text > :nth-child(2) { transition-delay: .32s; }
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in .dcrm-vb-open__text > :nth-child(3) { transition-delay: .39s; }
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in .dcrm-vb-open__text > :nth-child(4) { transition-delay: .46s; }
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in .dcrm-vb-open__text > :nth-child(5) { transition-delay: .53s; }
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in .dcrm-vb-open__text > :nth-child(n+6) { transition-delay: .6s; }

/* Il prezzo arriva con un filo che si allunga sotto il nome. */
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open .dcrm-vb-open__price {
	border-top-color: transparent;
	background: linear-gradient(var(--dcrm-e-rule-strong), var(--dcrm-e-rule-strong)) top left / 0 1px no-repeat;
	transition: opacity .6s var(--dcrm-m-ease), translate .8s var(--dcrm-m-ease), background-size 1s var(--dcrm-m-ease) .5s;
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in .dcrm-vb-open__price {
	background-size: 100% 1px;
}

@media (prefers-reduced-motion: reduce) {
	html:root body .dcrm-of-hero.is-motion .dcrm-of-slide .dcrm-of-slide__text > *,
	html:root body .dcrm-of-hero.is-motion .dcrm-of-slide .dcrm-of-slide__car img {
		opacity: 1;
		translate: 0 0;
		scale: 1;
		transition: none;
		animation: none;
	}

	html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button::after {
		animation: none;
	}
}

/* =========================================================================
 * 18. Copertina in profondità (livelli o foto 3D)
 *
 * La foto normale resta nella pagina e dà le misure; quando lo script ha
 * preparato l'effetto («is-on») la scena le si sovrappone. Senza script, o
 * con «riduci movimento», si vede solo la foto.
 * ====================================================================== */

html:root body .dcrm-depth {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: inherit;
}

html:root body .dcrm-depth__scene {
	position: absolute;
	inset: 0;
	visibility: hidden;
	pointer-events: none;
}

html:root body .dcrm-depth.is-on .dcrm-depth__scene {
	visibility: visible;
}

html:root body .dcrm-depth.is-on > .dcrm-depth__photo {
	visibility: hidden;
}

/* Lo sfondo deborda un poco: muovendosi non mostra mai il bordo. */
html:root body .dcrm-depth__bg {
	position: absolute;
	inset: -4%;
	background-position: center;
	background-size: cover;
	will-change: transform;
}

html:root body .dcrm-depth__bg.is-studio {
	background: linear-gradient(#fbfaf8, #e9e7e2 78%, #e3e1db 82%, #cfccc4);
}

html:root body .dcrm-depth__car {
	position: absolute;
	will-change: transform;
}

/* L'auto scontornata non segue le regole delle foto dello slider. */
html:root body .dcrm-depth .dcrm-depth__car img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
	border-radius: 0 !important;
	opacity: 1 !important;
	translate: none !important;
	scale: none !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
	filter: none;
	mix-blend-mode: normal;
}

/* Ombra a terra, sotto le ruote: si muove con l'auto. */
html:root body .dcrm-depth__shadow {
	position: absolute;
	left: -8%;
	right: -8%;
	bottom: -4%;
	height: 14%;
	background:
		radial-gradient(ellipse 47% 30% at 50% 60%, rgba(0, 0, 0, calc(.6 * var(--dcrm-depth-shadow, .6))), transparent 70%),
		radial-gradient(ellipse 50% 50% at 50% 55%, rgba(0, 0, 0, calc(.3 * var(--dcrm-depth-shadow, .6))), transparent 75%);
}

html:root body .dcrm-depth__gl {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Nello slider l'entrata e l'avvicinamento lento passano alla scena. */
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide .dcrm-depth__scene,
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide .dcrm-depth__gl {
	opacity: 0;
	translate: 7% 0;
	scale: 1.06;
	transition: opacity .7s var(--dcrm-m-ease), translate 1.2s var(--dcrm-m-ease), scale 1.4s var(--dcrm-m-ease);
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-depth__scene,
html:root body .dcrm-of-hero.is-motion .dcrm-of-slide.is-active .dcrm-depth__gl {
	opacity: 1;
	translate: 0 0;
	scale: 1;
}

html:root body .dcrm-of-hero.is-motion.is-playing .dcrm-of-slide.is-active .dcrm-depth__scene,
html:root body .dcrm-of-hero.is-motion.is-playing .dcrm-of-slide.is-active .dcrm-depth__gl {
	animation: dcrm-drift var(--of-interval, 6.5s) linear forwards;
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open > .dcrm-vb-open__photo .dcrm-depth__scene,
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open > .dcrm-vb-open__photo .dcrm-depth__gl {
	scale: 1.08;
	transition: scale 1.6s var(--dcrm-m-ease);
}

html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in > .dcrm-vb-open__photo .dcrm-depth__scene,
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open.is-in > .dcrm-vb-open__photo .dcrm-depth__gl {
	scale: 1;
}

@media (prefers-reduced-motion: reduce) {
	html:root body .dcrm-depth__scene,
	html:root body .dcrm-depth__gl {
		display: none;
	}

	html:root body .dcrm-depth > .dcrm-depth__photo {
		visibility: visible;
	}
}

/* =========================================================================
 * 19. Correzioni dalla revisione (novembre 2026)
 * ====================================================================== */

/* --- Auto ben appoggiata: riflesso sul pavimento lucido e ombra di
   contatto stretta sotto le gomme. --- */
html:root body .dcrm-depth .dcrm-depth__car img.dcrm-depth__mirror {
	inset: auto 0 auto 0;
	top: 98.8%;
	height: 45% !important;
	object-fit: cover !important;
	object-position: bottom;
	opacity: var(--dcrm-mirror, .2) !important;
	scale: 1 -1 !important;
	filter: blur(1px);
	-webkit-mask-image: linear-gradient(to top, #000, transparent 90%);
	mask-image: linear-gradient(to top, #000, transparent 90%);
}

html:root body .dcrm-depth__shadow {
	left: -6%;
	right: -6%;
	bottom: -3%;
	height: 10%;
	background:
		radial-gradient(ellipse 44% 22% at 50% 55%, rgba(0, 0, 0, calc(.85 * var(--dcrm-depth-shadow, .6))), transparent 75%),
		radial-gradient(ellipse 52% 46% at 50% 55%, rgba(0, 0, 0, calc(.35 * var(--dcrm-depth-shadow, .6))), transparent 80%);
}

/* --- Apertura della landing: titolo, prezzo e pulsanti non si nascondono
   mai; si muove solo la posizione. La foto si apre a tendina. --- */
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open > .dcrm-vb-open__photo,
html.dcrm-motion body .dcrm-reveal.dcrm-vb-open .dcrm-vb-open__text > * {
	opacity: 1;
}

/* --- Slider: comandi che non si schiacciano sul telefono. --- */
html:root body .dcrm-of-hero .dcrm-of-hero__controls {
	flex-wrap: nowrap;
	min-width: 0;
}

html:root body .dcrm-of-hero .dcrm-of-nav__btn {
	flex: none;
	width: 44px;
	height: 44px;
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-dots {
	flex: 0 1 auto;
	min-width: 0;
}

/* Barretta sottile, area di tocco di 24px. */
html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button {
	flex: 1 1 0;
	min-width: 10px;
	max-width: 28px;
	height: 24px;
	padding: 10px 0;
	background: var(--dcrm-e-rule) content-box;
	border-radius: 999px;
	cursor: pointer;
}

html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button::after {
	top: 10px;
	bottom: 10px;
	height: auto;
}

/* Fermo col mouse sopra o con la pausa: la barretta si ferma dov'è,
   invece di sembrare finita. */
html:root body .dcrm-of-hero.is-motion:not(.is-playing) .dcrm-of-dots button.is-on::after {
	animation-play-state: paused;
}

html:root body .dcrm-of-hero__count {
	display: none;
	min-width: 3.5em;
	color: var(--dcrm-e-ink);
	font-size: .875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

@media (max-width: 600px) {
	html:root body .dcrm-of-hero.is-motion .dcrm-of-dots {
		display: none;
	}

	html:root body .dcrm-of-hero__count {
		display: inline-block;
	}
}

/* Chi trascina col dito vede subito la slide che arriva: l'entrata
   animata resta solo per l'avanzamento automatico e per i comandi. */
html:root body .dcrm-of-hero.is-manual .dcrm-of-slide .dcrm-of-slide__text > *,
html:root body .dcrm-of-hero.is-manual .dcrm-of-slide .dcrm-of-slide__car img,
html:root body .dcrm-of-hero.is-manual .dcrm-of-slide .dcrm-depth__scene,
html:root body .dcrm-of-hero.is-manual .dcrm-of-slide .dcrm-depth__gl {
	opacity: 1;
	translate: 0 0;
	scale: 1;
	transition: none;
}

/* --- Il pulsante dello slider è una pillola come tutti gli altri. --- */
html:root body .dcrm-of-slide.is-composed .dcrm-of-btn,
html:root body .dcrm-of-slide .dcrm-of-btn {
	border-radius: 999px;
}

/* --- Testi secondari: il tema scurisce il grigio del concessionario
   quanto basta per il 4,5:1 (dealer_showroom_readable). Il segnaposto
   delle marche senza logo resta leggibile. --- */
html:root body .dcrm-home__make-logo.is-empty > span {
	color: var(--dcrm-e-muted);
}

/* --- Landing: la barra in basso arriva dopo l'apertura. --- */
html:root body .dcrm-landing-bar {
	transition: translate .5s var(--dcrm-m-ease, ease), opacity .3s ease;
}

html:root body .dcrm-landing-bar.is-hidden {
	translate: 0 160%;
	opacity: 0;
	pointer-events: none;
}

/* La barretta attiva resta sottile anche quando altre regole le danno un fondo. */
html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button,
html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button.is-on,
html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button:hover,
html:root body .dcrm-of-hero.is-motion .dcrm-of-dots button:focus {
	background-clip: content-box !important;
}

/* Sul telefono il carosello delle auto esce dal margine della pagina in
   modo simmetrico: parte allineato al testo e arriva al bordo dello
   schermo, invece di sporgere di qualche pixel da un lato solo. */
@media (max-width: 559px) {
	html:root body .dcrm-sr .dcrm-sr__grid.dcrm-of-grid {
		--dcrm-bleed: var(--ds-gutter, 20px);
		margin-inline: calc(-1 * var(--dcrm-bleed));
		padding-inline: var(--dcrm-bleed);
		scroll-padding-inline: var(--dcrm-bleed);
		grid-auto-columns: 80%;
	}
}

/* Stelle delle recensioni disegnate, non caratteri: stesse su ogni sistema. */
html:root body .dcrm-review__stars {
	display: inline-flex;
	gap: 2px;
	vertical-align: middle;
}

html:root body .dcrm-review__stars svg {
	fill: var(--dcrm-e-rule, #d8d5cf);
}

html:root body .dcrm-review__stars svg.is-on {
	fill: #c99700;
}

/* --- Livelli già pronti (2.44): l'auto porta con sé ombre e riflesso, lo
   sfondo è già allineato alla prospettiva della foto. Lo sfondo deborda
   solo quanto basta per il movimento orizzontale, così resta dove le ruote
   lo toccano. --- */
html:root body .dcrm-depth.is-baked .dcrm-depth__bg {
	inset: 0 -1.6%;
}

html:root body .dcrm-depth.is-baked .dcrm-depth__car img {
	object-fit: fill !important;
}
