/* Topo, autocomplete e modal de busca da página interna. */

.header {
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--proto-line);
}

/* Variante usada pela view busca.handlebars. */
body {
    --topo-line: #e4ebe7;
    --topo-paper: #f7f9f6;
}

/* Elementos estruturais do partial header. */
.menu-btn {
    display: grid;
    place-items: center;
    width: 57px;
    height: 57px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--cor-principal);
    cursor: pointer;
}

.menu-btn svg,
header .menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}






header .search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1180px;
    height: 88px;
    margin: auto;
    padding: 0 32px;
    gap: 24px;
}

.logo {
    width: auto;
    flex-shrink: 0;
}

.logo a,
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--cor-texto);
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.6px;
    white-space: nowrap;
}

header .brand-mark {
    display: grid;
    place-items: center;
    width: 37px;
    height: 41px;
    flex: 0 0 37px;
    overflow: hidden;
    background: var(--cor-principal);
    color: #fff;
    border-radius: 13px 13px 13px 3px;
    transform: rotate(-5deg);
}

header .brand-mark svg {
    display: block;
    width: 24px;
    height: 24px;
    color: #fff;
    stroke: #fff;
    transform: rotate(5deg);
}

header .brand-word span {
    color: var(--cor-principal);
}

@media (min-width: 761px) {
    .menu-btn {
        display: none;
    }

    .busca-mobile {
        display: none;
    }

    .busca-mobile-cidade {
        display: none;
    }
}

body .header {
    position: relative;
    z-index: 20;
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--topo-line);
}

body .btn-busca-mobile {
    display: none;
    place-items: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: #edf7f2;
    color: var(--cor-principal) !important;
}

/* Cabeçalho mobile compacto. */
@media (max-width: 760px) {




    .search-container {
        position: relative;
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        width: auto;
        height: 72px;
        min-height: 72px;
        padding: 0 20px 0 0;
        justify-content: flex-end;
    }


    .logo {
        position: absolute;
        left: 50%;
        z-index: 1;
        width: auto;
        transform: translateX(-50%);
    }

    .logo a,
    .brand {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #123c35;
        font-size: 16px;
        font-weight: 750;
        letter-spacing: -.45px;
        white-space: nowrap;
    }


    header .brand-mark {
        width: 32px;
        height: 35px;
        flex: 0 0 32px;
        border-radius: 10px 10px 10px 3px;
    }


    header .brand-mark svg {
        width: 21px;
        height: 21px;
    }





    .autocomplete {
        display: none;
    }


    .header>.btn-busca-mobile {
        position: relative;
        z-index: 2;
        display: grid;
        place-items: center;
        flex: 0 0 39px;
        width: 39px;
        height: 39px;
        margin: 0;
        padding: 10px;
        border: 0;
        border-radius: 10px;
        background: #edf6f1;
        color: var(--cor-principal);
    }


    .header>.btn-busca-mobile svg {
        display: block;
        width: 20px;
        height: 20px;
    }
}


.logo {
    width: auto;
    flex-shrink: 0;
}

.logo a,
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--cor-texto);
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.6px;
    white-space: nowrap;
}

header .brand-mark {
    display: grid;
    place-items: center;
    width: 37px;
    height: 41px;
    flex: 0 0 37px;
    background: var(--cor-principal);
    color: #fff;
    border-radius: 13px 13px 13px 3px;
    transform: rotate(-5deg);
}

header .brand-mark svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke: #fff;
    transform: rotate(5deg);
}

header .brand-word span {
    color: var(--cor-principal);
}






.input-custom {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    gap: 8px;
    background: var(--proto-paper);
    border: 1px solid var(--proto-line);
    border-radius: 11px;
    box-shadow: none;
}

.input-custom input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--cor-texto);
    font-size: 16px;
}

.input-custom:focus-within {
    border-color: var(--proto-line);
}

.clear-search {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f1;
    color: var(--proto-muted);
}

.clear-search svg {
    width: 13px;
    height: 13px;
    pointer-events: none;
}

.autocomplete {
    position: relative;
    z-index: 30;
}

.autocomplete.cidade {
    width: 250px;
}

.autocomplete.busca {
    flex: 1;
    min-width: 0;
}


.cidade .results li,
.busca-mobile-cidade .results-mobile li {
    padding: 9px;
}


.autocomplete .results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    width: 100%;
    max-height: min(50vh, 420px);
    overflow-y: auto;
    border: 1px solid var(--proto-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px #172d2922;
}

.autocomplete.cidade .results li {
    padding: 9px;
}

.autocomplete .results:empty {
    display: none;
}

.autocomplete .results ul,
.autocomplete .results li {
    margin: 0;
    padding: 0;
    list-style: none;
    cursor: pointer;
}

.autocomplete .results li {
    border-bottom: 1px solid var(--proto-line);
    font-size: 14px;
}

.autocomplete .results li:last-child {
    border-bottom: 0;
}

.autocomplete .results a {
    display: block;
    padding: 11px 14px;
    color: var(--cor-texto);
}

.autocomplete .results div.aut, .results-mobile div.aut{
    color: #087c68;
}

.autocomplete .results a:hover {
    background: var(--proto-paper);
}



.busca-mobile,
.busca-mobile-cidade {
    z-index: 2001;
}

@media (min-width: 761px) {
    .autocomplete.cidade+.autocomplete.busca {
        margin-left: -24px;
    }

    .autocomplete.cidade .input-custom {
        border-right: 0;
        border-radius: 11px 0 0 11px;
    }

    .autocomplete.busca .input-custom {
        border-radius: 0 11px 11px 0;
    }
}

@media (max-width: 760px) {
    .btn-busca-mobile{
        display: grid !important;
    }
    .header {
        display: flex;
        align-items: center;
        min-height: 72px;
        background: #ffffffee;
        backdrop-filter: blur(14px);
    }

    header .search-container {
        min-height: 74px;
        height: auto;
        padding: 16px 20px;
        position: static;
        flex: 1 1 auto;
        width: auto;
        justify-content: flex-end;
        gap: 0;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo a,
    .brand {
        font-size: 17px;
        gap: 8px;
    }

    header .brand-mark {
        width: 31px;
        height: 35px;
        flex-basis: 31px;
        border-radius: 10px 10px 10px 3px;
    }

    header .brand-mark svg {
        width: 21px;
        height: 21px;
    }

    .autocomplete.cidade,
    .autocomplete.busca {
        display: none;
    }

    .btn-busca-mobile {
        display: grid;
        place-items: center;
    }

    .btn-busca-mobile {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        padding: 10px;
        color: var(--cor-principal);
        cursor: pointer;
    }

    .busca-mobile,
    .busca-mobile-cidade {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100vw;
        max-width: none;
        height: 100dvh;
        margin: 0;
        overflow-y: auto;
        background: #f7faf8;
        transition: left 450ms ease;
    }

    .busca-mobile.open,
    .busca-mobile-cidade.open {
        left: 0;
    }

    .busca-mobile .topo,
    .busca-mobile-cidade .topo {
        display: flex;
        align-items: center;
        min-height: 72px;
        padding: 12px 6px;
        gap: 8px;
        background: #fff;
        border-bottom: 1px solid var(--proto-line);
    }

    .modal-back-btn,
    .modal-search-btn {
        display: inline-grid;
        place-items: center;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: #edf7f2;
        color: var(--cor-principal);
    }

    .busca-mobile .topo .input-custom,
    .busca-mobile-cidade .topo .input-custom {
        min-height: 48px;
        flex: 1 1 auto;
    }

    .busca-mobile .topo .input-custom input,
    .busca-mobile-cidade .topo .input-custom input {
        font-size: 16px;
    }

    .busca-mobile .busca-container,
    .busca-mobile-cidade .busca-container {
        padding: 12px 16px 16px;
        background: #fff;
        border-bottom: 1px solid var(--proto-line);
    }

    .busca-mobile .btn-cidade-mobile {
        display: flex;
        align-items: center;
        gap: 7px;
        min-height: 44px;
        margin: 0;
        padding: 10px 12px;
        border: 1px solid var(--proto-line);
        border-radius: 10px;
        background: #f7faf8;
        color: var(--cor-texto);
        font-size: 14px;
    }

    .busca-mobile .results-mobile,
    .busca-mobile-cidade .results-mobile {
        min-height: 0;
        height: auto;
        padding: 8px 16px 24px;
        background: #f7faf8;
    }

    .busca-mobile .results-mobile ul,
    .busca-mobile-cidade .results-mobile ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .busca-mobile .results-mobile li,
    .busca-mobile-cidade .results-mobile li {
        margin-bottom: 8px;
        border: 1px solid var(--proto-line);
        border-radius: 10px;
        background: #fff;
        overflow: hidden;
    }

    .busca-mobile .results-mobile a,
    .busca-mobile-cidade .results-mobile a {
        display: block;
        padding: 14px;
        color: var(--cor-texto);
    }
}

.btn-login {
    display: none;
}

.results-mobile {
    font-size: 16px;
}



.side-menu {
    position: fixed;
    top: 0;
    left: -650px;
    height: 100%;
    width: min(290px, 85vw);
    background: #fff !important;
    color: #fff;
    padding: 20px;
    transition: left .3s ease;
    z-index: 999;
}



.side-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 18px 0 0;
    padding: 0;
}

.side-menu ul li {
    padding: 15px 4px;
    border-bottom: 1px solid var(--proto-line);
    font-size: 13px;
}

.side-menu-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    padding: 7px;
    border: 0;
    border-radius: 50%;
    background: var(--proto-paper);
    color: var(--proto-muted);
    cursor: pointer;
}

.side-menu span {
    color: var(--cor-texto);
}

.logo-side-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--proto-line);
    color: var(--cor-texto);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.5px;
}

.logo-side-menu strong {
    color: var(--cor-principal);
}

.logo-side-menu-mark {
    display: grid;
    place-items: center;
    width: 31px;
    height: 35px;
    flex: 0 0 31px;
    background: var(--cor-principal);
    color: #fff;
    border-radius: 10px 10px 10px 3px;
    transform: rotate(-5deg);
}

.logo-side-menu-mark svg {
    width: 21px;
    height: 21px;
    color: #fff;
    stroke: #fff;
    transform: rotate(5deg);
}

.side-menu-close svg {
    width: 17px;
    height: 17px;
}

.side-menu ul li .menu-login {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cor-texto);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.side-menu ul li a {
    color: var(--cor-texto);
}

.side-menu.open {
    left: 0 !important;
    visibility: visible;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 998;
    background: #07524466;
    backdrop-filter: none;
}

.overlay.active {
    display: block;
}



/* Rodape */
/* Footer */
footer {
    background: #fff;
    padding: 25px 30px;
    margin-top: 40px;
    line-height: 2.9;
}

footer .container-2.ul {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 900px !important;
}

footer a {
    margin-right: 20px;
}

footer p {
    margin-top: 10px;
    text-align: center;
    border-top: solid #e7e7e7 1px;
}

.logo-footer {
    margin-bottom: 10px;
    color: var(--cor-principal);
    max-width: 900px;
    margin: auto;
}

.logo-footer img {
    position: relative;
    top: 6px;
}

.logo-footer {
    margin-bottom: 10px;
    color: var(--cor-principal);
    max-width: 900px;
    margin: auto;
}

.logo-footer img {
    position: relative;
    top: 6px;
}

footer {
    border-top: 1px solid var(--proto-line);
    font-size: 12px;
}

footer {
    font-size: 16px;
}

footer {
    background: #fff;
    padding: 34px 0 20px;
    margin-top: 0;
    line-height: 1.6;
}

footer .logo-footer,
footer .container-2,
footer>p {
    width: min(900px, 100%);
    max-width: 900px !important;
    margin-left: auto;
    margin-right: auto;
}

footer .logo-footer:first-child {
    margin-bottom: 13px;
    color: var(--cor-texto);
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.6px;
    display: flex;
    align-items: center;
    gap: 9px;
}

footer .logo-footer-mark {
    display: grid;
    place-items: center;
    width: 37px;
    height: 41px;
    flex: 0 0 37px;
    background: var(--cor-principal);
    color: #fff;
    border-radius: 13px 13px 13px 3px;
    transform: rotate(-5deg);
}

footer .logo-footer-mark svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke: #fff;
    transform: rotate(5deg);
}

footer .logo-footer-word {
    color: var(--cor-texto);
}

footer .logo-footer-accent {
    color: var(--cor-principal);
}

footer .logo-footer:nth-child(2) {
    margin-bottom: 28px;
    color: var(--proto-muted) !important;
    font-size: 12px;
}

footer .container-2.ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px;
    line-height: 1.6;
}

footer .container-2.ul>div {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

footer .container-2.ul strong {
    font-size: 10px;
    letter-spacing: .4px;
}

footer .container-2.ul ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer .container-2.ul li {
    margin: 0 0 9px;
}

footer .container-2.ul a {
    margin: 0;
    color: var(--proto-muted);
    font-size: 12px;
}

footer .container-2.ul a:hover {
    color: var(--cor-principal);
}

footer .container-2:not(.ul) {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--proto-line);
}

footer .container-2:not(.ul) a {
    margin: 0;
}

footer>p {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--proto-line);
    text-align: left;
    color: var(--proto-muted);
    font-size: 11px;
}

/* ---- Desktop ---- */
@media(min-width:768px) {

    footer .container-2.ul {
        display: flex;
        flex-direction: row;
    }
}

@media (max-width: 760px) {
    footer {
        padding: 28px 20px 18px;
    }

    footer .container-2.ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 18px;
    }

    footer .container-2.ul strong {
        font-size: 9px;
    }

    footer .container-2.ul a {
        font-size: 11px;
    }

    footer .container-2:not(.ul) {
        flex-wrap: wrap;
    }
}