/*
 * Skin Black Friday. Caricato solo con la skin accesa; tutte le regole sono prefissate da body.acqbf-attivo.
 * Variabili (--acqbf-sfondo, --acqbf-testo, --acqbf-accento, --acqbf-su-accento) impostate dal plugin su :root.
 */

/* ---------- Barra superiore ---------- */
body.acqbf-attivo .acqbf-bar {
	position: relative;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 38px;
	padding: 6px 16px;
	background: #000;
	color: #fff;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: center;
}

/* Header Elementor fisso in cima (sempre su mobile/tablet): scende sotto la barra; --acqbf-off e' aggiornata dal JS. */
body.acqbf-attivo:has(.acqbf-bar) header.elementor-location-header .elementor-sticky--active {
	top: var(--acqbf-off, 38px) !important;
}

/* Mobile: il body scende di --acqna-header-m-extra (riga di ricerca dell'header); la barra risale in cima allo schermo
   senza cambiare lo spazio occupato nel flusso, cosi' il resto della pagina resta alla stessa distanza dall'header. */
@media (max-width: 767px) {
	body.acqbf-attivo .acqbf-bar {
		top: calc(-1 * var(--acqna-header-m-extra, 0px));
	}
}

@media (max-width: 480px) {
	body.acqbf-attivo .acqbf-bar {
		padding: 6px 10px;
		font-size: 13px;
	}
}

body.acqbf-attivo .acqbf-bar__testo {
	margin: 0;
	color: inherit;
	font: inherit;
	letter-spacing: 0;
}

body.acqbf-attivo .acqbf-bar a.acqbf-bar__link,
body.acqbf-attivo .acqbf-bar a.acqbf-bar__link:hover {
	color: #fff;
	text-decoration: none;
}

body.acqbf-attivo .acqbf-bar a.acqbf-bar__link:focus-visible {
	outline: 2px solid var(--acqbf-accento, #F5B301);
	outline-offset: 2px;
}

body.acqbf-attivo .acqbf-cd {
	color: var(--acqbf-accento, #F5B301);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ---------- Hero ---------- */
/* Sfondo = foto dell'hero originale (<picture> del mu-plugin acqna-home, overlay e ondina della sezione Elementor
   restano visibili); i contenuti stanno in un riquadro nero semitrasparente sopra la foto. */
body.acqbf-attivo .acqbf-hero {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	width: 100%;
	color: var(--acqbf-testo, #fff);
	font-family: Roboto, sans-serif;
	letter-spacing: 0;
}

body.acqbf-attivo .acqbf-hero__main,
body.acqbf-attivo .acqbf-hero__card {
	position: relative;
	z-index: 3;
}

body.acqbf-attivo .acqbf-hero__main {
	box-sizing: border-box;
	width: 100%;
	max-width: 780px;
	margin: 0 auto;
	padding: 34px 40px 36px;
	border: 1px solid rgba(245, 179, 1, .55);
	border-radius: 20px;
	background: rgba(10, 10, 11, .86);
	box-shadow: 0 0 28px rgba(245, 179, 1, .14), 0 18px 48px rgba(0, 0, 0, .5);
	text-align: center;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
	body.acqbf-attivo .acqbf-hero__main,
	body.acqbf-attivo .acqbf-card {
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
	}
}

/* Filetto d'accento in cima al riquadro. */
body.acqbf-attivo .acqbf-hero__main::before {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin: 0 auto 16px;
	border-radius: 2px;
	background: var(--acqbf-accento, #F5B301);
}

body.acqbf-attivo .acqbf-hero .acqbf-hero__label {
	margin: 0 0 8px;
	color: var(--acqbf-accento, #F5B301);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.acqbf-attivo .acqbf-hero .acqbf-hero__titolo {
	margin: 0 0 10px;
	color: var(--acqbf-testo, #fff);
	font-family: Roboto, sans-serif;
	font-size: clamp(24px, 1rem + 1.4vw, 36px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: balance;
}

body.acqbf-attivo .acqbf-hero .acqbf-hero__sotto {
	margin: 0 0 6px;
	color: var(--acqbf-testo, #fff);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.4;
	text-wrap: balance;
}

body.acqbf-attivo .acqbf-hero .acqbf-hero__testo {
	margin: 0 0 16px;
	color: var(--acqbf-testo, #fff);
	font-size: 16px;
	line-height: 1.5;
	opacity: .85;
	text-wrap: balance;
}

body.acqbf-attivo .acqbf-hero .acqbf-hero__timer-titolo {
	margin: 0 0 8px;
	color: var(--acqbf-testo, #fff);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .08em;
}

/* Countdown: protagonista, quattro celle separate da linee sottili. */
body.acqbf-attivo .acqbf-boxes {
	display: flex;
	justify-content: center;
	margin: 6px auto 22px;
	max-width: 560px;
	border-top: 1px solid rgba(245, 179, 1, .35);
	border-bottom: 1px solid rgba(245, 179, 1, .35);
}

body.acqbf-attivo .acqbf-box {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	min-width: 0;
	padding: 14px 6px 12px;
}

body.acqbf-attivo .acqbf-box + .acqbf-box {
	border-left: 1px solid rgba(245, 179, 1, .35);
}

body.acqbf-attivo .acqbf-box__n {
	color: var(--acqbf-accento, #F5B301);
	font-size: clamp(38px, 2rem + 2.4vw, 64px);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	text-shadow: 0 0 18px rgba(245, 179, 1, .35);
}

body.acqbf-attivo .acqbf-box__l {
	margin-top: 8px;
	color: var(--acqbf-testo, #fff);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

body.acqbf-attivo .acqbf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Messaggio di fine: nascosto finche' la promozione e' in corso. */
body.acqbf-attivo .acqbf-hero .acqbf-hero__fine-msg {
	display: none;
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	color: var(--acqbf-accento, #F5B301);
}

body.acqbf-attivo .acqbf-hero--fine .acqbf-hero__fine-msg,
html.acqbf-fine body.acqbf-attivo .acqbf-hero__fine-msg {
	display: block;
}

html.acqbf-fine body.acqbf-attivo .acqbf-hero__timer,
html.acqbf-fine body.acqbf-attivo .acqbf-bar,
html.acqbf-fine body.acqbf-attivo .acqbf-offerta,
html.acqbf-fine body.acqbf-attivo span.onsale.acqbf-badge {
	display: none !important;
}

/* Pulsanti. */
body.acqbf-attivo .acqbf-hero__azioni {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 14px;
}

body.acqbf-attivo .acqbf-hero a.acqbf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 28px;
	border: 2px solid var(--acqbf-accento, #F5B301);
	border-radius: 10px;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	transition: background-color .2s ease, color .2s ease;
}

body.acqbf-attivo .acqbf-hero a.acqbf-btn--primario {
	background: var(--acqbf-accento, #F5B301);
	color: var(--acqbf-su-accento, #000);
}

body.acqbf-attivo .acqbf-hero a.acqbf-btn--secondario,
body.acqbf-attivo .acqbf-hero a.acqbf-btn--card {
	background: transparent;
	color: var(--acqbf-accento, #F5B301);
}

body.acqbf-attivo .acqbf-hero a.acqbf-btn--card {
	min-height: 44px;
	padding: 9px 18px;
	font-size: 15px;
	align-self: flex-start;
	margin-top: auto;
}

body.acqbf-attivo .acqbf-hero a.acqbf-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

@media (hover: hover) {
	body.acqbf-attivo .acqbf-hero a.acqbf-btn--primario:hover {
		background: #fff;
		border-color: #fff;
		color: #000;
	}

	body.acqbf-attivo .acqbf-hero a.acqbf-btn--secondario:hover,
	body.acqbf-attivo .acqbf-hero a.acqbf-btn--card:hover {
		background: var(--acqbf-accento, #F5B301);
		color: var(--acqbf-su-accento, #000);
	}
}

/* Card. */
body.acqbf-attivo .acqbf-hero__card {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
}

body.acqbf-attivo .acqbf-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	box-sizing: border-box;
	position: relative;
	padding: 22px 22px 20px;
	border: 1px solid rgba(245, 179, 1, .45);
	border-top: 3px solid var(--acqbf-accento, #F5B301);
	border-radius: 16px;
	background: rgba(10, 10, 11, .84);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
	text-align: left;
}

body.acqbf-attivo .acqbf-card__icona {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 12px;
	border: 1px solid rgba(245, 179, 1, .5);
	border-radius: 50%;
	color: var(--acqbf-accento, #F5B301);
}

body.acqbf-attivo .acqbf-hero .acqbf-card__titolo {
	margin: 0 0 6px;
	color: var(--acqbf-testo, #fff);
	font-family: Roboto, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}

body.acqbf-attivo .acqbf-hero .acqbf-card__testo {
	margin: 0 0 12px;
	color: var(--acqbf-testo, #fff);
	font-size: 15px;
	line-height: 1.45;
	opacity: .85;
}

@media (min-width: 768px) and (max-width: 1024px) {
	body.acqbf-attivo .acqbf-hero__card {
		gap: 14px;
	}

	body.acqbf-attivo .acqbf-card {
		padding: 16px;
	}
}

@media (max-width: 767px) {
	body.acqbf-attivo .acqbf-hero {
		gap: 20px;
	}

	body.acqbf-attivo .acqbf-hero__main {
		padding: 24px 16px 24px;
		border-radius: 16px;
	}

	body.acqbf-attivo .acqbf-hero .acqbf-hero__titolo {
		font-size: 24px;
	}

	body.acqbf-attivo .acqbf-hero .acqbf-hero__sotto {
		font-size: 15px;
	}

	body.acqbf-attivo .acqbf-hero .acqbf-hero__testo {
		font-size: 14px;
		margin-bottom: 12px;
	}

	body.acqbf-attivo .acqbf-box {
		padding: 12px 2px 10px;
	}

	body.acqbf-attivo .acqbf-box__n {
		font-size: 34px;
	}

	body.acqbf-attivo .acqbf-box__l {
		font-size: 11px;
		letter-spacing: .02em;
	}

	body.acqbf-attivo .acqbf-hero__azioni {
		flex-direction: column;
		align-items: stretch;
	}

	body.acqbf-attivo .acqbf-hero__card {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	body.acqbf-attivo .acqbf-card {
		padding: 18px 16px 16px;
	}

	body.acqbf-attivo .acqbf-hero a.acqbf-btn--card {
		align-self: stretch;
	}

	body.acqbf-attivo .acqbf-hero .acqbf-card__testo {
		font-size: 14px;
	}
}

/* ---------- Badge offerta nelle card prodotto ---------- */
body.acqbf-attivo :is(.acqna-home-prodotti, .acqna-shop-griglia, .acqna-prodotto-correlati, .related, .upsells) ul.products li.product span.onsale.acqbf-badge,
body.acqbf-attivo .woocommerce ul.products li.product span.onsale.acqbf-badge,
body.acqbf-attivo span.onsale.acqbf-badge {
	background: #000 !important;
	color: var(--acqbf-accento, #F5B301) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .35) !important;
}

/* ---------- Riquadro in scheda prodotto (sotto il prezzo) ---------- */
body.acqbf-attivo .acqbf-offerta {
	display: block;
	box-sizing: border-box;
	max-width: 420px;
	margin: 12px 0 4px;
	padding: 10px 14px;
	border-left: 4px solid var(--acqbf-accento, #F5B301);
	border-radius: 0 6px 6px 0;
	background: #000;
	color: #fff;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
}

body.acqbf-attivo .acqbf-offerta__titolo {
	display: block;
	color: var(--acqbf-accento, #F5B301);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

body.acqbf-attivo .acqbf-offerta__riga {
	display: block;
	margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
	body.acqbf-attivo .acqbf-hero a.acqbf-btn {
		transition: none;
	}
}

/* Badge in due parti: etichetta lunga (desktop) e sigla breve (mobile). */
.acqbf-nowrap {
	white-space: nowrap;
}

/* Mobile: badge su una riga sola e compatto ("BF -56%"), senza toccare il cuore dei preferiti (distanza >= 6 px:
   card ~166 px, badge ~75 px + 12 px a sinistra, cuore ~36 px a destra). Il testo completo resta per gli screen reader.
   Stesso schema di selettori di acqna-card.css (che usa !important). */
@media (max-width: 767px) {
	body.acqbf-attivo :is(.acqna-home-prodotti, .acqna-shop-griglia, .acqna-prodotto-correlati, .related, .upsells) ul.products li.product span.onsale.acqbf-badge,
	body.acqbf-attivo .woocommerce ul.products li.product span.onsale.acqbf-badge,
	body.acqbf-attivo span.onsale.acqbf-badge {
		box-sizing: border-box !important;
		max-width: calc(100% - 64px) !important;
		padding: 5px 9px !important;
		font-size: 12px !important;
		font-weight: 700 !important;
		line-height: 1.2 !important;
		letter-spacing: 0 !important;
		white-space: nowrap !important;
		text-align: left;
	}

	body.acqbf-attivo :is(.acqna-home-prodotti, .acqna-shop-griglia, .acqna-prodotto-correlati, .related, .upsells) ul.products li.product span.onsale.acqbf-badge .acqbf-badge__f {
		display: none;
	}

	/* Sigla breve ricavata dall'attributo: il testo lungo e' nascosto solo otticamente (il badge e' aria-hidden). */
	body.acqbf-attivo span.onsale.acqbf-badge .acqbf-badge__t {
		font-size: 0;
	}

	body.acqbf-attivo span.onsale.acqbf-badge .acqbf-badge__t::after {
		content: attr(data-breve);
		font-size: 12px;
	}

	/* Le card dell'hero lasciano spazio al pulsante WhatsApp fisso e al "torna su" di Astra. */
	body.acqbf-attivo .acqbf-hero__card {
		padding-bottom: 96px;
	}
}

/* ---------- Sezione "In offerta" in home ---------- */
/* Struttura autonoma (senza il CSS per-ID di Elementor): colonna a tutta larghezza, titolo e link in riga, griglia sotto. */
body.acqbf-attivo .acqbf-offerte {
	box-sizing: border-box;
	width: 100%;
	padding-top: 40px;
	padding-bottom: 40px;
}

body.acqbf-attivo .acqbf-offerte > .elementor-container,
body.acqbf-attivo .acqbf-offerte .acqna-home-head {
	width: 100%;
}

body.acqbf-attivo .acqbf-offerte .acqna-home-head > .elementor-widget-wrap {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

body.acqbf-attivo .acqbf-offerte .acqbf-offerte__griglia {
	flex: 0 0 100%;
	width: 100%;
}

@media (max-width: 767px) {
	body.acqbf-attivo .acqbf-offerte {
		padding: 24px 16px 96px;
	}
}

body.acqbf-attivo .acqbf-offerte .acqna-home-h2 .elementor-heading-title::after {
	background: var(--acqbf-accento, #F5B301);
}

body.acqbf-attivo .acqbf-offerte .acqna-home-link-tutti .elementor-heading-title a {
	text-decoration-color: var(--acqbf-accento, #F5B301);
}

/* 4 colonne su desktop; su mobile restano 2 e si vedono tutti i prodotti (l'home ne nasconde oltre il quarto). */
body.acqbf-attivo .acqbf-offerte .acqna-home-prodotti.elementor-widget ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

@media (min-width: 768px) and (max-width: 1024px) {
	body.acqbf-attivo .acqbf-offerte .acqna-home-prodotti.elementor-widget ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.acqbf-attivo .acqbf-offerte .acqna-home-prodotti.elementor-widget ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}

	body.acqbf-attivo .acqbf-offerte .acqna-home-prodotti.elementor-widget ul.products li.product:nth-child(n+5) {
		display: flex !important;
	}
}

body.acqbf-attivo .acqbf-offerte .acqna-home-head > .elementor-widget-wrap > .acqna-home-h2 {
	flex: 1 1 50%;
	width: auto;
	min-width: 0;
	max-width: none;
}

body.acqbf-attivo .acqbf-offerte .acqna-home-head > .elementor-widget-wrap > .acqna-home-link-tutti {
	flex: 0 0 auto;
	width: auto;
	margin-left: auto;
}

/* ---------- Tasto "offerte" nello shop (sopra la toolbar) ---------- */
body.acqbf-attivo .acqbf-shop-cta {
	display: flex;
	margin: 0 0 14px;
}

body.acqbf-attivo .acqbf-shop-cta a.acqbf-shop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 26px;
	border: 2px solid var(--acqbf-accento, #F5B301);
	border-radius: 10px;
	background: var(--acqbf-sfondo, #0A0A0B);
	color: var(--acqbf-accento, #F5B301);
	font-family: Roboto, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

body.acqbf-attivo .acqbf-shop-cta a.acqbf-shop-btn--attivo {
	background: var(--acqbf-accento, #F5B301);
	color: var(--acqbf-su-accento, #000);
}

body.acqbf-attivo .acqbf-shop-cta a.acqbf-shop-btn:focus-visible {
	outline: 3px solid #6EC1E4;
	outline-offset: 2px;
}

@media (hover: hover) {
	body.acqbf-attivo .acqbf-shop-cta a.acqbf-shop-btn:hover {
		background: var(--acqbf-accento, #F5B301);
		color: var(--acqbf-su-accento, #000);
	}
	body.acqbf-attivo .acqbf-shop-cta a.acqbf-shop-btn--attivo:hover {
		background: var(--acqbf-sfondo, #0A0A0B);
		color: var(--acqbf-accento, #F5B301);
	}
}

@media (max-width: 767px) {
	body.acqbf-attivo .acqbf-shop-cta a.acqbf-shop-btn {
		width: 100%;
		padding: 12px 16px;
	}
}

/* ---------- Banner inferiore a rotazione (mu-plugin acqna-banner, #simple-banner) ----------
   Stessi colori della barra superiore. Le variabili --bn-* sono scritte inline sull'elemento:
   le dichiarazioni !important del foglio di stile prevalgono su quelle inline non importanti. */
body.acqbf-attivo #simple-banner.simple-banner {
	--bn-sfondo: #000 !important;
	--bn-testo: #fff !important;
	--bn-link: var(--acqbf-accento, #F5B301) !important;
	--bn-chiudi: #fff !important;
	--bn-bordo: 0 !important;
	--bn-ombra: 0 -2px 12px rgba(0, 0, 0, .35) !important;
}
