header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: var(--white);
}

header.startPage.header--fixed {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    background: var(--white);
}

header.showBorder {
    border-bottom: solid 1px var(--white);
}

header .invertedLogo {
    display: none;
}

header.startPage {
    background: transparent;
}

header.startPage .logo {
    display: none;
}

header.startPage.header--fixed .logo {
    display: block;
}

header.startPage .invertedLogo {
    display:block;
}

header.startPage.header--fixed .invertedLogo {
    display: none;
}

header.header--fixed.showBorder {
    border-bottom: none;
}

.headerWrapper > div {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.headerServicesMenu {
    width: 80%;
    right: 2%;
    margin-top: 1rem;
    display: none;
}

#toogleServices svg {
  transition: transform 0.3s ease;
}

#toogleServices.open svg {
  transform: rotate(180deg);
}

.nav-link {
    color: var(--primary);
}


header.startPage .nav-link  {
    color: var(--white);
}

header.startPage.header--fixed .nav-link {
    color: var(--primary) !important;
}

.nav-pills, .nav-pills .nav-link {
    border-radius: 0;
    border-bottom: solid 2px transparent;
}

.nav-link:hover, .nav-link:focus, .nav-link:focus-visible, .nav-link:active {
    color: var(--primary);
    border-bottom: solid 2px var(--secondary);
}

header.startPage .nav-link:hover, header.startPage .nav-link:focus, header.startPage .nav-link:focus-visible, header.startPage .nav-link:active {
    color: var(--white);
    border-bottom: solid 2px var(--secondary);
    border-radius: 0;

}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background: none;
    color: var(--white);
    border-bottom: solid 2px var(--secondary);
}

.showSubMenu svg {
    position:relative;
    left: -5px;
    top: 3px;
    cursor: pointer;
}

#menu {
    display: none;
    top: 87px;
}


.mm-listview {
    padding: 1rem;
}

.mm-panel {
    padding-top: 2rem;
}


.mm-menu--theme-light {
    background: var(--bg-primary);
}

.mm-navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2rem;
}

.mm-navbar__title > span {
    color: var(--white);
    font-size: 1.6rem;
    overflow: visible;
    padding-bottom: 0.5rem;
}

.mm-panel > ul.level-1 .mm-listitem__text.isPrio {
    font-size: 2.222rem;
    padding: calc((var(--mm-listitem-size) - var(--mm-lineheight)) / 2) 0;
    padding-left: 20px;
}

.mm-panel > ul.level-1 .mm-listitem__text {
    font-size: 1.6rem;
}

a.mm-btn.mm-btn--next.mm-listitem__btn {
    color: var(--white);
}

.level-2 a.mm-listitem__text, .level-3 a.mm-listitem__text {
    font-size: 1.6rem;
}

.mm-menu a:hover {
    text-decoration: underline;
}

.lang {
    position:relative;
}

.lang .chosenLang {
    color: var(--black);
    cursor: pointer;
    border-bottom: solid 2px var(--black);
    padding-bottom: 0.2rem;
    padding-left: 10px;
    padding-right: 10px;
}


.template-dark .lang .chosenLang {
    color: var(--white);
    border-bottom: solid 2px #a8aba4;
}

.lang .chosenLang:hover {
    border-bottom: solid 2px var(--yellow);
}

.lang .chooseLang {
    display: none;
    background: var(--sand);
    color: var(--black);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.lang .chooseLang.open {
    display:block;
    position:absolute;
}

.lang .chooseLang > div {
    cursor: pointer;
    padding: 0.2rem 1rem;
}

.lang .chooseLang > div:hover {
    background: var(--dark-yellow);
    color: var(--white);
}

.lang img {
    cursor:pointer;
    filter: invert(1);
}

.template-dark .lang img {
    filter: inherit;
}

.template-dark .lunch a {
    color: var(--white);
    border-bottom: solid 2px #a8aba4;
    font-family: "aleo";
}

.subMenuWrapper {
    flex-grow: 1;
    display: none;
    position:absolute;
}

.subMenuWrapper.active {
    display:flex;
}

.subMenuWrapper a {
    width: 25%;
}

.subMenuWrapper a:hover div {
    border-radius: 30px;
    background: rgba(183,206,230,0.1);
}

.subMenuWrapper div {
    background: var(--primary);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.subMenuWrapper a {
    text-decoration: none;
}

@media (max-width:1120px) { 
    .headerWrapper .logo {
        order: 2;
    }
    
    .headerWrapper div:last-child {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .headerWrapper > ul {
        order: 3;
    }
}

@media (orientation: portrait) and (max-width:1024px) {
        li.nav-item {
        display: none !important;
    }
    

    .nav-pills li:last-child {
        display: block !important;
        margin-right: 2rem;
    }
}

@media (orientation: landscape) and (max-width:1024px) {
    .headerWrapper div:last-child {
        margin-left: 0;
    }
}

@media (max-width:860px) { 
    .headerWrapper .logo {
        order: 1;
        width: 100%;
    }
    
    .headerWrapper div:last-child {
        order: 3;
        width: auto;
        justify-content: flex-end;
    }
    
    .headerWrapper > ul {
        order: 2;
    }
    

    li.nav-item {
        display: none !important;
    }
    

    .nav-pills li:last-child {
        display: block !important;
        margin-right: 1rem;
    }
 
}

@media (max-width: 560px) {
    .headerWrapper .logo {
        order: 1;
       
    }


}
        