/**
 * Brera global header redesign.
 * Loaded after the legacy theme styles so the old grid can remain untouched.
 */
:root {
	--brera-header-orange: #ef4427;
	--brera-header-ink: #212121;
	--brera-header-wrapper: 1360px;
}

.brera-header,
.brera-header * {
	box-sizing: border-box;
}

.brera-header {
	position: relative;
	z-index: 1000;
	width: 100%;
	background: #fff;
	color: var(--brera-header-ink);
	font-family: Lato, Helvetica, Arial, sans-serif;
}

.brera-header [hidden] {
	display: none !important;
}

.brera-header__wrapper.wrapper {
	width: calc(100% - 48px);
	max-width: var(--brera-header-wrapper) !important;
	margin-right: auto;
	margin-left: auto;
	padding-right: 15px;
	padding-left: 15px;
}

.brera-header__trustbar {
	min-height: 36px;
	background: var(--brera-header-ink);
	color: #f6f6f6;
	font-size: 11px;
	line-height: 1.2;
}

.brera-header__trustbar-inner {
	display: flex;
	min-height: 36px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brera-header__trust-items,
.brera-header__direct-contact {
	display: flex;
	align-items: center;
}

.brera-header__trust-items span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0 22px;
	border-right: 1px solid #595959;
	white-space: nowrap;
}

.brera-header__trust-items span:first-child {
	padding-left: 0;
}

.brera-header__trust-items span:last-child {
	border-right: 0;
}

.brera-header__trust-items b,
.brera-header__direct-label {
	color: var(--brera-header-orange);
}

.brera-header__trust-icon,
.brera-header__phone-icon {
	display: block;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	object-fit: contain;
}

.brera-header__phone-icon {
	width: 14px;
	height: 14px;
	flex-basis: 14px;
}

.brera-header__direct-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-transform: uppercase;
}

.brera-header__direct-contact {
	justify-content: flex-end;
	gap: 10px;
	white-space: nowrap;
}

.brera-header__direct-contact a {
	color: #fff;
	font-weight: 700;
}

.brera-header__direct-contact a:last-child {
	padding-left: 10px;
	border-left: 1px solid #595959;
	color: #c7c7c7;
	font-weight: 400;
}

.brera-header__main {
	display: block !important;
	position: relative;
	min-height: 92px;
	background: #fff;
	box-shadow: none;
}

.brera-header__main-inner {
	display: flex;
	min-height: 92px;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
}

.brera-header__identity,
.brera-header__actions {
	display: flex;
	align-items: center;
}

.brera-header__identity {
	min-width: 265px;
	gap: 18px;
}

.brera-header__logo {
	display: block;
	width: 150px;
	flex: 0 0 150px;
}

.brera-header__logo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 68px;
	object-fit: contain;
	object-position: left center;
}

.brera-header__logo span {
	color: var(--brera-header-orange);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-size: 38px;
	font-weight: 300;
}

.brera-location-switcher,
.brera-language-switcher {
	position: relative;
}

.brera-location-switcher__toggle,
.brera-language-switcher__toggle,
.brera-header__menu-toggle {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #595959;
	font: inherit;
	cursor: pointer;
}

.brera-location-switcher__toggle,
.brera-language-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1;
}

.brera-location-switcher__toggle {
	padding: 12px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .025em;
	text-transform: uppercase;
}

.brera-header__dropdown-chevron {
	display: block;
	width: 6px;
	height: 6px;
	flex: 0 0 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	color: #595959;
	transform: rotate(45deg);
	transform-origin: center;
	transition: transform .2s ease;
}

.brera-location-switcher__toggle[aria-expanded="true"] .brera-header__dropdown-chevron,
.brera-language-switcher__toggle[aria-expanded="true"] .brera-header__dropdown-chevron {
	transform: rotate(225deg);
}

.brera-location-switcher__dropdown,
.brera-language-switcher__dropdown {
	position: absolute;
	top: calc(100% + 18px);
	z-index: 30;
	min-width: 245px;
	padding: 9px 0;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 16px 35px rgba(0, 0, 0, .14);
}

.brera-location-switcher__dropdown {
	left: -18px;
}

.brera-location-switcher__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.brera-location-switcher__item {
	position: relative;
	margin: 0;
}

.brera-location-switcher__item > a {
	display: flex;
	min-height: 39px;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 9px 18px;
	color: var(--brera-header-ink);
	font-size: 13px;
	font-weight: 600;
}

.brera-location-switcher__item > a:hover,
.brera-location-switcher__item > a:focus-visible,
.brera-location-switcher__item > a[aria-current="page"] {
	background: #f3f3f3;
	color: var(--brera-header-orange);
}

.brera-location-switcher__list--depth-1 {
	display: none;
	position: absolute;
	top: -9px;
	left: 100%;
	min-width: 220px;
	padding: 9px 0;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 16px 35px rgba(0, 0, 0, .14);
}

.brera-location-switcher__item--parent:hover > .brera-location-switcher__list--depth-1,
.brera-location-switcher__item--parent:focus-within > .brera-location-switcher__list--depth-1 {
	display: block;
}

.brera-header__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(18px, 2vw, 25px);
	margin-left: auto;
}

.brera-header__nav a {
	color: var(--brera-header-ink);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.brera-header__nav a:hover,
.brera-header__nav a:focus-visible {
	color: var(--brera-header-orange);
}

.brera-header__actions {
	gap: 20px;
}

.brera-language-switcher__toggle {
	padding: 12px 0;
	font-size: 12px;
	font-weight: 700;
}

.brera-language-switcher__dropdown {
	top: calc(100% + 16px);
	right: -14px;
	min-width: 110px;
	padding: 6px;
}

.brera-language-switcher__dropdown a {
	display: block;
	padding: 8px 10px;
	border-radius: 5px;
	color: var(--brera-header-ink);
	font-size: 12px;
	font-weight: 700;
}

.brera-language-switcher__dropdown a:hover,
.brera-language-switcher__dropdown a[aria-current="page"] {
	background: #f3f3f3;
	color: var(--brera-header-orange);
}

.brera-header__book {
	display: inline-flex;
	min-width: 180px;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	gap: 13px;
	padding: 11px 23px;
	border-radius: 999px;
	background: var(--brera-header-orange);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.brera-header__book-arrow {
	display: block;
	width: 17px;
	height: 11px;
	flex: 0 0 17px;
}

.brera-header__book:hover,
.brera-header__book:focus-visible {
	background: #d9361d;
	color: #fff;
}

.brera-header__menu-toggle {
	display: none;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.brera-header__menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #292929;
	transition: transform .2s ease, opacity .2s ease;
}

.brera-header__menu-toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.brera-header__menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.brera-header__menu-toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.brera-header__mobile-panel {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 25;
	padding: 12px 0 24px;
	border-top: 1px solid #eee;
	background: #fff;
	box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
}

.brera-header__mobile-panel nav {
	display: flex;
	flex-direction: column;
}

.brera-header__mobile-panel a {
	padding: 14px 0;
	border-bottom: 1px solid #eee;
	color: var(--brera-header-ink);
	font-size: 16px;
	font-weight: 700;
}

.brera-header button:focus-visible,
.brera-header a:focus-visible {
	outline: 2px solid var(--brera-header-orange);
	outline-offset: 3px;
}

.brera-header .header__menu--sticky {
	position: fixed;
	top: var(--brera-top-fixed-offset, 0);
	right: 0;
	left: 0;
	z-index: 1001;
	box-shadow: 0 7px 24px rgba(0, 0, 0, .12);
}

body.brera-mobile-menu-open {
	overflow: hidden;
}

/* Existing Popup Builder campaign: dock it to the left edge of the header. */
div.sgpb-basic-top-center.sgpb-floating-button {
	display: flex !important;
	height: 36px !important;
	min-height: 36px !important;
	align-items: center;
	top: 50% !important;
	left: 0 !important;
	right: auto !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border-width: 0 !important;
	border-radius: 0 0 6px 6px !important;
	font-size: 12px !important;
	transform: rotate(-90deg) translateX(-50%) !important;
	transform-origin: left top !important;
}

div.sgpb-basic-top-center.sgpb-floating-button span {
	font-size: 12px !important;
}

@media (max-width: 1180px) {
	.brera-header__nav {
		gap: 16px;
	}

	.brera-header__nav a {
		font-size: 14px;
	}

	.brera-header__actions {
		gap: 12px;
	}

	.brera-header__book {
		min-width: 145px;
		padding-right: 18px;
		padding-left: 18px;
	}
}

@media (max-width: 1023px) {
	div.sgpb-basic-top-center.sgpb-floating-button {
		height: 36px !important;
		min-height: 36px !important;
	}

	.brera-header__wrapper.wrapper {
		width: calc(100% - 32px);
	}

	.brera-header__trust-items,
	.brera-header__nav,
	.brera-language-switcher {
		display: none;
	}

	.brera-header__trustbar,
	.brera-header__trustbar-inner {
		min-height: 40px;
	}

	.brera-header__trustbar-inner {
		justify-content: center;
	}

	.brera-header__direct-contact {
		width: 100%;
		justify-content: center;
		gap: 10px;
		font-size: 11px;
	}

	.brera-header__direct-label {
		font-weight: 700;
		text-transform: uppercase;
	}

	.brera-header__main,
	.brera-header__main-inner {
		min-height: 82px;
	}

	.brera-header__main-inner {
		gap: 12px;
	}

	.brera-header__identity {
		min-width: 0;
		flex: 1 1 auto;
		gap: 15px;
	}

	.brera-header__logo {
		width: 135px;
		flex-basis: 135px;
	}

	.brera-header__logo img {
		max-height: 60px;
	}

	.brera-location-switcher__toggle {
		font-size: 12px;
	}

	.brera-location-switcher__dropdown {
		top: calc(100% + 15px);
		left: -155px;
		width: min(340px, calc(100vw - 32px));
		max-height: calc(100vh - 145px);
		overflow-y: auto;
	}

	.brera-location-switcher__list--depth-1 {
		display: block;
		position: static;
		min-width: 0;
		padding: 0 0 0 18px;
		border: 0;
		box-shadow: none;
	}

	.brera-location-switcher__list--depth-1 a {
		font-weight: 400;
	}

	.brera-header__menu-toggle {
		display: flex;
	}
}

@media (max-width: 639px) {
	.brera-header__wrapper.wrapper {
		width: 100%;
	}

	.brera-header__direct-contact a:last-child {
		display: none;
	}

	.brera-header__main,
	.brera-header__main-inner {
		min-height: 78px;
	}

	.brera-header__main-inner {
		gap: 8px;
	}

	.brera-header__identity {
		gap: 18px;
	}

	.brera-header__logo {
		width: 120px;
		flex-basis: 120px;
	}

	.brera-location-switcher__toggle {
		max-width: 82px;
		gap: 3px;
		font-size: 11px;
	}

	.brera-header__actions {
		gap: 7px;
	}

	.brera-header__book {
		min-width: 0;
		min-height: 40px;
		padding: 5px 15px;
		font-size: 11px;
	}

	.brera-header__book-arrow {
		display: none;
	}

	.brera-header__menu-toggle {
		width: 30px;
	}

	.brera-location-switcher__dropdown {
		left: -129px;
	}
}

@media (max-width: 380px) {
	.brera-header__logo {
		width: 103px;
		flex-basis: 103px;
	}

	.brera-location-switcher__toggle {
		max-width: 72px;
		font-size: 10px;
	}

	.brera-header__book {
		padding-right: 11px;
		padding-left: 11px;
	}
}
