/**
 * PC Precision — Woodmart Child (sicuro: non tocca il tema parent).
 */

:root {
	--pcp-accent: var(--wd-primary-color, #1e40af);
	--pcp-cart-blue: var(--wd-primary-color, #1e40af);
	--pcp-header-bg: #0d0d0d;
	--pcp-header-text: #f5f5f5;

	/* Pulsanti Woodmart “accented” = colore primario tema */
	--btn-accented-bgcolor: var(--wd-primary-color, #1e40af);
	--btn-accented-bgcolor-hover: color-mix(in srgb, var(--wd-primary-color, #1e40af) 86%, #000);
	--btn-accented-color: #fff;
	--btn-accented-color-hover: #fff;

	/* Homepage blocks — sfondi (accenti da Woodmart: --wd-primary-color) */
	--pcp-home-bg: #0a0a0a;
	--pcp-home-surface: #141414;
	--pcp-home-surface-2: #1c1c1c;
	--pcp-home-border: #2a2a2a;
	--pcp-home-text: #f5f5f5;
	--pcp-home-muted: #a3a3a3;

	/*
	 * Logo header — desktop grande; mobile bilanciato vs Accedi/Carrello.
	 */
	--pcp-logo-max-h-desktop: 96px;
	--pcp-logo-max-h-desktop-sticky: 92px;
	--pcp-logo-max-h-mobile: 56px;
	--pcp-logo-max-h-mobile-sticky: 52px;
	--pcp-logo-max-w-desktop: 560px;
	--pcp-logo-max-w-mobile: 45vw;

	/*
	 * WHB heights — lock early on :root so inline WHB CSS cannot
	 * flash a thinner header then expand when child CSS loads.
	 */
	--wd-header-general-h: 128px !important;
	--wd-header-general-sm-h: 100px !important;
	--wd-header-general-sticky-h: 120px !important;
	--wd-top-bar-h: 0px !important;
	--wd-top-bar-sm-h: 0px !important;
	--wd-top-bar-sticky-h: 0px !important;
}

@media (max-width: 1024px) {
	:root {
		--wd-header-general-h: 100px !important;
		--wd-header-general-sticky-h: 96px !important;
	}
}

/* Top bar rimossa — WHB + CSS */
.whb-header .whb-top-bar,
.whb-pcp_caseking_header .whb-top-bar {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
}

.whb-pcp_caseking_header {
	--wd-top-bar-h: 0px !important;
	--wd-top-bar-sm-h: 0px !important;
	--wd-top-bar-sticky-h: 0px !important;
	--wd-top-bar-brd-w: 0px !important;
}

/* Header principale su sfondo nero */
.whb-header .whb-main-header,
.whb-header .whb-general-header.whb-color-dark,
.whb-sticky-header.whb-sticked .whb-main-header {
	background-color: var(--pcp-header-bg) !important;
	border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.whb-header .whb-main-header .wd-nav > li > a,
.whb-header .whb-main-header .wd-header-nav > li > a,
.whb-header .whb-main-header .menu-opener,
.whb-header .whb-main-header .wd-header-cats-nav > a,
.whb-header .whb-main-header .wd-tools-element > a {
	color: var(--pcp-header-text) !important;
}

/* Header Accedi / Carrello — icona sopra, testo sotto (outline chiaro su nero) */
.whb-header .whb-main-header .wd-header-my-account > a,
.whb-header .whb-main-header .wd-header-cart > a {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 3px !important;
	min-width: 52px;
	padding: 0 6px !important;
	text-align: center !important;
	line-height: 1.1 !important;
	color: var(--pcp-header-text) !important;
	text-decoration: none !important;
}

.whb-header .whb-main-header .wd-header-my-account .wd-tools-icon,
.whb-header .whb-main-header .wd-header-cart .wd-tools-icon,
.whb-header .whb-main-header .wd-header-my-account .wd-tools-inner,
.whb-header .whb-main-header .wd-header-cart .wd-tools-inner {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--pcp-header-text) !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
}

.whb-header .whb-main-header .wd-header-my-account .wd-tools-icon::before,
.whb-header .whb-main-header .wd-header-cart .wd-tools-icon::before,
.whb-header .whb-main-header .wd-header-my-account:hover .wd-tools-icon::before,
.whb-header .whb-main-header .wd-header-cart:hover .wd-tools-icon::before {
	color: var(--pcp-header-text) !important;
	font-size: 22px !important;
	line-height: 1 !important;
}

.whb-header .whb-main-header .wd-header-my-account .wd-tools-text,
.whb-header .whb-main-header .wd-header-cart .wd-tools-text,
.whb-header .whb-main-header .wd-header-cart .wd-tools-text-cart {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--pcp-header-text) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
	letter-spacing: 0.01em;
	text-transform: none !important;
	white-space: nowrap;
}

/* Cart icon-only: label "Carrello" sotto l'icona */
.whb-header .whb-main-header .wd-header-cart.wd-style-icon > a::after {
	content: "Carrello";
	display: block;
	color: var(--pcp-header-text);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.whb-header .whb-main-header .wd-header-cart.wd-style-icon:has(.wd-tools-text) > a::after,
.whb-header .whb-main-header .wd-header-cart.wd-style-icon:has(.wd-tools-text-cart) > a::after {
	content: none;
	display: none;
}

.whb-header .whb-main-header .wd-header-my-account > a:hover,
.whb-header .whb-main-header .wd-header-cart > a:hover,
.whb-header .whb-main-header .wd-header-my-account > a:hover .wd-tools-icon,
.whb-header .whb-main-header .wd-header-cart > a:hover .wd-tools-icon,
.whb-header .whb-main-header .wd-header-my-account > a:hover .wd-tools-text,
.whb-header .whb-main-header .wd-header-cart > a:hover .wd-tools-text {
	color: #fff !important;
	background: transparent !important;
	filter: none !important;
	opacity: 0.88;
}

/* Header search — barra form Caseking (bianca + bordo navy + bottone blu) */
.whb-pcp_caseking_header .whb-column9 {
	flex: 1 1 auto !important;
	min-width: 0;
	justify-content: stretch;
}

.whb-pcp_caseking_header .wd-header-search-form,
.whb-pcp_caseking_header .whb-column9 .wd-search-form {
	flex: 1 1 auto !important;
	max-width: none !important;
	width: 100%;
	min-width: 0;
	padding-inline: 12px 20px !important;
}

.whb-pcp_caseking_header .wd-header-search-form .searchform,
.whb-pcp_caseking_header .whb-column9 .searchform {
	--wd-form-height: 44px;
	--wd-form-brd-radius: 8px;
	--wd-form-brd-width: 1.5px;
	--wd-form-brd-color: #1e3a8a;
	--wd-form-brd-color-focus: #1e40af;
	--wd-form-bg: #ffffff;
	--wd-form-color: #111827;
	--wd-form-placeholder-color: #9ca3af;
	--wd-search-btn-w: 44px;
	width: 100%;
	max-width: 100%;
	background-color: #fff !important;
	border: 1.5px solid #1e3a8a !important;
	border-radius: 8px !important;
	box-shadow: none !important;
}

.whb-pcp_caseking_header .wd-header-search-form .searchform input[type="text"],
.whb-pcp_caseking_header .whb-column9 .searchform input[type="text"] {
	background: transparent !important;
	color: #111827 !important;
	border: none !important;
	box-shadow: none !important;
	min-width: 0 !important;
	width: 100% !important;
	padding-inline-start: 14px !important;
}

.whb-pcp_caseking_header .wd-header-search-form .searchform input[type="text"]::placeholder,
.whb-pcp_caseking_header .whb-column9 .searchform input[type="text"]::placeholder {
	color: #9ca3af !important;
	opacity: 1;
}

.whb-pcp_caseking_header .wd-header-search-form .searchform .searchsubmit,
.whb-pcp_caseking_header .whb-column9 .searchform .searchsubmit {
	--btn-color: #ffffff !important;
	--btn-bgcolor: #1e40af !important;
	--btn-bgcolor-hover: #1e3a8a !important;
	background-color: #1e40af !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	box-shadow: none !important;
}

.whb-pcp_caseking_header .wd-header-search-form .searchform .searchsubmit:hover,
.whb-pcp_caseking_header .whb-column9 .searchform .searchsubmit:hover {
	background-color: #1e3a8a !important;
}

.whb-pcp_caseking_header .wd-header-search-form .searchform .searchsubmit::after,
.whb-pcp_caseking_header .whb-column9 .searchform .searchsubmit::after {
	color: #fff !important;
	opacity: 1 !important;
}

.whb-pcp_caseking_header .wd-header-search-form .searchform .searchsubmit:hover::after,
.whb-pcp_caseking_header .whb-column9 .searchform .searchsubmit:hover::after {
	opacity: 1 !important;
}

/* Mobile: form desktop nascosta (column9 = whb-visible-lg); ricerca nel menu burger */
@media (max-width: 1024px) {
	.whb-pcp_caseking_header .wd-header-search-form {
		display: none !important;
	}
}

.whb-header .whb-main-header .wd-header-cart:is(.wd-design-2, .wd-design-5) .wd-tools-icon {
	margin-inline-end: 0 !important;
}

/* Badge quantità carrello — SOLO opener header (non .cart-widget-side / titoli) */
.whb-header .wd-header-cart .cart-widget-opener .wd-tools-count,
.whb-header .wd-header-cart .cart-widget-opener .wd-cart-number,
.whb-sticky-header .wd-header-cart .cart-widget-opener .wd-tools-count,
.whb-sticky-header .wd-header-cart .cart-widget-opener .wd-cart-number,
.whb-general-header .wd-header-cart .cart-widget-opener .wd-tools-count,
.whb-general-header .wd-header-cart .cart-widget-opener .wd-cart-number {
	background-color: var(--pcp-cart-blue, #1e40af) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	border: none !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
	font-weight: 700 !important;
	font-size: 10px !important;
	min-width: 16px !important;
	height: 16px !important;
	line-height: 16px !important;
	top: -4px !important;
	inset-inline-end: -8px !important;
	opacity: 1 !important;
	visibility: visible !important;
	overflow: visible !important;
	z-index: 3 !important;
	text-indent: 0 !important;
}

.whb-header .wd-header-cart .cart-widget-opener .wd-tools-count > span,
.whb-header .wd-header-cart .cart-widget-opener .wd-cart-number > span,
.whb-sticky-header .wd-header-cart .cart-widget-opener .wd-tools-count > span,
.whb-sticky-header .wd-header-cart .cart-widget-opener .wd-cart-number > span,
.whb-general-header .wd-header-cart .cart-widget-opener .wd-tools-count > span,
.whb-general-header .wd-header-cart .cart-widget-opener .wd-cart-number > span {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	opacity: 1 !important;
	visibility: visible !important;
	font-size: inherit !important;
}

/* Badge quantità Confronta — stesso stile del carrello */
.whb-header .wd-header-compare .wd-tools-count,
.whb-sticky-header .wd-header-compare .wd-tools-count,
.whb-general-header .wd-header-compare .wd-tools-count {
	display: flex !important;
	align-items: center;
	justify-content: center;
	background-color: var(--pcp-cart-blue, #2563eb) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
	font-weight: 700 !important;
	font-size: 10px !important;
	min-width: 16px !important;
	height: 16px !important;
	line-height: 16px !important;
	top: -4px !important;
	inset-inline-end: -8px !important;
}

.whb-header .wd-header-compare .wd-tools-count.is-empty,
.whb-sticky-header .wd-header-compare .wd-tools-count.is-empty,
.whb-general-header .wd-header-compare .wd-tools-count.is-empty,
.whb-header .wd-header-compare .wd-tools-count[data-count="0"],
.whb-sticky-header .wd-header-compare .wd-tools-count[data-count="0"],
.whb-general-header .wd-header-compare .wd-tools-count[data-count="0"] {
	display: none !important;
}

.whb-header .whb-main-header .wd-tools-element.wd-tools-text > a {
	color: var(--pcp-header-text) !important;
}

@media (max-width: 1024px) {
	.whb-header .whb-main-header .wd-header-my-account > a,
	.whb-header .whb-main-header .wd-header-cart > a {
		min-width: 40px;
		gap: 0 !important;
		padding: 0 6px !important;
		flex-shrink: 0 !important;
	}

	.whb-header .whb-main-header .wd-header-my-account,
	.whb-header .whb-main-header .wd-header-cart {
		flex-shrink: 0 !important;
	}

	.whb-header .whb-main-header .wd-header-my-account .wd-tools-icon::before,
	.whb-header .whb-main-header .wd-header-cart .wd-tools-icon::before {
		font-size: 22px !important;
	}

	/* Mobile: solo icone — le label "Accedi"/"Carrello" causano overflow */
	.whb-header .whb-main-header .wd-header-my-account .wd-tools-text,
	.whb-header .whb-main-header .wd-header-cart .wd-tools-text,
	.whb-header .whb-main-header .wd-header-cart .wd-tools-text-cart,
	.whb-header .whb-main-header .wd-header-cart.wd-style-icon > a::after {
		display: none !important;
		font-size: 0 !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		visibility: hidden !important;
	}
}

/*
 * Header Caseking heights v2.0.59 — lock normal + sticky; mobile tools always visible.
 * Targets .whb-general-header-inner (WoodMart) and flex-row (compat).
 */
.whb-pcp_caseking_header,
.whb-pcp_caseking_header .whb-row,
.whb-pcp_caseking_header .whb-general-header {
	--wd-header-general-h: 128px !important;
	--wd-header-general-sm-h: 100px !important;
	--wd-header-general-sticky-h: 120px !important;
}

@media (max-width: 1024px) {
	.whb-pcp_caseking_header,
	.whb-pcp_caseking_header .whb-row,
	.whb-pcp_caseking_header .whb-general-header {
		--wd-header-general-h: 100px !important;
		--wd-header-general-sm-h: 100px !important;
		--wd-header-general-sticky-h: 96px !important;
	}
}

.whb-pcp_caseking_header.whb-sticked,
.whb-pcp_caseking_header.whb-sticked .whb-row,
.whb-pcp_caseking_header.whb-sticked .whb-general-header,
.whb-pcp_caseking_header.whb-sticky-real.whb-sticked .whb-row {
	--wd-header-general-h: 120px !important;
	--wd-header-general-sticky-h: 120px !important;
}

@media (max-width: 1024px) {
	.whb-pcp_caseking_header.whb-sticked,
	.whb-pcp_caseking_header.whb-sticked .whb-row,
	.whb-pcp_caseking_header.whb-sticked .whb-general-header,
	.whb-pcp_caseking_header.whb-sticky-real.whb-sticked .whb-row {
		--wd-header-general-h: 96px !important;
		--wd-header-general-sticky-h: 96px !important;
	}
}

.whb-pcp_caseking_header:not(.whb-sticked) .whb-general-header-inner,
.whb-pcp_caseking_header:not(.whb-sticked) .whb-general-header > .container > .whb-flex-row {
	height: 128px !important;
	max-height: 128px !important;
	min-height: 0 !important;
}

@media (max-width: 1024px) {
	.whb-pcp_caseking_header:not(.whb-sticked) .whb-general-header-inner,
	.whb-pcp_caseking_header:not(.whb-sticked) .whb-general-header > .container > .whb-flex-row {
		height: 100px !important;
		max-height: 100px !important;
	}
}

.whb-pcp_caseking_header.whb-sticked .whb-general-header-inner,
.whb-pcp_caseking_header.whb-sticked .whb-general-header > .container > .whb-flex-row {
	height: 120px !important;
	max-height: 120px !important;
	min-height: 0 !important;
}

@media (max-width: 1024px) {
	.whb-pcp_caseking_header.whb-sticked .whb-general-header-inner,
	.whb-pcp_caseking_header.whb-sticked .whb-general-header > .container > .whb-flex-row {
		height: 96px !important;
		max-height: 96px !important;
	}
}

/* Tools (Accedi / Carrello) — stack compatto nell'header sottile */
.whb-pcp_caseking_header .whb-general-header .wd-header-my-account > a,
.whb-pcp_caseking_header .whb-general-header .wd-header-cart > a {
	min-height: 0 !important;
	line-height: 1.1 !important;
}

.whb-pcp_caseking_header .whb-general-header .wd-header-my-account .wd-tools-icon::before,
.whb-pcp_caseking_header .whb-general-header .wd-header-cart .wd-tools-icon::before {
	font-size: 20px !important;
}

.whb-pcp_caseking_header .whb-general-header .wd-header-my-account .wd-tools-text,
.whb-pcp_caseking_header .whb-general-header .wd-header-cart .wd-tools-text,
.whb-pcp_caseking_header .whb-general-header .wd-header-cart.wd-style-icon > a::after {
	font-size: 11px !important;
	line-height: 1.1 !important;
}

@media (min-width: 1025px) {
	.whb-pcp_caseking_header .whb-general-header .whb-col-left {
		flex: 0 1 auto !important;
		min-width: 200px !important;
		max-width: none !important;
	}
}

.whb-pcp_caseking_header .whb-general-header .whb-col-left .site-logo,
.whb-pcp_caseking_header .whb-general-header .whb-col-center {
	justify-content: flex-start;
}

.whb-pcp_caseking_header .whb-general-header .site-logo {
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex: 0 0 auto;
	min-height: 0;
	transform: none !important;
}

.whb-pcp_caseking_header .whb-general-header .site-logo .wd-logo {
	max-width: none !important;
	width: auto !important;
	transform: none !important;
}

/* WoodMart wd-switch-logo: main + sticky in DOM — show only ONE per scroll state (max specificity) */
.whb-pcp_caseking_header .site-logo .wd-sticky-logo,
.whb-pcp_caseking_header:not(.whb-sticked):not(.whb-sticky-header) .site-logo .wd-sticky-logo,
.whb-pcp_caseking_header .whb-general-header .site-logo.wd-switch-logo .wd-sticky-logo {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	pointer-events: none !important;
}

.whb-pcp_caseking_header .site-logo .wd-sticky-logo img,
.whb-pcp_caseking_header:not(.whb-sticked):not(.whb-sticky-header) .site-logo .wd-sticky-logo img {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	max-height: 0 !important;
	max-width: 0 !important;
}

.whb-pcp_caseking_header.whb-sticked .site-logo .wd-main-logo,
.whb-pcp_caseking_header.whb-sticky-header .site-logo .wd-main-logo,
.whb-pcp_caseking_header.whb-sticked .whb-general-header .site-logo.wd-switch-logo .wd-main-logo,
.whb-pcp_caseking_header.whb-sticky-header .whb-general-header .site-logo.wd-switch-logo .wd-main-logo {
	display: none !important;
}

.whb-pcp_caseking_header.whb-sticked .site-logo .wd-sticky-logo,
.whb-pcp_caseking_header.whb-sticky-header .site-logo .wd-sticky-logo,
.whb-pcp_caseking_header.whb-sticked .whb-general-header .site-logo.wd-switch-logo .wd-sticky-logo,
.whb-pcp_caseking_header.whb-sticky-header .whb-general-header .site-logo.wd-switch-logo .wd-sticky-logo {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: auto !important;
	height: auto !important;
	position: static !important;
	pointer-events: auto !important;
	overflow: visible !important;
}

.whb-pcp_caseking_header.whb-sticked .site-logo .wd-sticky-logo img,
.whb-pcp_caseking_header.whb-sticky-header .site-logo .wd-sticky-logo img {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: auto !important;
	height: auto !important;
}

/* Duplicate img inside same anchor */
.whb-pcp_caseking_header .site-logo .wd-logo img ~ img {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
}

/* One logo column per breakpoint — desktop col-left, mobile mobile-center */
@media (min-width: 1025px) {
	.whb-pcp_caseking_header .whb-mobile-center .site-logo,
	.whb-pcp_caseking_header .whb-mobile-left .site-logo {
		display: none !important;
		visibility: hidden !important;
	}
}

@media (max-width: 1024px) {
	.whb-pcp_caseking_header .whb-col-left .site-logo {
		display: none !important;
		visibility: hidden !important;
	}

	/* Mobile flex: logo può restringersi; Accedi/Carrello non overflowano mai */
	.whb-pcp_caseking_header .whb-general-header .whb-flex-row,
	.whb-pcp_caseking_header .whb-general-header-inner {
		min-width: 0 !important;
		overflow: visible !important;
	}

	.whb-pcp_caseking_header .whb-general-header .whb-mobile-left,
	.whb-pcp_caseking_header .whb-general-header .whb-col-left {
		flex: 0 0 auto !important;
		min-width: 0 !important;
		max-width: none !important;
	}

	.whb-pcp_caseking_header .whb-general-header .whb-mobile-center,
	.whb-pcp_caseking_header .whb-general-header .whb-col-center {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		max-width: 45vw !important;
		justify-content: center !important;
	}

	.whb-pcp_caseking_header .whb-general-header .whb-mobile-right,
	.whb-pcp_caseking_header .whb-general-header .whb-col-right {
		flex: 0 0 auto !important;
		flex-shrink: 0 !important;
		min-width: max-content !important;
		max-width: none !important;
		justify-content: flex-end !important;
		gap: 2px;
	}

	.whb-pcp_caseking_header .whb-general-header .whb-mobile-center .site-logo,
	.whb-pcp_caseking_header .whb-general-header .site-logo {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		max-width: 100% !important;
		justify-content: center !important;
	}

	.whb-pcp_caseking_header .whb-general-header .site-logo .wd-logo,
	.whb-pcp_caseking_header .whb-general-header .site-logo .wd-main-logo,
	.whb-pcp_caseking_header .whb-general-header .site-logo > a {
		max-width: 100% !important;
		min-width: 0 !important;
	}
}

.whb-pcp_caseking_header .whb-general-header .site-logo .wd-main-logo img,
.whb-pcp_caseking_header .whb-general-header .site-logo > a.wd-main-logo img,
.whb-pcp_caseking_header:not(.whb-sticked):not(.whb-sticky-header) .whb-general-header .site-logo img {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-height: var(--pcp-logo-max-h-desktop) !important;
	max-width: min(var(--pcp-logo-max-w-desktop), 85vw) !important;
	object-fit: contain;
	object-position: left center;
	image-rendering: auto;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	transform: none !important;
	scale: none !important;
}

/* Logo nero su header scuro — inverti in bianco (solo img visibile, non doppio filtro) */
.whb-pcp_caseking_header .whb-general-header .site-logo img[src*="cropped-logo_pc_precision"],
.whb-pcp_caseking_header .whb-general-header .site-logo img[src*="nero_sfondo"] {
	filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
	.whb-pcp_caseking_header .whb-general-header .site-logo .wd-logo img,
	.whb-pcp_caseking_header .whb-general-header .site-logo .wd-main-logo img,
	.whb-pcp_caseking_header .whb-general-header .site-logo > a.wd-main-logo img,
	.whb-pcp_caseking_header:not(.whb-sticked):not(.whb-sticky-header) .whb-general-header .site-logo img,
	.whb-pcp_caseking_header .whb-general-header .site-logo img {
		max-height: var(--pcp-logo-max-h-mobile) !important;
		max-width: min(var(--pcp-logo-max-w-mobile), 45vw, 100%) !important;
		width: auto !important;
	}
}

/* Sticky scroll — quasi stessa taglia del logo principale (leggibile) */
.whb-pcp_caseking_header.whb-sticky-header .site-logo .wd-sticky-logo img,
.whb-pcp_caseking_header.whb-sticked .site-logo .wd-sticky-logo img,
.whb-pcp_caseking_header.whb-sticked .whb-general-header .site-logo img,
.whb-pcp_caseking_header.whb-sticky-header .whb-general-header .site-logo img {
	max-height: var(--pcp-logo-max-h-desktop-sticky) !important;
	max-width: min(var(--pcp-logo-max-w-desktop), 85vw) !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	transform: none !important;
}

@media (max-width: 1024px) {
	.whb-pcp_caseking_header.whb-sticky-header .site-logo .wd-sticky-logo img,
	.whb-pcp_caseking_header.whb-sticked .site-logo .wd-sticky-logo img,
	.whb-pcp_caseking_header.whb-sticked .whb-general-header .site-logo img,
	.whb-pcp_caseking_header.whb-sticky-header .whb-general-header .site-logo img {
		max-height: var(--pcp-logo-max-h-mobile-sticky) !important;
		max-width: min(var(--pcp-logo-max-w-mobile), 45vw, 100%) !important;
		width: auto !important;
	}
}

@media (min-width: 1025px) {
	.whb-pcp_caseking_header .whb-general-header .whb-col-center .wd-header-main-nav {
		display: none !important;
	}

}

/* Caseking nav — riga categorie sotto logo+search (header-bottom, 44px) */
.whb-pcp_caseking_header .whb-header-bottom {
	display: block !important;
}

.whb-pcp_caseking_header .whb-header-bottom-inner,
.whb-pcp_caseking_header .whb-header-bottom > .container > .whb-flex-row {
	height: 44px !important;
	max-height: 44px !important;
	min-height: 0 !important;
}

.whb-header .whb-row-bottom-main .whb-flex-row,
.whb-header .whb-row-bottom-sticky .whb-flex-row,
.whb-pcp_caseking_header .whb-header-bottom .whb-flex-row {
	flex-wrap: nowrap;
}

.whb-header .wd-header-html:has(#pcpCasekingNav),
.whb-header .wd-header-text:has(#pcpCasekingNav) {
	flex: 1 1 100%;
	max-width: 100%;
}

.whb-header .whb-row-bottom-main .whb-col-left:has(#pcpCasekingNav),
.whb-header .whb-row-bottom-sticky .whb-col-left:has(#pcpCasekingNav),
.whb-pcp_caseking_header .whb-header-bottom .whb-column11:has(#pcpCasekingNav),
.whb-pcp_caseking_header .whb-header-bottom .whb-column12:has(#pcpCasekingNav) {
	flex: 1 1 100%;
	max-width: 100%;
	justify-content: center;
}

#pcpCasekingNav .pcp-ck-nav__bar {
	min-height: 44px;
}

@media (max-width: 1024px) {
	.whb-pcp_caseking_header .whb-header-bottom {
		display: none !important;
	}
}

/* Logo: regole sopra (.whb-pcp_caseking_header) */

/* Prezzi — griglia prodotti e scheda */
.wd-product .price,
.product-grid-item .price,
.woocommerce-Price-amount,
span.price {
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wd-product .price .woocommerce-Price-amount,
.product-grid-item .price .woocommerce-Price-amount {
	color: #111;
	font-size: 1.08em;
}

/* === Contrast fix — superfici chiare vs tema Woodmart global-color-scheme-light === */

/* Mega menu header: pannelli bianchi, testo sempre scuro */
#pcpMegaMenu2026 {
	--pcp-m-text: #0f172a !important;
	--pcp-m-muted: #64748b !important;
	--wd-navigation-color: 51, 51, 51 !important;
}

#pcpMegaMenu2026 .pcp-mega-main,
#pcpMegaMenu2026 .pcp-mega-aside,
#pcpMegaMenu2026 .pcp-mega-nav,
#pcpMegaMenu2026 .pcp-mega {
	color: #0f172a !important;
}

#pcpMegaMenu2026 .pcp-mega-col h4,
#pcpMegaMenu2026 .pcp-mega-foot a,
#pcpMegaMenu2026 .pcp-mega-prod strong {
	color: #0f172a !important;
}

#pcpMegaMenu2026 .pcp-mega-col a,
#pcpMegaMenu2026 .pcp-mega-nav label {
	color: #64748b !important;
}

#pcpMegaMenu2026 .pcp-mega-col a:hover,
#pcpMegaMenu2026 .pcp-mega-col a.is-hot,
#pcpMegaMenu2026 .pcp-mega-nav label:hover,
#pcpMegaMenu2026 #pcp-m1:checked ~ .pcp-mega-nav label[for="pcp-m1"],
#pcpMegaMenu2026 #pcp-m2:checked ~ .pcp-mega-nav label[for="pcp-m2"],
#pcpMegaMenu2026 #pcp-m3:checked ~ .pcp-mega-nav label[for="pcp-m3"],
#pcpMegaMenu2026 #pcp-m4:checked ~ .pcp-mega-nav label[for="pcp-m4"],
#pcpMegaMenu2026 #pcp-m5:checked ~ .pcp-mega-nav label[for="pcp-m5"] {
	color: #0f172a !important;
}

/* Card prodotto bianche — shop, categorie, Elementor (non homepage scura) */
:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) .wd-product,
body:not(.pcp-homepage-elementor-layout) .elementor-widget-wd_products .wd-product,
body:not(.pcp-homepage-elementor-layout) .elementor-widget-wd_products_tabs .wd-product {
	--wd-text-color: #666;
	--wd-title-color: #242424;
	--wd-entities-title-color: #333;
	--wd-entities-title-color-hover: rgba(51, 51, 51, 0.65);
	--wd-link-color: #333;
	color: #666;
}

:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) .wd-product .wd-entities-title a,
body:not(.pcp-homepage-elementor-layout) .elementor-widget-wd_products .wd-entities-title a,
body:not(.pcp-homepage-elementor-layout) .elementor-widget-wd_products_tabs .wd-entities-title a {
	color: #333 !important;
}

body:not(.pcp-homepage-elementor-layout) .wd-product :is(.wd-compare-btn, .wd-wishlist-btn a, .open-quick-view) {
	color: #333 !important;
}

body:not(.pcp-homepage-elementor-layout) .wd-product :is(.wd-compare-btn, .wd-wishlist-btn a, .open-quick-view) .wd-action-icon::before {
	color: #333 !important;
}

/* Categorie prodotto su superfici chiare */
body:not(.pcp-homepage-elementor-layout) .elementor-widget-wd_product_categories .wd-cat {
	--wd-entities-title-color: #333;
	--wd-entities-title-color-hover: #111;
}

body:not(.pcp-homepage-elementor-layout) .elementor-widget-wd_product_categories .wd-entities-title,
body:not(.pcp-homepage-elementor-layout) .elementor-widget-wd_product_categories .wd-cat-count {
	color: #333 !important;
}

body:not(.pcp-homepage-elementor-layout) .elementor-widget-wd_product_categories .wd-entities-title,
body.pcp-homepage-elementor-layout .elementor-widget-wd_product_categories .wd-entities-title,
body.pcp-homepage-elementor-layout .wd-nav-tabs.products-tabs-title > li > a {
	text-transform: uppercase;
}

body:not(.pcp-homepage-elementor-layout) .elementor-widget-wd_product_categories .wd-cat-count {
	color: #666 !important;
}

.wd-product .price del .woocommerce-Price-amount,
.product-grid-item .price del .woocommerce-Price-amount {
	color: #888;
	font-weight: 500;
	font-size: 0.92em;
}

.wd-product .price ins,
.product-grid-item .price ins {
	text-decoration: none;
}

.wd-product .price ins .woocommerce-Price-amount,
.product-grid-item .price ins .woocommerce-Price-amount {
	color: var(--pcp-accent);
}

.single-product-page .summary .price .woocommerce-Price-amount {
	font-size: 1.65rem;
	color: #111;
}

.single-product-page .summary .price ins .woocommerce-Price-amount {
	color: var(--pcp-accent);
}

/* Pulsante acquisto — verde solo scheda prodotto (NON icona griglia) */
.single_add_to_cart_button,
.wd-buy-now-btn,
.wd-product .wd-add-btn.wd-add-btn-replace > a,
.wd-product .wd-add-btn:not(.wd-loop-prod-btn):not(.wd-action-btn) .button {
	background-color: var(--pcp-accent) !important;
	border-color: var(--pcp-accent) !important;
}

.single_add_to_cart_button:hover,
.wd-product .wd-add-btn.wd-add-btn-replace > a:hover,
.wd-product .wd-add-btn:not(.wd-loop-prod-btn):not(.wd-action-btn) .button:hover {
	filter: brightness(1.08);
}

/* Carrello icona — griglia prodotti / loop / Elementor (blu + icona bianca) */
.wd-loop-prod-btn.wd-add-btn > a.add-to-cart-loop,
.wd-loop-prod-btn.wd-add-btn.wd-action-btn > a,
.wd-products .wd-product .wd-add-btn.wd-action-btn.wd-style-icon > a,
.wd-product .wd-add-btn.wd-action-btn.wd-style-icon > a,
.elementor-widget-wd_products .wd-add-btn.wd-action-btn > a,
.elementor-widget-wd_product_categories .wd-add-btn.wd-action-btn > a {
	background-color: var(--pcp-cart-blue) !important;
	border: 1px solid var(--pcp-cart-blue) !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 10px color-mix(in srgb, var(--pcp-cart-blue) 35%, transparent) !important;
	width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	filter: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.wd-loop-prod-btn.wd-add-btn > a.add-to-cart-loop .wd-action-icon::before,
.wd-loop-prod-btn.wd-add-btn.wd-action-btn > a .wd-action-icon::before,
.wd-products .wd-product .wd-add-btn.wd-action-btn .wd-action-icon::before,
.wd-product .wd-add-btn.wd-action-btn .wd-action-icon::before,
.elementor-widget-wd_products .wd-add-btn .wd-action-icon::before {
	color: #ffffff !important;
	font-size: 18px !important;
}

.wd-loop-prod-btn.wd-add-btn > a.add-to-cart-loop:hover,
.wd-loop-prod-btn.wd-add-btn.wd-action-btn > a:hover,
.wd-products .wd-product .wd-add-btn.wd-action-btn.wd-style-icon > a:hover,
.wd-product .wd-add-btn.wd-action-btn.wd-style-icon > a:hover,
.elementor-widget-wd_products .wd-add-btn.wd-action-btn > a:hover {
	background-color: color-mix(in srgb, var(--pcp-cart-blue) 88%, #000) !important;
	border-color: color-mix(in srgb, var(--pcp-cart-blue) 88%, #000) !important;
	transform: translateY(-1px);
	filter: none !important;
}

.wd-loop-prod-btn.wd-add-btn > a.added,
.wd-products .wd-product .wd-add-btn.wd-action-btn > a.added,
.wd-product .wd-add-btn.wd-action-btn > a.added {
	background-color: var(--pcp-cart-blue) !important;
	border-color: var(--pcp-accent-sale, #dc2626) !important;
}

.wd-loop-prod-btn.wd-add-btn .wd-check-icon,
.wd-products .wd-product .wd-add-btn .wd-check-icon {
	background: var(--pcp-accent-sale, #dc2626) !important;
}

/* Badge sconto — orange promo */
.onsale,
.product-label.onsale,
.wd-product-label.onsale,
.wd .product-label.onsale,
.wd-products .product-label.onsale,
.woocommerce span.onsale,
body.wcz-edit-sale .onsale,
body.wcz-edit-sale .product-label.onsale {
	background-color: var(--pcp-accent-sale, #dc2626) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* Homepage — sezione In Offerta */
.home .elementor-element-c1cc5f1 .info-box-title,
.home [data-id="4b02987"] .info-box-title {
	color: #111111 !important;
	font-weight: 700;
}

.home [data-id="4b02987"] .title-subtitle {
	color: #666666 !important;
}

.home [data-id="4b02987"] .woodmart-title-container.title {
	color: var(--pcp-accent) !important;
	font-weight: 700;
}

/* AJAX Products tabs (Elementor) — tab rettangolari (sovrascrive border-radius 20px di Elementor) */
body .elementor-widget-wd_products_tabs .wd-products-tabs .wd-nav-tabs.products-tabs-title {
	--nav-radius: 0 !important;
}
body .elementor-widget-wd_products_tabs .wd-products-tabs .wd-nav-tabs.products-tabs-title > li > a {
	border-radius: 0 !important;
}

/* Card prodotto — bordo hover più pulito */
.wd-product,
.product-grid-item {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wd-product:hover,
.product-grid-item:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Nascondi link vuoti / placeholder header */
.whb-header .menu-item a[href="#"]:not(.wpml-ls-link),
.whb-top-bar .sub-menu .menu-item a[href="#"],
.whb-top-bar .sub-menu .menu-item a[href=""] {
	display: none !important;
}

/* === Pagina Shop === */
.post-type-archive-product .wd-page-title,
.woocommerce-shop .wd-page-title {
	background: #111;
	color: #fff;
	padding: 2.5rem 0;
	margin-bottom: 2rem;
}

.post-type-archive-product .wd-page-title .entry-title,
.woocommerce-shop .wd-page-title .entry-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.woocommerce-shop .products,
.post-type-archive-product ul.products {
	gap: 24px;
}

.woocommerce-shop .wd-product,
.post-type-archive-product .wd-product {
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.woocommerce-shop .wd-product .product-image-link img,
.post-type-archive-product .wd-product .product-image-link img {
	padding: 12px;
	object-fit: contain;
	background: #fafafa;
}

.woocommerce-shop .wd-product .wd-entities-title a,
.post-type-archive-product .wd-product .wd-entities-title a {
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
}

.woocommerce-shop .woocommerce-result-count,
.post-type-archive-product .woocommerce-result-count {
	color: #666;
	font-size: 0.9rem;
}

.woocommerce-shop .woocommerce-ordering select,
.post-type-archive-product .woocommerce-ordering select {
	border-radius: 6px;
	border-color: #ddd;
}

/* Shop sidebar — sfondo chiaro, testo scuro (body global-color-scheme-light = bianco) */
:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) :is(
	.wd-col-offcanvas-md-sm,
	.wd-sidebar,
	.sidebar-container,
	.wd-shop-sidebar,
	.elementor-widget-wd_sidebar
) {
	--wd-text-color: #666;
	--wd-title-color: #242424;
	--wd-link-color: #333;
	--wd-entities-title-color: #333;
	color: #666;
}

:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) :is(
	.wd-widget,
	.sidebar-widget,
	.wd-filter,
	.wd-pf-checkboxes,
	.wd-pf-brands,
	.wd-pf-list,
	.woodmart-woocommerce-layered-nav
) {
	color: #666 !important;
}

:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) :is(
	.wd-widget,
	.sidebar-widget,
	.wd-filter,
	.wd-pf-checkboxes,
	.wd-pf-brands,
	.wd-pf-list,
	.woodmart-woocommerce-layered-nav
) .widget-title {
	color: #242424 !important;
}

:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) :is(
	.wd-widget,
	.sidebar-widget,
	.wd-filter,
	.wd-pf-checkboxes,
	.wd-pf-brands,
	.wd-pf-list,
	.woodmart-woocommerce-layered-nav
) :is(
	a,
	label,
	span,
	li,
	.layered-nav-link,
	.wd-filter-lable,
	.wd-swatch-text,
	.wd-swatch
) {
	color: #333 !important;
}

:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) :is(
	.wd-widget,
	.sidebar-widget,
	.wd-filter,
	.wd-pf-checkboxes,
	.wd-pf-brands,
	.wd-pf-list,
	.woodmart-woocommerce-layered-nav
) .count {
	color: #666 !important;
}

:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) :is(
	.wd-widget,
	.sidebar-widget
) :is(input, select, .price_label, .price_slider_amount) {
	color: #333 !important;
}

:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) .wd-filter-list .wc-layered-nav-term.wd-active a,
:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat) .product-categories li.wd-active > a {
	color: var(--pcp-accent) !important;
}

/* Top bar — link traccia spedizione */
.whb-top-bar .pcp-topbar-track {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: 0.82rem;
	line-height: 1.2;
	font-weight: 500;
	text-decoration: none;
	color: inherit;
	opacity: 0.92;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.whb-top-bar .pcp-topbar-track-icon {
	width: 0.95em;
	height: 0.95em;
	flex-shrink: 0;
}

.whb-color-light.whb-top-bar .pcp-topbar-track {
	color: #fff;
}

.whb-top-bar .pcp-topbar-track:hover {
	opacity: 1;
	text-decoration: underline;
}

.whb-top-bar .wd-header-text.pcp-topbar-track-whb {
	display: block;
}

/* Top bar: una sola riga pulita */
.whb-top-bar .wd-nav-secondary {
	flex-wrap: nowrap;
}

.whb-top-bar .wd-nav-secondary > li {
	white-space: nowrap;
}

/* Top bar — nascondi menu demo lingue/paese (href #) e divisori | vuoti */
.whb-top-bar .wd-header-divider {
	display: none !important;
}

.whb-top-bar #menu-top-bar-left {
	display: none !important;
}

.whb-top-bar .whb-col-left .wd-header-secondary-nav {
	display: none !important;
}

/* Bandierine lingue — top bar */
.whb-top-bar .pcp-lang-switcher {
	display: flex;
	align-items: center;
	height: 100%;
	margin-right: 0.75rem;
}

.pcp-lang-switcher__list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pcp-lang-switcher__item a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	font-size: 0.82rem;
	line-height: 1;
	opacity: 0.72;
	transition: opacity 0.15s ease, background 0.15s ease;
}

.pcp-lang-switcher__item a:hover,
.pcp-lang-switcher__item.is-current a {
	opacity: 1;
	background: rgba(0, 0, 0, 0.06);
}

.pcp-lang-switcher__flag {
	display: block;
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.pcp-lang-switcher__name {
	display: none;
}

@media (min-width: 992px) {
	.pcp-lang-switcher__name {
		display: inline;
	}
}

.whb-color-light .pcp-lang-switcher__item a:hover,
.whb-color-light .pcp-lang-switcher__item.is-current a {
	background: rgba(255, 255, 255, 0.12);
}

.whb-top-bar .wpml-ls,
.whb-header .wpml-ls-statics,
.whb-header .wpml-ls-item {
	display: inline-flex !important;
}

/* Slider marchi — scorrimento continuo (stesso aspetto, si muove) */
.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-nav-arrows,
.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-nav-pagin-wrap {
	display: none !important;
}

.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-carousel-inner {
	overflow: hidden;
}

.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-carousel {
	overflow: hidden;
}

.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-carousel-wrap {
	display: flex !important;
	flex-wrap: nowrap !important;
	width: max-content !important;
	transition: none !important;
	will-change: transform;
}

.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-carousel-item {
	flex-shrink: 0;
}

@media (max-width: 767px) {
	.elementor-widget-wd_products_brands.pcp-brands-marquee-active {
		overflow: hidden;
		max-width: 100%;
	}

	.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-brands.wd-style-bordered.wd-layout-carousel .wd-carousel {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-carousel-inner,
	.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-carousel {
		overflow: hidden;
		max-width: 100%;
	}

	.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-carousel-wrap {
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		touch-action: pan-y;
	}

	.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-brand-item {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 64px;
		padding: 8px 10px;
	}

	.elementor-widget-wd_products_brands.pcp-brands-marquee-active .wd-brand-item img {
		max-height: 36px;
		width: auto;
		max-width: 90%;
		object-fit: contain;
	}
}

@keyframes pcp-brands-marquee {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

/* WPML: mostra switcher ufficiale se presente nell'header */
.whb-top-bar .wpml-ls,
.whb-header .wpml-ls-statics,
.whb-header .wd-header-nav .wpml-ls-item {
	display: inline-flex !important;
}

/* === Griglia categorie homepage — tutti i blocchi uguali === */
.home .wd-carousel.wd-carousel-with-shadow .wd-carousel-item,
.home .wd-cat.wd-cat {
	height: 100%;
}

.home .category-grid-item {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 220px;
}

.home .category-grid-item .wd-cat-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
}

.home .category-grid-item .wd-cat-thumb,
.home .category-grid-item .category-image-wrapp {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f3f3f3;
}

.home .category-grid-item .wd-cat-image,
.home .category-grid-item .category-image {
	display: block;
	height: 100%;
}

.home .category-grid-item .wd-cat-image img,
.home .category-grid-item .category-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	aspect-ratio: 1 / 1;
}

.home .category-grid-item .wd-cat-content {
	flex: 0 0 auto;
	padding: 12px 14px;
}

.home .category-grid-item .wd-entities-title {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
}

/* Demo "Clocks" — stesso stile placeholder degli altri */
.home .category-grid-item a[href*="/clocks/"] .wd-cat-image img {
	object-fit: cover;
	filter: grayscale(0.15);
}

/* === Footer PC Precision === */
.wd-footer.pcp-footer-wrap {
	background: #0a0a0a;
	color: #e5e7eb;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wd-footer.pcp-footer-wrap .main-footer,
.wd-footer.pcp-footer-wrap .footer-sidebar {
	display: none !important;
}

.pcp-footer {
	font-size: 0.92rem;
	line-height: 1.5;
}

.pcp-footer__trust {
	--pcp-footer-trust-accent: #1e40af;
	--pcp-footer-trust-accent-soft: rgba(30, 64, 175, 0.14);
	--pcp-footer-trust-accent-border: rgba(30, 64, 175, 0.28);
	--pcp-footer-trust-icon: #93c5fd;
	background: linear-gradient(180deg, #0c0c0c 0%, #111111 100%);
	border-top: 1px solid var(--pcp-footer-trust-accent-border);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding: 0;
}

.pcp-footer__trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
}

.pcp-footer__trust-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 88px;
	padding: 1.125rem 1.25rem;
	text-align: left;
}

.pcp-footer__trust-item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 1px;
	height: 52px;
	background: rgba(255, 255, 255, 0.08);
}

.pcp-footer__trust-icon {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border-radius: 11px;
	background: var(--pcp-footer-trust-accent-soft);
	border: 1px solid var(--pcp-footer-trust-accent-border);
	line-height: 0;
	overflow: hidden;
	color: var(--pcp-footer-trust-icon);
}

.pcp-footer__trust-icon svg,
.pcp-footer__trust-icon .pcp-trust-icon-svg {
	display: block;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	fill: none !important;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.pcp-footer__trust-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.15rem;
	min-width: 0;
	line-height: 1.25;
}

.pcp-footer__trust-title {
	display: block;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pcp-footer__trust-subtitle {
	display: block;
	margin: 0;
	padding: 0;
	color: #9ca3af;
	font-size: 0.78rem;
	line-height: 1.4;
}

.pcp-footer__main {
	padding: 2.5rem 0 2rem;
}

.pcp-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, 1fr);
	gap: 2rem 1.5rem;
	align-items: start;
}

.pcp-footer__logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 1rem;
	padding: 0;
	background: transparent;
	border-radius: 0;
	line-height: 0;
}

.pcp-footer__logo {
	display: block;
	width: auto;
	max-width: min(240px, 72vw);
	max-height: 52px;
	height: auto;
	object-fit: contain;
	background: transparent;
	border-radius: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Stesso wordmark header — logo nero invertito su footer scuro */
.pcp-footer__logo[src*="cropped-logo_pc_precision"],
.pcp-footer__logo[src*="nero_sfondo"] {
	filter: brightness(0) invert(1);
}

.pcp-footer__tagline {
	color: #9ca3af;
	font-size: 0.88rem;
	line-height: 1.55;
	margin: 0 0 1rem;
	max-width: 280px;
}

/* Nasconde eventuali residui WhatsApp (WoodMart, Elementor DB, plugin). */
a[href*="wa.me"],
a[href*="api.whatsapp"],
.pcp-footer__whatsapp,
.pcp-footer-whatsapp,
.fab.fa-whatsapp,
i.fa-whatsapp,
.wd-toolbar-whatsapp,
.wd-sticky-btn-whatsapp {
	display: none !important;
}

.pcp-footer__col-title {
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 0.85rem;
}

.pcp-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pcp-footer__links li {
	margin: 0 0 0.45rem;
}

.pcp-footer__links a {
	color: #9ca3af;
	text-decoration: none;
	transition: color 0.2s ease;
}

.pcp-footer__links a:hover {
	color: #fff;
}

.pcp-footer__payments {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 1.25rem 0 1.35rem;
	background: #111;
}

.pcp-footer__payments-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem 1.5rem;
	flex-wrap: wrap;
}

.pcp-footer__payments-banner {
	display: block;
	width: auto;
	height: 28px;
	max-width: min(100%, 340px);
	object-fit: contain;
	object-position: left center;
	opacity: 1;
	filter: none;
	flex: 0 1 auto;
}

.pcp-footer__social {
	margin: 0;
	margin-left: auto;
	flex: 0 0 auto;
}

.pcp-footer__social-list {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pcp-footer__social-item {
	margin: 0;
	padding: 0;
}

.pcp-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #f3f4f6;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pcp-footer__social-link:hover,
.pcp-footer__social-link:focus-visible {
	color: #fff;
	background: #1e40af;
	border-color: #1e40af;
	transform: translateY(-1px);
	outline: none;
}

.pcp-footer__social-icon {
	display: block;
	width: 16px;
	height: 16px;
}

.pcp-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1rem 0 1.25rem;
	background: #080808;
}

.pcp-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.pcp-footer__copy {
	margin: 0;
	color: #6b7280;
	font-size: 0.8rem;
}

.pcp-footer__legal {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
}

.pcp-footer__legal-pair {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.65rem;
}

.pcp-footer__legal-sep {
	color: #4b5563;
	font-size: 0.8rem;
	line-height: 1;
	user-select: none;
}

.pcp-footer__legal a {
	color: #9ca3af;
	font-size: 0.8rem;
	text-decoration: none;
}

.pcp-footer__legal a:hover {
	color: #fff;
}

@media (min-width: 768px) {
	.pcp-footer__payments-banner {
		height: 32px;
		max-width: 380px;
	}

	.pcp-footer__social-link {
		width: 38px;
		height: 38px;
	}

	.pcp-footer__social-icon {
		width: 17px;
		height: 17px;
	}
}

@media (max-width: 1024px) {
	.pcp-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.pcp-footer__brand {
		grid-column: 1 / -1;
	}

	.pcp-footer__trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pcp-footer__trust-item:nth-child(2)::after {
		display: none;
	}

	.pcp-footer__trust-item:nth-child(odd)::after {
		display: block;
	}
}

@media (max-width: 575px) {
	.pcp-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.pcp-footer__trust-grid {
		grid-template-columns: 1fr;
	}

	.pcp-footer__trust-item {
		justify-content: flex-start;
		align-items: center;
		gap: 0.875rem;
		min-height: 76px;
		padding: 1rem 0.25rem;
	}

	.pcp-footer__trust-item::after {
		display: none !important;
	}

	.pcp-footer__trust-item:not(:last-child) {
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.pcp-footer__bottom-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.pcp-footer__legal {
		align-items: center;
		width: 100%;
	}

	.pcp-footer__legal-pair {
		justify-content: center;
	}

	.pcp-footer__payments-inner {
		justify-content: center;
		flex-direction: column;
		gap: 1rem;
	}

	.pcp-footer__payments-banner {
		height: 26px;
		max-width: 100%;
		object-position: center;
	}

	.pcp-footer__social {
		margin-left: 0;
		width: 100%;
	}

	.pcp-footer__social-list {
		justify-content: center;
	}

	.pcp-footer__logo {
		max-width: min(200px, 78vw);
		max-height: 44px;
	}

	.pcp-footer__main {
		padding: 2rem 0 1.5rem;
	}

	.pcp-footer__trust .container {
		padding-inline: 1rem;
	}
}

/* === Homepage hero slider — immagini intere (no crop) — disattivato con layout NEXUS === */
body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slide-bg {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slide-bg img {
	object-fit: contain !important;
	object-position: center center !important;
}

body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slide-inner .elementor-widget-image img {
	display: block;
	width: auto;
	max-width: min(760px, 100%);
	height: auto;
	margin-inline: auto;
	object-fit: contain;
}

@media (max-width: 767px) {
	body.home:not(.pcp-homepage-active) #main-content.content-layout-wrapper.container {
		padding-top: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.home:not(.pcp-homepage-active) .elementor-element:has(.elementor-widget-wd_slider),
	body.home:not(.pcp-homepage-active) .elementor-element:has(.elementor-widget-wd_slider) > .e-con-inner,
	body.home:not(.pcp-homepage-active) .elementor:has(.elementor-widget-wd_slider) {
		--padding-left: 0px !important;
		--padding-right: 0px !important;
		--padding-top: 0px !important;
		padding: 0 !important;
		margin-top: 0 !important;
		gap: 0 !important;
		overflow: visible !important;
	}

	body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider,
	body.home:not(.pcp-homepage-active) #slider-1188.elementor-widget-wd_slider,
	body.home:not(.pcp-homepage-active) #slider-128.elementor-widget-wd_slider {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 12px !important;
		margin-bottom: 12px !important;
	}

	body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slider,
	body.home:not(.pcp-homepage-active) #slider-1188,
	body.home:not(.pcp-homepage-active) #slider-128 {
		margin: 0 !important;
	}

	body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slider.wd-section-container > .wd-carousel-inner > .wd-carousel {
		border-radius: 0;
	}

	/* Immagine intera: niente box vuoto sopra/sotto */
	body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slide,
	body.home:not(.pcp-homepage-active) #slider-1188 .wd-slide,
	body.home:not(.pcp-homepage-active) #slider-128 .wd-slide {
		min-height: 0 !important;
		height: auto !important;
		width: 100% !important;
		flex-direction: column;
		align-items: stretch;
	}

	body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slide-container,
	body.home:not(.pcp-homepage-active) #slider-1188 .wd-slide-container,
	body.home:not(.pcp-homepage-active) #slider-128 .wd-slide-container {
		display: none !important;
	}

	body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slide-bg,
	body.home:not(.pcp-homepage-active) #slider-1188 .wd-slide-bg,
	body.home:not(.pcp-homepage-active) #slider-128 .wd-slide-bg {
		position: relative !important;
		inset: auto !important;
		flex: 1 1 auto;
		align-self: stretch;
		width: 100% !important;
		max-width: 100%;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		line-height: 0;
	}

	body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slide-bg.wd-fill,
	body.home:not(.pcp-homepage-active) #slider-1188 .wd-slide-bg.wd-fill,
	body.home:not(.pcp-homepage-active) #slider-128 .wd-slide-bg.wd-fill {
		position: relative !important;
		inset: auto !important;
	}

	body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slide-bg img,
	body.home:not(.pcp-homepage-active) .elementor-widget-wd_slider .wd-slide-bg :is(img, picture),
	body.home:not(.pcp-homepage-active) #slider-1188 .wd-slide-bg img,
	body.home:not(.pcp-homepage-active) #slider-1188 .wd-slide-bg :is(img, picture),
	body.home:not(.pcp-homepage-active) #slider-128 .wd-slide-bg img,
	body.home:not(.pcp-homepage-active) #slider-128 .wd-slide-bg :is(img, picture) {
		display: block;
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: none !important;
		margin: 0 !important;
		vertical-align: top;
		object-fit: contain !important;
		object-position: center center !important;
	}

	.home .elementor-widget-wd_slider .wd-slider-pagin,
	#slider-1188 .wd-slider-pagin {
		bottom: 6px;
		z-index: 20;
		pointer-events: auto;
	}

	.home .elementor-widget-wd_slider .wd-nav-arrows {
		z-index: 30;
		pointer-events: auto;
	}

	.home .elementor-widget-wd_slider .wd-btn-arrow {
		pointer-events: auto;
	}
}

/* Homepage hero slider — nasconde solo testo paginazione, frecce e click restano attivi */
.home .elementor-widget-wd_slider .wd-slider-pagin .wd-nav-pagin li span,
#slider-1188 .wd-slider-pagin .wd-nav-pagin li span {
	display: none !important;
}

.home .elementor-widget-wd_slider .wd-nav-arrows,
#slider-1188 .wd-nav-arrows {
	z-index: 30;
	pointer-events: auto;
}

.home .elementor-widget-wd_slider .wd-btn-arrow,
#slider-1188 .wd-btn-arrow {
	pointer-events: auto;
	cursor: pointer;
}

/* Frecce dentro lo slider: Woodmart le mette fuori (wd-pos-sep) e overflow:hidden le rende non cliccabili */
.home .elementor-widget-wd_slider .wd-carousel-inner,
#slider-1188 .wd-carousel-inner {
	position: relative;
}

.home .elementor-widget-wd_slider .wd-nav-arrows,
#slider-1188 .wd-nav-arrows {
	position: absolute;
	inset: 0;
	z-index: 30;
	pointer-events: none;
}

.home .elementor-widget-wd_slider .wd-slider-arrows.wd-pos-sep .wd-prev,
#slider-1188 .wd-slider-arrows.wd-pos-sep .wd-prev {
	inset-inline-end: auto !important;
	inset-inline-start: max(8px, env(safe-area-inset-left, 0px)) !important;
}

.home .elementor-widget-wd_slider .wd-slider-arrows.wd-pos-sep .wd-next,
#slider-1188 .wd-slider-arrows.wd-pos-sep .wd-next {
	inset-inline-start: auto !important;
	inset-inline-end: max(8px, env(safe-area-inset-right, 0px)) !important;
}

/* autoHeight: transizione solo su transform, altrimenti Swiper resta bloccato in animating */
.home .elementor-widget-wd_slider .wd-carousel.wd-autoheight > .wd-carousel-wrap,
#slider-1188 .wd-carousel.wd-autoheight > .wd-carousel-wrap {
	transition-property: transform !important;
}

/* === Mobile homepage + footer fix === */
.home .wd-prefooter,
.wd-footer.pcp-footer-wrap + .wd-copyrights,
.wd-footer.pcp-footer-wrap ~ .wd-copyrights {
	display: none !important;
}

@media (max-width: 767px) {
	.website-wrapper,
	.wd-page-content,
	.home .elementor,
	.home .wd-content-layout {
		overflow-x: clip;
		max-width: 100%;
	}

	.home .e-con,
	.home .e-con-inner,
	.home .elementor-section {
		max-width: 100% !important;
	}

	.home .wd-carousel-container,
	.home .wd-slider,
	.home .wd-carousel {
		max-width: 100%;
		overflow: hidden;
	}

	/* Hero slider: altezza dinamica dall'immagine, non fissa */
	.home .elementor-widget-wd_slider .wd-slider,
	.home .elementor-widget-wd_slider .wd-carousel,
	#slider-1188.wd-slider,
	#slider-1188 .wd-carousel {
		overflow: hidden;
	}

	.home .wd-slide-container,
	.home .wd-slide {
		max-width: 100%;
	}

	.home .elementor-widget-wd_infobox_carousel .wd-carousel-wrap,
	.home .elementor-widget-wd_product_category .wd-carousel-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.wd-footer.pcp-footer-wrap {
		margin-bottom: 0;
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	body.sticky-toolbar-on .wd-footer.pcp-footer-wrap {
		padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
	}

	.pcp-footer .container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.wd-toolbar {
		z-index: 390;
	}
}

/* Titoli hero su sfondo scuro — vince su pcp-light-pages #1a1a1a */
.elementor-widget-html :is(
	.pcp-acquisto__hero,
	.pcp-guida__hero,
	.pcp-garanzia__hero,
	.pcp-special__hero,
	.pcp-email__hero,
	.pcp-build__hero
) :is(h1, h2, h3, [class*="__title"]),
.elementor-widget-html :is(
	.pcp-acquisto__hero,
	.pcp-guida__hero,
	.pcp-garanzia__hero,
	.pcp-special__hero,
	.pcp-email__hero,
	.pcp-build__hero
) a[class*="__btn--ghost"] {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* Pagina Servizi — hero chiaro: titolo verde tema */
.elementor-widget-html .pcp-servizi__hero h1.pcp-servizi__title {
	color: var(--pcp-accent, var(--pcp-primary, #1e40af)) !important;
	-webkit-text-fill-color: var(--pcp-accent, var(--pcp-primary, #1e40af)) !important;
}

/*
 * Cart / checkout totals — solo metodo + prezzo spedizione.
 * Nasconde "Spedizione a Roma." (destinazione default WC, non limitata a Roma).
 */
.woocommerce-cart .woocommerce-shipping-destination,
.woocommerce-checkout .woocommerce-shipping-destination,
.cart_totals .woocommerce-shipping-destination,
.wd-cart-totals .woocommerce-shipping-destination {
	display: none !important;
}

