header {
    justify-content: space-around;
    align-items: center;
    height: fit-content;
    width: 100%;
    flex-wrap: wrap;
    border-top: 0.4rem solid var(--orange);
}


.header__logo__busca {
    align-self: flex-start;
    padding-top: 0;
    order: 1;
}

.header__logo-sp {
    align-self: flex-start;
    padding-bottom: 17px;
    padding-top: 17px;
    order: 3;
}

.header__logo-sp img{
    width: 13rem;  
}

.header__logo--observa {
    align-self: flex-start;
    padding-bottom: 17px;
    padding-right: 33px;
    padding-top: 17px;
}

.header__pesquisa--lupa {
    align-self: flex-start;
    border: 0.3rem solid var(--orange);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    height: 25px;
    margin-top: -2px;
    padding-top: 0rem;
    text-align: center;
    vertical-align: bottom;
    width: 25px;
}

header>nav {
    order: 2;
}

.header__menu {
    align-content: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    float: left;
    justify-content: space-between;
    list-style-type: none;
}

.header__menuLat--container {
    position: relative;
    display: none;
}


.header__menuLat {
    background-color: var(--black);
    border: 2px solid var(--orange);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 20px;
    list-style-type: none;
    width: 150px;
    box-sizing: border-box;
    display: none;
}


.header__menuLat li {
    box-sizing: border-box;
    width: 100%;
    border-bottom: 1px solid var(--white);
}

.header__menu li,
.header__menuLat li {
    padding: 1rem;
    position: relative;
    text-align: center;
}

.header__menuLat>li {
    text-align: left;
}

.header__menu>li a,
.header__menuLat>li a {
    font-weight: 500;
}

.header__menu>li a:hover,
.header__menu>li a:focus,
.header__menu>li a:active,
.header__menuLat>li a:hover,
.header__menuLat>li a:focus,
.header__menuLat>li a:active {
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--orange);
}


/* How to make bold without shifting layout  
    https://stackoverflow.com/questions/556153/inline-elements-shifting-when-made-bold-on-hover
    https://css-tricks.com/bold-on-hover-without-the-layout-shift/
    https://css-tricks.com/css-attr-function-got-nothin-custom-properties/
 */
.header__menu>li a::after,
.header__menuLat>li a::after {
    display: block;
    content: attr(nome);
    font-weight: 700;
    height: 1px;
    color: transparent;
    overflow: hidden;
    visibility: hidden;
}

.header__menu__publicacoes {
    background-color: var(--black);
    border: 1px solid var(--orange);
    border-radius: 8px;
    display: none;
    left: 0;
    list-style: none;
    margin-left: 10px;
    position: absolute;
    top: 100%;
    width: 120px;
    z-index: 9999;
}

.header__menuLat__publicacoes {
    left: 150px;
    top: 0;
    list-style: none;
    margin-left: 5px;
    position: absolute;
    width: 120px;
    justify-self: flex-start;
    /* display: inline-block;  */
    /* z-index: 9999; */
}

.header__menu li:hover ul,
.header__menu li:active ul,
.header__menu li.over ul,
.header__menuLat li:hover ul,
.header__menuLat li:active ul,
.header__menuLat li.over ul {
    display: block;
}

.header__menu__publicacoes li {
    padding: 0.5rem 0;
    /* 0.5rem 0.5rem 1rem; */
    font-size: 14px;
    text-align: center;
}

.header__menu__publicacoes li:first-child {
    border-bottom: 1px solid var(--white);

}

.header__menu__publicacoes a {
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;

}

.header__menu__publicacoes a:hover {
    cursor: pointer;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--orange);
}

.header__pesquisa-indicadores {
    align-items: center;
    box-sizing: border-box;
    background-color: transparent;
    display: none;
    flex-wrap: wrap;
    justify-content: space-around;
    height: fit-content;
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
    width: 100%;
}

.header__pesquisa-indicadores button {
    background-color: var(--orange);
    border: 2px solid var(--orange);
    border-radius: 10px;
    box-sizing: border-box;
}

.header__pesquisa-indicadores input {
    background-color: transparent;
    border: 2px solid var(--orange);
    border-radius: 10px;
    box-sizing: border-box;
    color: var(--orange);
    height: auto;
    padding: 0.5%;
    width: 30rem;
}

.header__pesquisa-indicadores input::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--orange);
    font-weight: 100;
    opacity: 1;
    /* Firefox */
    vertical-align: middle;
}

.header__pesquisa-indicadores select {
    background-color: transparent;
    border: 2px solid var(--orange);
    border-radius: 10px;
    box-sizing: border-box;
    color: var(--orange);
    padding: 0.5%;
    width: 17rem;
}

.header__pesquisa-indicadores select[name="tema"] {
    width: 15rem;
}

.header__pesquisa-indicadores select[name="periodo"] {
    width: 12rem;
}

.header__pesquisa-indicadores select[name="localidade"] {
    width: 8rem;
}

.header__pesquisa-indicadores select[name="ODS"] {
    width: 8rem;
}

.header__pesquisa-indicadores select option {
    color: var(--orange);
    font-size: 1.2rem;
    font-weight: 100;
    opacity: 1;
    /* Firefox */
    text-align: center;
    vertical-align: middle;
}

.select-selected:after {
    border: 6px solid transparent;
    border-color: #fff transparent transparent transparent;
    color: var(--orange);
    content: "";
    height: 0;
    position: absolute;
    right: 10px;
    top: 14px;
    width: 0;
}

@media screen and (max-width: 840px) {

    .header__pesquisa-indicadores {
        align-content: center;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
    }

    .header__pesquisa-indicadores>* {
        margin-top: 10px;
        width: 100% !important;
    }

    .header__logo-sp {
        display: none;
    }

    .header__logo__busca::after {
        content: '\00a0\00a0\00a0';
        font-size: 16px;
    }

}