/* =========================================================================
   FENG HUANG — barra delle sezioni (js/indice.js)
   Agganciata sotto il menu nelle pagine lunghe; funziona con il tema scuro
   e con quello chiaro perche' usa le variabili degli articoli.
   ========================================================================= */
.fh-indice,
.fhx-article > .fh-indice {
	position: sticky;
	top: var(--fh-menu-h, 72px);
	z-index: 50;
	margin: 0 auto;
	width: 100%;
	background: color-mix(in srgb, var(--fhx-bg, #F7F3EA) 92%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--fhx-line, rgba(198,154,62,.4));
	transition: box-shadow .3s ease;
}
.fh-indice.is-agganciata { box-shadow: 0 10px 24px -18px rgba(0,0,0,.45); }
.fh-indice__lista {
	display: flex;
	gap: .35rem;
	max-width: var(--fhx-maxw, 1200px);
	margin: 0 auto;
	padding: .55rem clamp(1rem, 3vw, 1.5rem);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.fh-indice__lista::-webkit-scrollbar { display: none; }
.fh-indice__voce {
	flex: 0 0 auto;
	padding: .38rem .9rem;
	border-radius: 999px;
	font-size: .8rem;
	letter-spacing: .04em;
	white-space: nowrap;
	text-decoration: none;
	color: var(--fhx-ink-soft, #3E4B5E);
	border: 1px solid transparent;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.fh-indice__voce:hover { color: var(--fhx-ink, #1B2B44); border-color: var(--fhx-line, rgba(198,154,62,.4)); }
.fh-indice__voce.is-attiva {
	color: var(--fhx-ink, #1B2B44);
	font-weight: 600;
	background: color-mix(in srgb, var(--fhx-gold, #9C7413) 16%, transparent);
	border-color: color-mix(in srgb, var(--fhx-gold, #9C7413) 55%, transparent);
}
@media print { .fh-indice { display: none; } }
