/*
Bioestetic header correction.

Version: 1.0.0

Scoped to the class added through litho_main_header_wrapper_class and to the
active Litho Section Builder header (Elementor document 75038).
*/

#masthead.site-header > .bioestetic-header-flow {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	width: 100%;
	margin-top: 0 !important;
	transform: none !important;
	background-color: #fff !important;
}

#masthead.site-header,
#masthead.site-header > .bioestetic-header-flow > .elementor-75038,
#masthead.site-header > .bioestetic-header-flow .elementor-element-4f84f12 {
	background-color: #fff;
}

/* Real public header selectors verified against Section Builder document 75038. */
#masthead.site-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 99990;
	width: 100%;
	box-shadow: 0 1px 0 rgba(11, 34, 57, 0.08);
}

.admin-bar #masthead.site-header {
	top: 32px;
}

/*
 * Litho renders default, alternative and mobile logos inside the same link.
 * Keep the three assets in one geometry so its opacity switch cannot move the
 * visible logo when the sticky state changes.
 */
#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-8d232fc {
	flex: 0 0 auto;
	width: clamp(150px, 11vw, 190px) !important;
	height: auto !important;
	min-width: 0;
}

#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-8d232fc .navbar-brand {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	aspect-ratio: 550 / 158;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0;
}

#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-8d232fc .navbar-brand img {
	position: absolute !important;
	inset: 0 !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	object-fit: contain !important;
	object-position: left center;
}

/* Neutralize Litho's mobile body offset: this header remains in normal flow. */
@media (max-width: 1024px) {
	body.wp-child-theme-bioestetic-child {
		padding-top: 0 !important;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-75038 > .elementor-element-4f84f12 {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto;
		align-items: center;
		gap: clamp(12px, 3vw, 24px);
		width: 100%;
		min-height: 76px;
		padding: 10px clamp(16px, 3vw, 28px);
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-ce8b93c,
	#masthead.site-header > .bioestetic-header-flow .elementor-element-5b17055,
	#masthead.site-header > .bioestetic-header-flow .elementor-element-d502375 {
		width: auto;
		min-width: 0;
		height: auto;
		min-height: 0;
		padding: 0;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-ce8b93c {
		grid-column: 1;
		justify-self: start;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-5b17055 {
		grid-column: 2;
		justify-self: end;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-d502375 {
		grid-column: 3;
		justify-self: end;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-4a1ea93 {
		display: none !important;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-206b8e1 {
		display: block !important;
	}
}

#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-d502375 a,
#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-2af8c34 a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 22px !important;
	background: #2fa7c9 !important;
	color: #fff !important;
	border-color: #2fa7c9 !important;
	line-height: 1.2 !important;
}

#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-d502375 a:hover,
#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-d502375 a:focus-visible,
#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-2af8c34 a:hover,
#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-2af8c34 a:focus-visible {
	background: #123b63 !important;
	border-color: #123b63 !important;
}

@media (min-width: 1025px) and (max-width: 1279px) {
	#masthead.site-header > .bioestetic-header-flow .elementor-75038 > .elementor-element-4f84f12 {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto;
		grid-template-rows: auto;
		align-items: center;
		column-gap: 16px;
		padding-right: 10px;
		padding-left: 10px;
		overflow: visible;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-ce8b93c,
	#masthead.site-header > .bioestetic-header-flow .elementor-element-5b17055,
	#masthead.site-header > .bioestetic-header-flow .elementor-element-d502375 {
		width: auto;
		min-width: 0;
		max-width: none;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-ce8b93c {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-d502375 {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-5b17055 {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		flex-wrap: nowrap;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-4a1ea93 {
		display: none !important;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-206b8e1 {
		display: block !important;
	}
}

@media (min-width: 1280px) {
	#masthead.site-header > .bioestetic-header-flow .elementor-75038 > .elementor-element-4f84f12 {
		display: grid;
		grid-template-columns: minmax(180px, 0.75fr) max-content minmax(150px, 0.55fr);
		align-items: center;
		gap: clamp(20px, 2.5vw, 44px);
		width: min(100% - 48px, 1320px);
		margin-inline: auto;
		padding-right: 0;
		padding-left: 0;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-ce8b93c,
	#masthead.site-header > .bioestetic-header-flow .elementor-element-5b17055,
	#masthead.site-header > .bioestetic-header-flow .elementor-element-d502375 {
		width: auto;
		min-width: 0;
		max-width: none;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-ce8b93c {
		justify-self: end;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-5b17055 {
		justify-self: end;
		width: max-content;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-d502375 {
		justify-self: end;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-element-4a1ea93,
	#masthead.site-header > .bioestetic-header-flow #menu-menu-1 {
		width: max-content;
		max-width: none;
	}

	#masthead.site-header > .bioestetic-header-flow #menu-menu-1 {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
	}

	#masthead.site-header > .bioestetic-header-flow #menu-menu-1 > li,
	#masthead.site-header > .bioestetic-header-flow #menu-menu-1 > li > a {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

@media (max-width: 782px) {
	.admin-bar #masthead.site-header { top: 46px; }
	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-8d232fc { width: clamp(132px, 42vw, 168px) !important; }
}

/*
 * Mobile/tablet hamburger panel.
 *
 * Keep Litho's existing .show-menu state and slide transition intact. These
 * rules only make the verified Bioestetic panel opaque, viewport-bound and
 * independently scrollable.
 */
@media (max-width: 1024px) {
	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-206b8e1 .hamburger-menu-wrapper.hamburger-menu-modern {
		box-sizing: border-box;
		height: 100vh;
		height: 100dvh;
		max-height: 100vh;
		max-height: 100dvh;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		background: #fff !important;
		z-index: 100000;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-206b8e1 .hamburger-menu-wrapper.hamburger-menu-modern > .hamburger-menu {
		box-sizing: border-box;
		width: 100%;
		height: auto;
		min-height: 100%;
		max-height: none;
		overflow: visible;
		background: #fff !important;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-206b8e1 .hamburger-menu .elementor-1541,
	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-206b8e1 .hamburger-menu .elementor-1541 .elementor-element-a0e20fe {
		box-sizing: border-box;
		width: 100%;
		min-height: 100%;
		background-color: #fff !important;
		background-image: none !important;
		opacity: 1;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-206b8e1 .hamburger-menu-wrapper.hamburger-menu-modern .litho-left-menu li > a {
		color: #0b2239 !important;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-206b8e1 .hamburger-menu-wrapper.hamburger-menu-modern .menu-toggle::before,
	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-206b8e1 .hamburger-menu-wrapper.hamburger-menu-modern .menu-toggle::after {
		background-color: #0b2239 !important;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-206b8e1 .hamburger-menu-wrapper.hamburger-menu-modern .close-menu {
		color: #0b2239 !important;
		background-color: #fff;
		z-index: 100001;
	}

	#masthead.site-header > .bioestetic-header-flow .elementor-75038 .elementor-element-206b8e1 .hamburger-menu-wrapper.hamburger-menu-modern .close-menu svg {
		fill: #0b2239 !important;
	}
}
