/**
 * Place Oversea — header público custom (.po-site-header), sem Elementor Pro.
 */

body.po-custom-site-header #site-header,
body.po-custom-site-header .elementor-location-header {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

body.placeoversea-responsive.po-custom-site-header {
	--po-header-height: 85px;
	--po-header-util-size: 28px;
	--po-header-flag-width: 28px;
	--po-header-flag-height: 19px;
}

@media (max-width: 1024px) {
	body.placeoversea-responsive.po-custom-site-header {
		--po-header-height: 72px;
	}
}

body.placeoversea-responsive.po-header-over-hero {
	--po-header-height: 88px;
}

@media (max-width: 1024px) {
	body.placeoversea-responsive.po-header-over-hero {
		--po-header-height: 72px;
	}
}

/* ============================================================
   Shell
   ============================================================ */
.po-site-header {
	position: relative;
	z-index: 100010;
	width: 100%;
	background: var(--po-white, #fff);
	box-shadow: 0 1px 0 rgba(33, 37, 41, 0.06);
}

body.placeoversea-responsive.po-header-over-hero .po-site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	box-shadow: none;
}

body.admin-bar.placeoversea-responsive.po-header-over-hero .po-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar.placeoversea-responsive.po-header-over-hero .po-site-header {
		top: 46px;
	}
}

body.placeoversea-responsive:not(.po-header-over-hero) .po-site-header {
	position: sticky;
	top: 0;
}

body.admin-bar.placeoversea-responsive:not(.po-header-over-hero) .po-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar.placeoversea-responsive:not(.po-header-over-hero) .po-site-header {
		top: 46px;
	}
}

.po-site-header__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--po-site-max, 1180px);
	margin: 0 auto;
	padding: 0 clamp(16px, 3vw, 32px);
	min-height: var(--po-header-height);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(12px, 2vw, 24px);
}

/* ============================================================
   Logo
   ============================================================ */
.po-site-header__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	line-height: 0;
}

.po-site-header__logo-img {
	display: block;
	width: auto;
	height: auto;
	max-height: 64px;
	min-width: 48px;
	object-fit: contain;
}

body.placeoversea-responsive.po-header-over-hero .po-site-header__logo-img {
	mix-blend-mode: multiply;
	filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}

/* ============================================================
   Navegação principal
   ============================================================ */
.po-site-header__nav {
	justify-self: center;
	min-width: 0;
}

.po-site-header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: clamp(1rem, 2.2vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.po-site-header__menu a {
	display: inline-block;
	font-family: var(--po-font-family, Inter, sans-serif);
	font-size: clamp(0.875rem, 1.1vw, 0.95rem);
	font-weight: var(--po-font-weight-semibold, 600);
	line-height: 1.2;
	color: var(--po-text, #212529);
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.po-site-header__menu a:hover,
.po-site-header__menu a:focus-visible {
	color: var(--po-primary, #0f4c81);
}

.po-site-header__menu-item.is-current > a {
	color: var(--po-primary, #0f4c81);
}

body.placeoversea-responsive.po-header-over-hero .po-site-header__menu a,
body.placeoversea-responsive.po-header-over-hero .po-site-header__login,
body.placeoversea-responsive.po-header-over-hero .po-site-header__toggle {
	text-shadow:
		0 0 8px rgba(255, 255, 255, 0.95),
		0 1px 2px rgba(255, 255, 255, 0.85);
}

/* ============================================================
   Utilitários — Iniciar sessão, conta, idioma
   ============================================================ */
.po-site-header__utilities {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
	flex-shrink: 0;
}

.po-site-header__login {
	font-family: var(--po-font-family, Inter, sans-serif);
	font-size: clamp(0.875rem, 1.1vw, 0.95rem);
	font-weight: var(--po-font-weight-semibold, 600);
	line-height: 1.2;
	color: var(--po-text, #212529);
	text-decoration: none;
	white-space: nowrap;
}

.po-site-header__login:hover,
.po-site-header__login:focus-visible {
	color: var(--po-primary, #0f4c81);
}

.po-site-header__account .po-member-menu-user {
	position: relative;
}

.po-site-header__account .po-member-menu-user__toggle {
	width: var(--po-header-util-size);
	height: var(--po-header-util-size);
	min-width: var(--po-header-util-size);
	min-height: var(--po-header-util-size);
	padding: 0;
}

.po-site-header__lang {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.po-site-header__lang-switcher {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.po-site-header__lang-toggle {
	display: inline-flex;
	align-items: stretch;
	justify-content: center;
	width: var(--po-header-flag-width);
	height: var(--po-header-flag-height);
	min-width: var(--po-header-flag-width);
	min-height: var(--po-header-flag-height);
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 2px;
	overflow: hidden;
	background: transparent;
	cursor: pointer;
	box-sizing: border-box;
}

.po-site-header__lang-toggle:hover,
.po-site-header__lang-toggle:focus-visible {
	outline: none;
}

.po-site-header__lang-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 100020;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	min-width: var(--po-header-flag-width);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.po-site-header__lang-switcher.is-open .po-site-header__lang-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.po-site-header__lang-item {
	display: inline-flex;
	align-items: stretch;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--po-header-flag-width);
	height: var(--po-header-flag-height);
	min-width: var(--po-header-flag-width);
	min-height: var(--po-header-flag-height);
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 2px;
	overflow: hidden;
	text-decoration: none;
	background: transparent;
	box-sizing: border-box;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.po-site-header__lang-item:not(.is-current):hover,
.po-site-header__lang-item:not(.is-current):focus-visible {
	opacity: 0.88;
}

.po-site-header__lang-item.is-current {
	box-shadow: inset 0 0 0 1.5px rgba(15, 76, 129, 0.45);
	cursor: default;
}

.po-site-header__lang-flag {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: cover;
	object-position: center center;
	border-radius: 2px;
	vertical-align: top;
}

/* ============================================================
   Toggle mobile
   ============================================================ */
.po-site-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	color: var(--po-text, #212529);
}

.po-site-header__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.po-site-header.is-open .po-site-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.po-site-header.is-open .po-site-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.po-site-header.is-open .po-site-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.po-site-header__inner {
		grid-template-columns: auto 1fr auto;
	}

	.po-site-header__toggle {
		display: inline-flex;
	}

	.po-site-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		justify-self: stretch;
		padding: 0 clamp(16px, 3vw, 32px) 16px;
		background: var(--po-white, #fff);
		box-shadow: 0 12px 24px rgba(33, 37, 41, 0.12);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	}

	body.placeoversea-responsive.po-header-over-hero .po-site-header__nav {
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(8px);
	}

	.po-site-header.is-open .po-site-header__nav {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.po-site-header__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0;
	}

	.po-site-header__menu-item {
		border-bottom: 1px solid var(--po-border, #e9ecef);
	}

	.po-site-header__menu-item:last-child {
		border-bottom: 0;
	}

	.po-site-header__menu a {
		display: block;
		padding: 14px 4px;
		text-shadow: none;
	}
}

@media (min-width: 1025px) {
	.po-site-header__nav {
		display: block !important;
	}
}
