/* Filarete Glossario Filtri */
.fgf-blocco {
	--fgf-line: #D6D8D4;
	--fgf-text: #222221;
	--fgf-muted: #B5B7B3;
	--fgf-accent: #C1272D; /* rosso del mockup: metti quello del sito */
	transition: opacity .2s;
}

.fgf-blocco.is-loading { opacity: .5; pointer-events: none; }

/* ---------- Lettere A–Z ---------- */

.fgf-lettere {
	display: flex;
	flex-wrap: wrap;
	border-left: 1px solid var(--fgf-line);
}

.fgf-lettera {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;
	height: 40px;
	border-right: 1px solid var(--fgf-line);
	color: var(--fgf-text);
	color: var(--BLACK, #222221);
font-family: "DM Mono", monospace;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 16.5px; /* 117.857% */
letter-spacing: 1px;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .15s, color .15s;
}

a.fgf-lettera:hover { color: var(--fgf-accent); text-decoration: none; }
.fgf-lettera.is-active,
.fgf-lettera.is-active:hover { background: var(--fgf-accent); color: #fff; }
.fgf-lettera.is-disabled { color: var(--fgf-muted); cursor: default; }
.fgf-lettera--tutte { flex-basis: auto; padding: 0 16px; }

@media (max-width: 991px) {
	.fgf-lettere { border-top: 1px solid var(--fgf-line); }
	.fgf-lettera {
		flex: 0 0 calc(100% / 9);
		height: 44px;
		border-bottom: 1px solid var(--fgf-line);
		font-size: 14px;
	}
}

/* ---------- Temi ---------- */

.fgf-sotto fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.fgf-sotto-titolo {
	display: block;
	width: auto;
	margin: 0 0 32px;
	padding: 0;
	border: 0;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fgf-text);
}

.fgf-sotto-lista {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 26px;
}

.fgf-sotto-item {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	font-weight: 600;
	line-height: 1.2;
	color: var(--fgf-text);
	cursor: pointer;
	user-select: none;
	transition: color .15s;
	font-size: 18px;
font-style: normal;
font-weight: 600;
}

.fgf-sotto-item:hover,
.fgf-sotto-item.is-active { color: var(--fgf-accent); }

.fgf-sotto-check,
.fgf-sotto-tutti {
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	margin: 0;
	border: 1px solid #CFD1CD;
	border-radius: 0;
	background: #fff;
	cursor: pointer;
	transition: background-color .15s, box-shadow .15s;
}

/* Spuntata: quadrato rosso dentro la casella */
.fgf-sotto-check:checked,
.fgf-sotto-tutti:checked {
	background: var(--fgf-accent);
	box-shadow: inset 0 0 0 4px #fff;
}

.fgf-sotto-check:focus-visible,
.fgf-sotto-tutti:focus-visible { outline: 2px solid var(--fgf-text); outline-offset: 2px; }

.fgf-sotto-item.is-disabled { color: var(--fgf-muted); cursor: default; }
.fgf-sotto-item.is-disabled .fgf-sotto-check { background: transparent; cursor: default; }

.fgf-count { font-size: .7em; font-weight: 400; opacity: .6; }

.fgf-sotto-reset {
	display: inline-block;
	margin-top: 24px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--fgf-text);
	text-decoration: underline;
}

.fgf-sotto-applica {
	margin-top: 24px;
	padding: 8px 16px;
	border: 1px solid var(--fgf-text);
	background: transparent;
	text-transform: uppercase;
	cursor: pointer;
}

/* Sticky da desktop: barra lettere in alto e temi nella colonna destra.
 * --fgf-sticky-top = altezza dell'header fisso del sito (0 se l'header non è fisso).
 * --fgf-lettere-h  = altezza della barra lettere (40px + bordi).
 * Nel tema, ad es.: :root { --fgf-sticky-top: 80px; }
 */
@media (min-width: 992px) {
	.fgf-lettere-sticky {
		position: -webkit-sticky;
		position: sticky;
		top: var(--fgf-sticky-top, 0px);
		z-index: 20;
		background: #fff;
	}

	.fgf-blocco--sotto {
		position: -webkit-sticky;
		position: sticky;
		top: calc(var(--fgf-sticky-top, 0px) + var(--fgf-lettere-h, 42px) + 82px);
		z-index: 2;
	}
}

/* ---------- Risultati ---------- */

.fgf-totale { margin-bottom: 30px; text-transform: uppercase; color: var(--fgf-text); }

.fgf-gruppo {     margin-bottom: 45px;
    border-bottom: 1px solid #D6D8D4;
    padding-bottom: 45px;}

.fgf-gruppo-lettera {
	margin: 0 0 28px;
	font-family: Fraunces, Georgia, serif;
	font-size: 44px;
	font-weight: 600;
	line-height: 1;
	color: var(--fgf-text);
	font-size: 30px;
font-style: normal;
font-weight: 600;
line-height: 28.8px; /* 96% */
letter-spacing: -1px;
}

.fgf-lista { list-style: none; margin: 0; padding: 0; }
.fgf-voce { margin: 0 0 26px; padding: 0; }
.fgf-voce:last-child { margin-bottom: 0; }

.fgf-voce-titolo {
	margin: 0;
	font-family: inherit;
color: var(--BLACK, #222221);
font-family: Inter;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 27px; /* 150% */
	color: var(--BLACK, #222221);
font-family: Inter;

}

.fgf-voce-titolo a { color: var(--fgf-text); text-decoration: none; transition: color .15s; }
.fgf-voce-titolo a:hover { color: var(--fgf-accent); }
.fgf-voce-estratto { margin: 6px 0 0; }
.fgf-vuoto { color: var(--fgf-muted); }

@media (max-width: 767px) {
	.fgf-gruppo-lettera { font-size: 34px; }
	.fgf-voce-titolo { font-size: 19px; }
	.fgf-sotto-item { font-size: 17px; gap: 16px; }
	.fgf-sotto-lista { gap: 18px; }
}

/* Ricerca con autocompletamento */
/* z-index: il campo (e i suggerimenti) restano sopra a eventuali fasce del tema che scorrono */
.fgf-cerca { position: relative; z-index: 30; max-width: 640px; --fgf-line: #D6D8D4; --fgf-text: #222221; --fgf-muted: #8A8C88; }

.fgf-cerca-campo {
	display: flex;
	align-items: stretch;
	height: 55px;
	border: 1px solid var(--fgf-line);
	background: #fff;
}

.fgf-cerca-input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--fgf-text);
	font-size: 18px;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	font-family: Fraunces;
	font-size: 18px;
	font-style: italic;
	font-weight: 400;
	line-height: normal;
}

.fgf-cerca-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.fgf-cerca-input::placeholder {
	color: #B5B7B3;
	font-family: Georgia, 'Times New Roman', serif; /* metti il serif del sito */
	font-style: italic;
	opacity: 1;
}

.fgf-cerca-invia {
	flex-shrink: 0;
	padding: 0 28px;
	border: 0;
	border-left: 1px solid var(--fgf-line);
	border-radius: 0;
	background: transparent;
	color: var(--fgf-text);
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s;
}

.fgf-cerca-invia:hover { background: #F3F3F0; }
.fgf-cerca-campo:focus-within { border-color: #9a9a98; }
.fgf-cerca.is-loading .fgf-cerca-invia { opacity: .5; }

.fgf-cerca-lista {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 50;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--fgf-line);
	border-top: 0;
	box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
	max-height: 420px;
	overflow-y: auto;
}

.fgf-cerca-lista[hidden] { display: none; }

.fgf-cerca-item { border-bottom: 1px solid var(--fgf-line); }
.fgf-cerca-item:last-child { border-bottom: 0; }

.fgf-cerca-link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 16px;
	    color: var(--fgf-text) !important;
	text-decoration: none;
}

.fgf-cerca-item.is-active .fgf-cerca-link,
.fgf-cerca-link:hover { background: #F3F3F0; color: var(--fgf-text); }

.fgf-cerca-titolo mark { background: transparent; color: inherit; font-weight: 700; padding: 0; }

.fgf-cerca-categoria {
	flex-shrink: 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--fgf-muted);
}

.fgf-cerca-vuoto { padding: 14px 16px; color: var(--fgf-muted); }

.fgf-cerca-tutti { border-top: 1px solid var(--fgf-line); }
.fgf-cerca-tutti-btn {
	width: 100%;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	color: var(--fgf-text);
	text-align: left;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 13px;
	cursor: pointer;
}
.fgf-cerca-tutti-btn:hover { background: #F3F3F0; }
/* "Carica altri" nei risultati di ricerca */
.fgf-loadmore-wrap { margin-top: 48px; text-align: center; }

.fgf-loadmore {
	display: inline-block;
	padding: 12px 32px;
	border: 1px solid #222221;
	color: #222221;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .15s, color .15s, opacity .15s;
}

.fgf-loadmore:hover { background: #222221; color: #fff !important; text-decoration: none; }
.fgf-loadmore.is-loading { opacity: .5; pointer-events: none; }

@media (min-width: 1024px) {
.fgf-gruppo {
    width: 85%;
}
}