/**
 * Showroom.
 *
 * Un solo sistema: quattro passi di spaziatura, tre pesi di testo, due
 * raggi. Tutto il colore viene dai token del plugin, che a loro volta
 * seguono i Colori globali di Elementor: cambiando la palette lì, cambia
 * anche questa vetrina.
 */

.dcrm-sr {
	--sr-bg: var( --dcrm-color-bg, #ffffff );
	--sr-surface: var( --dcrm-color-surface, #f6f7f9 );
	--sr-line: var( --dcrm-color-border, #e3e6ea );
	--sr-text: var( --dcrm-color-text, #16202c );
	--sr-muted: var( --dcrm-color-muted, #667085 );
	--sr-primary: var( --dcrm-color-primary, #0b2545 );
	--sr-accent: var( --dcrm-color-accent, #c8102e );

	--sr-s1: 6px;
	--sr-s2: 12px;
	--sr-s3: 20px;
	--sr-s4: 32px;

	--sr-r: 12px;
	--sr-r-lg: 18px;

	color: var( --sr-text );
	font-size: 15px;
	line-height: 1.5;
}

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

.dcrm-sr :focus-visible {
	outline: 2px solid var( --sr-accent );
	outline-offset: 2px;
	border-radius: 4px;
}

.dcrm-sr .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
}

/* ---------------------------------------------------------------------
 * Barra di ricerca
 * ------------------------------------------------------------------- */

.dcrm-sr__hero {
	background: var( --sr-surface );
	border: 1px solid var( --sr-line );
	border-radius: var( --sr-r-lg );
	padding: var( --sr-s3 );
	margin-bottom: var( --sr-s4 );
}

.dcrm-sr__hero-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: var( --sr-s2 );
}

.dcrm-sr__field {
	display: flex;
	flex-direction: column;
	gap: var( --sr-s1 );
	min-width: 0;
}

.dcrm-sr__field > span {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var( --sr-muted );
}

.dcrm-sr__field select,
.dcrm-sr__field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var( --sr-line );
	border-radius: var( --sr-r );
	background: var( --sr-bg );
	color: inherit;
	font: inherit;
	min-height: 48px;
}

.dcrm-sr__cta {
	min-height: 48px;
	padding: 12px 26px;
	border: 0;
	border-radius: var( --sr-r );
	background: var( --sr-accent );
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: filter .15s ease;
}

.dcrm-sr__cta:hover {
	filter: brightness( 1.08 );
}

.dcrm-sr__cta[aria-busy="true"] {
	opacity: .7;
	cursor: progress;
}

/* ---------------------------------------------------------------------
 * Sezioni di scoperta
 * ------------------------------------------------------------------- */

.dcrm-sr__section {
	margin-bottom: var( --sr-s4 );
}

.dcrm-sr__section-title {
	margin: 0 0 var( --sr-s3 );
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.dcrm-sr__tiles {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 130px, 1fr ) );
	gap: var( --sr-s2 );
}

.dcrm-sr__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 2px;
	min-height: 132px;
	padding: var( --sr-s3 ) var( --sr-s2 );
	border: 1px solid var( --sr-line );
	border-radius: var( --sr-r );
	background: var( --sr-bg );
	color: inherit;
	text-decoration: none;
	text-align: center;
	transition: border-color .15s ease, transform .15s ease;
}

.dcrm-sr__tile:hover {
	border-color: var( --sr-primary );
	transform: translateY( -2px );
}

.dcrm-sr__tile-art {
	display: block;
	color: var( --sr-primary );
	margin-bottom: var( --sr-s1 );
}

.dcrm-sr__silhouette {
	width: 86px;
	height: 54px;
	display: block;
}

.dcrm-sr__tile-label {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.25;
	margin-top: auto;
}

.dcrm-sr__tile-count,
.dcrm-sr__brand-count {
	font-size: 12px;
	color: var( --sr-muted );
}

/*
 * Il conteggio si appoggia al fondo della tessera. Serve perché nella stessa
 * riga convivono marche con il logo e marche col solo nome: senza questo i
 * "3 auto" finiscono ad altezze diverse e la fila sembra sbagliata.
 */
.dcrm-sr__brand-count {
	margin-top: auto;
	padding-top: 4px;
}

.dcrm-sr__brands {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 108px, 1fr ) );
	gap: var( --sr-s2 );
}

.dcrm-sr__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 2px;
	min-height: 84px;
	padding: var( --sr-s2 ) var( --sr-s1 );
	border: 1px solid var( --sr-line );
	border-radius: var( --sr-r );
	background: var( --sr-bg );
	color: inherit;
	text-decoration: none;
	transition: border-color .15s ease;
}

.dcrm-sr__brand:hover {
	border-color: var( --sr-primary );
}

.dcrm-sr__brand-name {
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var( --sr-primary );
}

/*
 * Con il logo caricato il nome scende di rango: diventa didascalia, perché
 * il logo è già il riconoscimento. Senza logo resta lui il protagonista.
 */
.dcrm-sr__brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	margin-bottom: 4px;
}

.dcrm-sr__brand-logo img {
	max-width: 76px;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/*
 * Senza logo il nome si centra fra il bordo e il conteggio: due margini
 * automatici si spartiscono lo spazio libero. Così la tessera tipografica
 * non sembra un'immagine mancante accanto a quelle col logo.
 */
.dcrm-sr__brand:not( .has-logo ) .dcrm-sr__brand-name {
	margin-top: auto;
}

.dcrm-sr__brand.has-logo {
	min-height: 108px;
}

.dcrm-sr__brand.has-logo .dcrm-sr__brand-name {
	font-size: 13px;
	font-weight: 600;
	color: inherit;
}

/* ---------------------------------------------------------------------
 * Impianto principale
 * ------------------------------------------------------------------- */

.dcrm-sr__main {
	display: grid;
	grid-template-columns: 1fr;
	gap: var( --sr-s4 );
	align-items: start;
}

/* ---------------------------------------------------------------------
 * Filtri
 * ------------------------------------------------------------------- */

.dcrm-sr__sidebar {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	flex-direction: column;
	background: var( --sr-bg );
}

.dcrm-sr__sidebar.is-open {
	display: flex;
}

.dcrm-sr__sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var( --sr-s3 );
	border-bottom: 1px solid var( --sr-line );
}

.dcrm-sr__sidebar-head h2 {
	margin: 0;
	font-size: 18px;
}

.dcrm-sr__sidebar-close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var( --sr-surface );
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.dcrm-sr__filters {
	flex: 1;
	overflow-y: auto;
	padding: 0 var( --sr-s3 );
}

.dcrm-sr__sidebar-foot {
	padding: var( --sr-s2 ) var( --sr-s3 ) var( --sr-s3 );
	border-top: 1px solid var( --sr-line );
	background: var( --sr-bg );
}

.dcrm-sr__apply {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: var( --sr-r );
	background: var( --sr-primary );
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* Gruppo a fisarmonica */

.dcrm-sr__group {
	border-bottom: 1px solid var( --sr-line );
}

.dcrm-sr__group-head {
	display: flex;
	align-items: center;
	gap: var( --sr-s1 );
	width: 100%;
	padding: 16px 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 600;
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.dcrm-sr__group-head > span:first-child {
	flex: 1;
}

.dcrm-sr__group-badge {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var( --sr-accent );
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.dcrm-sr__chevron {
	width: 9px;
	height: 9px;
	border-right: 2px solid var( --sr-muted );
	border-bottom: 2px solid var( --sr-muted );
	transform: rotate( 45deg );
	transition: transform .15s ease;
	flex: 0 0 auto;
	margin-left: var( --sr-s1 );
}

.dcrm-sr__group.is-open .dcrm-sr__chevron {
	transform: rotate( -135deg );
}

.dcrm-sr__group-body {
	display: none;
	padding-bottom: var( --sr-s3 );
}

.dcrm-sr__group.is-open .dcrm-sr__group-body {
	display: block;
}

.dcrm-sr__group-search {
	width: 100%;
	margin-bottom: var( --sr-s2 );
	padding: 9px 12px;
	border: 1px solid var( --sr-line );
	border-radius: var( --sr-r );
	font: inherit;
}

.dcrm-sr__options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: 320px;
	overflow-y: auto;
}

.dcrm-sr__options li {
	margin: 0;
}

.dcrm-sr__options label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 6px;
	border-radius: 8px;
	cursor: pointer;
}

.dcrm-sr__options label:hover {
	background: var( --sr-surface );
}

.dcrm-sr__options input {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: var( --sr-primary );
}

/*
 * Icona accanto alla voce del filtro. Larghezza fissa anche quando manca,
 * altrimenti le righe con e senza logo non si allineano e l'elenco balla.
 */
.dcrm-sr__options.has-icons label {
	gap: 8px;
}

.dcrm-sr__option-icon {
	flex: 0 0 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	color: var( --sr-primary );
	opacity: .75;
}

.dcrm-sr__options.has-icons label:hover .dcrm-sr__option-icon,
.dcrm-sr__options.has-icons input:checked ~ .dcrm-sr__option-icon {
	opacity: 1;
}

.dcrm-sr__option-icon .dcrm-sr__silhouette {
	width: 38px;
	height: 24px;
}

/* Un logo di marca non va sbiadito: è un marchio, non una decorazione. */
.dcrm-sr__option-icon.is-logo {
	opacity: 1;
}

.dcrm-sr__option-icon.is-logo img {
	max-width: 26px;
	max-height: 24px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dcrm-sr__option-label {
	flex: 1;
	min-width: 0;
	margin-right: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dcrm-sr__option-count {
	font-size: 12px;
	color: var( --sr-muted );
	font-variant-numeric: tabular-nums;
}

.dcrm-sr__more {
	margin-top: var( --sr-s1 );
	padding: 6px 0;
	border: 0;
	background: none;
	color: var( --sr-primary );
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

/* Pillole a scelta singola */

.dcrm-sr__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var( --sr-s1 );
}

.dcrm-sr__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dcrm-sr__chip span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var( --sr-line );
	border-radius: 999px;
	font-size: 13px;
	cursor: pointer;
	transition: all .12s ease;
}

.dcrm-sr__chip input:checked + span {
	background: var( --sr-primary );
	border-color: var( --sr-primary );
	color: #fff;
	font-weight: 600;
}

.dcrm-sr__chip input:focus-visible + span {
	outline: 2px solid var( --sr-accent );
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------
 * Risultati
 * ------------------------------------------------------------------- */

.dcrm-sr__results {
	min-width: 0;
	transition: opacity .15s ease;
}

.dcrm-sr__results.is-loading {
	opacity: .45;
	pointer-events: none;
}

.dcrm-sr__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var( --sr-s2 );
	margin-bottom: var( --sr-s3 );
}

.dcrm-sr__count {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.dcrm-sr__sort select {
	padding: 9px 12px;
	border: 1px solid var( --sr-line );
	border-radius: var( --sr-r );
	background: var( --sr-bg );
	font: inherit;
	min-height: 40px;
}

/* Filtri attivi */

.dcrm-sr__active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var( --sr-s1 );
	margin-bottom: var( --sr-s3 );
}

.dcrm-sr__active-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var( --sr-primary );
	border-radius: 999px;
	background: var( --sr-bg );
	color: var( --sr-primary );
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.dcrm-sr__active-chip:hover {
	background: var( --sr-primary );
	color: #fff;
}

.dcrm-sr__active-clear {
	font-size: 13px;
	color: var( --sr-muted );
	text-decoration: underline;
}

/* Griglia */

.dcrm-sr__grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 250px, 1fr ) );
	gap: var( --sr-s3 );
}

.dcrm-sr__card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var( --sr-line );
	border-radius: var( --sr-r-lg );
	background: var( --sr-bg );
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease;
}

.dcrm-sr__card:hover {
	box-shadow: 0 10px 30px rgba( 16, 24, 40, .10 );
	transform: translateY( -3px );
}

.dcrm-sr__card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var( --sr-surface );
	overflow: hidden;
}

.dcrm-sr__card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.dcrm-sr__card:hover .dcrm-sr__card-media img {
	transform: scale( 1.04 );
}

.dcrm-sr__card-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var( --sr-muted );
	opacity: .5;
}

.dcrm-sr__card-placeholder .dcrm-sr__silhouette {
	width: 96px;
	height: 60px;
}

.dcrm-sr__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	max-width: calc( 100% - 60px );
}

.dcrm-sr__badge {
	padding: 4px 9px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .01em;
	background: var( --sr-primary );
	color: #fff;
}

.dcrm-sr__badge--km0 {
	background: #0f766e;
}

.dcrm-sr__badge--new {
	background: #1d4ed8;
}

.dcrm-sr__badge--promo,
.dcrm-sr__badge--drop {
	background: var( --sr-accent );
}

.dcrm-sr__card-body {
	display: flex;
	flex-direction: column;
	gap: var( --sr-s2 );
	padding: var( --sr-s3 );
	flex: 1;
}

.dcrm-sr__card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

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

.dcrm-sr__card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.dcrm-sr__card-trim {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: var( --sr-muted );
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dcrm-sr__specs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.dcrm-sr__specs li {
	margin: 0;
	padding: 3px 8px;
	border-radius: 6px;
	background: var( --sr-surface );
	font-size: 12px;
	color: var( --sr-muted );
}

.dcrm-sr__card-foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var( --sr-s2 );
	margin-top: auto;
	padding-top: var( --sr-s1 );
}

.dcrm-sr__price strong {
	display: block;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

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

.dcrm-sr__rate {
	text-align: right;
	font-size: 11px;
	color: var( --sr-muted );
	line-height: 1.3;
}

.dcrm-sr__rate strong {
	display: block;
	font-size: 13px;
	color: var( --sr-text );
}

.dcrm-sr__fav {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, .92 );
	cursor: pointer;
	box-shadow: 0 2px 8px rgba( 16, 24, 40, .12 );
}

.dcrm-sr__fav svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: var( --sr-text );
	stroke-width: 1.8;
}

.dcrm-sr__fav.is-on svg {
	fill: var( --sr-accent );
	stroke: var( --sr-accent );
}

/* Vuoto e paginazione */

.dcrm-sr__empty {
	padding: var( --sr-s4 ) var( --sr-s3 );
	border: 1px dashed var( --sr-line );
	border-radius: var( --sr-r-lg );
	text-align: center;
}

.dcrm-sr__empty-title {
	margin: 0 0 var( --sr-s1 );
	font-size: 18px;
	font-weight: 700;
}

.dcrm-sr__empty-text {
	margin: 0 auto var( --sr-s3 );
	max-width: 46ch;
	color: var( --sr-muted );
}

.dcrm-sr__empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var( --sr-s1 );
	margin-bottom: var( --sr-s3 );
}

.dcrm-sr__button {
	display: inline-block;
	padding: 11px 20px;
	border-radius: var( --sr-r );
	background: var( --sr-primary );
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	border: 1px solid var( --sr-primary );
	cursor: pointer;
}

.dcrm-sr__button--ghost {
	background: transparent;
	color: var( --sr-text );
	border-color: var( --sr-line );
}

.dcrm-sr__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var( --sr-s3 );
	margin-top: var( --sr-s4 );
}

.dcrm-sr__pagination a {
	padding: 10px 18px;
	border: 1px solid var( --sr-line );
	border-radius: var( --sr-r );
	text-decoration: none;
	color: inherit;
	font-weight: 600;
}

.dcrm-sr__pagination-info {
	font-size: 13px;
	color: var( --sr-muted );
}

/* Barra filtri su telefono */

.dcrm-sr__mobilebar {
	position: sticky;
	bottom: 12px;
	display: flex;
	justify-content: center;
	margin-top: var( --sr-s3 );
	pointer-events: none;
}

.dcrm-sr__mobilebar-btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 28px;
	border: 0;
	border-radius: 999px;
	background: var( --sr-primary );
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba( 16, 24, 40, .22 );
}

.dcrm-sr__mobilebar-count {
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var( --sr-accent );
	font-size: 12px;
}

/* Scheletri durante il caricamento */

.dcrm-sr__skeleton {
	border: 1px solid var( --sr-line );
	border-radius: var( --sr-r-lg );
	overflow: hidden;
}

.dcrm-sr__skeleton span {
	display: block;
	background: linear-gradient( 90deg, var( --sr-surface ) 25%, #eceff3 37%, var( --sr-surface ) 63% );
	background-size: 400% 100%;
	animation: dcrm-sr-shimmer 1.3s ease infinite;
}

.dcrm-sr__skeleton span:first-child {
	aspect-ratio: 4 / 3;
}

.dcrm-sr__skeleton span + span {
	height: 14px;
	margin: 14px 18px;
	border-radius: 4px;
}

.dcrm-sr__skeleton span:last-child {
	width: 45%;
	margin-bottom: 20px;
}

@keyframes dcrm-sr-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

@media ( prefers-reduced-motion: reduce ) {
	.dcrm-sr *,
	.dcrm-sr *::before,
	.dcrm-sr *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}

/* ---------------------------------------------------------------------
 * Da tablet in su
 * ------------------------------------------------------------------- */

@media ( min-width: 640px ) {
	.dcrm-sr__hero-fields {
		grid-template-columns: repeat( 2, 1fr ) auto;
		align-items: end;
	}

	.dcrm-sr__field--grow {
		grid-column: 1 / -2;
	}
}

@media ( min-width: 1000px ) {
	.dcrm-sr {
		font-size: 16px;
	}

	.dcrm-sr__hero-fields {
		grid-template-columns: 1fr 1fr 1.4fr auto;
	}

	.dcrm-sr__field--grow {
		grid-column: auto;
	}

	.dcrm-sr__main {
		grid-template-columns: 272px 1fr;
	}

	.dcrm-sr__sidebar {
		position: sticky;
		top: 24px;
		inset: auto;
		display: flex;
		z-index: 1;
		max-height: calc( 100vh - 48px );
		border: 1px solid var( --sr-line );
		border-radius: var( --sr-r-lg );
		overflow: hidden;
	}

	.dcrm-sr__sidebar-head,
	.dcrm-sr__sidebar-foot,
	.dcrm-sr__mobilebar {
		display: none;
	}

	.dcrm-sr__filters {
		padding: var( --sr-s1 ) var( --sr-s3 ) var( --sr-s3 );
	}

	.dcrm-sr__grid {
		grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
	}
}

/* ---------------------------------------------------------------------
 * Sede del visitatore
 * ------------------------------------------------------------------- */

/*
 * La fascia sta sopra tutto e non si chiude: dichiara che lo stock mostrato
 * e' parziale. Nasconderla dietro una X la renderebbe inutile, perche' chi
 * la chiude poi non ricorda di averlo fatto.
 */
.dcrm-sr__geo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var( --sr-s2 );
	margin-bottom: var( --sr-s3 );
	padding: 12px var( --sr-s3 );
	border: 1px solid var( --sr-line );
	border-left: 3px solid var( --sr-accent );
	border-radius: var( --sr-r );
	background: var( --sr-surface );
	font-size: 14px;
}

.dcrm-sr__geo-text {
	flex: 1;
	min-width: 200px;
}

.dcrm-sr__geo-all {
	color: var( --sr-primary );
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

/* ---------------------------------------------------------------------
 * Miniatura del modello al posto della foto mancante
 * ------------------------------------------------------------------- */

/*
 * Sfondo diverso dalla foto vera e dicitura sempre visibile: chi guarda deve
 * capire in un colpo d'occhio che non e' la foto di quest'auto, altrimenti
 * arriva in salone e trova un colore diverso.
 */
.dcrm-sr__card-model {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --sr-surface );
}

.dcrm-sr__card-model img {
	max-width: 82%;
	max-height: 78%;
	width: auto;
	height: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.dcrm-sr__card-model em {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 10px;
	background: rgba( 255, 255, 255, .88 );
	color: var( --sr-muted );
	font-size: 11px;
	font-style: normal;
	letter-spacing: .01em;
}
