/* Configurações */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

:root {
    --maincolor1: #e3a72f;
    --maincolor2: #bb8633;
    --maincolor3: #ddd98c;
    --secondcolor1: #245091;
    --secondcolor2: #6494de;
    --darkcolor: #222222;
    --whitecolor: #fcfcfc;

    --montserrat: 'Montserrat', sans-serif;
    --opensans: 'Open Sans', sans-serif;
}

/* Cabeçalho */

header {
    background-color: var(--darkcolor);
    width: 100%;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0% 5%;
    transition: 150ms ease-in-out;
    position: fixed;
    top: 0;
    z-index: 1000;
}

header .logo-box {
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

header img {
    width: 80%;
}

header .menu {
    width: 80%;
    height: 100%;
}

.menu-list {
    list-style-type: none;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.menu-list-item {
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.menu-list-item a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: normal;
    font-family: var(--opensans);
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2rem;
    transition: 150ms ease-in-out;
}

.menu-list-item a:hover {
    background-color: var(--maincolor1);
}

/* Header Sublists */

.sublist-services {
    display: none;
    position: absolute;
    top: 10vh;
    left: 0;
    padding: 0;
    list-style-type: none;
    background-color: var(--maincolor1);
    width: 100%;
}

.sublist-services li {
    text-align: center;
}

.sublist-services li a {
    padding: 1rem;
    background-color: var(--darkcolor);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sublist-services li a:hover {
    background-color: var(--maincolor1);
    outline: none;
}

header .menu-list-item:hover ul {
    display: block;
}

/* Menu Mobile */

.mobile-menu-list {
    display: none;
}

.mobile-menu-icon {
    display: none;
    position: relative;
    cursor: pointer;
    width: 35px;
    min-height: 25px;
    height: auto;
}

.bar {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #fff;
    transition: 0.25s ease-in-out;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transform: rotate(0deg);
    opacity: 1;
}

/* Devices */

@media screen and (max-width: 1264px) {

    header {
        padding: 0rem 8rem;
    }
   
    header .menu-list {
        padding: 0;
    }

    header .menu-list-item a {
        font-size: 0.7rem;
        padding: 1rem;
    }
}

@media screen and (max-width: 948px) {
    header .logo-box {
        height: 100%;
    }

    header .logo-box a img {
        height: 100%;
        width: 100%;
    }

    header .menu-list-item a {
        padding: 0.6rem;
    }

}

@media screen and (max-width: 836px) {
    header {
        padding: 0rem 4rem;
        height: 8vh;
    }
}

/* Mobile devices */

@media screen and (max-width: 768px) {
    header {
        justify-content: space-between;
        padding: 0rem 2rem;
        height: 8vh;
        z-index: 10000;
    }

    header .logo-box {
        width: 15%;
    }
    
    .menu {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .bar:nth-child(1) {
        top: 0%;
    }
    .bar:nth-child(2),
    .bar:nth-child(3) {
        top: 50%;
    }
    .bar:nth-child(4) {
        top: 100%;
    }

    .mobile-menu-list {
        display: block;
        position: fixed;
        width: 100vw;
        height: auto;
        margin-top: 8vh;
        top: -100vh;
        left: 0;
        background-color: var(--darkcolor);
        border-top: 1px solid var(--whitecolor);
        padding: 2rem;
        transition: all 0.8s ease-in-out;
        z-index: 1000;
    }

    .mobile-menu-list .menu-list-item  {
        min-height: 3rem;
        height: auto;
        display: flex;
        justify-content: center;
        transition: 150ms ease;
    }

    .mobile-menu-list .menu-list-item:hover ul {
        display: block;
    }

    .mobile-menu-list .menu-list-item a {
        display: flex;
        justify-content: space-between;
        padding: 0;
        padding-left: 1rem;
        font-size: 0.8rem;
        height: 50px;
    }

    .menu-list-drop {
        width: 10%;
        height: 100%;
        display: flex;
    }

    .menu-list-drop i {
        margin: auto;
        font-size: 1rem;
    }

    .sublist-services {
        position: relative;
        top: 0;
        background-color: var(--whitecolor);
        display: block;
        height: 0;
        overflow: hidden;
        transition: all 0.2s;
    }

    .sublist-services-item {
        margin-left: 0.5rem;
    }

    .sublist-services-item:hover {
        background-color: var(--secondcolor1);
    }

    /* Open */

    .mobile-menu-list .menu-list-item:nth-child(3):hover ul {
        height: 250px;
    }

    .mobile-menu-list .menu-list-item:nth-child(4):hover ul {
        height: 50px;
    }

    .mobile-menu-list.open {
        top: 0;
    }
    
    .mobile-menu-icon.open .bar:nth-child(1) {
        top: 50%;
        width: 0px;
        left: 50%;
    }
    .mobile-menu-icon.open .bar:nth-child(2) {
        transform: rotate(45deg);
    }
    .mobile-menu-icon.open .bar:nth-child(3) {
        transform: rotate(-45deg);
    }
    .mobile-menu-icon.open .bar:nth-child(4) {
        top: 50%;
        width: 0px;
        left: 50%;
    }

    /* Fim Open */

}

@media screen and (max-width: 450px) {
    header .logo-box {
        width: 25%;
    }
}