/* Attrezzature Filtri – stile widget sidebar/mobile */
.acf-filtri{
	--acf-text:#1f1f1f;
	--acf-muted:#6b6b6b;
	--acf-line:#e3e3e3;
	--acf-track:#5a5a5a;
	--acf-accent:#2563eb;
	color:var(--acf-text);
	font-size:15px;
	line-height:1.45;
}
.acf-filtri *{box-sizing:border-box;}

.acf-filtri__heading{
	font-size:20px;
	font-weight:700;
	margin:0 0 12px;
}
.acf-filtri__section{
	padding:0 0 10px;
	margin:0 0 10px;
}
.acf-filtri__section + .acf-filtri__section{
	border-top:1px solid var(--acf-line);
	padding-top:10px;
}
.acf-filtri__title{
	font-size:16px;
	font-weight:700;
	margin:0 0 8px;
}

/* ---- Prezzo: slider doppia maniglia ---- */
.acf-price-slider{
	position:relative;
	height:22px;
	margin:4px 4px 8px;
}
.acf-price-slider__track{
	position:absolute;
	top:50%;
	left:0;right:0;
	height:4px;
	transform:translateY(-50%);
	background:#cfcfcf;
	border-radius:4px;
}
.acf-price-slider__fill{
	position:absolute;
	top:0;bottom:0;
	background:var(--acf-track);
	border-radius:4px;
}
.acf-price-slider__input{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:24px;
	margin:0;
	background:none;
	pointer-events:none;
	-webkit-appearance:none;
	appearance:none;
}
.acf-price-slider__input::-webkit-slider-thumb{
	-webkit-appearance:none;
	appearance:none;
	width:18px;height:18px;
	border-radius:50%;
	background:#fff;
	border:2px solid var(--acf-track);
	box-shadow:0 1px 3px rgba(0,0,0,.25);
	cursor:pointer;
	pointer-events:auto;
}
.acf-price-slider__input::-moz-range-thumb{
	width:18px;height:18px;
	border-radius:50%;
	background:#fff;
	border:2px solid var(--acf-track);
	box-shadow:0 1px 3px rgba(0,0,0,.25);
	cursor:pointer;
	pointer-events:auto;
}
.acf-price-slider__input::-webkit-slider-runnable-track{background:none;}
.acf-price-slider__input::-moz-range-track{background:none;}

.acf-price-fields{
	display:flex;
	justify-content:space-between;
	gap:10px;
}
.acf-price-box{
	display:inline-flex;
	align-items:center;
	border:1px solid var(--acf-line);
	border-radius:6px;
	padding:6px 8px;
	color:var(--acf-muted);
	flex:1;
	max-width:48%;
}
.acf-price-input{
	border:0;
	outline:none;
	width:100%;
	background:transparent;
	color:var(--acf-text);
	font-size:15px;
	-moz-appearance:textfield;
}
.acf-price-input::-webkit-outer-spin-button,
.acf-price-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
/* Neutralizza lo stile che il tema (WoodMart) forza sugli input, che creava un riquadro interno sbilenco */
.acf-filtri .acf-price-input{
	border:0 !important;
	background:transparent !important;
	box-shadow:none !important;
	height:auto !important;
	min-height:0 !important;
	border-radius:0 !important;
	padding:0 !important;
	margin:0 !important;
	width:100% !important;
	line-height:1.4 !important;
	color:var(--acf-text) !important;
}
.acf-range-unit{color:var(--acf-muted);font-size:13px;margin-left:4px;flex:0 0 auto;}

/* ---- Liste checkbox ---- */
.acf-filtri__list{
	list-style:none;
	margin:0;
	padding:0;
}
.acf-filtri__list li{margin:0 0 6px;}
.acf-check{
	display:flex;
	align-items:center;
	gap:10px;
	cursor:pointer;
	-webkit-user-select:none;
	user-select:none;
}
.acf-check input{
	position:absolute;
	opacity:0;
	width:0;height:0;
}
.acf-check__box{
	flex:0 0 auto;
	width:18px;height:18px;
	border:1px solid #c4c4c4;
	border-radius:4px;
	background:#f1f1f1;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	transition:.15s;
}
.acf-check input:checked + .acf-check__box{
	background:var(--acf-accent);
	border-color:var(--acf-accent);
}
.acf-check input:checked + .acf-check__box::after{
	content:"";
	width:5px;height:9px;
	margin-top:-1px;
	border:solid #fff;
	border-width:0 2px 2px 0;
	transform:rotate(45deg);
}
.acf-check input:focus-visible + .acf-check__box{
	outline:2px solid var(--acf-accent);
	outline-offset:2px;
}
.acf-check__label{flex:1;}
.acf-check__count{color:var(--acf-muted);font-size:13px;}

/* swatch */
.acf-filtri__list--swatch{display:flex;flex-wrap:wrap;gap:8px;}
.acf-filtri__list--swatch li{margin:0;}
.acf-filtri__list--swatch .acf-check{
	border:1px solid var(--acf-line);
	border-radius:6px;
	padding:6px 10px;
}
.acf-filtri__list--swatch .acf-check__box{display:none;}
.acf-filtri__list--swatch .acf-check input:checked ~ .acf-check__label{
	font-weight:700;
}
.acf-filtri__list--swatch .acf-check:has(input:checked){
	border-color:var(--acf-accent);
	background:rgba(37,99,235,.06);
}

/* marca: tile cliccabili (logo o nome), senza checkbox */
.acf-filtri__list--brand{
	display:flex;
	flex-wrap:wrap;
	gap:10px;
}
.acf-filtri__list--brand li{margin:0;}
.acf-brand-tile{
	display:inline-flex;
	align-items:center;
	gap:8px;
	border:1px solid var(--acf-line);
	border-radius:8px;
	padding:6px 12px;
	background:#fff;
	cursor:pointer;
	transition:border-color .15s, background .15s, box-shadow .15s;
	-webkit-user-select:none;
	user-select:none;
}
.acf-brand-tile:hover{border-color:#bcbcbc;}
.acf-brand-tile input{position:absolute;opacity:0;width:0;height:0;}
.acf-brand-tile.is-checked,
.acf-brand-tile:has(input:checked){
	border-color:var(--acf-accent);
	background:rgba(37,99,235,.06);
	box-shadow:inset 0 0 0 1px var(--acf-accent);
}
.acf-brand-name{font-weight:600;}
/* logo forzato a dimensione contenuta: vince sulle regole img del tema (WoodMart) */
.acf-filtri .acf-brand-logo{
	height:30px !important;
	width:auto !important;
	max-width:140px !important;
	min-width:0 !important;
	object-fit:contain !important;
	display:block !important;
	margin:0 !important;
}

/* azioni */
.acf-filtri__actions{
	display:flex;
	align-items:center;
	gap:14px;
	margin-top:6px;
}
.acf-filtri__apply{
	background:var(--acf-accent);
	color:#fff;
	border:0;
	border-radius:6px;
	padding:10px 18px;
	font-weight:600;
	cursor:pointer;
}
.acf-filtri__apply:hover{filter:brightness(.95);}
.acf-filtri__reset{
	color:var(--acf-muted);
	text-decoration:underline;
	font-size:14px;
}

/* stato di caricamento durante l'applicazione automatica */
.acf-filtri.is-loading{
	opacity:.55;
	pointer-events:none;
	transition:opacity .15s;
}

/* Riduce lo spazio sopra/sotto del box che contiene il filtro.
   Il padding sta sul contenitore Elementro (30px) + sul widget WoodMart. Riduciamo entrambi. */
.elementor-widget-container:has(.acf-filtri){
	padding-top:8px !important;
	padding-bottom:8px !important;
}
.wd-widget:has(.acf-filtri),
.widget:has(.acf-filtri){
	padding-top:10px !important;
	padding-bottom:10px !important;
}
