/* Filtri catalogo Belloni: stesso aspetto dei filtri YITH configurati sul sito */
.gbf {
	--gbf-accento: rgb(108, 124, 107);
	--gbf-titoli: rgb(44, 44, 44);
	--gbf-sfondo: rgb(250, 250, 248);
	--gbf-testo: #434343;
	--gbf-bordo: #dcdcd4;
	color: var(--gbf-testo);
	font-size: 15px;
	line-height: 1.4;
}

/* ---- gruppi ---- */
.gbf-gruppo {
	margin: 0 0 28px;
}
.gbf-titolo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	color: var(--gbf-titoli);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
.gbf-titolo::-webkit-details-marker {
	display: none;
}
.gbf-titolo::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-right: 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s;
}
.gbf-gruppo[open] > .gbf-titolo::after {
	transform: rotate(-135deg) translateY(-2px);
}

/* ---- voci ---- */
.gbf-voci {
	margin: 0;
	padding: 0;
	list-style: none;
}
.gbf-voce {
	position: relative;
	margin: 0 0 8px;
}
.gbf-voce label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-right: 24px;
	cursor: pointer;
}
.gbf-voce input[type=checkbox] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.gbf-casella {
	flex: 0 0 auto;
	position: relative;
	width: 16px;
	height: 16px;
	border: 1px solid #c9c9c1;
	background: #fff;
	transition: background-color .15s, border-color .15s;
}
.gbf-voce input:checked + .gbf-casella {
	border-color: var(--gbf-accento);
	background: var(--gbf-accento);
}
.gbf-voce input:checked + .gbf-casella::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 4px;
	height: 9px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}
.gbf-voce input:focus-visible + .gbf-casella {
	outline: 2px solid var(--gbf-accento);
	outline-offset: 2px;
}
.gbf-voce label:hover .gbf-nome,
.gbf-voce.is-scelta > label .gbf-nome {
	color: var(--gbf-accento);
}
.gbf-voce input:disabled + .gbf-casella,
.gbf-voce input:disabled ~ .gbf-nome {
	opacity: .4;
}
.gbf-voce input:disabled ~ .gbf-nome {
	cursor: default;
}

/* sottocategorie */
.gbf-figli {
	display: none;
	margin: 8px 0 0 26px;
}
.gbf-voce.is-espansa > .gbf-figli {
	display: block;
}
.gbf-espandi {
	position: absolute;
	top: 0;
	right: 0;
	width: 24px;
	height: 20px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gbf-titoli);
	cursor: pointer;
}
.gbf-espandi::after {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	margin: 4px auto 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}
.gbf-voce.is-espansa > .gbf-espandi::after {
	transform: rotate(-135deg);
	margin-top: 8px;
}

.gbf-avviso {
	margin: 8px 0 0;
	color: #8a6d3b;
	font-size: 13px;
	font-style: italic;
}

/* ---- filtri attivi ---- */
.gbf-attivi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 24px;
}
.gbf-etichetta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border: 1px solid var(--gbf-accento);
	border-radius: 999px;
	background: #fff;
	color: var(--gbf-titoli);
	font-size: 13px;
	text-decoration: none;
}
.gbf-etichetta:hover {
	background: var(--gbf-accento);
	color: #fff;
	text-decoration: none;
}
.gbf-etichetta-titolo {
	opacity: .7;
}
.gbf-azzera {
	color: var(--gbf-accento);
	font-size: 13px;
	text-decoration: underline;
}

/* ---- prezzo ---- */
.gbf-slider {
	--gbf-da: 0%;
	--gbf-a: 100%;
	position: relative;
	height: 24px;
	margin: 6px 8px 4px;
}
.gbf-slider::before,
.gbf-slider::after {
	content: "";
	position: absolute;
	top: 11px;
	height: 3px;
}
.gbf-slider::before {
	left: 0;
	right: 0;
	background: #dcdcd4;
}
.gbf-slider::after {
	left: var(--gbf-da);
	right: calc(100% - var(--gbf-a));
	background: var(--gbf-accento);
}
.gbf-slider input[type=range] {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.gbf-slider input[type=range]::-webkit-slider-runnable-track {
	background: none;
}
.gbf-slider input[type=range]::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--gbf-accento);
	box-shadow: 0 0 0 1px var(--gbf-accento);
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
}
.gbf-slider input[type=range]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--gbf-accento);
	cursor: pointer;
	pointer-events: auto;
}
.gbf-prezzo-valori {
	display: flex;
	justify-content: space-between;
	color: var(--gbf-titoli);
	font-size: 13px;
}

/* ---- pannello mobile ---- */
.gbf-apri,
.gbf-testata,
.gbf-piede {
	display: none;
}

@media (max-width: 959px) {
	.gbf-apri {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 9px 18px;
		border: 1px solid var(--gbf-titoli);
		background: #fff;
		color: var(--gbf-titoli);
		font-size: 13px;
		letter-spacing: .08em;
		text-transform: uppercase;
		cursor: pointer;
	}
	.gbf-apri-icona {
		width: 14px;
		height: 10px;
		border-top: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
	}
	.gbf-apri-numero {
		min-width: 18px;
		padding: 0 5px;
		border-radius: 9px;
		background: var(--gbf-accento);
		color: #fff;
		font-size: 11px;
		line-height: 18px;
		text-align: center;
	}
	.gbf-pannello {
		display: none;
	}
	.gbf.is-aperto .gbf-pannello {
		position: fixed;
		inset: 0;
		z-index: 100001;
		display: flex;
		flex-direction: column;
		background: var(--gbf-sfondo);
	}
	.gbf-testata {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		padding: 18px 56px;
		background: #ededea;
	}
	.gbf-testata-titolo {
		color: var(--gbf-titoli);
		font-size: 20px;
	}
	.gbf-chiudi {
		position: absolute;
		right: 12px;
		top: 50%;
		width: 40px;
		height: 40px;
		margin-top: -20px;
		border: 0;
		background: none;
		color: var(--gbf-titoli);
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
	}
	.gbf-form {
		flex: 1;
		overflow-y: auto;
		padding: 20px;
		-webkit-overflow-scrolling: touch;
	}
	.gbf-gruppo {
		margin-bottom: 14px;
		padding: 18px 16px;
		border: 1px solid var(--gbf-bordo);
		border-radius: 6px;
		background: #fff;
	}
	.gbf-gruppo:not([open]) > .gbf-titolo {
		margin-bottom: 0;
	}
	.gbf-voce {
		margin-bottom: 12px;
	}
	.gbf-piede {
		display: block;
		padding: 14px 20px;
		border-top: 1px solid var(--gbf-bordo);
		background: #fff;
	}
	html.gbf-bloccato,
	html.gbf-bloccato body {
		overflow: hidden;
	}
}

/* ---- caricamento della pagina filtrata ---- */
html.gbf-caricamento .products,
html.gbf-caricamento .gbf-form {
	opacity: .4;
	pointer-events: none;
	transition: opacity .2s;
}
html.gbf-caricamento body {
	cursor: progress;
}

.gbf .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
