
/*--------------------------------------------------------------
*
* 	NAVIGATION
*
--------------------------------------------------------------*/

/* NAV CORE
-------------------------------------------------- */

body{
    --var: 768px;
}

.nav-link {
    color: var(--clr-navLink);
    padding: 8px 0;
    margin: 0 15px;
}
.nav-link.active{
    color: var(--clr-navLinkActive) !important;
}
.nav-pills .nav-link {
    border-radius: 0;
    border-bottom: 3px solid #fff;
}
.nav-link:focus, .nav-link:hover {
    color: var(--clr-navLinkHover);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #000;
    background-color: inherit;
    border-bottom: 3px solid #000;
}


/* SITE-BRANDING
-------------------------------------------------- */

.site-branding {
    display: inline-block;
    margin-top: auto;
}

.site-branding a {
    display: flex;
    width: fit-content;

}

.site-branding img.img-logo {
    height: 15px;
    margin-right: 20px;
}
.site-branding img.img-foto {
    margin-top: -2px;
}



/* NAVBAR BURGER
-------------------------------------------------- */

.navbar-toggler{
    display: none;
    position: relative;
    height: 40px;
    width: 40px;
    border: 0;
    background-color: transparent;
    border: unset;
}
.navbar-toggler span{
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--clr-burger);
    left: 0;
    transition: all 250ms ease-in-out;
}
.navbar-toggler span:nth-child(1){
    top: 0;
}
.navbar-toggler span:nth-child(2){
    top: 10px;
}
.navbar-toggler span:nth-child(3){
    top: 20px;
}
.navbar-toggler.show span:nth-child(1){
    transform: rotateZ(45deg);
    top: 10px;
}
.navbar-toggler.show span:nth-child(2){
    width: 0;
    left: 25px;
}
.navbar-toggler.show span:nth-child(3){
    transform: rotateZ(-45deg);
    top: 10px;
}
.navbar-toggler.show span{
    background-color: var(--clr-burger-open);
}
.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
     box-shadow: none;
}

/* MOBILE SWITCH BURGER */
.navbar-toggler {
    display: none;
    cursor: pointer;
}  

a[href*='?s=']{
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-left: 0 !important;
    padding-left: 0 !important;
}


/* MAINMENU
-------------------------------------------------- */
#main-menu{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.navbar-nav{
    display: flex;
    align-items: center;
    padding-left: 0;
    list-style: none;
    margin: 0;
}
.navbar-nav li:last-of-type a{
    padding-right: 0 !important;
}
.navbar a {
    display: block;
    font-size: 24px;
    text-decoration: none;
    width: max-content;
}
.navbar #main-menu:not(.show) li:not(:last-of-type, :first-of-type) a::before {
    display: inline-block;
    position: relative;
    content: '';
    width: 5px;
    height: 5px;
    background-color: var(--clr-navLink);
    border-radius: 100vmax;
    vertical-align: middle;
    right: 25px;
}
.navbar-expand-md .navbar-nav .nav-link {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

/* DROPDOWN
-------------------------------------------------- */

.dropdown-menu {


    background-color: #000;
    border-radius: 0;
}
.dropdown-menu a{
    text-transform: none;
}



/* DROPDOWN
-------------------------------------------------- */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #000;
    border-radius: 0;
}
.dropdown-menu a{
    text-transform: none;
}

.navbar-expand-xl .navbar-nav .nav-link {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}
.dropdown-menu {
    border-radius: 0;
}
.dropdown-menu a {
    color: #fff;
    text-transform: none;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 18px;
}
.dropdown-menu[data-bs-popper] {
    margin-top: 22px;
}
.dropdown-item.active, .dropdown-item:active {
    color: #ccc;
    background-color: inherit;
}
.navbar .dropdown-item a:hover {
    color: #ccc;
}
.dropdown-item:focus, .dropdown-item:hover {
    background-color: inherit;
}
.dropdown-item a:focus {
    background-color: inherit;
}
.navbar-toggler:focus {
    box-shadow: none;
}



/* TOPMENU
-------------------------------------------------- */
.topmenu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background-color: #F6F6F6;
    margin-bottom: 38px;
    width: fit-content;
}
.topmenu li a.active{
    font-weight: 600 !important;
}
.topmenu li:last-of-type a{
    padding-right: .75rem !important;
}
.topmenu #tertiary-menu a{
    font-family: var(--ff-IBMPlexSerif);
    font-size: 14px;
    color: black;
    font-weight: normal;
    padding-block: 18px;
}
.topmenu #tertiary-menu .lang-item a{
    color: var(--clr-gold);
    font-weight: bold;
}
.topmenu #tertiary-menu a::before{
    display: none !important;
}



/* FOOTER
-------------------------------------------------- */

.menu-footermenu-container a {
    color: #fff;
    text-decoration: none;
}





/* RESPONSIVE
-------------------------------------------------- */

@media only screen and (max-width: 1400px) {
    .site-header .container {
        flex-wrap: wrap;
        justify-content: center;
    }


    .site-branding {
        flex-basis: 100%;
    }
    .site-branding a {
        display: flex;
    }
    .img-foto {
        height: 23px;
    }

}
@media only screen and (max-width: 1280px) {

}
@media only screen and (max-width: 1200px) {
    #main-menu{
        display: none;
        padding-inline: 18px;
    }
    #main-menu.show {
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-start;
        align-items: flex-start;
    }
    #primary-menu{
        width: 100%;
        padding-bottom: 30px;
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.16);
        margin-bottom: auto;
    }
    #primary-menu #menu-item-585{
        display: none;
    }
    .navbar-toggler{
        display: flex;
    }
    .dropdown-menu.show {
        display: block;
    }
    .site-header{
        z-index: 10;
    }
    .navbar {
        position: unset;
    }
    .navbar-collapse.collapse.show, .navbar-collapse.collapsing {
        z-index: -1;
        position: absolute;
        top: -30px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 30px);
        background-color: var(--clr-navbarMobileBackground);
        padding-top: 170px;
    }
    .navbar-nav{
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
    }
    .navbar-nav li {
        width: 100%;
    }
    .dropdown-menu {
        margin: 0;
        padding: 0 0 5px 0;
        text-align: center;
        background: rgba(255,255,255,0.1);
    }
    .dropdown-menu[data-bs-popper] {
        margin-top: 0;
    }
    .dropdown-menu a {
        padding: 8px 20px;
        font-size: 16px;
    }
    .dropdown-menu a:hover {
        color: #ccc !important;
    }

    .topmenu #tertiary-menu a {
        font-size: 16px;
        color: var(--clr-navLink);
    }

    #tertiary-menu,
    .topmenu{
        width: 100%;
        justify-content: flex-start;
        background-color: white;
    }
    .search-form{
        position: relative;
        width: 100%;              
    }
    .search-button{
        position: absolute;
        right: 10px;
        top: -2px;
        height: 100%;
        width: 50px;
        background-color: transparent;
        border: none;
        color: var(--clr-navLink);
        background: none;
        border: none;
        cursor: pointer;
    }
    input[type="search"],
    .search-input{
        font-size: 16px;
        width: 100%;
        padding: 13px 50px 13px 20px;
        color: black;  
        background-color: #F6F6F6;
        border: none;
        border-radius: 13px;        
    }
}
@media only screen and (max-width: 960px) {

}
@media only screen and (max-width: 768px) {
    

}
@media only screen and (max-width: 650px) {

}


@media (min-width: 768px) {
    
}


@media(max-width: var(--var)) {
    header {
        background: var(--clr-red) !important;
      }
}