/* Header / footer brand centralizzato */
.bd-chrome--header {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	max-width: 100%;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(14px) saturate(1.15);
	-webkit-backdrop-filter: blur(14px) saturate(1.15);
	box-shadow: 0 8px 28px rgba(10, 124, 110, 0.1);
}

.bd-chrome__bar {
	height: 4px;
	background: linear-gradient(90deg, var(--bd-green) 0%, var(--bd-yellow) 48%, var(--bd-blue) 100%);
}

.bd-chrome__inner {
	width: min(100% - 20px, 1100px);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	flex-wrap: nowrap;
	min-height: 56px;
	box-sizing: border-box;
}

.bd-chrome__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
	text-decoration: none !important;
	color: inherit !important;
}

.bd-chrome__mark {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(160deg, #fff 0%, var(--bd-green-soft) 100%);
	display: grid;
	place-items: center;
	overflow: hidden;
	flex: 0 0 auto;
	box-shadow:
		0 0 0 2px color-mix(in srgb, var(--bd-green) 16%, transparent),
		0 6px 16px color-mix(in srgb, var(--bd-green) 16%, transparent);
}

.bd-chrome__mark img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	display: block;
}

.bd-chrome__title {
	display: block;
	min-width: 0;
	margin: 0;
	color: var(--bd-green);
	font-family: var(--bd-font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.15;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bd-chrome__title--long {
	display: none;
}

.bd-chrome__title--short {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bd-chrome__nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-chrome__nav--bar {
	display: none !important;
}

.bd-chrome__nav a {
	color: var(--bd-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 8px 12px;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease;
}

.bd-chrome__nav a:hover {
	color: var(--bd-green);
	background: var(--bd-green-soft);
}

.bd-chrome__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

/* Reset stili button del tema (TT5) */
.bd-chrome__toggle {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--bd-green-soft) !important;
	color: var(--bd-green) !important;
	box-shadow: none !important;
	cursor: pointer;
	flex: 0 0 auto;
	line-height: 1 !important;
	font-size: 0 !important;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}

.bd-chrome__toggle svg {
	display: block;
	width: 22px;
	height: 22px;
	stroke: currentColor;
}

.bd-chrome__toggle[aria-expanded="true"] {
	background: var(--bd-green) !important;
	color: #fff !important;
}

.bd-chrome__cta {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--bd-green);
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--bd-green) 25%, transparent);
}

.bd-chrome__cta--block {
	display: inline-flex !important;
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
}

.bd-chrome__drawer {
	border-top: 1px solid var(--bd-line);
	background: #fff;
	padding: 8px 16px 18px;
}

.bd-chrome__drawer[hidden] {
	display: none !important;
}

.bd-chrome__nav--drawer {
	display: grid;
	gap: 2px;
	margin: 0 0 14px;
}

.bd-chrome__nav--drawer a {
	display: block;
	padding: 14px 12px;
	border-radius: 12px;
	color: var(--bd-green);
	font-weight: 700;
	font-size: 1.05rem;
}

.bd-chrome__nav--drawer a:hover,
.bd-chrome__nav--drawer a:focus-visible {
	background: var(--bd-green-soft);
}

.bd-chrome--footer {
	margin-top: 48px;
	padding: 40px 0 48px;
	background: #fff;
	border-top: 1px solid var(--bd-line);
	color: var(--bd-muted);
	font-size: 0.95rem;
	line-height: 1.55;
	width: 100%;
	max-width: 100%;
}

.bd-chrome__footer-inner {
	width: min(100% - 32px, 1100px);
	margin: 0 auto;
}

.bd-chrome__footer-inner strong {
	color: var(--bd-green);
	font-family: var(--bd-font-display);
	font-size: 1.15rem;
	font-weight: 600;
}

.bd-chrome__footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.bd-chrome__footer-links a {
	color: var(--bd-blue);
	font-weight: 650;
	text-decoration: none;
}

.bd-credit {
	margin: 14px 0 0;
	font-size: 0.78rem;
	color: var(--bd-muted);
	line-height: 1.4;
}

.bd-credit a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (min-width: 900px) {
	.bd-chrome__inner {
		width: min(100% - 24px, 1100px);
		min-height: 68px;
		gap: 16px;
		padding: 12px 0;
	}

	.bd-chrome__mark {
		width: 46px;
		height: 46px;
		border-radius: 14px;
	}

	.bd-chrome__mark img {
		width: 32px;
		height: 32px;
	}

	.bd-chrome__title {
		font-size: clamp(1.1rem, 1.6vw, 1.35rem);
		font-weight: 500;
	}

	.bd-chrome__title--long {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.bd-chrome__title--short {
		display: none;
	}

	.bd-chrome__nav--bar {
		display: flex !important;
		gap: 4px;
		align-items: center;
		flex: 0 1 auto;
	}

	.bd-chrome__toggle {
		display: none !important;
	}

	.bd-chrome__cta {
		display: inline-flex;
	}

	.bd-chrome__drawer {
		display: none !important;
	}
}

/* Mappa a schermo intero: niente chrome di sito */
body:has(.bd-app.is-fullscreen) .bd-chrome {
	display: none !important;
}
