/*------------------------------------------------------------------
[ 4. Navigation / main menu, mega menu ]
*/
nav div {
    display: flex;
    align-items: center;
}
nav {
    height: 50px;
    padding: 10px 0;
}
.mobile nav {
    
}
nav .current-menu-item>a {
    color: var(--primary)
}
#page {
    transform: translateX(0);
    -webkit-transition: all 0.6s ease-in-out;
    transition: all 0.6s ease-in-out;
}
#page.opened {
    //transform: translateX(-75vw);
}
.menu-btn-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}



.navbar-default {
	position: relative;
	width: 100%;
	z-index: 9;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	margin-bottom: 0;
	-webkit-transition: all ease-in-out 0.4s;
	-moz-transition: all ease-in-out 0.4s;
	-ms-transition: all ease-in-out 0.4s;
	-o-transition: all ease-in-out 0.4s;
	transition: all ease-in-out 0.4s;
}

.navbar-center {
	width: 100%;
	top: 0;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.social-wrapper {
    position: absolute;
    top: 20px;
    left: 20px;
}
.social-wrapper .navbar-nav {
    -ms-flex-direction: row;
    flex-direction: row;
}
.social-wrapper [class^="itia-"], .social-wrapper [class*=" itia-"] {
    font-size: 24px !important;
}
.social-wrapper .navbar-nav>li>a {
    padding: 4px;
    opacity: 0.5;
}

@media (min-width: 768px) {
	.navbar-flex {
		display: -webkit-inline-flex;
		display: -ms-inline-flexbox;
		display: inline-flex;
	}
    
	.navbar-middle {
		float: none;
		vertical-align: top;
	}
	.container-flex {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: -webkit-flex;
		display: flex;
		-webkit-box-pack: justify;
		-moz-box-pack: justify;
		-ms-flex-pack: justify;
		-webkit-justify-content: space-between;
		justify-content: space-between;
	}
	.navbar-header {
		position: relative;
		z-index: 2;
	}
	.navbar .navbar-collapse {
		text-align: right;
		position: relative;
		/*Needed to keep the mega menu in place*/
		/*z-index: 1;*/
	}
}
.navbar-nav {
    flex-direction: row;
    
}
.navbar-nav.opened {
    display: flex;
    
}
.navbar-nav>li {
    position: relative;
    
}
.navbar-nav>li>a {
    box-shadow: none !important;
    white-space: nowrap;
    padding: 10px 20px;
    margin: 0 1px;
    font-size: 16px;
    text-transform: uppercase;
    font-family: 'Work Sans';
    position: relative;
    overflow: hidden;
    line-height: 1.916;
    color: var(--bs-gray-900);
    font-weight: 400;
            
    -webkit-transition: all ease-in-out 0.2s;
    -moz-transition: all ease-in-out 0.2s;
    -ms-transition: all ease-in-out 0.2s;
    -o-transition: all ease-in-out 0.2s;
    transition: all ease-in-out 0.2s;
    
    -webkit-font-smoothing: antialiased;
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
}
.navbar-nav>li:hover > a:before {
    content: '';
    position: absolute;
    width: calc(100% - 32px);
    height: 2px;
    background: #4E71A8;
    bottom: 0;
}
.navbar-nav > li.menu-item-has-children:after {
    content: '\f0dd';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    right: 0;
    top: 1px !important;
}
.navbar-nav > li.menu-item-has-children.hidden:after {
    display: none;
}
                                
.navbar-nav.navbar-right>li>a {
	padding: 50px 20px;
}

.navbar-nav>li.menu-eshop>a {
	border: solid 1px var(--primary);
    box-sizing: content-box;
}


.container>.navbar-icons {
    display: none;
}
.lang-nav.mobile-nav {
    display: none;
}
.lang-nav>li>a:after,
.lang-nav>li>a:hover:after {
    content: '/';
    font-size: 24px;
    font-weight: 200;
    font-family: 'Work Sans';
    position: absolute;
    top: -2px;
    right: -4px;
    display: none;
}
.lang-nav>li>a {
    padding: 10px 0;
}
.lang-nav>li>a:first-child {
    padding-left: 15px;
}
.lang-nav>li:last-child>a {
    padding-right: 0;
}
.lang-nav>li:not(.current-lang)>a {
    color: var(--medium-primary);
}

/* Dropdown */

.navbar-nav>li>.sub-menu {
	position: absolute;
    padding: 0;
    z-index: 12;
    top: 170%;
    line-height: 32px;
    margin-top: 1px;
    list-style: none;
    background: var(--bs-primary);
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    left: 25px; 
    
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}
.navbar-nav>li>.sub-menu::-webkit-scrollbar {
  width: 7px;
}
.navbar-nav>li>.sub-menu::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
.navbar-nav>li>.sub-menu::-webkit-scrollbar-thumb {
  background: #888; 
}
.navbar-nav>li>.sub-menu::-webkit-scrollbar-thumb:hover {
  background: #555; 
}
.navbar-nav>li:hover>.sub-menu {
    top: 90%;
    opacity: 1;
    visibility: visible;
}
.navbar-nav>li>.sub-menu li:hover {
    background: #7aa3e6;
}
.navbar-nav>li>.sub-menu li>a {
    display: block;
    padding: 0 15px;
    color: #fff;
    line-height: inherit;
    white-space: nowrap;
    text-align: left;
    text-transform: uppercase;
    font-weight: 400;
}
.navbar-nav>li>.sub-menu.open {
    position: relative;
    opacity: 1;
    visibility: visible;
}
@media (max-width: 1024px) {
    .navbar-nav>li>a {
        white-space: nowrap;
        padding: 10px 15px;
        font-size: 14px;
    }
}