/* Top Bar Promo — include/topbar.php */
.fh-topbar {
	--fh-topbar-bg: #000;
	--fh-topbar-fg: #fff;
	position: sticky;
	top: 0;
	z-index: 10000;
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 40px;
	background: var(--fh-topbar-bg);
	color: var(--fh-topbar-fg);
	font-family: var(--e-global-typography-text-font-family, "Roboto"), Arial, sans-serif;
	font-size: 14px;
	line-height: 1.35;
	box-sizing: border-box;
}
.fh-topbar *,
.fh-topbar *::before,
.fh-topbar *::after {
	box-sizing: border-box;
}
body.admin-bar .fh-topbar {
	top: 32px;
}

.fh-topbar__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.fh-topbar__track {
	display: flex;
	height: 100%;
	transition: transform .5s ease;
	will-change: transform;
}
.fh-topbar__slide {
	flex: 0 0 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 14px;
	min-width: 0;
	padding: 8px 12px;
	text-align: center;
}
.fh-topbar__text {
	color: inherit;
}
.fh-topbar__code {
	display: inline-block;
	margin: 0 2px;
	padding: 0 7px;
	border: 1px dashed currentColor;
	border-radius: 3px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.fh-topbar a.fh-topbar__link,
.fh-topbar a.fh-topbar__link:visited {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}
.fh-topbar a.fh-topbar__link::after {
	content: " \2192";
}
.fh-topbar a.fh-topbar__link:hover,
.fh-topbar a.fh-topbar__link:focus {
	color: inherit;
	opacity: .8;
}

.fh-topbar button.fh-topbar__nav {
	flex: 0 0 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: .75;
}
.fh-topbar button.fh-topbar__nav:hover,
.fh-topbar button.fh-topbar__nav:focus {
	background: transparent;
	color: inherit;
	opacity: 1;
}
.fh-topbar a:focus-visible,
.fh-topbar button.fh-topbar__nav:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

/* Header Elementor "sticky" (attivo su mobile): si aggancia sotto la top bar. */
body.fh-has-topbar .elementor-sticky--active {
	top: var(--fh-topbar-offset, 0px) !important;
}

@media (max-width: 782px) {
	body.admin-bar .fh-topbar {
		top: 46px;
	}
}
@media (max-width: 600px) {
	/* Su mobile la admin bar di WordPress non è fissa. */
	body.admin-bar .fh-topbar {
		top: 0;
	}
}
@media (max-width: 767px) {
	/* Su mobile la barra non resta fissa: scorre via con la pagina. */
	.fh-topbar,
	body.admin-bar .fh-topbar {
		position: relative;
		top: auto;
	}
	.fh-topbar {
		min-height: 44px;
		font-size: 12px;
		line-height: 1.4;
		letter-spacing: .01em;
	}
	/* Testo e link scorrono sulla stessa riga, con a capo bilanciati. */
	.fh-topbar__slide {
		position: relative;
		display: block;
		align-self: center;
		padding: 6px 2px;
		text-wrap: balance;
	}
	.fh-topbar__text {
		margin-right: 6px;
	}
	.fh-topbar__code {
		margin: 0 1px;
		padding: 0 4px;
		border-radius: 2px;
		letter-spacing: .02em;
		line-height: 1.3;
	}
	.fh-topbar a.fh-topbar__link,
	.fh-topbar a.fh-topbar__link:visited {
		font-weight: 600;
		text-underline-offset: 2px;
	}
	/* Tutta la slide è cliccabile. */
	.fh-topbar a.fh-topbar__link::before {
		content: "";
		position: absolute;
		inset: 0;
	}
	.fh-topbar button.fh-topbar__nav {
		flex-basis: 32px;
		width: 32px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.fh-topbar__track {
		transition: none;
	}
}
