/* WooAutomarket Suite — stili frontend (stile portale automotive) */

:root {
	--wam-accent: #0b5ed7;
	--wam-ink: #1c2733;
	--wam-muted: #6b7683;
	--wam-line: #e4e8ee;
	--wam-bg: #f6f8fb;
	--wam-radius: 12px;
}

/* ---------- Badge nel listino ---------- */
li.product {
	position: relative;
}
.wam-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: flex-start;
}
.wam-badge-loop {
	display: inline-block;
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: #fff;
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.wam-badge-neopatentati { background: #2e9e44; }
.wam-badge-km-0 { background: #e8830c; }
.wam-badge-nuovo { background: var(--wam-accent); }
.wam-badge-aziendale { background: #6e4fd1; }

/* ---------- Riga info nel listino ---------- */
.wam-loop-info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-top: 6px;
	font-size: 13px;
	color: var(--wam-muted);
}
.wam-loop-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}
.wam-loop-chip svg {
	width: 14px;
	height: 14px;
	color: var(--wam-icon, var(--wam-accent));
	flex: none;
}

/* ---------- Scheda veicolo: dati chiave ---------- */
.wam-scheda {
	margin-top: 18px;
	clear: both;
}
.wam-scheda-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 18px;
	font-weight: 700;
	color: var(--wam-ink);
	margin: 0 0 14px;
}
.wam-scheda-title svg {
	width: 24px;
	height: 24px;
	color: var(--wam-icon, var(--wam-accent));
	flex: none;
}
.wam-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}
.wam-fact {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 3px;
	padding: 14px 8px 12px;
	background: var(--wam-bg);
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-radius);
}
.wam-fact-icon svg {
	width: 26px;
	height: 26px;
	color: var(--wam-icon, var(--wam-accent));
	display: block;
	margin: 0 auto;
}
.wam-fact-value {
	font-size: 15px;
	font-weight: 700;
	color: var(--wam-ink);
	line-height: 1.25;
}
.wam-fact-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--wam-muted);
}

/* ---------- CTA ---------- */
.wam-cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
a.wam-cta-button, a.wam-cta-button:visited {
	background: transparent;
	color: var(--wam-accent);
	border: 1.5px solid var(--wam-accent);
	border-radius: 8px;
	padding: 9px 18px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, color .15s;
}
a.wam-cta-button:hover {
	background: var(--wam-accent);
	color: #fff;
}
a.wam-whatsapp-button, a.wam-whatsapp-button:visited,
a.wam-call-button, a.wam-call-button:visited {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	border-radius: 8px;
	padding: 11px 22px;
	font-weight: 700;
	text-decoration: none;
	transition: filter .15s;
}
a.wam-whatsapp-button { background: #25d366; }
a.wam-call-button { background: var(--wam-accent); }
a.wam-whatsapp-button:hover,
a.wam-call-button:hover {
	filter: brightness(1.08);
	color: #fff;
}
a.wam-whatsapp-button svg,
a.wam-call-button svg {
	width: 20px;
	height: 20px;
	flex: none;
}

/* ---------- Form richiesta informazioni ---------- */
.wam-lead-box {
	width: 100%;
	margin-top: 10px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--wam-line);
	border-radius: var(--wam-radius);
	box-shadow: 0 2px 10px rgba(16, 34, 60, .05);
}
.wam-lead-head { margin-bottom: 10px; }
.wam-lead-title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--wam-ink);
}
.wam-lead-sub {
	display: block;
	font-size: 13px;
	color: var(--wam-muted);
}
a.wam-lead-toggle { cursor: pointer; }
.wam-lead-box .wam-lead-submit {
	background: var(--wam-accent) !important;
	color: #fff !important;
	border: 0;
	border-radius: 8px;
	padding: 11px 22px;
	font-weight: 600;
	width: 100%;
	max-width: none;
	cursor: pointer;
	transition: filter .15s;
}
.wam-lead-box .wam-lead-submit:hover { filter: brightness(1.1); }
.wam-lead-form { margin-top: 14px; }
.wam-lead-form input,
.wam-lead-form textarea {
	width: 100%;
	max-width: none;
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	padding: 10px 12px;
}
.wam-lead-form input:focus,
.wam-lead-form textarea:focus {
	border-color: var(--wam-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 94, 215, .12);
}
.wam-lead-privacy { font-size: 12.5px; color: var(--wam-muted); }
.wam-lead-ok { color: #2e9e44; font-weight: 600; margin: 10px 0 0; }
.wam-lead-err { color: #d63638; font-weight: 600; margin: 10px 0 0; }

/* ---------- Form di ricerca ---------- */
.wam-search {
	background: #fff;
	border: 1px solid var(--wam-line);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 26px;
	box-shadow: 0 4px 18px rgba(16, 34, 60, .06);
}
.wam-search-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
}
.wam-search label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--wam-muted);
}
.wam-search select,
.wam-search input[type="text"],
.wam-search input[type="number"] {
	width: 100%;
	margin-top: 5px;
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 14px;
	color: var(--wam-ink);
	background: #fff;
}
.wam-search select:focus,
.wam-search input:focus {
	border-color: var(--wam-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 94, 215, .12);
}
.wam-search-check {
	align-self: end;
	text-transform: none !important;
	font-size: 13.5px !important;
	color: var(--wam-ink) !important;
}
.wam-search-more { margin-top: 14px; }
.wam-search-more summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wam-accent);
	margin-bottom: 10px;
}
.wam-search-actions {
	margin-top: 18px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.wam-search-actions .button,
.wam-search-actions button {
	background: var(--wam-accent) !important;
	color: #fff !important;
	border: 0;
	border-radius: 8px;
	padding: 11px 34px;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s;
}
.wam-search-actions button:hover { filter: brightness(1.1); }
.wam-search-reset {
	font-size: 13px;
	color: var(--wam-muted);
}

/* ---------- Prezzo ---------- */
.wam-prezzo .woocommerce-Price-amount { font-weight: 800; }

/* ---------- Video vettura (sopra la galleria) ---------- */
.wam-video {
	margin-bottom: 18px;
	clear: both;
}
.wam-video-frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
	border-radius: var(--wam-radius);
	overflow: hidden;
}
.wam-video-frame iframe,
.wam-video-frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Pagina Negozio sostituita ---------- */
.wam-shop-wrap {
	max-width: 1260px;
	margin: 0 auto;
	padding: 34px 20px 60px;
}
.wam-shop-title {
	font-size: 28px;
	margin: 0 0 22px;
	color: var(--wam-ink);
}

/* ---------- Elenco risultati con filtri laterali ---------- */
.wam-listing {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.wam-filters-toggle { display: none; }

/* Sidebar filtri */
.wam-listing-filters {
	background: #fff;
	border: 1px solid var(--wam-line);
	border-radius: 14px;
	padding: 18px;
	position: sticky;
	top: 90px;
	box-shadow: 0 4px 18px rgba(16, 34, 60, .06);
}
.wam-filter { margin-bottom: 14px; }
.wam-filter > label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--wam-muted);
	margin-bottom: 5px;
}
.wam-filter select,
.wam-filter input[type="number"] {
	width: 100%;
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
	color: var(--wam-ink);
	background: #fff;
}
.wam-filter select:focus,
.wam-filter input:focus {
	border-color: var(--wam-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 94, 215, .12);
}
.wam-filter-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--wam-line);
}
.wam-filters-submit {
	background: var(--wam-accent) !important;
	color: #fff !important;
	border: 0;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 700;
	cursor: pointer;
	flex: 1;
	transition: filter .15s;
}
.wam-filters-submit:hover { filter: brightness(1.1); }
.wam-filters-reset { font-size: 13px; color: var(--wam-muted); }

/* Testata risultati */
.wam-listing-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.wam-listing-count {
	font-size: 16px;
	font-weight: 700;
	color: var(--wam-ink);
}
.wam-orderby-wrap {
	font-size: 14px;
	color: var(--wam-muted);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	flex: none;
}
.wam-orderby {
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	padding: 7px 10px;
	font-family: inherit;
	font-size: inherit;
	background: #fff;
	color: var(--wam-ink);
	width: auto;
	max-width: 60vw;
}
/* I campi dell'elenco ereditano la tipografia del tema */
.wam-listing select,
.wam-listing input,
.wam-listing button {
	font-family: inherit;
}

/* Griglia card */
.wam-listing-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	transition: opacity .15s;
}
.wam-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--wam-line);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}
.wam-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(16, 34, 60, .12);
}
.wam-card-media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--wam-bg);
	overflow: hidden;
}
.wam-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .25s;
}
.wam-card:hover .wam-card-media img { transform: scale(1.04); }
.wam-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
	flex: 1;
}
.wam-card-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
}
.wam-card-title a {
	color: var(--wam-ink);
	text-decoration: none;
}
.wam-card-title a:hover { color: var(--wam-accent); }
.wam-card-sub {
	margin: 0;
	font-size: 13px;
	color: var(--wam-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wam-card .wam-loop-info { margin-top: 2px; }
.wam-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--wam-line);
}
.wam-card-price,
.wam-card-price .woocommerce-Price-amount {
	font-size: 19px;
	font-weight: 800;
	color: var(--wam-ink);
}
.wam-card-price del .woocommerce-Price-amount {
	font-size: 12px;
	font-weight: 400;
	color: var(--wam-muted);
}
a.wam-card-btn, a.wam-card-btn:visited {
	background: var(--wam-accent);
	color: #fff;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: filter .15s;
}
a.wam-card-btn:hover { filter: brightness(1.1); color: #fff; }

/* Nessun risultato */
.wam-listing-empty {
	grid-column: 1 / -1;
	background: var(--wam-bg);
	border: 1px dashed var(--wam-line);
	border-radius: 14px;
	padding: 40px 24px;
	text-align: center;
	color: var(--wam-muted);
}

/* Paginazione */
.wam-listing-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 22px;
	flex-wrap: wrap;
}
.wam-page {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	background: #fff;
	color: var(--wam-ink);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: border-color .15s, color .15s;
}
a.wam-page:hover {
	border-color: var(--wam-accent);
	color: var(--wam-accent);
}
.wam-page-current {
	background: var(--wam-accent);
	border-color: var(--wam-accent);
	color: #fff;
}
.wam-page-dots { border: 0; background: transparent; }

/* Mobile: filtri a scomparsa */
@media (max-width: 860px) {
	.wam-listing { grid-template-columns: 1fr; }
	/* Pulsante filtri FISSO in basso, sempre visibile durante lo scroll
	   (stessa logica della barra WhatsApp/Chiama della pagina veicolo) */
	.wam-filters-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		z-index: 998;
		background: var(--wam-accent);
		color: #fff;
		border: 0;
		border-radius: 999px;
		padding: 14px 18px;
		font-weight: 700;
		font-size: 15px;
		cursor: pointer;
		box-shadow: 0 6px 22px rgba(16, 34, 60, .35);
	}
	.wam-filters-toggle svg { width: 18px; height: 18px; color: #fff; }
	.wam-listing { padding-bottom: 80px; }

	/* Pannello filtri: drawer a schermo intero */
	.wam-listing-filters {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 99999;
		background: #fff;
		border: 0;
		border-radius: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0 16px calc(90px + env(safe-area-inset-bottom));
	}
	.wam-listing.wam-filters-open .wam-listing-filters { display: block; }
	body.wam-filters-lock { overflow: hidden; }

	.wam-filters-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: sticky;
		top: 0;
		z-index: 5;
		background: #fff;
		padding: 16px 0 12px;
		border-bottom: 1px solid var(--wam-line);
		margin-bottom: 12px;
		font-size: 17px;
	}
	.wam-filters-close {
		background: var(--wam-bg);
		border: 1px solid var(--wam-line);
		border-radius: 50%;
		width: 36px;
		height: 36px;
		font-size: 15px;
		cursor: pointer;
		color: var(--wam-ink);
	}

	/* Accordion dei gruppi: chiusi tranne "Marca e modello" (gestito via JS) */
	.wam-filter-group {
		border: 1px solid var(--wam-line);
		border-radius: 10px;
		margin-bottom: 10px;
		overflow: hidden;
	}
	.wam-filter-group summary {
		list-style: none;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 13px 14px;
		font-weight: 700;
		font-size: 14.5px;
		color: var(--wam-ink);
		background: var(--wam-bg);
	}
	.wam-filter-group summary::-webkit-details-marker { display: none; }
	.wam-filter-group summary::after {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--wam-muted);
		border-bottom: 2px solid var(--wam-muted);
		transform: rotate(45deg);
		transition: transform .2s;
		flex: none;
		margin-left: 10px;
	}
	.wam-filter-group[open] summary::after { transform: rotate(-135deg); }
	.wam-filter-group-body { padding: 12px 14px 4px; }

	/* Il pulsante Applica chiude il drawer (gestito via JS) */
	.wam-filter-actions {
		position: sticky;
		bottom: 0;
		background: #fff;
		padding: 12px 0 14px;
		border-top: 1px solid var(--wam-line);
		margin-top: 4px;
	}
	/* Ordina per: una riga, testo leggibile (16px evita lo zoom di iOS) */
	.wam-listing-head { align-items: center; }
	.wam-orderby-wrap { font-size: 14px; }
	.wam-orderby { font-size: 16px; padding: 8px 10px; }
}

/* Riga dati chiave in alto (sotto il prezzo) */
.wam-facts-top {
	margin: 12px 0 6px;
}
.wam-facts-top .wam-facts {
	margin-bottom: 0;
}

/* ---------- Prezzo di listino piccolo quando c'è la promo ---------- */
.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce ul.products li.product .price del,
.wam-card-price del {
	font-size: .5em;
	opacity: .75;
}
.woocommerce div.product p.price del .woocommerce-Price-amount,
.woocommerce div.product span.price del .woocommerce-Price-amount,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount,
.wam-card-price del .woocommerce-Price-amount {
	font-size: 1em !important;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	text-decoration: none;
}

/* ---------- Titolo mobile ---------- */
.wam-mobile-title { display: none; }

/* ---------- Etichetta WhatsApp corta ---------- */
.wam-wa-short { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	/* Titolo del prodotto in cima a tutto */
	.wam-mobile-title {
		display: block;
		font-size: 23px;
		line-height: 1.25;
		margin: 0 0 12px;
		color: var(--wam-ink);
		clear: both;
	}
	.single-product .summary .product_title,
	.single-product .summary .entry-title {
		display: none !important;
	}/* Tre pulsanti contatto allineati {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}
	/* WhatsApp: solo la parola "WhatsApp" */
	.wam-wa-full { display: none; }
	.wam-wa-short { display: inline; }

	/* Descrizione compressa con "Continua a leggere" */
	.wam-desc-clamped {
		max-height: 150px;
		overflow: hidden;
		position: relative;
	}
	.wam-desc-clamped::after {
		content: "";
		position: absolute;
		left: 0; right: 0; bottom: 0;
		height: 56px;
		background: linear-gradient(rgba(255,255,255,0), #fff);
	}
	.wam-read-more {
		display: block;
		width: 100%;
		background: transparent;
		border: 1px solid var(--wam-line);
		border-radius: 8px;
		padding: 9px;
		margin: 4px 0 12px;
		font-weight: 600;
		color: var(--wam-accent);
		cursor: pointer;
	}
}

/* ---------- Badge stato annuncio e novità ---------- */
.wam-badge-venduta { background: #d63638; }
.wam-badge-prenotata { background: #b45309; }
.wam-badge-appena-arrivata { background: #0e9aa7; }
.wam-card-venduta .wam-card-media img { filter: grayscale(.8); opacity: .85; }

/* ---------- Banner stato ---------- */
.wam-status-banner {
	clear: both;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 14px;
	font-weight: 600;
	font-size: 14.5px;
}
.wam-status-venduta { background: #fdecec; color: #8a1f21; border: 1px solid #f3b8b9; }
.wam-status-venduta a { color: #8a1f21; text-decoration: underline; }
.wam-status-prenotata { background: #fdf3e7; color: #7a4a10; border: 1px solid #f0d3ab; }

/* ---------- Barra contatti fissa (mobile) ---------- */
.wam-sticky-bar { display: none; }

/* ---------- Contatore foto galleria ---------- */
.single-product .woocommerce-product-gallery { position: relative; }
.wam-gallery-count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 9;
	background: rgba(15, 23, 32, .72);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	pointer-events: none;
}

/* ---------- Condividi ---------- */
.wam-mobile-head { display: none; }
.wam-share-btn {
	background: #fff;
	border: 1px solid var(--wam-line);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: none;
	color: var(--wam-ink);
}
.wam-share-btn svg { width: 18px; height: 18px; }
.wam-share-btn.wam-copied { border-color: #2e9e44; color: #2e9e44; }

/* ---------- Chip filtri attivi ---------- */
.wam-active-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.wam-active-chips:empty { display: none; }
.wam-chip {
	background: var(--wam-bg);
	border: 1px solid var(--wam-line);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--wam-ink);
	cursor: pointer;
	transition: border-color .15s;
}
.wam-chip:hover { border-color: #d63638; color: #d63638; }

/* ---------- Carica altri ---------- */
.wam-load-more {
	display: block;
	width: 100%;
	margin-top: 16px;
	background: #fff;
	border: 1.5px solid var(--wam-accent);
	color: var(--wam-accent);
	border-radius: 10px;
	padding: 13px;
	font-weight: 700;
	cursor: pointer;
}
.wam-load-more:disabled { opacity: .5; }

/* ---------- Veicoli simili ---------- */
.wam-similar { margin-top: 30px; clear: both; }
.wam-similar-grid { margin-top: 6px; }

/* ---------- Mobile extra ---------- */
@media (max-width: 860px) {
	/* Titolo + condividi in cima */
	.wam-mobile-head {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		margin: 0 0 12px;
		clear: both;
	}
	.wam-mobile-head .wam-mobile-title { margin: 0; }

	/* Barra contatti fissa in basso */
	.wam-sticky-bar {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -4px 18px rgba(16, 34, 60, .14);
	}
	.wam-sticky-bar a {
		justify-content: center;
		text-align: center;
		padding: 11px 6px;
		font-size: 13px;
		gap: 6px;
	}
	.wam-sticky-bar a svg { width: 17px; height: 17px; }
	.single-product { padding-bottom: 78px; }

	/* Galleria a tutta larghezza */
	.single-product .woocommerce-product-gallery {
		width: 100% !important;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		float: none !important;
	}
	.single-product .woocommerce-product-gallery img { border-radius: 0; }

	/* Su mobile: PRIMA la foto a tutta larghezza in 4:3, sotto la card dati */
	.wam-listing-results { grid-template-columns: 1fr; }
	.wam-card {
		display: flex;
		flex-direction: column;
	}
	.wam-card-media { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
	.wam-card-body { padding: 10px 12px 12px; gap: 4px; }
	.wam-card-title { font-size: 14.5px; }
	.wam-card-sub { font-size: 12px; }
	.wam-card .wam-loop-info { font-size: 11.5px; gap: 4px 8px; }
	.wam-card .wam-loop-chip svg { width: 12px; height: 12px; }
	.wam-card-price, .wam-card-price .woocommerce-Price-amount { font-size: 16px; }
	a.wam-card-btn { padding: 6px 12px; font-size: 12px; }
	.wam-badge-loop { font-size: 9.5px; padding: 2px 6px; }
}

/* ---------- Desktop: filtri sempre di lato ---------- */
@media (min-width: 861px) {
	.wam-listing {
		display: grid !important;
		grid-template-columns: 270px minmax(0, 1fr) !important;
		align-items: start;
	}
	.wam-listing-filters {
		display: block !important;
		width: auto !important;
		float: none !important;
		position: sticky !important;
		top: 40px;
	}
	.wam-filters-toggle { display: none !important; }
	.wam-filters-head { display: none; }
	/* Accordion reali anche su desktop: cliccabili, partono aperti */
	.wam-filter-group {
		border: 1px solid var(--wam-line);
		border-radius: 10px;
		margin-bottom: 10px;
		overflow: hidden;
	}
	.wam-filter-group summary {
		pointer-events: auto;
		list-style: none;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 11px 12px;
		font-weight: 700;
		color: var(--wam-ink);
		background: var(--wam-bg);
	}
	.wam-filter-group summary::-webkit-details-marker { display: none; }
	.wam-filter-group summary::after {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--wam-muted);
		border-bottom: 2px solid var(--wam-muted);
		transform: rotate(45deg);
		transition: transform .2s;
		flex: none;
		margin-left: 10px;
	}
	.wam-filter-group[open] summary::after { transform: rotate(-135deg); }
	.wam-filter-group-body { padding: 12px 12px 4px; }
}

/* I contenitori di Enfold hanno overflow nascosto e bloccano lo sticky:
   sulla pagina Negozio lo sblocchiamo. */
body.woocommerce-shop #main,
body.woocommerce-shop .container_wrap,
body.woocommerce-shop .container,
body.woocommerce-shop .template-shop {
	overflow: visible !important;
}

/* ---------- Filtri: tipografia agganciata al tema ---------- */
/* Le dimensioni seguono il font del sito (unità relative), niente px fissi. */
.wam-listing,
.wam-listing-filters,
.wam-filters-form {
	font-size: inherit;
}
.wam-filter > label { font-size: .8em; }
.wam-filter-group summary { font-size: 1em; }
.wam-filters-head { font-size: 1.15em; }
.wam-filters-submit { font-size: 1em; }
.wam-filters-reset { font-size: .9em; }
.wam-chip { font-size: .85em; }
.wam-orderby-wrap { font-size: .9em; }
.wam-listing-count { font-size: 1.05em; }

@media (max-width: 860px) {
	/* Sui campi mobile: mai sotto i 16px (evita lo zoom di iOS),
	   ma se il tema usa font più grandi si segue il tema. */

	.wam-filters-toggle { font-size: 1em; }
	.wam-filter-group summary { font-size: 1.05em; }
	.wam-filter > label { font-size: .85em; }
}

/* ---------- Tipografia filtri: SOLO pixel fissi ----------
   Nessuna unità relativa (em/rem) e nessuna funzione CSS: valori assoluti
   che nessun tema o browser può ridurre o scartare. */
#top .wam-listing select, .wam-listing select,
#top .wam-listing input, .wam-listing input,
#top .wam-orderby, .wam-orderby {
	font-size: 16px !important;
	font-family: inherit !important;
	line-height: 1.4 !important;
	height: auto !important;
	color: var(--wam-ink) !important;
}
#top .wam-listing select option, .wam-listing select option {
	font-size: 16px !important;
	font-family: inherit !important;
}
#top .wam-filter-group summary, .wam-filter-group summary {
	font-size: 16px !important;
	font-family: inherit !important;
}
#top .wam-filter > label, .wam-filter > label {
	font-size: 14px !important;
	font-family: inherit !important;
}
#top .wam-filters-head, .wam-filters-head { font-size: 19px !important; }
#top .wam-filters-submit, .wam-filters-submit,
#top .wam-filters-toggle, .wam-filters-toggle {
	font-size: 16px !important;
	font-family: inherit !important;
}
#top .wam-filters-reset, .wam-filters-reset { font-size: 14px !important; }
#top .wam-chip, .wam-chip { font-size: 13px !important; }
#top .wam-orderby-wrap, .wam-orderby-wrap { font-size: 14px !important; }
#top .wam-listing-count, .wam-listing-count { font-size: 16px !important; }
#top .wam-listing input::placeholder, .wam-listing input::placeholder {
	font-size: 15px !important;
}

/* ---------- Slider prezzo / anno / km ---------- */
.wam-range { padding: 2px 0 6px; }
.wam-range-vals {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 700;
	color: var(--wam-ink);
	margin-bottom: 6px;
}
.wam-range-track { position: relative; height: 22px; }
.wam-range-track input[type="range"] {
	position: absolute;
	left: 0; right: 0; top: 0;
	width: 100%;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	height: 22px;
}
.wam-range-track input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	background: var(--wam-line);
	border-radius: 2px;
	margin-top: 9px;
}
.wam-range-track input[type="range"]::-moz-range-track {
	height: 4px;
	background: var(--wam-line);
	border-radius: 2px;
}
.wam-range-track input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--wam-accent);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	margin-top: -8px;
	cursor: pointer;
}
.wam-range-track input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var(--wam-accent);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	cursor: pointer;
}

/* ---------- Ricerca rapida ---------- */
.wam-quicksearch-wrap { position: relative; margin-bottom: 12px; }
.wam-quicksearch {
	width: 100%;
	border: 1px solid var(--wam-line);
	border-radius: 999px;
	padding: 11px 18px;
	font-size: 16px !important;
	font-family: inherit !important;
	background: #fff;
}
.wam-quicksearch:focus {
	border-color: var(--wam-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 94, 215, .12);
}
.wam-quicksearch-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0; right: 0;
	z-index: 200;
	background: #fff;
	border: 1px solid var(--wam-line);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(16,34,60,.14);
	overflow: hidden;
}
.wam-qs-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--wam-line);
	padding: 11px 16px;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}
.wam-qs-item:last-child { border-bottom: 0; }
.wam-qs-item:hover { background: var(--wam-bg); }
.wam-qs-item small { color: var(--wam-muted); text-transform: uppercase; font-size: 10px; letter-spacing: .5px; }

/* ---------- Barra "Torna ai risultati" ---------- */
#wam-back-bar { clear: both; margin-bottom: 12px; }
#wam-back-bar a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wam-accent);
	text-decoration: none;
}

/* ---------- Seconda foto al passaggio del mouse ---------- */
.wam-card-img-hover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .25s;
}
@media (hover: hover) {
	.wam-card:hover .wam-card-img-hover { opacity: 1; }
}

/* ---------- Confronto ---------- */
.wam-compare-btn {
	position: absolute;
	right: 8px;
	top: 8px;
	z-index: 11;
	width: 32px; height: 32px;
	border-radius: 50%;
	border: 1px solid var(--wam-line);
	background: rgba(255,255,255,.92);
	color: var(--wam-ink);
	font-size: 15px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.wam-compare-btn:hover, .wam-compare-btn.wam-comparing {
	background: var(--wam-accent);
	color: #fff;
	border-color: var(--wam-accent);
}
.wam-compare-bar {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(70px + env(safe-area-inset-bottom));
	z-index: 997;
	display: flex;
	gap: 6px;
	background: var(--wam-ink);
	border-radius: 999px;
	padding: 6px;
	box-shadow: 0 6px 22px rgba(16,34,60,.35);
}
@media (min-width: 861px) { .wam-compare-bar { bottom: 24px; } }
.wam-compare-open {
	background: transparent;
	border: 0;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 8px 16px;
	cursor: pointer;
}
.wam-compare-clear {
	background: rgba(255,255,255,.15);
	border: 0;
	color: #fff;
	border-radius: 50%;
	width: 34px; height: 34px;
	cursor: pointer;
}
.wam-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(10, 18, 28, .66);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	animation: wamFadeIn .18s ease-out;
}
@keyframes wamFadeIn { from { opacity: 0; } to { opacity: 1; } }
.wam-modal-inner {
	background: #fff;
	border-radius: 18px;
	max-width: 980px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	padding: 0 22px 22px;
	position: relative;
	box-shadow: 0 24px 70px rgba(10, 20, 35, .35);
	animation: wamRise .2s ease-out;
}
@keyframes wamRise { from { transform: translateY(14px); opacity: .4; } to { transform: none; opacity: 1; } }
.wam-modal-close {
	position: sticky;
	float: right;
	top: 14px;
	margin: 14px -6px 0 0;
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--wam-line);
	background: #fff;
	cursor: pointer;
	font-size: 15px;
	z-index: 3;
	box-shadow: 0 2px 8px rgba(10, 20, 35, .12);
	transition: background .15s, color .15s;
}
.wam-modal-close:hover { background: var(--wam-accent); color: #fff; border-color: var(--wam-accent); }
.wam-modal h3 {
	margin: 0 0 4px;
	padding: 20px 0 12px;
	font-size: 21px;
	font-weight: 800;
	color: var(--wam-ink);
}
.wam-compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wam-compare-table th, .wam-compare-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--wam-line);
	text-align: left;
	vertical-align: top;
}
.wam-compare-table thead th {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
	border-bottom: 2px solid var(--wam-accent);
	vertical-align: bottom;
	padding-top: 6px;
}
.wam-compare-table thead th a { text-decoration: none; color: var(--wam-ink); font-size: 14.5px; font-weight: 700; }
.wam-compare-table thead th a:hover span { color: var(--wam-accent); }
.wam-compare-table thead th img {
	width: 100%;
	max-width: 190px;
	border-radius: 10px;
	display: block;
	margin-bottom: 8px;
	background: var(--wam-bg);
	box-shadow: 0 3px 10px rgba(10, 20, 35, .10);
}
.wam-compare-table thead th span { display: block; line-height: 1.3; }
.wam-compare-price { margin-top: 4px; font-weight: 800; color: var(--wam-accent); }
.wam-compare-table td:first-child {
	color: var(--wam-muted);
	white-space: nowrap;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding-top: 12px;
}
.wam-compare-table tbody tr:nth-child(even) td { background: #fafbfd; }
.wam-compare-table tbody td { font-weight: 600; color: var(--wam-ink); }
.wam-compare-diff td { background: #fff8e6 !important; }
.wam-compare-diff td:not(:first-child) { font-weight: 800; }
.wam-compare-section td {
	background: var(--wam-accent) !important;
	color: #fff !important;
	font-weight: 800 !important;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .05em;
	border-radius: 8px;
	padding: 9px 12px;
}
@media (max-width: 640px) {
	.wam-modal { padding: 10px; }
	.wam-modal-inner { padding: 0 12px 14px; border-radius: 14px; }
	.wam-compare-table { font-size: 12.5px; }
	.wam-compare-table th, .wam-compare-table td { padding: 8px 6px; }
	.wam-compare-table td:first-child { white-space: normal; }
}

/* Vetture selezionate per il confronto, evidenziate nelle vetrine */
.wam-card.wam-in-compare,
#top .wam-np-card.wam-in-compare,
li.product.wam-in-compare {
	outline: 2px solid var(--wam-accent);
	outline-offset: 2px;
	border-radius: 14px;
}
.wam-compare-flag {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 12;
	background: var(--wam-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	padding: 5px 10px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(10, 20, 35, .25);
	pointer-events: none;
	white-space: nowrap;
}
.wam-card-media, #top .wam-np-media { position: relative; }

/* ---------- Box "Avvisami quando arriva" ---------- */
.wam-alert-box {
	margin-top: 22px;
	background: var(--wam-bg);
	border: 1px dashed var(--wam-line);
	border-radius: 14px;
	padding: 18px;
}
.wam-alert-box.wam-alert-urgente {
	background: #fdf7e7;
	border-color: #eecf7b;
	border-style: solid;
}
.wam-alert-box strong { display: block; font-size: 16px; color: var(--wam-ink); }
.wam-alert-box > span { display: block; font-size: 14px; color: var(--wam-muted); margin: 4px 0 10px; }
.wam-alert-form { display: flex; gap: 8px; flex-wrap: wrap; }
.wam-alert-email {
	flex: 1;
	min-width: 200px;
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 16px !important;
	font-family: inherit !important;
}
.wam-alert-send {
	background: var(--wam-accent);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 10px 22px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}
.wam-alert-privacy { display: block; margin-top: 8px; font-size: 12.5px; color: var(--wam-muted); }
.wam-alert-msg { margin: 10px 0 0; font-weight: 600; color: #d63638; }
.wam-alert-msg.wam-alert-ok { color: #2e9e44; }

/* ---------- Permuta nel form contatto ---------- */
.wam-permuta-toggle label { font-size: 14px; color: var(--wam-ink); }
.wam-permuta-fields {
	background: var(--wam-bg);
	border-radius: 8px;
	padding: 10px 12px 2px;
	margin-bottom: 10px;
}

/* ---------- Pulsante confronto nella pagina veicolo ---------- */
button.wam-compare-vdp {
	position: static;
	width: auto;
	height: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	background: #fff;
	border: 1.5px solid var(--wam-line);
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 14px !important;
	font-weight: 600;
	color: var(--wam-ink);
	cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
}
button.wam-compare-vdp:hover {
	border-color: var(--wam-accent);
	color: var(--wam-accent);
	background: #fff;
}
button.wam-compare-vdp.wam-comparing {
	background: var(--wam-accent);
	border-color: var(--wam-accent);
	color: #fff;
}

/* ---------- Nuovo PPM: vetrina promozioni (stile casa madre) ---------- */
#top .wam-np-section { margin: 0 0 28px; }
#top .wam-np-label {
	font-weight: 700;
	font-size: 20px !important;
	color: var(--wam-ink);
	margin: 0 0 12px;
}

/* Selettore modello: strip orizzontale scorrevole */
#top .wam-np-models {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 4px 2px 12px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}
#top .wam-np-model {
	position: relative;
	flex: 0 0 185px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid var(--wam-line);
	border-radius: 10px;
	padding: 10px 12px 12px;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
#top .wam-np-model:hover { border-color: var(--wam-accent); background: #fff; }
#top .wam-np-model.is-active {
	border-color: var(--wam-accent);
	box-shadow: inset 0 0 0 1px var(--wam-accent);
}
#top .wam-np-model-img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 82px;
}
#top .wam-np-model-img img {
	max-height: 82px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
#top .wam-np-model-img .wam-np-ph { width: 92px; height: 52px; color: #c9d2dc; }
#top .wam-np-model-name {
	display: block;
	font-weight: 700;
	font-size: 15px !important;
	color: var(--wam-ink);
	margin-top: 8px;
	padding-right: 26px;
}
#top .wam-np-model-count {
	display: block;
	font-size: 12.5px !important;
	color: var(--wam-muted);
	margin-top: 2px;
}
#top .wam-np-model-check {
	position: absolute;
	right: 11px;
	bottom: 14px;
	width: 18px;
	height: 18px;
	border: 2px solid #b9c2cc;
	border-radius: 4px;
	background: #fff;
}
#top .wam-np-model.is-active .wam-np-model-check {
	background: var(--wam-accent);
	border-color: var(--wam-accent);
}
#top .wam-np-model.is-active .wam-np-model-check::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 0px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Chips tipologia offerta */
#top .wam-np-types { display: flex; flex-wrap: wrap; gap: 10px; }
#top .wam-np-type,
#top .wam-np-brand {
	border: 1px solid var(--wam-line);
	background: #fff;
	color: var(--wam-ink);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13.5px !important;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
#top .wam-np-type:hover,
#top .wam-np-brand:hover { border-color: var(--wam-accent); color: var(--wam-accent); background: #fff; }
#top .wam-np-type.is-active,
#top .wam-np-brand.is-active {
	border-color: var(--wam-accent);
	box-shadow: inset 0 0 0 1px var(--wam-accent);
	color: var(--wam-accent);
	font-weight: 700;
}

/* Card offerta, una per riga */
#top .wam-np-list { display: flex; flex-direction: column; gap: 18px; }
#top .wam-np-card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--wam-line);
	border-radius: 14px;
	padding: 24px 28px;
}
#top .wam-np-media { display: flex; align-items: center; justify-content: center; }
#top .wam-np-media img { max-width: 100%; height: auto; max-height: 320px; object-fit: contain; }
#top .wam-np-media .wam-np-ph { width: 70%; max-width: 320px; height: auto; color: #dde3ea; }
#top .wam-np-badge {
	display: inline-block;
	background: var(--wam-bg);
	border: 1px solid var(--wam-line);
	color: var(--wam-ink);
	font-size: 12px !important;
	font-weight: 600;
	line-height: 1.2;
	padding: 5px 10px;
	border-radius: 4px;
	margin: 0 0 10px;
}
#top .wam-np-title { margin: 0 0 2px; font-size: 26px !important; font-weight: 700; line-height: 1.2; }
#top .wam-np-title a { color: var(--wam-ink); text-decoration: none; }
#top .wam-np-title a:hover { color: var(--wam-accent); }
#top .wam-np-motore { margin: 0 0 4px; font-size: 13.5px !important; color: var(--wam-muted); }
#top .wam-np-incentivi { margin: 0 0 4px; font-size: 13.5px !important; color: var(--wam-ink); }
#top .wam-np-hero {
	display: flex;
	gap: 36px;
	padding: 12px 0 14px;
	border-bottom: 1px solid var(--wam-line);
	max-width: 460px;
}
#top .wam-np-hero-cell b { display: block; font-size: 24px !important; font-weight: 800; color: var(--wam-ink); }
#top .wam-np-hero-cell span { font-size: 12.5px !important; color: var(--wam-muted); }
#top .wam-np-data {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
	max-width: 460px;
}
#top .wam-np-cell { padding: 10px 0 8px; border-bottom: 1px solid var(--wam-line); }
#top .wam-np-cell b { display: block; font-size: 16px !important; font-weight: 700; color: var(--wam-ink); }
#top .wam-np-cell span { font-size: 12px !important; color: var(--wam-muted); }
#top .wam-np-cell b.wam-np-barrato { text-decoration: line-through; color: var(--wam-muted); font-weight: 600; }
#top .wam-np-note-wrap { display: block; margin: 12px 0 0; }
#top .wam-np-note-toggle {
	display: inline-block;
	background: none;
	border: none;
	color: var(--wam-ink);
	font-size: 13px !important;
	text-decoration: underline dotted;
	cursor: pointer;
	padding: 0;
	margin: 0;
}
#top .wam-np-note-toggle:hover { color: var(--wam-accent); background: none; }
#top .wam-np-note {
	font-size: 11.5px !important;
	color: var(--wam-muted);
	line-height: 1.45;
	margin-top: 8px;
	max-width: 560px;
}
#top .wam-np-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	clear: both;
}
#top .wam-np-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wam-accent);
	color: #fff !important;
	border-radius: 8px;
	padding: 12px 28px;
	font-weight: 700;
	font-size: 14px !important;
	line-height: 1.2;
	text-decoration: none;
	margin: 0;
	transition: filter .15s;
}
#top .wam-np-cta:hover { filter: brightness(.9); color: #fff !important; }
#top .wam-np-cta svg { width: 16px; height: 16px; flex: none; }
#top .wam-np-cta-tel {
	background: #fff;
	color: var(--wam-accent) !important;
	box-shadow: inset 0 0 0 2px var(--wam-accent);
}
#top .wam-np-cta-tel:hover { filter: none; background: var(--wam-bg); color: var(--wam-accent) !important; }
#top .wam-np-back {
	display: block;
	margin: 0 0 12px;
	font-size: 13.5px !important;
	font-weight: 600;
	color: var(--wam-accent);
	text-decoration: none;
}
#top .wam-np-back:hover { text-decoration: underline; }
#top .wam-np-empty { text-align: center; color: var(--wam-muted); padding: 30px 0; }
@media (max-width: 860px) {
	#top .wam-np-card { grid-template-columns: 1fr; padding: 18px; gap: 12px; }
	#top .wam-np-media img { max-height: 220px; }
	#top .wam-np-model { flex-basis: 150px; }
	#top .wam-np-model-img { height: 64px; }
	#top .wam-np-model-img img { max-height: 64px; }
	#top .wam-np-hero { gap: 24px; }
	#top .wam-np-hero-cell b { font-size: 21px !important; }
	#top .wam-np-title { font-size: 22px !important; }
}

/* ---------- Nuovo PPM: box promozione e finanziamento in VDP ---------- */
#top .wam-promo-box {
	border: 1.5px solid var(--wam-accent);
	border-radius: 12px;
	padding: 16px 18px;
	margin: 14px 0;
	background: #fff;
}
#top .wam-promo-title {
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--wam-accent);
	text-transform: uppercase;
	font-size: 13px !important;
	letter-spacing: .04em;
}
#top .wam-promo-fin { margin-top: 14px; }
#top .wam-promo-motore { margin: 0 0 10px; font-size: 14px !important; }
#top .wam-fin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}
#top .wam-fin-item {
	background: var(--wam-bg);
	border-radius: 8px;
	padding: 10px 12px;
}
#top .wam-fin-item span {
	display: block;
	color: var(--wam-muted);
	font-size: 12px !important;
	text-transform: uppercase;
	letter-spacing: .03em;
}
#top .wam-fin-item b { display: block; font-size: 16px !important; }
#top .wam-fin-item b.wam-promo-barrato { text-decoration: line-through; color: var(--wam-muted); font-weight: 600; }
#top .wam-promo-accessori { font-size: 14px !important; line-height: 1.5; }
#top .wam-nota-legale {
	color: var(--wam-muted);
	font-size: 11.5px !important;
	line-height: 1.45;
	margin: 12px 0 0;
}

/* ---------- Correzioni overflow mobile (2.8.6) ----------
   Le griglie/flex CSS hanno min-width:auto sui figli: un contenuto che non
   va a capo (prezzo+pulsante, valori grandi) allargava card e colonne oltre
   lo schermo. Minimi a zero + a-capo consentiti + cinture di sicurezza. */
.wam-card,
.wam-card-media,
.wam-card-body,
.wam-card-footer,
.wam-card-title,
.wam-card-price,
.wam-loop-info {
	min-width: 0;
}
.wam-card { max-width: 100%; }
.wam-card-title { overflow-wrap: anywhere; }
.wam-card-footer { flex-wrap: wrap; }
.wam-modal-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#top .wam-np-card,
#top .wam-np-body,
#top .wam-np-media,
#top .wam-np-hero,
#top .wam-np-hero-cell,
#top .wam-np-actions,
#top .wam-np-title {
	min-width: 0;
	max-width: 100%;
}
#top .wam-np-hero { flex-wrap: wrap; }
#top .wam-np-title { overflow-wrap: anywhere; }

@media (max-width: 860px) {
	/* Colonne a minimo zero: niente espansione oltre il contenitore */
	.wam-listing { grid-template-columns: minmax(0, 1fr); }
	.wam-listing-results { grid-template-columns: minmax(0, 1fr); }
	.wam-card { grid-template-columns: minmax(0, 1fr); }
	#top .wam-np-card { grid-template-columns: minmax(0, 1fr); }
	#top .wam-np-hero { gap: 14px 20px; }

	/* Piede card compatto: prezzo e pulsante convivono, al limite vanno a capo */
	.wam-card-footer { gap: 6px 8px; }
	a.wam-card-btn { padding: 6px 10px; }

	/* Cintura finale: nulla dentro le vetrine può creare scorrimento orizzontale */
	.wam-listing,
	.wam-listing-results,
	.wam-nuovo,
	.wam-similar {
		max-width: 100%;
		overflow-x: hidden;
		overflow-x: clip;
	}
}

/* ---------- Mobile: pulsante "Vedi dettagli" sempre sotto ai prezzi ---------- */
@media (max-width: 860px) {
	.wam-card-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	a.wam-card-btn {
		display: block;
		text-align: center;
	}
}

/* ---------- Pulsante "Vedi dettagli" sempre sotto al prezzo (anche desktop) ---------- */
.wam-card-footer {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}
a.wam-card-btn {
	display: block;
	text-align: center;
}

/* ---------- Sconto finanziamento: interruttore stile configuratore ---------- */
#top .wam-fin-toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1.5px dashed var(--wam-accent);
	border-radius: 12px;
	padding: 12px 16px;
	margin: 10px 0 14px;
	background: #fff;
	clear: both;
}
#top .wam-fin-toggle.wam-fin-on {
	border-style: solid;
	background: rgba(11, 94, 215, .05);
}
#top .wam-switch {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 30px;
	flex: none;
}
#top .wam-switch input { opacity: 0; width: 0; height: 0; }
#top .wam-switch-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #cdd6e1;
	border-radius: 999px;
	transition: background .15s;
}
#top .wam-switch-slider::before {
	content: '';
	position: absolute;
	width: 24px;
	height: 24px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform .15s;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
#top .wam-switch input:checked + .wam-switch-slider { background: var(--wam-accent); }
#top .wam-switch input:checked + .wam-switch-slider::before { transform: translateX(22px); }
#top .wam-fin-toggle-text { min-width: 0; }
#top .wam-fin-toggle-text b { display: block; font-size: 15px !important; color: var(--wam-ink); }
#top .wam-fin-toggle-text span { font-size: 13px !important; color: var(--wam-muted); }

/* Interruttore finanziamento: messaggio coerente con lo stato */
#top .wam-fin-toggle .wam-fin-msg-on { display: none; }
#top .wam-fin-toggle.wam-fin-on .wam-fin-msg-on { display: inline; }
#top .wam-fin-toggle.wam-fin-on .wam-fin-msg-off { display: none; }

/* Etichetta "Sconto finanziamento incluso" nelle card */
.wam-card-fin {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--wam-accent);
	text-transform: uppercase;
	letter-spacing: .03em;
	margin-top: 2px;
}

/* Interruttore sconto finanziamento nelle card */
.wam-card-fin-row {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin: 0;
}
#top .wam-switch.wam-switch-sm,
.wam-switch.wam-switch-sm {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	flex: none;
}
#top .wam-switch.wam-switch-sm input,
.wam-switch.wam-switch-sm input { opacity: 0; width: 0; height: 0; }
#top .wam-switch.wam-switch-sm .wam-switch-slider,
.wam-switch.wam-switch-sm .wam-switch-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #cdd6e1;
	border-radius: 999px;
	transition: background .15s;
}
#top .wam-switch.wam-switch-sm .wam-switch-slider::before,
.wam-switch.wam-switch-sm .wam-switch-slider::before {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	left: 2px;
	top: 2px;
	background: #fff;
	border-radius: 50%;
	transition: transform .15s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
#top .wam-switch.wam-switch-sm input:checked + .wam-switch-slider,
.wam-switch.wam-switch-sm input:checked + .wam-switch-slider { background: var(--wam-accent); }
#top .wam-switch.wam-switch-sm input:checked + .wam-switch-slider::before,
.wam-switch.wam-switch-sm input:checked + .wam-switch-slider::before { transform: translateX(16px); }
.wam-card-fin-label {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--wam-accent);
	text-transform: uppercase;
	letter-spacing: .03em;
	line-height: 1.25;
	min-width: 0;
}
#top .wam-fin-desc { font-size: 13px !important; color: var(--wam-muted); }

/* ---------- Dotazioni e optional (griglia a spunte in VDP) ---------- */
#top .wam-equip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px 26px;
}
#top .wam-equip-cat h4 {
	font-size: 13px !important;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--wam-accent);
	margin: 0 0 8px;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--wam-line);
}
#top .wam-equip-cat ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#top .wam-equip-cat li {
	position: relative;
	padding: 3px 0 3px 24px;
	font-size: 14px !important;
	color: var(--wam-ink);
	line-height: 1.4;
}
#top .wam-equip-cat li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--wam-accent);
	opacity: .12;
}
#top .wam-equip-cat li::after {
	content: '';
	position: absolute;
	left: 3.5px;
	top: 10.5px;
	width: 7px;
	height: 4px;
	border-left: 2px solid var(--wam-accent);
	border-bottom: 2px solid var(--wam-accent);
	transform: rotate(-45deg);
}

/* ---------- Zero risultati: proposte simili ---------- */
.wam-noresults {
	/* Il blocco vive dentro la griglia risultati: deve occupare tutte le
	   colonne, altrimenti si comprime in una sola (326px su desktop). */
	grid-column: 1 / -1;
	min-width: 0;
}
.wam-noresults-head {
	background: var(--wam-bg);
	border: 1px solid var(--wam-line);
	border-left: 4px solid var(--wam-accent);
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 18px;
}
.wam-noresults-head strong {
	display: block;
	font-size: 18px;
	color: var(--wam-ink);
	margin-bottom: 4px;
}
.wam-noresults-head span {
	font-size: 14px;
	color: var(--wam-muted);
	line-height: 1.5;
}
.wam-suggest {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.wam-suggest .wam-card { flex: 1; }
.wam-diff-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 10px 14px;
	background: #fdf7e7;
	border: 1px solid #eedcab;
	border-radius: 10px;
	font-size: 12.5px;
	color: #7a5a12;
}
.wam-diff-list li {
	position: relative;
	padding: 2px 0 2px 18px;
	line-height: 1.4;
}
.wam-diff-list li::before {
	content: '\2194';
	position: absolute;
	left: 0;
	color: #b98a1d;
}
.wam-diff-list li.wam-diff-ok { color: #2e7d32; }
.wam-diff-list li.wam-diff-ok::before { content: '\2713'; color: #2e9e44; }

/* Avvisami: pulsante allineato al campo email */
.wam-alert-form { align-items: stretch; }
.wam-alert-send { padding: 10px 22px; line-height: 1.2; }

/* ---------- Potenza: kW sempre su riga propria nella fascia dati ---------- */
#top .wam-fact-kw {
	display: block;
	font-size: 11.5px !important;
	font-weight: 600;
	color: var(--wam-muted);
	margin-top: 1px;
}

/* ---------- Badge neopatentati sovrapposto alla galleria in VDP ---------- */
.single-product .wam-gallery-neo {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 9;
	pointer-events: none;
}

#top .wam-price-anchor {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 13.5px !important;
	color: var(--wam-muted);
	margin: 2px 0 8px;
	clear: both;
}
#top .wam-price-anchor del { color: var(--wam-muted); }
#top .wam-anchor-rata b { color: var(--wam-ink); font-size: 15px !important; }
#top .wam-anchor-sep { color: var(--wam-line); }#top .wam-callback-send {
	background: var(--wam-accent);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 9px 18px;
	font-weight: 700;
	font-size: 14px !important;
	cursor: pointer;
}#top .wam-callback-msg { display: block; margin-top: 6px; font-size: 13px !important; font-weight: 600; color: #d63638; }
#top .wam-msg-ok { color: #2e9e44 !important; }

#top .wam-trust-seals {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 12px 0 4px;
	clear: both;
}
#top .wam-seal {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--wam-bg);
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	padding: 6px 11px;
	font-size: 12.5px !important;
	font-weight: 600;
	color: var(--wam-ink);
	text-decoration: none;
}
#top .wam-seal svg { width: 15px; height: 15px; color: var(--wam-accent); flex: none; }
#top a.wam-seal-link:hover { border-color: var(--wam-accent); color: var(--wam-accent); }

#top .wam-callback {
	background: var(--wam-bg);
	border: 1px solid var(--wam-line);
	border-radius: 12px;
	padding: 14px 16px;
	margin: 12px 0;
	clear: both;
}
#top .wam-callback strong { display: block; font-size: 15px !important; color: var(--wam-ink); }
#top .wam-callback > span { display: block; font-size: 13px !important; color: var(--wam-muted); margin: 2px 0 10px; }
#top .wam-callback-row { display: flex; gap: 8px; flex-wrap: wrap; }
#top .wam-callback-tel {
	flex: 1;
	min-width: 170px;
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 16px !important;
}

/* Widget recensioni accanto ai sigilli fiducia */
#top .wam-reviews-inline { margin: 8px 0 4px; clear: both; }
#top .wam-reviews-inline > div { margin: 0 !important; }

/* ---------- Prezzo ribassato (storico reale) ---------- */
#top .wam-price-drop {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #e9f7ee;
	border: 1px solid #bfe5cc;
	border-radius: 8px;
	padding: 8px 12px;
	margin: 2px 0 10px;
	font-size: 13.5px !important;
	color: #1e6b34;
	clear: both;
}
#top .wam-price-drop svg { width: 17px; height: 17px; color: #2e9e44; flex: none; }
#top .wam-price-drop del { color: #587e64; }
#top .wam-price-drop b { font-weight: 800; }

/* Dettagli rata calcolata */
#top .wam-anchor-fin-note {
	font-size: 11px !important;
	color: var(--wam-muted);
	line-height: 1.45;
	margin: -2px 0 8px;
	clear: both;
}

/* ================= RIDISEGNO VDP 3.5.0 ================= */

/* --- Dati chiave: TUTTE le card su un'unica riga --- */
#top .wam-facts {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	grid-template-columns: none !important;
	gap: 8px;
}
#top .wam-fact { padding: 10px 4px; min-width: 0; }
#top .wam-fact .wam-fact-value { font-size: 14.5px !important; overflow-wrap: anywhere; }
#top .wam-fact .wam-fact-label { font-size: 10px !important; }
#top .wam-fact-icon svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
	/* Una riga anche su mobile: scorre lateralmente se non ci sta */
	#top .wam-facts {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		grid-auto-columns: minmax(86px, 1fr);
		scroll-snap-type: x proximity;
		padding-bottom: 4px;
	}
	#top .wam-fact { scroll-snap-align: start; }
}

/* --- Sconto finanziamento: una riga sottile --- */
#top .wam-fin-toggle {
	padding: 7px 12px;
	margin: 8px 0 10px;
	border-radius: 8px;
	gap: 10px;
}
#top .wam-fin-toggle .wam-switch { width: 40px; height: 22px; }
#top .wam-fin-toggle .wam-switch-slider::before { width: 16px; height: 16px; left: 3px; top: 3px; }
#top .wam-fin-toggle .wam-switch input:checked + .wam-switch-slider::before { transform: translateX(18px); }
#top .wam-fin-toggle-text b { display: inline; font-size: 13.5px !important; }
#top .wam-fin-toggle-text span { display: inline; font-size: 12.5px !important; }
#top .wam-fin-toggle-text .wam-fin-msg-on, #top .wam-fin-toggle-text .wam-fin-msg-off { margin-left: 4px; }

/* --- Piramide contatti --- */
#top .wam-contact-stack { margin: 14px 0 0; clear: both; }
#top .wam-contact-primary a.wam-whatsapp-button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px;
	font-size: 16px !important;
	font-weight: 800;
	border-radius: 10px;
	box-sizing: border-box;
}
#top .wam-contact-secondary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 8px;
}
#top .wam-contact-secondary .wam-call-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px;
	font-size: 14px !important;
	font-weight: 700;
	border-radius: 10px;
	background: #fff !important;
	border: 1.5px solid var(--wam-line) !important;
	color: var(--wam-ink) !important;
	cursor: pointer;
	box-sizing: border-box;
	width: 100%;
}
#top .wam-contact-secondary .wam-call-button svg { width: 16px; height: 16px; color: var(--wam-accent); }
#top .wam-contact-secondary .wam-call-button:hover { border-color: var(--wam-accent) !important; color: var(--wam-accent) !important; }
#top .wam-form-link {
	display: block;
	text-align: center;
	margin-top: 10px;
	font-size: 13.5px !important;
	color: var(--wam-muted);
}
#top .wam-form-link a { color: var(--wam-accent); font-weight: 600; }

/* Richiamata inline: campo e pulsante stessa altezza */
#top .wam-callback { background: none; border: 0; padding: 0; margin: 0; clear: both; }
#top .wam-callback-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: nowrap; }
#top .wam-callback-tel {
	flex: 1;
	min-width: 0;
	height: 42px;
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	padding: 0 12px;
	font-size: 15px !important;
	box-sizing: border-box;
}
#top .wam-callback-send {
	height: 42px;
	padding: 0 18px;
	font-size: 14px !important;
	border-radius: 8px;
	box-sizing: border-box;
	flex: none;
}

/* --- Confronto: icona discreta in alto a destra della colonna --- */
#top.single-product .summary { position: relative; }
#top.single-product .summary .price { padding-right: 48px; }

/* --- Fascia fiducia: compatta, con separatore sopra --- */
#top .wam-trust-seals {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--wam-line);
	gap: 7px;
}
#top .wam-seal { padding: 5px 10px; font-size: 12px !important; }

/* Il link testuale del form non deve ereditare i colori-pulsante */
#top .wam-form-link a.wam-lead-toggle {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	color: var(--wam-accent) !important;
	display: inline;
	font-size: inherit !important;
}

/* Mobile: la barra fissa copre WhatsApp e Chiama — in pagina resta Richiamami */
@media (max-width: 860px) {
	#top .wam-contact-primary { display: none; }
	#top .wam-contact-secondary { grid-template-columns: 1fr; }
	#top .wam-contact-secondary a.wam-call-button[href^="tel"] { display: none; }
}

/* ---------- Gerarchia tipografica VDP (3.5.1): il prezzo comanda ---------- */
#top.single-product .summary .product_title,
#top .wam-mobile-title {
	font-size: 24px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
}
#top.single-product .summary .price .woocommerce-Price-amount {
	font-size: 30px !important;
	font-weight: 800 !important;
}
#top.single-product .summary .price del .woocommerce-Price-amount {
	font-size: 15px !important;
	font-weight: 500 !important;
}
#top .wam-scheda-title { font-size: 20px !important; font-weight: 800 !important; }

/* L'ancoraggio "Da nuova" non deve urlare: barrato piccolo e neutro */
#top .wam-price-anchor del,
#top .wam-price-anchor del .woocommerce-Price-amount {
	font-size: 13.5px !important;
	font-weight: 500 !important;
	color: var(--wam-muted) !important;
}
#top .wam-price-anchor .wam-anchor-rata b,
#top .wam-price-anchor .wam-anchor-rata b .woocommerce-Price-amount {
	font-size: 15px !important;
	font-weight: 800 !important;
	color: var(--wam-ink) !important;
}
@media (max-width: 860px) {
	#top.single-product .summary .price .woocommerce-Price-amount { font-size: 26px !important; }
	#top.single-product .summary .product_title, #top .wam-mobile-title { font-size: 21px !important; }
}

/* ---------- Descrizione aperta sotto le card di riepilogo ---------- */
#top .wam-desc-open {
	font-size: 14.5px !important;
	line-height: 1.65;
	color: var(--wam-ink);
	margin: 12px 0 2px;
	clear: both;
}
#top .wam-desc-open p { margin: 0 0 10px; }

/* ---------- Form richiesta: caselle allineate a sinistra col testo ---------- */
#top .wam-lead-box .wam-permuta-toggle,
#top .wam-lead-box .wam-lead-privacy {
	text-align: left !important;
}
#top .wam-lead-box .wam-permuta-toggle label,
#top .wam-lead-box .wam-lead-privacy label {
	display: flex !important;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	text-align: left;
	margin: 0;
	width: 100%;
}
#top .wam-lead-box .wam-permuta-toggle input[type="checkbox"],
#top .wam-lead-box .wam-lead-privacy input[type="checkbox"] {
	margin: 3px 0 0 !important;
	flex: none;
}

/* ---------- Sigillo garanzia in evidenza ---------- */
#top .wam-seal.wam-seal-garanzia {
	background: rgba(11, 94, 215, .09);
	border: 1.5px solid var(--wam-accent);
	color: var(--wam-accent);
	font-size: 13px !important;
	font-weight: 800;
	padding: 7px 13px;
}
#top .wam-seal.wam-seal-garanzia svg { color: var(--wam-accent); }

/* ---------- Chiama ora: rosso ---------- */
#top .wam-contact-secondary a.wam-call-button[href^="tel"] {
	background: #d92c2c !important;
	border-color: #d92c2c !important;
	color: #fff !important;
}
#top .wam-contact-secondary a.wam-call-button[href^="tel"] svg { color: #fff; }
#top .wam-contact-secondary a.wam-call-button[href^="tel"]:hover {
	background: #b92424 !important;
	border-color: #b92424 !important;
	color: #fff !important;
}
#top .wam-sticky-bar a.wam-call-button[href^="tel"]:not(.wam-lead-toggle) {
	background: #d92c2c !important;
	border-color: #d92c2c !important;
	color: #fff !important;
}

/* ================= PANNELLO DATI A LINGUETTE (3.6.0) ================= */
#top .wam-panel {
	background: #fff;
	border: 1px solid #e3e8f0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(16, 34, 60, .05);
	clear: both;
}
#top .wam-panel-nav {
	display: flex;
	gap: 2px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: #f6f8fb;
	border-bottom: 1px solid #e3e8f0;
	padding: 6px 6px 0;
}
#top .wam-panel-tab {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 0;
	background: none;
	padding: 11px 16px 12px;
	font-size: 14px !important;
	font-weight: 700;
	color: #5b6b7c;
	cursor: pointer;
	border-radius: 9px 9px 0 0;
	position: relative;
	white-space: nowrap;
}
#top .wam-panel-tab svg { width: 16px; height: 16px; }
#top .wam-panel-tab.active { background: #fff; color: var(--wam-accent); }
#top .wam-panel-tab.active::after {
	content: '';
	position: absolute;
	left: 16px;
	right: 16px;
	top: 0;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--wam-accent);
}
#top .wam-panel-badge {
	background: var(--wam-accent);
	color: #fff;
	border-radius: 999px;
	font-size: 11px !important;
	padding: 1px 7px;
	font-weight: 700;
}
#top .wam-panel-body { padding: 20px 22px; }
#top .wam-panel.wam-js .wam-panel-body { display: none; }
#top .wam-panel.wam-js .wam-panel-body.active { display: block; }
#top .wam-panel.wam-js .wam-panel-fallback-title { display: none; }
#top .wam-panel-fallback-title { margin: 0 0 10px; font-size: 15px !important; font-weight: 800; }
#top .wam-dl {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 2px 26px;
}
#top .wam-dl-item {
	padding: 9px 0;
	border-bottom: 1px solid #f0f3f8;
	min-width: 0;
}
#top .wam-dl-item span {
	display: block;
	font-size: 10.5px !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #8a97a6;
}
#top .wam-dl-item b { font-size: 14.5px !important; color: var(--wam-ink); overflow-wrap: anywhere; }
#top .wam-panel-text { font-size: 14.5px !important; line-height: 1.65; color: #3a4757; margin-top: 12px; }
#top .wam-panel-text p { margin: 0 0 10px; }
#top .wam-gar-box {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: rgba(11, 94, 215, .06);
	border: 1.5px solid var(--wam-accent);
	border-radius: 12px;
	padding: 16px 18px;
}
#top .wam-gar-box > svg { width: 34px; height: 34px; color: var(--wam-accent); flex: none; }
#top .wam-gar-box b { display: block; font-size: 16px !important; color: var(--wam-accent); margin-bottom: 3px; }
#top .wam-gar-box p { margin: 6px 0 0; font-size: 14px !important; line-height: 1.55; color: #3a4757; }
#top .wam-panel-note { margin: 12px 0 0; font-size: 12.5px !important; color: #8a97a6; line-height: 1.5; }
@media (max-width: 640px) {
	#top .wam-panel-body { padding: 16px 14px; }
	#top .wam-dl { grid-template-columns: 1fr 1fr; }
}

/* Il blocco tab nativo non deve mai comparire: i contenuti sono nel pannello */
#top.single-product .woocommerce-tabs { display: none !important; }

/* Sconto finanziamento: respiro tra titolo e descrizione */
#top .wam-fin-toggle-text b { margin-right: 7px; }
#top .wam-fin-toggle-text .wam-fin-desc { display: inline; font-size: 12.5px !important; color: var(--wam-muted); }

/* ================= MOBILE UX 3.7.0 ================= */

/* Titolo: collassa a 2 righe */
@media (max-width: 860px) {
	#top .wam-mobile-title,
	#top.single-product .summary .product_title {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* Contatti VISIBILI in pagina anche su mobile */
	#top .wam-contact-primary { display: block !important; }
	#top .wam-contact-secondary { grid-template-columns: 1fr 1fr !important; }
	#top .wam-contact-secondary a.wam-call-button[href^="tel"] { display: flex !important; }
	#top .wam-contact-primary a.wam-whatsapp-button { min-height: 52px; }
	#top .wam-contact-secondary .wam-call-button { min-height: 46px; }

	/* Sigilli fiducia: chip scorrevoli su una riga */
	#top .wam-trust-seals {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}
	#top .wam-seal { flex: none; white-space: nowrap; }
}

/* Barra fissa intelligente (mobile): nascosta finché i contatti sono in vista */
@media (max-width: 860px) {
	#top .wam-sticky-bar {
		display: grid;
		grid-template-columns: 1.3fr 1fr 1fr;
		gap: 7px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -4px 18px rgba(16, 34, 60, .16);
		transform: translateY(115%);
		transition: transform .25s ease;
	}
	#top .wam-sticky-bar.wam-bar-show { transform: translateY(0); }
}
#top .wam-sticky-bar a, #top .wam-sticky-bar button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 9px;
	padding: 8px 4px;
	font-size: 12px !important;
	font-weight: 700;
	text-decoration: none;
	min-height: 48px;
	border: 0;
	cursor: pointer;
}
#top .wam-sticky-bar svg { width: 16px; height: 16px; }
#top .wam-sticky-bar .wam-bar-wa { background: #25D366; color: #fff; font-size: 13px !important; }
#top .wam-sticky-bar .wam-bar-call { background: #d92c2c; color: #fff; }
#top .wam-sticky-bar .wam-bar-cb { background: #fff; border: 1.5px solid var(--wam-line); color: var(--wam-ink); }
#top .wam-sticky-bar .wam-bar-cb svg { color: var(--wam-accent); }

/* Galleria desktop: pulsante "Vedi tutte le foto" */
#top .wam-gallery-all {
	display: block;
	width: 100%;
	margin-top: 8px;
	background: #fff;
	border: 1.5px solid var(--wam-line);
	border-radius: 10px;
	padding: 11px;
	font-size: 13.5px !important;
	font-weight: 700;
	color: var(--wam-accent);
	cursor: pointer;
}
#top .wam-gallery-all:hover { border-color: var(--wam-accent); }
@media (max-width: 860px) { #top .wam-gallery-all { display: none; } }

/* ---------- Barrature dei prezzi: linea disegnata, sempre centrata ----------
   Il line-through nativo segue le metriche del font e su questo tema cade
   troppo in basso: lo sostituiamo con una linea assoluta a metà cifra. */
#top .wam-price-drop del,
#top .wam-price-anchor del,
#top.single-product .summary .price del {
	text-decoration: none !important;
	position: relative;
	white-space: nowrap;
}
#top .wam-price-drop del *,
#top .wam-price-anchor del *,
#top.single-product .summary .price del * {
	text-decoration: none !important;
}
#top .wam-price-drop del::after,
#top .wam-price-anchor del::after,
#top.single-product .summary .price del::after {
	content: '';
	position: absolute;
	left: -1px;
	right: -1px;
	top: calc(50% - 1px);
	height: 1.6px;
	background: currentColor;
	opacity: .85;
	border-radius: 1px;
	pointer-events: none;
}
#top.single-product .summary .price { padding-right: 0; }
#top button.wam-compare-full {
	position: static !important;
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 0;
	background: #fff;
	border: 1.5px solid var(--wam-line);
	border-radius: 10px;
	padding: 11px 16px;
	font-size: 13.5px !important;
	font-weight: 700;
	color: var(--wam-muted);
	cursor: pointer;
}
#top button.wam-compare-full:hover { border-color: var(--wam-accent); color: var(--wam-accent); }
#top button.wam-compare-full.wam-comparing { background: var(--wam-accent); border-color: var(--wam-accent); color: #fff; }

/* --- Pulsanti contatto: stessa dimensione (il più possibile) --- */
#top .wam-contact-primary a.wam-whatsapp-button {
	min-height: 50px;
	padding: 13px;
	font-size: 15px !important;
}
#top .wam-contact-secondary .wam-call-button {
	min-height: 50px;
	padding: 13px 8px;
	font-size: 14.5px !important;
}
#top .wam-sticky-bar { grid-template-columns: 1fr 1fr 1fr; }
#top .wam-sticky-bar a, #top .wam-sticky-bar button { min-height: 48px; font-size: 12px !important; }
#top .wam-sticky-bar .wam-bar-wa { font-size: 12px !important; }

/* --- Mobile: card dati in griglia 3x2, niente scorrimento --- */
@media (max-width: 860px) {
	#top .wam-facts {
		grid-auto-flow: row !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		grid-auto-columns: unset !important;
		overflow-x: visible !important;
		padding-bottom: 0 !important;
		gap: 7px;
	}
	#top .wam-fact { padding: 9px 3px; }
	#top .wam-fact .wam-fact-value { font-size: 13px !important; }
	#top .wam-fact .wam-fact-label { font-size: 9px !important; }
	#top .wam-fact-icon svg { width: 17px; height: 17px; }

	/* --- Mobile: sigilli in griglia due colonne, niente dito --- */
	#top .wam-trust-seals {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 7px;
		flex-wrap: unset;
		overflow-x: visible !important;
		padding-bottom: 0 !important;
	}
	#top .wam-seal {
		width: 100%;
		justify-content: flex-start;
		white-space: normal;
		line-height: 1.3;
		padding: 8px 10px;
		font-size: 11.5px !important;
	}
	/* La garanzia, che è il sigillo forte, prende la riga intera */
	#top .wam-seal.wam-seal-garanzia { grid-column: 1 / -1; justify-content: center; }

	/* --- Mobile: galleria, il pulsante "vedi tutte" vale anche qui --- */
	#top .wam-gallery-all { display: block; }
}

/* ================= CORREZIONI 3.7.3 ================= */

/* 1) Badge verde: dimensione del prezzo SEMPRE identica al testo del badge,
   in qualunque stato (PHP o aggiornato dal JS con lo sconto attivo). */
#top .wam-price-drop del,
#top .wam-price-drop del .woocommerce-Price-amount,
#top .wam-price-drop del span,
#top .wam-price-drop b {
	font-size: 13.5px !important;
	font-weight: inherit;
	line-height: inherit;
}
#top .wam-price-drop b { font-weight: 800; }

/* 2) Respiro tra simbolo € e cifra nel barrato del badge e dell'ancoraggio */
#top .wam-price-drop del .woocommerce-Price-currencySymbol,
#top .wam-price-anchor del .woocommerce-Price-currencySymbol {
	margin-right: 3px;
}

/* 3) Mobile: selettore sezioni al posto delle linguette scorrevoli */
@media (max-width: 860px) {
	#top .wam-panel .wam-panel-nav { display: none; }
	#top .wam-panel-select {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		width: 100%;
		border: 0;
		border-bottom: 1px solid var(--wam-line);
		background: #f6f8fb;
		padding: 14px 16px;
		font-size: 14.5px !important;
		font-weight: 800;
		color: var(--wam-accent);
		cursor: pointer;
		text-align: left;
	}
	#top .wam-panel-select svg { width: 16px; height: 16px; }
	#top .wam-panel-sel-label { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
	#top .wam-panel-caret { color: var(--wam-muted); font-size: 13px; flex: none; }
	#top .wam-panel-menu { display: none; border-bottom: 1px solid var(--wam-line); background: #fff; }
	#top .wam-panel-menu.wam-open { display: block; }
	#top .wam-panel-menu-item {
		display: flex;
		align-items: center;
		gap: 8px;
		width: 100%;
		border: 0;
		border-bottom: 1px solid #f0f3f8;
		background: none;
		padding: 13px 16px;
		font-size: 14px !important;
		font-weight: 600;
		color: var(--wam-ink);
		text-align: left;
		cursor: pointer;
		min-height: 46px;
	}
	#top .wam-panel-menu-item svg { width: 16px; height: 16px; color: var(--wam-muted); }
	#top .wam-panel-menu-item.wam-on { color: var(--wam-accent); background: rgba(11, 94, 215, .05); }
	#top .wam-panel-menu-item.wam-on svg { color: var(--wam-accent); }
	#top .wam-panel-menu-item .wam-panel-badge { margin-left: auto; }
}

/* ================= PREZZI 3.8.0 ================= */

/* Contenitore del prezzo: box evidente (desktop e mobile) */
#top.single-product .summary .price {
	display: block;
	background: #f6f8fb;
	border: 1.5px solid var(--wam-line);
	border-left: 4px solid var(--wam-accent);
	border-radius: 12px;
	padding: 12px 16px !important;
	margin: 6px 0 8px !important;
}

/* Normalizzazione TOTALE: simbolo € e cifre stessa dimensione, con respiro */
#top.single-product .summary .price .woocommerce-Price-amount,
#top.single-product .summary .price .woocommerce-Price-amount * {
	font-size: 30px !important;
	font-weight: 800 !important;
}
#top.single-product .summary .price del .woocommerce-Price-amount,
#top.single-product .summary .price del .woocommerce-Price-amount * {
	font-size: 15px !important;
	font-weight: 500 !important;
}
#top.single-product .summary .price .woocommerce-Price-currencySymbol { margin-right: 4px; }
#top.single-product .summary .price del { margin-right: 8px; }
@media (max-width: 860px) {
	#top.single-product .summary .price .woocommerce-Price-amount,
	#top.single-product .summary .price .woocommerce-Price-amount * { font-size: 26px !important; }
	#top.single-product .summary .price del .woocommerce-Price-amount,
	#top.single-product .summary .price del .woocommerce-Price-amount * { font-size: 14px !important; }
}

/* Barra mobile: riga prezzo sempre in vista sopra i pulsanti */
#top .wam-sticky-bar .wam-bar-price {
	grid-column: 1 / -1;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-size: 12px !important;
	color: var(--wam-muted);
	padding: 0 2px 2px;
	min-height: 0;
	white-space: nowrap;
	overflow: hidden;
}
#top .wam-sticky-bar .wam-bar-price b { font-size: 17px !important; color: var(--wam-ink); flex: none; }
@media (min-width: 861px) { #top .wam-sticky-bar { display: none !important; } }

/* Desktop: mini barra fissa in alto quando il prezzo esce dallo schermo */
#top .wam-desk-bar { display: none; }
@media (min-width: 861px) {
	#top .wam-desk-bar {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 998;
		display: flex;
		align-items: center;
		gap: 18px;
		background: #fff;
		box-shadow: 0 3px 14px rgba(16, 34, 60, .14);
		padding: 10px 24px;
		transform: translateY(-115%);
		transition: transform .25s ease;
	}
	#top .wam-desk-bar.wam-bar-show { transform: translateY(0); }
	#top .wam-desk-bar-title {
		font-weight: 700;
		font-size: 14px !important;
		color: var(--wam-ink);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 40%;
	}
	#top .wam-desk-bar .wam-bar-price-val { font-size: 19px !important; font-weight: 800; color: var(--wam-ink); }
	#top .wam-desk-bar .wam-bar-wa {
		margin-left: auto;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: #25D366;
		color: #fff;
		border-radius: 8px;
		padding: 9px 18px;
		font-size: 13.5px !important;
		font-weight: 700;
		text-decoration: none;
	}
	#top .wam-desk-bar .wam-bar-wa svg { width: 16px; height: 16px; }
}

/* ---------- 3.8.1: barra modello+prezzo in alto anche su mobile ---------- */
@media (max-width: 860px) {
	#top .wam-desk-bar {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 998;
		display: flex;
		align-items: center;
		gap: 12px;
		background: #fff;
		box-shadow: 0 3px 14px rgba(16, 34, 60, .14);
		padding: 9px 14px;
		transform: translateY(-115%);
		transition: transform .25s ease;
	}
	#top .wam-desk-bar.wam-bar-show { transform: translateY(0); }
	#top .wam-desk-bar-title {
		flex: 1;
		min-width: 0;
		font-weight: 700;
		font-size: 13px !important;
		color: var(--wam-ink);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	#top .wam-desk-bar .wam-bar-price-val { font-size: 16px !important; font-weight: 800; color: var(--wam-ink); flex: none; }
	/* In alto niente pulsanti: i contatti stanno nella barra in basso */
	#top .wam-desk-bar .wam-bar-wa { display: none; }
}

/* ---------- Filtro neopatentati: interruttore immediato (3.8.2) ---------- */
.wam-filter-neo {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1.5px dashed #2e9e44;
	border-radius: 8px;
	padding: 9px 12px;
	margin: 14px 0 0;
	cursor: pointer;
}
.wam-filter-neo .wam-switch-slider { background: #cdd6e1; }
.wam-filter-neo input:checked + .wam-switch-slider { background: #2e9e44 !important; }
.wam-filter-neo-label {
	font-size: 13px !important;
	font-weight: 700;
	color: var(--wam-ink);
	text-transform: uppercase;
	letter-spacing: .02em;
}
.wam-filter-neo:has(input:checked) {
	border-style: solid;
	background: rgba(46, 158, 68, .07);
}

/* ================= PREZZI E BARRA 3.8.3 ================= */

/* Contenitore prezzo: più peso visivo; cifre tabellari = zero spostamenti */
#top.single-product .summary .price {
	background: #fff;
	border: 2px solid var(--wam-accent);
	border-radius: 12px;
	padding: 14px 18px !important;
	box-shadow: 0 3px 12px rgba(11, 94, 215, .10);
	font-variant-numeric: tabular-nums;
}
#top.single-product .summary .price * { font-variant-numeric: tabular-nums; }

/* Barra in alto: contenitore colorato, contenuto allineato alla pagina */
#top .wam-desk-bar { background: var(--wam-accent) !important; box-shadow: 0 3px 14px rgba(16, 34, 60, .25); padding: 0; }
#top .wam-desk-bar-in {
	width: 100%;
	max-width: 1210px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 10px 24px;
}
#top .wam-desk-bar-title { color: #fff !important; }
#top .wam-desk-bar .wam-bar-price-val { color: #fff !important; margin-left: auto; }
@media (max-width: 860px) {
	#top .wam-desk-bar-in { padding: 9px 14px; gap: 12px; }
	#top .wam-desk-bar-title { font-size: 13px !important; max-width: none; flex: 1; }
	#top .wam-desk-bar .wam-bar-price-val { font-size: 16px !important; }
}

/* ================= 3.9.0 ================= */

/* Badge prezzo: contenitore COLORATO, il più visibile della pagina */
#top.single-product .summary .price {
	background: var(--wam-accent) !important;
	border: 0 !important;
	border-radius: 12px;
	padding: 14px 18px !important;
	box-shadow: 0 4px 14px rgba(11, 94, 215, .28);
}
#top.single-product .summary .price .woocommerce-Price-amount,
#top.single-product .summary .price .woocommerce-Price-amount *,
#top.single-product .summary .price ins .woocommerce-Price-amount {
	color: #fff !important;
}
#top.single-product .summary .price del,
#top.single-product .summary .price del .woocommerce-Price-amount,
#top.single-product .summary .price del .woocommerce-Price-amount * {
	color: rgba(255, 255, 255, .72) !important;
}
#top.single-product .summary .price del::after { background: rgba(255, 255, 255, .72); }
#top.single-product .summary .price ins { text-decoration: none; }

/* Badge ribasso: il prezzo "prima" NON è più barrato, ben leggibile e fermo */
#top .wam-price-drop .wam-drop-prev {
	font-size: 13.5px !important;
	font-weight: 800;
	color: #1e6b34;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	text-decoration: none !important;
}

/* Rata a doppia variante: segue lo stato dello sconto finanziamento */
#top .wam-rata-on { display: none; }
#top .wam-fin-state-on .wam-rata-on { display: inline; }
#top .wam-fin-state-on .wam-rata-off { display: none; }

/* Rata con/senza sconto finanziamento: si mostra solo lo stato attivo */
#top .wam-price-anchor .wam-rata-on,
#top .wam-anchor-fin-note .wam-rata-on { display: none; }
#top .wam-price-anchor.wam-fin-state-on .wam-rata-on,
#top .wam-anchor-fin-note.wam-fin-state-on .wam-rata-on { display: inline; }
#top .wam-price-anchor.wam-fin-state-on .wam-rata-off,
#top .wam-anchor-fin-note.wam-fin-state-on .wam-rata-off { display: none; }

/* ================= 3.11.0 ================= */

/* Prezzo: dimensioni BLINDATE a qualunque profondità di markup */
#top.single-product .summary .price ins,
#top.single-product .summary .price ins *,
#top.single-product .summary .price > .woocommerce-Price-amount,
#top.single-product .summary .price > .woocommerce-Price-amount * {
	font-size: 30px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
}
#top.single-product .summary .price del,
#top.single-product .summary .price del * {
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
}
@media (max-width: 860px) {
	#top.single-product .summary .price ins,
	#top.single-product .summary .price ins *,
	#top.single-product .summary .price > .woocommerce-Price-amount,
	#top.single-product .summary .price > .woocommerce-Price-amount * { font-size: 26px !important; }
	#top.single-product .summary .price del,
	#top.single-product .summary .price del * { font-size: 14px !important; }
}

/* Rata dinamica: mostra la variante giusta in base allo stato dello sconto */
#top .wam-price-anchor .wam-rata-on,
#top .wam-anchor-fin-note .wam-rata-on { display: none; }
#top .wam-price-anchor.wam-fin-state-on .wam-rata-on,
#top .wam-anchor-fin-note.wam-fin-state-on .wam-rata-on { display: inline; }
#top .wam-price-anchor.wam-fin-state-on .wam-rata-off,
#top .wam-anchor-fin-note.wam-fin-state-on .wam-rata-off { display: none; }

/* Torna su */
#top .wam-top-btn {
	position: fixed;
	right: 16px;
	bottom: 24px;
	z-index: 997;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: var(--wam-accent);
	color: #fff;
	box-shadow: 0 4px 14px rgba(16, 34, 60, .3);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity .25s, transform .25s;
}
#top .wam-top-btn.wam-top-show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#top .wam-top-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
	#top .wam-top-btn { bottom: calc(96px + env(safe-area-inset-bottom)); right: 12px; }
}

/* ---------- Form "Richiedi informazioni": tutto a sinistra e responsive (3.11.2) ---------- */
#top .wam-lead-box {
	text-align: left !important;
	padding: 16px !important;
	margin: 10px 0 0;
	box-sizing: border-box;
	max-width: 100%;
}
#top .wam-lead-box * { text-align: left !important; }
#top .wam-lead-box form {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
}
#top .wam-lead-box p {
	margin: 0 0 10px !important;
	padding: 0 !important;
	float: none !important;
	width: 100% !important;
}
#top .wam-lead-box input[type="text"],
#top .wam-lead-box input[type="email"],
#top .wam-lead-box input[type="tel"],
#top .wam-lead-box input[type="number"],
#top .wam-lead-box textarea {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box;
	float: none !important;
	border: 1px solid var(--wam-line);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 15px !important;
}
#top .wam-lead-box .wam-permuta-fields {
	margin: 0 0 10px !important;
	float: none !important;
	width: 100% !important;
	box-sizing: border-box;
}
#top .wam-lead-box .wam-lead-submit {
	display: inline-block !important;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	padding: 11px 26px;
	border-radius: 8px;
}
@media (max-width: 860px) {
	#top .wam-lead-box { padding: 14px 12px !important; }
	#top .wam-lead-box .wam-lead-submit {
		display: block !important;
		width: 100% !important;
		text-align: center !important;
	}
}

/* ---------- Caselle del form: struttura flex esplicita (3.11.3) ----------
   Il testo delle label è ora un elemento vero (.wam-check-text): niente più
   nodi di testo anonimi che alcuni browser rifiutano di mandare a capo. */
#top .wam-lead-box .wam-permuta-toggle label,
#top .wam-lead-box .wam-lead-privacy label {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 8px;
	width: 100% !important;
	margin: 0 !important;
	position: static !important;
	float: none !important;
}
#top .wam-lead-box .wam-permuta-toggle input[type="checkbox"],
#top .wam-lead-box .wam-lead-privacy input[type="checkbox"] {
	flex: 0 0 auto !important;
	width: 16px !important;
	height: 16px !important;
	margin: 3px 0 0 !important;
	position: static !important;
	float: none !important;
	display: inline-block !important;
}
#top .wam-lead-box .wam-check-text {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	display: block !important;
	overflow-wrap: anywhere;
	white-space: normal !important;
	text-align: left !important;
	font-size: 13.5px !important;
	line-height: 1.45;
	position: static !important;
}

/* ---------- 3.11.4: carrozzeria su due righe + widget recensioni nel flusso ---------- */
#top .wam-facts .wam-fact-value { line-height: 1.2; }
/* Il widget recensioni ora sta tra la descrizione e i pulsanti di contatto. */
#top.single-product .summary .wam-reviews-inline { margin: 12px 0 6px; }

/* ================= 3.11.5 ================= */
/* Su Enfold #top E' il body (che porta anche la classe single-product):
   il prefisso giusto e' "#top.single-product" ATTACCATO. Con lo spazio
   ("#top .single-product") nessuna regola prezzo e' mai entrata in funzione. */

/* Box prezzo: contenitore colorato ben visibile, cifre leggermente piu' grandi */
#top.single-product .summary .price {
	display: inline-block;
	background: var(--wam-accent) !important;
	border: 0 !important;
	border-radius: 12px;
	padding: 16px 22px !important;
	box-shadow: 0 4px 16px rgba(11, 94, 215, .30);
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}
#top.single-product .summary .price ins,
#top.single-product .summary .price ins *,
#top.single-product .summary .price > .woocommerce-Price-amount,
#top.single-product .summary .price > .woocommerce-Price-amount * {
	color: #fff !important;
	font-size: 33px !important;
	font-weight: 800 !important;
	text-decoration: none !important;
}
#top.single-product .summary .price del,
#top.single-product .summary .price del * {
	color: rgba(255, 255, 255, .75) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
}
#top.single-product .summary .price del { margin-right: 10px; }
#top.single-product .summary .price .woocommerce-Price-currencySymbol { margin-right: 4px; }
@media (max-width: 860px) {
	#top.single-product .summary .price ins,
	#top.single-product .summary .price ins *,
	#top.single-product .summary .price > .woocommerce-Price-amount,
	#top.single-product .summary .price > .woocommerce-Price-amount * { font-size: 28px !important; }
	#top.single-product .summary .price del,
	#top.single-product .summary .price del * { font-size: 15px !important; }
	#top.single-product .summary .price { padding: 13px 16px !important; }
}

/* ================= 4.1.1.a — BLOCCO FINANZIAMENTO (compatto) ================= */
/* La rata è il secondo numero della pagina dopo il prezzo, mai un sostituto. */
#top .wam-fin-card {
	box-sizing: border-box;
	margin: 10px 0 0;
	border: 1px solid var(--wam-line);
	border-left: 3px solid var(--wam-accent);
	border-radius: 10px;
	background: #f8fafc;
	padding: 10px 12px;
}
#top .wam-fin-card * { box-sizing: border-box; }
/* Con lo sconto finanziamento SPENTO l'intera sezione sparisce: chi non
   finanzia non deve vedere rata, TAEG e importi del credito. */
#top .wam-fin-card.wam-fin-collassabile:not(.wam-fin-state-on) { display: none; }

/* Senza sconto il riquadro è un accordion: la testata (rata "da") resta
   visibile, l'esempio rappresentativo si apre solo su clic del cliente. */
#top .wam-fin-card.wam-fin-accordion { padding: 0; }
#top .wam-fin-acc-head {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	background: none;
	border: 0;
	border-radius: 10px;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
#top .wam-fin-acc-head:focus-visible { outline: 2px solid var(--wam-accent); outline-offset: -2px; }
#top .wam-fin-chevron {
	width: 20px;
	height: 20px;
	flex: none;
	margin-left: auto;
	align-self: center;
	color: var(--wam-muted);
	transition: transform .2s ease;
}
#top .wam-fin-accordion.wam-fin-open .wam-fin-chevron { transform: rotate(180deg); }
#top .wam-fin-accordion .wam-fin-body { display: none; padding: 0 12px 10px; }
#top .wam-fin-accordion.wam-fin-open .wam-fin-body { display: block; }
#top .wam-fin-validita {
	display: inline-block;
	margin: 0 0 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff4e5;
	border: 1px solid #e8c96b;
	color: #6b4e00;
	font-size: 11.5px !important;
	font-weight: 700;
	white-space: nowrap;
}
#top .wam-fin-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
#top .wam-fin-label { font-size: 12.5px !important; color: var(--wam-muted); font-weight: 600; }
#top .wam-fin-rata {
	font-size: 21px !important;
	font-weight: 800;
	color: var(--wam-accent);
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	white-space: nowrap;
}
#top .wam-fin-rata .woocommerce-Price-amount,
#top .wam-fin-rata .woocommerce-Price-amount * {
	font-size: 21px !important;
	color: var(--wam-accent) !important;
	white-space: nowrap;
}
#top .wam-fin-rata small { font-size: 12.5px !important; font-weight: 700; color: var(--wam-muted); }

/* Dati su una sola riga ciascuno: etichetta a sinistra, valore a destra. */
#top .wam-fin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; margin: 8px 0 0; }
#top .wam-fin-grid > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	border-bottom: 1px dashed var(--wam-line);
	padding: 3px 0;
	min-width: 0;
}
#top .wam-fin-grid span {
	font-size: 11.5px !important;
	color: var(--wam-muted);
	white-space: nowrap;
}
#top .wam-fin-grid b,
#top .wam-fin-grid b * {
	font-size: 12.5px !important;
	font-variant-numeric: tabular-nums;
	white-space: nowrap; /* mai il valore a capo dopo il simbolo € */
}
#top .wam-fin-cta {
	display: block;
	width: 100%;
	margin: 10px 0 0;
	padding: 9px 14px;
	border: 2px solid var(--wam-accent);
	background: #fff;
	color: var(--wam-accent);
	border-radius: 9px;
	font-size: 14px !important;
	font-weight: 700;
	cursor: pointer;
}
#top .wam-fin-cta:hover { background: var(--wam-accent); color: #fff; }
#top .wam-fin-legal { margin: 8px 0 0; font-size: 11px !important; line-height: 1.45; color: var(--wam-muted); }

/* Ancoraggio "listino da nuova": chip discreto sotto il prezzo, su una riga. */
#top .wam-price-anchor { margin: 8px 0 0; }
#top .wam-anchor-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	background: #f1f4f9;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12.5px !important;
	color: var(--wam-muted);
	white-space: nowrap;
}
#top .wam-anchor-chip del, #top .wam-anchor-chip del * { font-size: 12.5px !important; white-space: nowrap; }
#top .wam-anchor-chip b { color: #1e6b34; font-weight: 700; }

/* Simulatore in sovraimpressione */
#top .wam-sim { position: fixed; inset: 0; z-index: 100100; display: none; }
#top .wam-sim.wam-sim-aperto { display: block; }
#top .wam-sim-velo { position: absolute; inset: 0; background: rgba(16, 34, 60, .55); }
#top .wam-sim-card {
	box-sizing: border-box;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(520px, 94vw);
	max-height: 88vh;
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 14px 44px rgba(0, 0, 0, .35);
	padding: 20px 22px 18px;
}
#top .wam-sim-card * { box-sizing: border-box; }
#top .wam-sim-titolo { font-size: 18px !important; font-weight: 800; margin: 0 0 2px; }
#top .wam-sim-sub { font-size: 12.5px !important; color: var(--wam-muted); margin: 0 0 14px; }
#top .wam-sim-riga { margin: 14px 0 0; }
#top .wam-sim-riga > label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px !important; font-weight: 600; margin-bottom: 6px; }
#top .wam-sim-riga > label b { font-size: 15px !important; color: var(--wam-accent); font-variant-numeric: tabular-nums; }
#top .wam-sim-riga input[type="range"] { width: 100%; accent-color: var(--wam-accent); height: 26px; }
#top .wam-sim-scelta { display: flex; gap: 8px; margin-top: 6px; }
#top .wam-sim-scelta button {
	flex: 1;
	padding: 10px;
	border: 2px solid var(--wam-line);
	background: #fff;
	border-radius: 10px;
	font-size: 13.5px !important;
	font-weight: 700;
	cursor: pointer;
	color: var(--wam-ink);
}
#top .wam-sim-scelta button.wam-sim-attivo { border-color: var(--wam-accent); background: #eef4ff; color: var(--wam-accent); }
#top .wam-sim-esito { margin: 16px 0 0; background: #f8fafc; border: 1px solid var(--wam-line); border-radius: 12px; padding: 14px; text-align: center; }
#top .wam-sim-esito .wam-sim-n { font-size: 34px !important; font-weight: 800; color: var(--wam-accent); font-variant-numeric: tabular-nums; line-height: 1.1; display: block; }
#top .wam-sim-esito .wam-sim-n small { font-size: 15px !important; color: var(--wam-muted); font-weight: 700; }
#top .wam-sim-dettagli { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 12px 0 0; font-size: 12.5px !important; text-align: left; }
#top .wam-sim-dettagli > div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--wam-line); padding-bottom: 4px; }
#top .wam-sim-dettagli b { font-variant-numeric: tabular-nums; }
#top .wam-sim-avviso {
	margin: 14px 0 0;
	background: #fff8e5;
	border: 1px solid #e8c96b;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 12.5px !important;
	line-height: 1.55;
	color: #6b4e00;
}
#top .wam-sim-azioni { display: flex; gap: 8px; margin: 16px 0 0; }
#top .wam-sim-azioni .wam-sim-primario { flex: 1; padding: 12px; background: var(--wam-accent); color: #fff; border: 0; border-radius: 10px; font-size: 15px !important; font-weight: 700; cursor: pointer; }
#top .wam-sim-azioni .wam-sim-chiudi { padding: 12px 16px; background: #fff; border: 2px solid var(--wam-line); border-radius: 10px; font-size: 14px !important; font-weight: 700; cursor: pointer; }

@media (max-width: 600px) {
	/* Mobile: foglio che sale dal basso, comandi grandi per il pollice. */
	#top .wam-sim-card {
		top: auto;
		bottom: 0;
		left: 0;
		transform: none;
		width: 100%;
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
		padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
	}
	#top .wam-fin-grid { grid-template-columns: 1fr; }
	#top .wam-fin-rata, #top .wam-fin-rata .woocommerce-Price-amount, #top .wam-fin-rata .woocommerce-Price-amount * { font-size: 20px !important; }
	#top .wam-anchor-chip { white-space: normal; }
	#top .wam-sim-esito .wam-sim-n { font-size: 30px !important; }
	#top .wam-sim-dettagli { grid-template-columns: 1fr; }
	#top .wam-sim-riga input[type="range"] { height: 34px; }
	#top .wam-sim-scelta { flex-direction: column; }
	#top .wam-sim-azioni { flex-direction: column-reverse; }
	#top .wam-sim-azioni .wam-sim-chiudi { width: 100%; }
}


/* ================= 4.1.4.a — MOBILE: prezzo e badge allineati ================= */
@media (max-width: 860px) {
	/* Il box prezzo occupa la stessa larghezza del badge "prezzo ribassato". */
	#top.single-product .summary .price {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box; /* larghezza comprensiva del padding: stesso ingombro del badge */
		text-align: left;
	}
	/* Il badge va a capo dopo l'etichetta: "Prezzo ribassato:" su una riga. */
	#top .wam-price-drop { align-items: flex-start; }
	#top .wam-price-drop .wam-drop-text { display: block; }
	#top .wam-price-drop .wam-drop-label { display: block; font-weight: 700; }
	#top .wam-price-drop .wam-drop-rest { display: block; }
}


/* ---------- Finanziamento: valori e unità mai spezzati a capo ---------- */
#top .wam-fin-grid > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#top .wam-fin-grid > div > span { min-width: 0; }
#top .wam-fin-grid > div > b { flex: none; white-space: nowrap; text-align: right; }
#top .wam-fin-grid b .woocommerce-Price-amount, #top .wam-fin-grid b * { white-space: nowrap; }
#top .wam-sim-dettagli > div { align-items: baseline; }
#top .wam-sim-dettagli > div > b, #top .wam-sim-dettagli b { flex: none; white-space: nowrap; text-align: right; }
#top .wam-sim-riga > label b { white-space: nowrap; flex: none; }

/* ---------- Vista Griglia / Elenco ---------- */
.wam-view-toggle { display: inline-flex; gap: 4px; margin-left: auto; margin-right: 12px; }
.wam-view-toggle button {
	width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--wam-line); border-radius: 8px; cursor: pointer; color: #667085; padding: 0;
}
.wam-view-toggle button svg { width: 16px; height: 16px; }
.wam-view-toggle button.wam-view-attiva { border-color: var(--wam-accent); color: var(--wam-accent); background: #eef4ff; }
@media (min-width: 861px) {
	.wam-view-list .wam-listing-results { grid-template-columns: minmax(0, 1fr); }
	.wam-view-list .wam-card { display: grid; grid-template-columns: 320px minmax(0, 1fr); flex-direction: unset; align-items: center; }
	/* Il riquadro foto resta DAVVERO 4:3: senza align-self la griglia lo
	   stirerebbe all'altezza della colonna dati, ritagliando la foto. */
	.wam-view-list .wam-card-media { aspect-ratio: 4 / 3; height: auto; width: 100%; align-self: center; }
	.wam-view-list .wam-card-body { justify-content: center; }
}
@media (max-width: 860px) {
	/* Su mobile la vista è sempre impilata: il selettore non serve */
	.wam-view-toggle { display: none; }
}


/* ---------- "Non trovi quella giusta?": pulsante SEMPRE a capo ---------- */
.wam-alert-box .wam-alert-form { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.wam-alert-box .wam-alert-email { width: 100%; }
.wam-alert-box .wam-alert-send { width: 100%; }

/* ---------- Negozio nel contenitore nativo del tema (4.14.A2) ----------
   Dentro Enfold la larghezza la decide il tema (container): il riquadro
   del plugin non impone più i suoi 1260px. Lo sticky dei filtri resta
   sbloccato (overflow visibile lungo tutta la catena). */
.wam-shop-container,
.wam-shop-main { overflow: visible !important; }
.wam-shop-main { padding-top: 34px; padding-bottom: 60px; }
.wam-shop-main .wam-shop-title {
	font-size: 28px;
	margin: 0 0 22px;
	color: var(--wam-ink);
}

/* ---------- VDP standalone (ADMS Automarket Pro 1.0.0) ----------
   Layout a due colonne senza il CSS di WooCommerce: galleria a sinistra,
   riepilogo a destra; su mobile tutto impilato. */
#top .wam-vdp { clear: both; }
@media (min-width: 861px) {
	#top .wam-vdp-main {
		display: grid;
		grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
		gap: 34px;
		align-items: start;
	}
}
#top .wam-vdp-media { min-width: 0; }
#top .wam-vdp .summary { min-width: 0; }
#top .wam-vdp-after { clear: both; }

/* Galleria propria */
#top .wam-gallery { position: relative; }
#top .wam-gallery-main { position: relative; border-radius: 12px; overflow: hidden; background: #f2f5f8; }
#top .wam-gallery-main img { display: block; width: 100% !important; height: auto !important; }
#top .wam-gallery-empty { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
#top .wam-gal-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	z-index: 5; width: 40px; height: 40px; border-radius: 50%;
	border: 0; cursor: pointer; font-size: 18px; line-height: 1;
	background: rgba(15, 23, 32, .55); color: #fff;
	display: flex; align-items: center; justify-content: center;
}
#top .wam-gal-prev { left: 10px; }
#top .wam-gal-next { right: 10px; }
#top .wam-gal-nav:hover { background: rgba(15, 23, 32, .8); }
#top .wam-gallery-thumbs {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px; margin-top: 8px;
}
#top .wam-gallery-thumbs .wam-gal-thumb {
	padding: 0; border: 2px solid transparent; border-radius: 8px;
	overflow: hidden; cursor: pointer; background: #f2f5f8; line-height: 0;
	aspect-ratio: 4 / 3;
}
#top .wam-gallery-thumbs .wam-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#top .wam-gallery-thumbs .wam-gal-attiva { border-color: var(--wam-accent); }
/* Griglia collassata: si vedono solo le prime 6 miniature */
#top .wam-gallery-thumbs.wam-gal-collassata .wam-gal-extra { display: none; }
#top .wam-gal-vedi-tutte {
	display: block; width: 100%; margin-top: 8px; padding: 9px;
	background: transparent; border: 1px solid var(--wam-line); border-radius: 8px;
	color: var(--wam-accent); font-weight: 600; cursor: pointer;
}
#top .wam-gal-vedi-tutte:hover { border-color: var(--wam-accent); }
#top .wam-gallery-link { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }

/* Wrapper per temi diversi da Enfold */
.wam-vdp-standalone .wam-vdp-container { max-width: 1200px; margin: 0 auto; padding: 30px 20px 60px; }

/* ---------- Niente riga verticale/restringimento da Enfold (1.1.1) ----------
   Enfold dà a main.content bordo destro, float e larghezza da layout con
   sidebar anche quando la sidebar non c'è: sulle pagine del plugin il
   contenuto occupa TUTTO il contenitore del tema, senza bordi. */
#top .wam-vdp-content,
#top .wam-shop-main,
main.wam-vdp-content,
main.wam-shop-main {
	width: 100% !important;
	max-width: 100% !important;
	border: 0 !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ---------- Lightbox galleria (1.2.0) ---------- */
.wam-lb {
	position: fixed; inset: 0; z-index: 100000;
	background: rgba(10, 14, 20, .92);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .18s ease;
}
.wam-lb.wam-lb-aperto { opacity: 1; }
.wam-lb-figura { margin: 0; max-width: 92vw; max-height: 90vh; }
.wam-lb-img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; display: block; border-radius: 6px; }
.wam-lb-chiudi, .wam-lb-prev, .wam-lb-next {
	position: fixed; z-index: 2; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .12); color: #fff;
	width: 46px; height: 46px; border-radius: 50%;
	font-size: 22px; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	transition: background .15s;
}
.wam-lb-chiudi:hover, .wam-lb-prev:hover, .wam-lb-next:hover { background: rgba(255, 255, 255, .28); }
.wam-lb-chiudi { top: 18px; right: 18px; font-size: 28px; }
.wam-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.wam-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.wam-lb-count {
	position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
	color: #fff; background: rgba(255, 255, 255, .14);
	padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
@media (max-width: 640px) {
	.wam-lb-prev { left: 8px; }
	.wam-lb-next { right: 8px; }
	.wam-lb-img { max-width: 100vw; border-radius: 0; }
}
