/*
  MENU v 1.1;
  05/2023;
  João Diogo Pereira;
*/

.site-header{
    z-index: 99;
    background-color: var(--white);
    border-bottom: solid 1px var(--gray);
}

.site-header .logo-header h1{
    margin: 0;
    line-height: 0;
}

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

.site-header .logo-header img {
    max-width: 180px; 
    height: auto;
}

.site-header .navigation a{
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 400;
    color: var(--darkgray);
    text-decoration: underline;
    text-decoration-color: var(--white);
    transition: all .3s ease-in-out;
}

.site-header .navigation a:hover, .site-header .navigation li.current-menu-item a{
    color: var(--black);
    text-decoration-color: var(--black);
}

.site-header .navigation span{
    color: var(--yellow);
    font-size: 16px;
    font-weight: 400;
}

.site-header .submenu{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    background-color: var(--gray);
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transform-origin: top center;
    transition: all .3s ease-in-out;
}

.site-header .submenu a{
    white-space: nowrap;
    color: black;
    font-size: 14px;
    text-decoration-color: var(--gray);
}

.site-header .submenu a:hover, .site-header .submenu .current-menu-item a{
    text-decoration-color: var(--black);
}

.site-header li.hasSubmenu:hover > .submenu{
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
}

/*MOBILE*/

.menu-mobile{
    line-height: 0;
}

#sidebarMenu {
    position: fixed;
    right: 0;
    top: var(--headerSize);
    width: 300px;
    transform: translateX(300px);
    background: var(--white);
    overflow: auto;
    height: fit-content;
    height: calc(100vh - var(--headerSize));
    max-height: calc(100vh - var(--headerSize));
    z-index: 99;
    transition: transform .3s ease-in-out;
}

.sidebarMenuInner{
    margin: 0;
    padding: 1rem;
}

.sidebarMenuInner li:not(.navigation-btns){
    list-style: none;
    background-color: transparent;
    transition: all .3s ease-in-out;
}

.sidebarMenuInner li:not(.navigation-btns) a{
    display: inline-block;
    color: var(--black);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    width: 100%;
    padding: .5rem 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all .3s ease-in-out;
}

.sidebarMenuInner li:not(.navigation-btns):hover a, .sidebarMenuInner li.current-menu-item:not(.navigation-btns) a{
    color: var(--green);
    text-decoration-color: var(--green);
}

input.openSidebarMenu[type="checkbox"]:checked ~ #sidebarMenu {
    transform: translateX(0);
}

input.openSidebarMenu[type=checkbox] {
    transition: all 0.3s;
    box-sizing: border-box;
    display: none;
}

.sidebarIconToggle {
    cursor: pointer;
    position: relative;
    z-index: 99;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all .3s ease-in-out;
}

.spinner {
    position: absolute;
    height: 3px;
    width: 23px;
    border-radius: 5px;
    background-color: var(--black);
    transition: all .3s ease-in-out!important;
}

.horizontal {
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    float: left;
    margin-top: 3px;
}

.diagonal.part-1 {
    position: relative;
    transition: all 0.3s;
    box-sizing: border-box;
    float: left;
}

.diagonal.part-2 {
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    float: left;
    margin-top: 3px;
}

input[type=checkbox]:checked ~ .sidebarIconToggle > .horizontal {
    transition: all 0.3s;
    box-sizing: border-box;
    opacity: 0;
}

input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-1 {
    transition: all 0.3s;
    box-sizing: border-box;
    transform: rotate(135deg);
}

input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-2 {
    transition: all 0.3s;
    box-sizing: border-box;
    transform: rotate(-135deg);
    margin-top: -9px;
}

@media only screen and (max-width: 992px){
    .site-header .submenu{
        position: relative;
        transform: translateX(0) scaleY(1);
        background-color: transparent;
        text-align: left;
        opacity: 1;
        top: 0;
        left: 0;
        padding: 0 1rem;
    }
}

@media only screen and (max-width: 767px){
    .site-header .logo-header img{
        width: 135px;
        height: 100%;
        object-position: center;
    }

    #sidebarMenu{
        width: 85vw;
        transform: translateX(85vw);
    }
}