/*
 * Header "Ana Organiza" replicado do site principal (topo.php / menu-principal.php / style.css).
 * Tudo escopado dentro de .ana-header para nao vazar estilos para o resto do tema BuddyBoss.
 */

.ana-header {
	--ana-background-color: #ebe9d7;
	--ana-title-color: #3a2a1a;
	--ana-text-color: #292929;
	--ana-button-color: #0c4926;
	--ana-primary-text: "Montserrat Alternates", sans-serif;
	--ana-secondary-text: "Inter", sans-serif;

	position: relative;
	width: 100%;
	z-index: 99;
}

/* Icone icomoon (hamburguer / fechar) */
@font-face {
	font-family: "ana-icomoon";
	src: url("../fonts/icomoon.eot?10si43");
	src:
		url("../fonts/icomoon.eot?10si43#iefix") format("embedded-opentype"),
		url("../fonts/icomoon.ttf?10si43") format("truetype"),
		url("../fonts/icomoon.woff?10si43") format("woff"),
		url("../fonts/icomoon.svg?10si43#icomoon") format("svg");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.ana-header [class^="icon-"],
.ana-header [class*=" icon-"] {
	font-family: "ana-icomoon" !important;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.ana-header .icon-close2:before {
	content: "\e5cd";
}

.ana-header .icon-menu:before {
	content: "\e5d2";
}

.ana-header .icon-menu.h3 {
	font-size: 1.75rem;
	color: var(--ana-title-color);
}

/* Layout geral */
.ana-header .site-navbar-wrap {
	position: relative;
	z-index: 99;
	width: 100%;
	left: 0;
}

.ana-header .site-navbar-wrap a {
	color: #fff;
}

.ana-header .site-navbar {
	margin-bottom: 0;
	width: 100%;
	background-color: var(--ana-background-color);
}

.ana-header .site-navbar-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 1rem;
	gap: 1.5rem;
}

.ana-header .site-logo {
	font-weight: 200;
	line-height: 0;
	position: relative;
	margin: 0;
}

.ana-header .site-logo a {
	display: inline-block;
}

.ana-header .site-logo img {
	max-width: 100%;
	height: auto;
}

.ana-header .site-navigation {
	width: 100%;
	max-width: 1050px;
	display: flex;
	align-items: center;
}

/* Botao hamburguer (mobile) */
.ana-header .ana-header__toggle-wrap {
	display: block;
	margin-right: auto;
	padding: 0.75rem 0;
}

.ana-header .site-menu-toggle {
	cursor: pointer;
	display: inline-block;
}

/* Menu principal (desktop) */
.ana-header ul.site-menu.main-menu {
	margin-bottom: 0;
	width: 100%;
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	gap: 1rem;
	list-style: none;
}

.ana-header .site-menu a {
	text-decoration: none !important;
	display: inline-block;
	font-weight: 500;
}

.ana-header .site-menu > li {
	display: inline-block;
	padding: 0;
}

.ana-header .site-menu > li > a {
	padding: 0;
	color: var(--ana-title-color);
	font-family: var(--ana-secondary-text);
	font-size: 1.45rem;
	font-weight: 500;
	text-decoration: none !important;
	transition: 0.3s ease;
	text-align: center;
	line-height: 1.25;
	max-width: 150px;
}

.ana-header .site-menu > li > a:hover {
	color: #946b45 !important;
}

.ana-header .site-menu > li > a.active {
	color: #fff;
}

.ana-header .site-menu .has-children {
	position: relative;
}

.ana-header .site-menu .has-children > a {
	position: relative;
	padding-right: 0;
}

.ana-header .site-menu .has-children > a:before {
	display: none;
}

.ana-header .site-menu .has-children .dropdown {
	visibility: hidden;
	opacity: 0;
	top: 100%;
	left: 0;
	right: auto;
	position: absolute;
	text-align: left;
	box-shadow: rgba(0, 0, 0, 0.15) 0 4px 16px;
	padding: 0;
	margin-top: 20px;
	margin-left: 0;
	background: var(--ana-background-color);
	transition: 0.2s 0s;
	border-radius: 13px;
	list-style: none;
	width: 200px;
	max-width: 200px;
}

.ana-header .site-menu .has-children .dropdown.arrow-top {
	position: absolute;
}

.ana-header .site-menu .has-children .dropdown.arrow-top:before {
	display: none;
}

.ana-header .site-menu .has-children .dropdown a {
	font-family: var(--ana-primary-text);
	font-size: 1.25rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	transition: 0s all;
	color: var(--ana-title-color);
}

.ana-header .site-menu .has-children .dropdown a.active,
.ana-header .site-menu .has-children .dropdown .active > a {
	color: var(--ana-button-color) !important;
}

.ana-header .site-menu .has-children .dropdown > li {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ana-header .site-menu .has-children .dropdown > li:first-child > a {
	border-top-left-radius: 13px;
	border-top-right-radius: 13px;
}

.ana-header .site-menu .has-children .dropdown > li:last-child > a {
	border-bottom-left-radius: 13px;
	border-bottom-right-radius: 13px;
}

.ana-header .site-menu .has-children .dropdown > li > a {
	padding: 10px 20px;
	display: block;
}

.ana-header .site-menu .has-children .dropdown > li > a:hover {
	background: rgba(53, 53, 53, 0.065);
	color: var(--ana-text-color);
}

.ana-header .site-menu .has-children .dropdown > li:not(:last-child) > a {
	border-bottom: 1px solid rgba(58, 42, 26, 0.1);
}

.ana-header .site-menu .has-children:hover,
.ana-header .site-menu .has-children:focus,
.ana-header .site-menu .has-children:active {
	cursor: pointer;
}

.ana-header .site-menu .has-children:hover > .dropdown,
.ana-header .site-menu .has-children:focus > .dropdown,
.ana-header .site-menu .has-children:active > .dropdown {
	transition-delay: 0s;
	margin-top: 0;
	visibility: visible;
	opacity: 1;
}

/* Botao CTA */
.ana-header .navbar__cta__btn {
	font-family: var(--ana-secondary-text);
	font-size: 1.5rem;
	color: #ebe9d7;
	background-color: var(--ana-button-color);
	line-height: 1;
	padding: 0.35rem 2rem;
	border-radius: 18.6px;
	border: none;
	outline: none;
	box-shadow: rgba(0, 0, 0, 0.25) 0 1.77px 1.77px;
	transition: 0.3s ease;
	cursor: pointer;
	flex-shrink: 0;
}

.ana-header .navbar__cta__btn:hover {
	transform: translateY(-2px);
}

/* Menu mobile (off-canvas) */
.ana-header .site-mobile-menu {
	width: 300px;
	position: fixed;
	top: 0;
	right: 0;
	z-index: 2000;
	padding-top: 20px;
	background: #fff;
	height: 100vh;
	transform: translateX(110%);
	box-shadow: -10px 0 20px -10px rgba(0, 0, 0, 0.1);
	transition: 0.3s all ease-in-out;
}

body.offcanvas-menu .ana-header .site-mobile-menu {
	transform: translateX(0%);
}

.ana-header .site-mobile-menu .site-mobile-menu-header {
	width: 100%;
	float: left;
	padding-left: 20px;
	padding-right: 20px;
}

.ana-header .site-mobile-menu-close {
	float: right;
	margin-top: 1rem;
}

.ana-header .site-mobile-menu-close span {
	font-size: 30px;
	display: inline-block;
	padding-left: 10px;
	line-height: 1;
	cursor: pointer;
	transition: 0.3s all ease;
	color: var(--ana-title-color);
}

.ana-header .site-mobile-menu-close span:hover {
	color: #946b45;
}

.ana-header .site-mobile-menu-body {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	position: relative;
	padding: 20px;
	height: calc(100vh - 52px);
	padding-bottom: 150px;
}

.ana-header .site-nav-wrap {
	padding: 0;
	margin: 0;
	list-style: none;
	position: relative;
}

.ana-header .site-nav-wrap a {
	padding: 10px 20px;
	display: block;
	position: relative;
	color: var(--ana-title-color);
}

.ana-header .site-nav-wrap a.active,
.ana-header .site-nav-wrap a:hover {
	color: #946b45;
	text-decoration: none;
}

.ana-header .site-nav-wrap li {
	position: relative;
	display: block;
}

.ana-header .site-nav-wrap .arrow-collapse {
	position: absolute;
	right: 0;
	top: 10px;
	z-index: 20;
	width: 36px;
	height: 36px;
	text-align: center;
	cursor: pointer;
	border-radius: 50%;
}

.ana-header .site-nav-wrap .arrow-collapse:hover {
	background: #f8f9fa;
}

.ana-header .site-nav-wrap .arrow-collapse:before {
	font-size: 12px;
	z-index: 20;
	font-family: "ana-icomoon";
	content: "\f078";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-180deg);
	transition: 0.3s all ease;
}

.ana-header .site-nav-wrap .arrow-collapse.collapsed:before {
	transform: translate(-50%, -50%);
}

.ana-header .site-nav-wrap > li {
	display: block;
	position: relative;
	float: left;
	width: 100%;
}

.ana-header .site-nav-wrap > li > a {
	padding-left: 20px;
	font-size: 20px;
}

.ana-header .site-nav-wrap > li > ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.ana-header .site-nav-wrap > li > ul > li > a {
	padding-left: 40px;
	font-size: 16px;
}

.ana-header .site-nav-wrap ul.collapse {
	display: none;
}

.ana-header .site-nav-wrap ul.collapse.show {
	display: block;
}

/* Responsivo: alterna hamburguer <-> menu horizontal em 992px, igual ao site principal (Bootstrap lg) */
@media (min-width: 992px) {
	.ana-header .ana-header__toggle-wrap {
		display: none;
	}

	.ana-header ul.site-menu.main-menu {
		display: flex;
	}
}

/* Escala responsiva do header, igual ao site principal (css/style.css) */
@media (max-width: 1650px) {
	.ana-header .navbar__cta__btn {
		font-size: 1.35rem;
	}

	.ana-header .site-menu > li > a {
		font-size: 1.35rem;
	}

	.ana-header .site-navigation {
		max-width: 980px;
	}

	.ana-header .site-navbar-container {
		max-width: 1450px;
	}
}

@media (max-width: 1400px) {
	.ana-header .site-navigation {
		max-width: 950px;
	}

	.ana-header .site-menu > li > a {
		font-size: 1.2rem;
	}

	.ana-header .navbar__cta__btn {
		font-size: 1.15rem;
	}

	.ana-header .site-menu .has-children .dropdown a {
		font-size: 1.1rem;
	}
}

@media (max-width: 1200px) {
	.ana-header .site-navigation {
		max-width: 750px;
	}

	.ana-header .site-menu > li > a {
		font-size: 1rem;
	}

	.ana-header .navbar__cta__btn {
		font-size: 1rem;
	}

	.ana-header .site-menu .has-children .dropdown a {
		font-size: 1rem;
	}
}

/* Abaixo de 992px o menu horizontal vira hamburguer: o nav encolhe para caber
   só o botao, e passa para depois do CTA na ordem visual (logo | CTA | hamburguer) */
@media (max-width: 991px) {
	.ana-header .site-navigation {
		width: 40px;
		max-width: none;
		order: 2;
	}
}

@media (max-width: 768px) {
	.ana-header .navbar__cta__btn {
		font-size: 0.95rem;
		padding: 0.35rem 1.15rem;
	}

	.ana-header .site-mobile-menu {
		width: 250px;
	}

	.ana-header .site-nav-wrap > li > a {
		padding-left: 0.5rem;
	}
}
