
/* WRAP TOP */
.nav-top-wrap {
	position: fixed; /* fixed */
	top: 0;
	width: 100%;
	z-index: 16;
	height: 80px;

	display: flex;
	align-items: stretch;

	background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
	transition: all 0.2s ease-in-out;
}
body[data-scroll='down'] .nav-top-wrap {
	transform: translateY(-80px);
	opacity: 0;
}
body.menu-open .nav-top-wrap {
	transform: translateY(0px) !important;
	background-color: transparent;
}


/* TOP LOGO */
.nav-top-logo {
	display: flex;
    align-items: center;
}
.nav-top-logo img,
.nav-top-logo svg {
	object-fit: contain;
	height: 60px;
}


/* MENU TOP */
.nav-top-menu,
.nav-top-menu ul,
.nav-top-menu li {
	display: flex;
}
.nav-top-menu li a {
	display: block;
	align-content: center;
    white-space: nowrap;
    font-size: .9rem;
    padding: 0 1rem;
}
.nav-top-menu li a:hover,
.nav-top-menu li.current-menu-item a,
.nav-top-menu li.current_page_item a,
.nav-top-menu li.current_page_ancestor a,
.nav-top-menu li a.sub-active {
	color: red;
	text-decoration: none;
}



/* DROPDOWN */
.nav-top-menu > ul > li > ul {
	position: absolute;
	display: none;
	font-size: initial;
	top: 80px;
	z-index: 20;
	background-color: #eee;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px;
	border-radius: 3px;

	-ms-flex-direction: column;
	flex-direction: column;
}
.nav-top-menu ul ul:before {
	content: "";
	border-style: solid;
	border-width: 0 9px 9px 9px;
	border-color: transparent transparent #eee transparent;
	height: 0;
	position: absolute;
	left: 25px;
	top: -9px;
	width: 0;
	cursor: pointer;
}
.nav-top-menu ul ul li {
	display: block;
}
.nav-top-menu ul ul li a {
	display: block;
	margin: 0;
	padding: 10px 20px;
	line-height: 120%;
}
.nav-top-menu ul ul li a:hover,
.nav-top-menu ul ul li.current-menu-item a {
	background-color: rgba(0,0,0,0.05);
}


/* MEGAMENU */
.nav-top-menu li.megamenu {}
.nav-top-menu li.megamenu ul.sub-menu{
	padding-top: 60px;
	padding-bottom: 60px;
	left: 0;
    width: 100%;

    -ms-flex-direction: row;
    flex-direction: row;
}
.nav-top-menu li.megamenu ul.sub-menu ul.sub-menu {
	padding-top: 10px;
	padding-bottom: 0px;
	flex-direction: column;
}
.nav-top-menu li.megamenu li.megasub {
	-ms-flex-preferred-size: 0;
	flex-basis: 0;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	max-width: 100%;
}
.nav-top-menu li.megamenu li.megasub a {
	height: auto;
	line-height: 1.4;
	padding: 5px 20px;
	background-color: unset;
	font-weight: normal;
	text-transform: initial;
}
.nav-top-menu li.megamenu li.megasub > a {
	height: auto;
	line-height: 1.4;
	color: #888;
	font-weight: bold;
	text-transform: uppercase;
}
.nav-top-menu li.megamenu li.megasub li {
	display: block;
}
.nav-top-menu li.megamenu li.megamore a {
	color: #888;
	margin-top: 15px;
}





/* WRAP LEFT */
.nav-left-wrap {
	position: fixed;
	top: 0;
	bottom: 0;
	left: -300px;
	width: 300px;
	z-index: 1050;
	background-color: #fff;
    overflow: auto;

    -ms-flex-direction: column;
  	flex-direction: column;

	-webkit-transform: translateX(0px);
	-moz-transform: translateX(0px);
	transform: translateX(0px);

	-webkit-transition-property: -webkit-transform;
	-moz-transition-property: -moz-transform;
	transition-property: transform;

	-webkit-transition-duration: .4s;
	-moz-transition-duration: .4s;
	transition-duration: .4s;

	will-change: transform;
	-webkit-overflow-scrolling: touch;
}
.nav-left-open .nav-left-wrap {
	-webkit-transform: translateX(300px);
	-moz-transform: translateX(300px);
	transform: translateX(300px);
}
.nav-left-wrap::-webkit-scrollbar {
	display: none;
}
.nav-left-wrap .wrap {
	padding-right: 0;
	padding-left: 0;
}


/* MENU LEFT */
.nav-left-menu ul li a {
	display: block;
	text-decoration: none;
	padding: .7rem 1rem;
}
.nav-left-menu li a:hover,
.nav-left-menu a.sub-active,
.nav-left-menu ul li.current-menu-item a,
.nav-left-menu .current_page_item > a,
.nav-left-menu .current-menu-ancestor > a {
	text-decoration: none;
	font-weight: bold;
	color: initial;
}

/* SUBMENU */
.nav-left-menu ul ul.sub-menu {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: 300px;
	z-index: 1060;
	overflow-y: auto;
	background-color: #FFF;

	-webkit-transform: translateX(-100%);
	-moz-transform: translateX(-100%);
	transform: translateX(-100%);

	-webkit-transition-property: -webkit-transform;
	-moz-transition-property: -moz-transform;
	transition-property: transform;

	-webkit-transition-duration: .2s;
	-moz-transition-duration: .2s;
	transition-duration: .2s;
}
.nav-left-menu ul ul.sub-opened {
	-webkit-transform: translateX(0);
	-moz-transform: translateX(0);
	transform: translateX(0);
}

/* SUBMENU ARROW */
.nav-left-menu .menu-item-has-children > a::after {
	content:'';
	width: 20px;
	height: 26px;
	float:right;
	background: url(../icons/arrow-right.svg) no-repeat center center;
}
.nav-left-menu li.sub-back::after {
	content:'';
	width: 20px;
	height: 26px;
	margin-right: 10px;
	float: left;
	background: url(../icons/arrow-left.svg) no-repeat center center;
}
.nav-left-menu li.sub-back {
	background-color: #eee;
	font-weight: bold;
	padding: .7rem 1rem;
	margin-bottom: 1rem;
}
.nav-left-menu ul ul {
	float: left;
	width: 100%;

	-webkit-transition: max-height 1s linear;
	-moz-transition: max-height 1s linear;
	transition: max-height 1s linear;
}

/* ANIMATION 
.nav-top-wrap li {
	opacity: 0;
	-webkit-transition: opacity .5s linear;
	-moz-transition: opacity .5s linear;
	transition: opacity .5s linear;
}
.nav-left .nav-top-wrap li {
	opacity: 1;
}
.nav-left .nav-top-wrap li:nth-child(1) { transition-delay: .3s; }
.nav-left .nav-top-wrap li:nth-child(2) { transition-delay: .4s; }
.nav-left .nav-top-wrap li:nth-child(3) { transition-delay: .5s; }
.nav-left .nav-top-wrap li:nth-child(4) { transition-delay: .6s; }
.nav-left .nav-top-wrap li:nth-child(5) { transition-delay: .7s; }
.nav-left .nav-top-wrap li:nth-child(6) { transition-delay: .8s; }
.nav-left .nav-top-wrap li:nth-child(7) { transition-delay: .9s; }
.nav-left .nav-top-wrap li:nth-child(8) { transition-delay: 1s; }
.nav-left .nav-top-wrap li:nth-child(9) { transition-delay: 1.1s; }
.nav-left .nav-top-wrap li:nth-child(10) { transition-delay: 1.2s; }
.nav-left .nav-top-wrap li:nth-child(11) { transition-delay: 1.3s; }
.nav-left .nav-top-wrap li:nth-child(12) { transition-delay: 1.4s; }
*/




/* OVERLAY */
.nav-overlay {
	position: fixed;
	height: 100vh;
	width: 100%;
	overflow: hidden;
	background: rgba(0, 0, 0, .8);
	backdrop-filter: blur(2px);

	opacity: 0;
	visibility: hidden;
	z-index: -10;
	transition: opacity .2s linear;
}
body.nav-left-open .nav-overlay {
	opacity: 1;
    visibility: visible;
    z-index: 17;
}


/* ICON HAMB */
.nav-top-hamb {
	display: flex;
	align-items: center;
}
.nav-hamb-icon {
	position: relative;
	margin-left: auto;
	height: 40px;
	width: 40px;
	z-index: 20;
	cursor: pointer;
}
.nav-hamb-icon:before,
.nav-hamb-icon:after {
	position: absolute;
	content: '';
	width: 40px;
	height: 2px;
	background-color: #000;
	transition: all .2s;
}
.nav-hamb-icon:before {
    top: 15px;
}
.nav-hamb-icon:after {
    top: 25px; 
}
body.nav-left-open .nav-hamb-icon:before {
    transform: rotate(45deg);
    top: 20px;
}
body.nav-left-open .nav-hamb-icon:after {
    transform: rotate(-45deg);
    top: 20px;
}

