/**
 * =============================================================================
 * PROBAR - FORNITURE SU MISURA
 * -----------------------------------------------------------------------------
 * Caricato solo su template-su-misura.php.
 * Lusso quieto: fondo nero del tema, schede antracite, oro #FFCE53 solo nei
 * filetti, nei segni di scelta e nel pulsante pieno. Titoli Playfair Display.
 *
 * Mobile-first: si parte a una colonna e 375px, bersagli tattili da 48px, la
 * barra Indietro/Avanti resta attaccata in basso sul telefono.
 * Misure in px e non in rem: la radice del sito e' 14,592px, non 16.
 * =============================================================================
 */

.abm-sm {
	--sm-oro: #FFCE53;
	--sm-oro-chiaro: #FFE9AE;
	--sm-oro-scuro: #4a3f1e;
	--sm-fondo: #0b0b0b;
	--sm-scheda: #151515;
	--sm-scheda-su: #1c1a14;
	--sm-bordo: #2c2c2c;
	--sm-testo: #d9d4c7;
	--sm-tenue: #9a958a;
	--sm-errore: #ff8a7a;
	--sm-raggio: 14px;
	--sm-dolce: cubic-bezier(.2, .7, .2, 1);

	max-width: 1080px;
	margin: 0 auto;
	padding: 28px 16px 90px;
	color: var(--sm-testo);
	font-size: 16px;
	line-height: 1.55;
}

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

/* "hidden" vince su ogni display dichiarato qui sotto (pulsanti, file) */
.abm-sm [hidden] {
	display: none !important;
}

/* ---------- Introduzione ---------- */
.abm-sm-hero {
	max-width: 780px;
	margin: 0 auto 28px;
	text-align: center;
}

.abm-sm-kicker {
	margin: 0 0 10px;
	color: var(--sm-oro);
	font-size: 12px;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.abm-sm-title {
	margin: 0 0 14px;
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.18;
	text-transform: none;
}

.abm-sm-lead {
	margin: 0 auto 22px;
	max-width: 640px;
	color: var(--sm-testo);
	font-size: 16px;
}

.abm-sm-fatti {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.abm-sm-fatti li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border-left: 1px solid var(--sm-oro);
	background: rgba(255, 206, 83, .04);
}

.abm-sm-fatti strong {
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}

.abm-sm-fatti span {
	color: var(--sm-tenue);
	font-size: 14px;
}

/* ---------- La scatola del configuratore ---------- */
.abm-sm-box {
	position: relative;
	padding: 20px 14px 0;
	border: 1px solid var(--sm-bordo);
	border-top: 1px solid var(--sm-oro-scuro);
	border-radius: var(--sm-raggio);
	background: var(--sm-fondo);
	scroll-margin-top: 90px;
}

/* ---------- Avanzamento ---------- */
.abm-sm-avanzamento {
	margin-bottom: 22px;
}

.abm-sm-tappe {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.abm-sm-tappa {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--sm-tenue);
	font-size: 12px;
	text-align: center;
	transition: color .3s ease;
}

.abm-sm-tappa__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--sm-bordo);
	border-radius: 50%;
	font-size: 13px;
	transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s var(--sm-dolce);
}

/* Sul telefono si legge solo il titolo della tappa attiva */
.abm-sm-tappa__t {
	display: none;
}

.abm-sm-tappa.is-attiva {
	color: #fff;
}

.abm-sm-tappa.is-attiva .abm-sm-tappa__n {
	border-color: var(--sm-oro);
	color: var(--sm-oro);
	transform: scale(1.08);
}

.abm-sm-tappa.is-fatta .abm-sm-tappa__n {
	border-color: var(--sm-oro);
	background: var(--sm-oro);
	color: #111;
}

.abm-sm-barra {
	height: 3px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--sm-bordo);
}

.abm-sm-barra__riempimento {
	display: block;
	width: 25%;
	height: 100%;
	background: linear-gradient(90deg, var(--sm-oro-scuro), var(--sm-oro));
	transition: width .5s var(--sm-dolce);
}

/* ---------- I passi ---------- */
.abm-sm-passo.is-attivo {
	animation: abm-sm-entra .38s var(--sm-dolce);
}

.abm-sm-passo.is-attivo.is-indietro {
	animation-name: abm-sm-entra-sx;
}

@keyframes abm-sm-entra {
	from { opacity: 0; transform: translateX(18px); }
	to   { opacity: 1; transform: none; }
}

@keyframes abm-sm-entra-sx {
	from { opacity: 0; transform: translateX(-18px); }
	to   { opacity: 1; transform: none; }
}

.abm-sm-h2 {
	margin: 0 0 18px;
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
	text-transform: none;
	outline: none;
}

.abm-sm-campo {
	margin: 0 0 26px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.abm-sm-legenda {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

.abm-sm-etichetta {
	display: block;
	margin: 16px 0 8px;
	color: var(--sm-testo);
	font-size: 15px;
}

.abm-sm-nota {
	color: var(--sm-tenue);
	font-size: 13px;
	font-weight: 400;
}

.abm-sm-nota--blocco {
	display: block;
	margin: 8px 0 0;
}

/* ---------- Schede e chip ---------- */
.abm-sm-scelte {
	display: grid;
	gap: 10px;
}

.abm-sm-scelte--chip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.abm-sm-card,
.abm-sm-chip {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	border: 1px solid var(--sm-bordo);
	background: var(--sm-scheda);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: border-color .2s ease, background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.abm-sm-card {
	min-height: 64px;
	padding: 14px 14px;
	border-radius: 12px;
}

.abm-sm-chip {
	align-items: center;
	min-height: 48px;
	padding: 10px 16px 10px 12px;
	border-radius: 999px;
}

/* L'input vero resta nel flusso della tastiera, invisibile */
.abm-sm-card input,
.abm-sm-chip input,
.abm-sm-consenso input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.abm-sm-card__segno,
.abm-sm-chip__segno {
	position: relative;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1px solid #555;
	border-radius: 50%;
	transition: border-color .2s ease, background .2s ease;
}

.abm-sm-chip__segno {
	margin-top: 0;
}

.abm-sm-card__segno::after,
.abm-sm-chip__segno::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 7px;
	width: 5px;
	height: 9px;
	border: solid #111;
	border-width: 0 2px 2px 0;
	opacity: 0;
	transform: rotate(45deg) scale(.4);
	transition: opacity .2s ease, transform .25s var(--sm-dolce);
}

.abm-sm-card__testo,
.abm-sm-chip__testo {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.abm-sm-card__t,
.abm-sm-chip__t {
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}

.abm-sm-card__s,
.abm-sm-chip__s {
	color: var(--sm-tenue);
	font-size: 13px;
	line-height: 1.4;
}

.abm-sm-chip__s::before {
	content: "· ";
}

.abm-sm-chip__testo {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 6px;
}

@media (hover: hover) {
	.abm-sm-card:hover,
	.abm-sm-chip:hover {
		border-color: #5a4c22;
		background: var(--sm-scheda-su);
	}
}

.abm-sm-card:active,
.abm-sm-chip:active {
	transform: scale(.985);
}

.abm-sm-card:has(input:checked),
.abm-sm-chip:has(input:checked),
.abm-sm-card.is-scelta,
.abm-sm-chip.is-scelta {
	border-color: var(--sm-oro);
	background: var(--sm-scheda-su);
	box-shadow: 0 0 0 1px rgba(255, 206, 83, .25) inset;
}

.abm-sm-card input:checked + .abm-sm-card__segno,
.abm-sm-chip input:checked + .abm-sm-chip__segno {
	border-color: var(--sm-oro);
	background: var(--sm-oro);
}

.abm-sm-card input:checked + .abm-sm-card__segno::after,
.abm-sm-chip input:checked + .abm-sm-chip__segno::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

/* Le checkbox hanno il segno quadrato, le radio tondo */
.abm-sm-card input[type="checkbox"] + .abm-sm-card__segno {
	border-radius: 5px;
}

.abm-sm-card:has(input:focus-visible),
.abm-sm-chip:has(input:focus-visible),
.abm-sm-consenso:has(input:focus-visible) {
	outline: 2px solid var(--sm-oro);
	outline-offset: 2px;
}

/* ---------- Campi di testo ---------- */
.abm-sm-input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--sm-bordo);
	border-radius: 10px;
	background: var(--sm-scheda);
	color: #fff;
	font-family: inherit; /* la textarea altrimenti prende il monospazio */
	font-size: 16px; /* sotto i 16 iOS ingrandisce la pagina al tocco */
	line-height: 1.4;
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

select.abm-sm-input {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FFCE53' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

select.abm-sm-input option,
select.abm-sm-input optgroup {
	background: #151515;
	color: #fff;
}

.abm-sm-input::placeholder {
	color: #6f6b62;
}

.abm-sm-input:focus {
	border-color: var(--sm-oro);
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 206, 83, .15);
}

.abm-sm-input--corto {
	max-width: 220px;
}

.abm-sm-input[type="date"] {
	color-scheme: dark;
}

.abm-sm-textarea {
	min-height: 130px;
	resize: vertical;
}

.abm-sm-contatore {
	margin: 6px 0 0;
	color: var(--sm-tenue);
	font-size: 12px;
	text-align: right;
}

.abm-sm-griglia {
	display: grid;
	gap: 4px 16px;
}

.abm-sm-sotto .abm-sm-etichetta {
	margin-top: 10px;
}

.abm-sm-rivela {
	animation: abm-sm-apri .3s var(--sm-dolce);
}

@keyframes abm-sm-apri {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Errori ---------- */
.abm-sm-errore {
	margin: 8px 0 0;
	color: var(--sm-errore);
	font-size: 14px;
}

.abm-sm-errore:empty {
	display: none;
}

.is-errore .abm-sm-input,
.is-errore .abm-sm-card,
.is-errore .abm-sm-chip,
.is-errore .abm-sm-drop__zona,
.is-errore .abm-sm-consenso__segno {
	border-color: rgba(255, 138, 122, .6);
}

.is-errore.abm-sm-campo,
.is-errore.abm-sm-sotto {
	animation: abm-sm-scuoti .32s ease;
}

@keyframes abm-sm-scuoti {
	0%, 100% { transform: none; }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

/* ---------- Caricamento del logo ---------- */
.abm-sm-drop {
	margin-top: 18px;
}

.abm-sm-drop__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.abm-sm-drop__zona {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 26px 16px;
	border: 1px dashed #5a4c22;
	border-radius: 12px;
	background: rgba(255, 206, 83, .03);
	text-align: center;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, transform .2s var(--sm-dolce);
}

.abm-sm-drop__input:focus-visible + .abm-sm-drop__zona {
	outline: 2px solid var(--sm-oro);
	outline-offset: 2px;
}

.abm-sm-drop.is-sopra .abm-sm-drop__zona {
	border-color: var(--sm-oro);
	background: rgba(255, 206, 83, .08);
	transform: scale(1.01);
}

.abm-sm-drop__icona {
	color: var(--sm-oro);
	margin-bottom: 4px;
}

.abm-sm-drop__t {
	color: #fff;
	font-size: 15px;
	font-weight: 500;
}

.abm-sm-drop__s {
	color: var(--sm-oro);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.abm-sm-drop__f {
	margin-top: 6px;
	color: var(--sm-tenue);
	font-size: 13px;
}

.abm-sm-drop__file {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border: 1px solid var(--sm-oro-scuro);
	border-radius: 12px;
	background: var(--sm-scheda-su);
	animation: abm-sm-apri .3s var(--sm-dolce);
}

.abm-sm-drop__anteprima {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 8px;
	background: #f4f1ea; /* un logo nero su fondo nero non si vedrebbe */
	color: #111;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.abm-sm-drop__anteprima img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.abm-sm-drop__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.abm-sm-drop__nome {
	overflow: hidden;
	color: #fff;
	font-size: 15px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.abm-sm-drop__peso {
	color: var(--sm-tenue);
	font-size: 13px;
}

.abm-sm-drop__togli {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--sm-bordo);
	border-radius: 999px;
	background: transparent;
	color: var(--sm-testo);
	font-size: 14px;
	cursor: pointer;
}

.abm-sm-drop__togli:hover,
.abm-sm-drop__togli:focus-visible {
	border-color: var(--sm-oro);
	color: var(--sm-oro);
}

/* ---------- Riepilogo e consenso ---------- */
.abm-sm-riepilogo {
	margin: 10px 0 22px;
	border: 1px solid var(--sm-bordo);
	border-radius: 12px;
	background: var(--sm-scheda);
}

.abm-sm-riepilogo summary {
	padding: 14px 16px;
	color: var(--sm-oro);
	font-size: 13px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	cursor: pointer;
}

.abm-sm-riepilogo__lista {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0 16px 12px;
}

.abm-sm-riepilogo__lista dt {
	margin-top: 10px;
	color: var(--sm-tenue);
	font-size: 13px;
}

.abm-sm-riepilogo__lista dd {
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--sm-bordo);
	color: #fff;
	font-size: 15px;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.abm-sm-riepilogo__lista dd:last-child {
	border-bottom: 0;
}

.abm-sm-consenso {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	cursor: pointer;
}

.abm-sm-consenso__segno {
	position: relative;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 1px solid #555;
	border-radius: 5px;
	transition: background .2s ease, border-color .2s ease;
}

.abm-sm-consenso input:checked + .abm-sm-consenso__segno {
	border-color: var(--sm-oro);
	background: var(--sm-oro);
}

.abm-sm-consenso input:checked + .abm-sm-consenso__segno::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 7px;
	width: 6px;
	height: 11px;
	border: solid #111;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* I link nel testo sono oro, sempre (regola del 16 settembre 2026) */
.abm-sm a:not(.abm-sm-btn) {
	color: var(--sm-oro);
	text-decoration: underline;
	text-decoration-color: rgba(255, 206, 83, .5);
	text-underline-offset: 3px;
}

.abm-sm a:not(.abm-sm-btn):hover {
	color: var(--sm-oro-chiaro);
}

.abm-sm-trappola {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Pulsanti e navigazione ---------- */
.abm-sm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .4px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease, opacity .2s ease;
}

.abm-sm-btn--oro {
	border-color: var(--sm-oro);
	background: linear-gradient(180deg, var(--sm-oro-chiaro) 0%, var(--sm-oro) 100%);
	color: #111;
}

.abm-sm-btn--oro:hover,
.abm-sm-btn--oro:focus-visible {
	box-shadow: 0 0 18px rgba(255, 206, 83, .35);
	color: #111;
}

.abm-sm-btn--ghost {
	border-color: var(--sm-oro-scuro);
	background: transparent;
	color: var(--sm-testo);
}

.abm-sm-btn--ghost:hover,
.abm-sm-btn--ghost:focus-visible {
	border-color: var(--sm-oro);
	color: var(--sm-oro);
}

.abm-sm-btn[disabled] {
	opacity: .6;
	cursor: progress;
}

.abm-sm-btn.is-invio::after {
	content: "";
	width: 14px;
	height: 14px;
	margin-left: 10px;
	border: 2px solid rgba(17, 17, 17, .3);
	border-top-color: #111;
	border-radius: 50%;
	animation: abm-sm-gira .7s linear infinite;
}

@keyframes abm-sm-gira {
	to { transform: rotate(360deg); }
}

.abm-sm-nav {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 -14px;
	padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--sm-bordo);
	border-radius: 0 0 var(--sm-raggio) var(--sm-raggio);
	background: rgba(11, 11, 11, .94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.abm-sm-nav__passo {
	flex: 1 1 auto;
	color: var(--sm-tenue);
	font-size: 13px;
	text-align: center;
}

.abm-sm-nav .abm-sm-btn--oro {
	margin-left: auto;
}

.abm-sm-avviso {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 138, 122, .5);
	border-radius: 10px;
	background: rgba(255, 138, 122, .07);
	color: var(--sm-errore);
	font-size: 15px;
}

.abm-sm-noscript {
	padding: 14px;
	border: 1px solid var(--sm-oro-scuro);
	border-radius: 10px;
}

/* ---------- Ricevuta ---------- */
.abm-sm-fatto {
	padding: 26px 4px 36px;
	text-align: center;
	outline: none;
	animation: abm-sm-apri .45s var(--sm-dolce);
}

.abm-sm-fatto__segno {
	display: inline-block;
	margin-bottom: 12px;
	color: var(--sm-oro);
}

.abm-sm-fatto__segno path {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: abm-sm-traccia .6s .2s var(--sm-dolce) forwards;
}

@keyframes abm-sm-traccia {
	to { stroke-dashoffset: 0; }
}

.abm-sm-fatto__numero {
	color: var(--sm-oro);
	white-space: nowrap;
}

/* ---------- Da 600px ---------- */
@media (min-width: 600px) {
	.abm-sm {
		padding: 40px 24px 100px;
	}

	.abm-sm-title {
		font-size: 38px;
	}

	.abm-sm-fatti {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.abm-sm-box {
		padding: 28px 28px 0;
	}

	.abm-sm-nav {
		margin: 0 -28px;
		padding: 14px 28px;
	}

	.abm-sm-scelte--card {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.abm-sm-griglia {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.abm-sm-sotto--largo {
		grid-column: 1 / -1;
	}

	.abm-sm-riepilogo__lista {
		grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
		column-gap: 16px;
	}

	.abm-sm-riepilogo__lista dt {
		padding: 10px 0;
		margin: 0;
		border-bottom: 1px solid var(--sm-bordo);
	}

	.abm-sm-riepilogo__lista dd {
		padding: 10px 0;
	}

	.abm-sm-riepilogo__lista dt:nth-last-of-type(1) {
		border-bottom: 0;
	}

	.abm-sm-tappa__t {
		display: block;
		font-size: 12px;
		line-height: 1.3;
	}
}

/* ---------- Da 960px ---------- */
@media (min-width: 960px) {
	.abm-sm-title {
		font-size: 44px;
	}

	.abm-sm-box {
		padding: 36px 44px 0;
	}

	.abm-sm-nav {
		margin: 0 -44px;
		padding: 16px 44px;
	}

	.abm-sm-tappe {
		gap: 14px;
	}

	.abm-sm-tappa {
		flex-direction: row;
		gap: 10px;
		text-align: left;
	}

	.abm-sm-tappa__t {
		font-size: 13px;
	}

	.abm-sm-h2 {
		font-size: 28px;
	}

	[data-campo="categoria"] .abm-sm-scelte--card,
	[data-campo="uso"] .abm-sm-scelte--card,
	[data-campo="consegna"] .abm-sm-scelte--card {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Chi ha chiesto meno movimento non lo riceve */
@media (prefers-reduced-motion: reduce) {
	.abm-sm *,
	.abm-sm *::before,
	.abm-sm *::after {
		animation: none !important;
		transition: none !important;
	}

	.abm-sm-fatto__segno path {
		stroke-dashoffset: 0;
	}
}

/* ---------- I campi restano scuri, sempre (26 settembre 2026) ----------
   Misurato sul sito: tutti i campi di testo, email, telefono e numero
   uscivano con fondo #fafafa e testo #666, anche senza toccarli. La regola
   di Astra `input[type="text"]` (una classe e un tag) pesa piu' della nostra
   classe sola, e sul focus `input[type="text"]:focus` mette il bianco pieno.
   Si salvavano solo textarea, data e menu, che quella regola non nomina.
   Classe doppia: batte la regola base di Astra, e con :focus batte anche la
   sua regola sul focus.

   L'AUTOCOMPILAZIONE DI CHROME e' un altro fondo, suo: sia quando riempie il
   campo sia quando lo mostra in anteprima (passando sulle voci salvate) mette
   un colore chiaro con !important che nessun `background` sposta. L'unico
   modo e' coprirlo dall'interno con un'ombra piena del colore della scheda,
   e dare al testo il colore con -webkit-text-fill-color. */
.abm-sm-input.abm-sm-input,
.abm-sm-input.abm-sm-input:hover {
	background-color: var(--sm-scheda);
	color: #fff;
	border-color: var(--sm-bordo);
}

.abm-sm-input.abm-sm-input:focus {
	background-color: var(--sm-scheda);
	color: #fff;
	border-color: var(--sm-oro);
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 206, 83, .15);
}

.is-errore .abm-sm-input.abm-sm-input {
	border-color: rgba(255, 138, 122, .6);
}

.abm-sm-input.abm-sm-input:-webkit-autofill,
.abm-sm-input.abm-sm-input:-webkit-autofill:hover,
.abm-sm-input.abm-sm-input:autofill {
	-webkit-text-fill-color: #fff;
	caret-color: #fff;
	box-shadow: 0 0 0 1000px var(--sm-scheda) inset;
	transition: background-color 99999s ease 0s;
}

.abm-sm-input.abm-sm-input:-webkit-autofill:focus,
.abm-sm-input.abm-sm-input:autofill:focus {
	box-shadow: 0 0 0 1000px var(--sm-scheda) inset, 0 0 0 3px rgba(255, 206, 83, .15);
}
