/* =========================================================
   PÁGINA DE PESQUISA
========================================================= */

.pesquisa-page {

    width: 100%;

    min-height: 70vh;

    background: #fff;

    padding: 70px 0 100px;

}


/* =========================================================
   CONTAINER
========================================================= */

.pesquisa-container {

    width: min(1180px, 90%);

    margin: 0 auto;

}


/* =========================================================
   CABEÇALHO
========================================================= */

.pesquisa-header {

    max-width: 800px;

    margin-bottom: 38px;

}


.pesquisa-label {

    display: block;

    margin-bottom: 10px;

    color: #b00000;

    font-family: "Manrope", sans-serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.pesquisa-header h1 {

    margin: 0;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 48px;

    font-weight: 600;

    line-height: 1.05;

    color: #181818;

}


.pesquisa-line {

    width: 40px;

    height: 3px;

    margin: 14px 0 16px;

    background: #c40000;

}


.pesquisa-header p {

    margin: 0;

    font-family: "Manrope", sans-serif;

    font-size: 14px;

    line-height: 1.7;

    color: #555;

}


.pesquisa-header p strong {

    color: #b00000;

    font-weight: 700;

}


/* =========================================================
   FORMULÁRIO DE PESQUISA
========================================================= */

.pesquisa-form {

    display: flex;

    align-items: stretch;

    width: 100%;

    margin-bottom: 55px;

    background: #fff;

    border: 1px solid #dedede;

    border-radius: 5px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .05);

    overflow: hidden;

}


/* =========================================================
   INPUT
========================================================= */

.pesquisa-input-wrapper {

    flex: 1;

    display: flex;

    align-items: center;

    min-height: 64px;

    padding: 0 22px;

    gap: 14px;

}


.pesquisa-input-wrapper svg {

    width: 21px;

    height: 21px;

    flex-shrink: 0;

    fill: none;

    stroke: #b00000;

    stroke-width: 1.8;

}


.pesquisa-input-wrapper input {

    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    font-family: "Manrope", sans-serif;

    font-size: 14px;

    color: #222;

}


.pesquisa-input-wrapper input::placeholder {

    color: #999;

}


/* =========================================================
   BOTÃO PESQUISAR
========================================================= */

.pesquisa-form button {

    min-width: 150px;

    padding: 0 25px;

    border: none;

    background: #b00000;

    color: #fff;

    font-family: "Manrope", sans-serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .6px;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .2s ease;

}


.pesquisa-form button:hover {

    background: #8d0000;

}


/* =========================================================
   CABEÇALHO DOS RESULTADOS
========================================================= */

.pesquisa-results-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    margin-bottom: 0;

    border-bottom: 1px solid #e5e5e5;

}


.pesquisa-results-header h2 {

    position: relative;

    margin: 0;

    padding-left: 14px;

    font-family: "Manrope", sans-serif;

    font-size: 20px;

    font-weight: 700;

    color: #222;

}


.pesquisa-results-header h2::before {

    content: "";

    position: absolute;

    left: 0;

    top: 2px;

    width: 3px;

    height: 22px;

    background: #b00000;

}


.pesquisa-results-header > span {

    font-family: "Manrope", sans-serif;

    font-size: 12px;

    color: #777;

}


/* =========================================================
   RESULTADOS
========================================================= */

.pesquisa-results {

    width: 100%;

}


/* =========================================================
   ITEM
========================================================= */

.pesquisa-result-item {

    display: grid;

    grid-template-columns:
        120px
        1fr
        auto;

    align-items: center;

    gap: 25px;

    padding: 28px 10px;

    border-bottom: 1px solid #e8e8e8;

    transition:
        background .2s ease,
        padding .2s ease;

}


.pesquisa-result-item:hover {

    background: #fafafa;

    padding-left: 18px;

}


/* =========================================================
   TIPO
========================================================= */

.pesquisa-result-type {

    align-self: start;

    padding-top: 4px;

    font-family: "Manrope", sans-serif;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #b00000;

}


/* =========================================================
   CONTEÚDO
========================================================= */

.pesquisa-result-content {

    min-width: 0;

}


.pesquisa-result-content h3 {

    margin: 0 0 8px;

}


.pesquisa-result-content h3 a {

    color: #222;

    text-decoration: none;

    font-family: "Manrope", sans-serif;

    font-size: 17px;

    font-weight: 700;

    line-height: 1.4;

    transition: color .2s ease;

}


.pesquisa-result-content h3 a:hover {

    color: #b00000;

}


.pesquisa-result-content p {

    max-width: 750px;

    margin: 0 0 10px;

    font-family: "Manrope", sans-serif;

    font-size: 12px;

    line-height: 1.7;

    color: #666;

}


.pesquisa-result-date {

    display: block;

    font-family: "Manrope", sans-serif;

    font-size: 10px;

    color: #999;

}


/* =========================================================
   LINK
========================================================= */

.pesquisa-result-link {

    white-space: nowrap;

    font-family: "Manrope", sans-serif;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .5px;

    color: #b00000;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;

}


.pesquisa-result-link:hover {

    color: #780000;

    transform: translateX(3px);

}


/* =========================================================
   NENHUM RESULTADO
========================================================= */

.pesquisa-empty {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    min-height: 330px;

    padding: 50px 20px;

}


.pesquisa-empty-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 58px;

    height: 58px;

    margin-bottom: 20px;

    border: 1px solid #e2e2e2;

    border-radius: 50%;

    color: #b00000;

    font-size: 25px;

}


.pesquisa-empty h2 {

    margin: 0 0 8px;

    font-family: "Manrope", sans-serif;

    font-size: 20px;

    font-weight: 700;

    color: #222;

}


.pesquisa-empty p {

    margin: 0 0 25px;

    font-family: "Manrope", sans-serif;

    font-size: 13px;

    color: #777;

}


/* =========================================================
   BOTÃO VOLTAR
========================================================= */

.pesquisa-back {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 22px;

    border: 1px solid #b00000;

    border-radius: 3px;

    background: #b00000;

    color: #fff;

    text-decoration: none;

    font-family: "Manrope", sans-serif;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .6px;

    transition:
        background .2s ease,
        border-color .2s ease;

}


.pesquisa-back:hover {

    background: #8d0000;

    border-color: #8d0000;

}


/* =========================================================
   RESPONSIVO — TABLET
========================================================= */

@media (max-width: 900px) {

    .pesquisa-page {

        padding: 55px 0 80px;

    }


    .pesquisa-header h1 {

        font-size: 42px;

    }


    .pesquisa-result-item {

        grid-template-columns:
            100px
            1fr;

        gap: 18px;

    }


    .pesquisa-result-link {

        grid-column: 2;

        margin-top: 4px;

    }

}


/* =========================================================
   RESPONSIVO — MOBILE
========================================================= */

@media (max-width: 600px) {

    .pesquisa-page {

        padding: 45px 0 70px;

    }


    .pesquisa-container {

        width: 92%;

    }


    .pesquisa-header {

        margin-bottom: 28px;

    }


    .pesquisa-label {

        font-size: 9px;

        letter-spacing: 1.2px;

        margin-bottom: 8px;

    }


    .pesquisa-header h1 {

        font-size: 36px;

        line-height: 1.05;

    }


    .pesquisa-line {

        width: 34px;

        height: 2px;

        margin: 12px 0 14px;

    }


    .pesquisa-header p {

        font-size: 12px;

        line-height: 1.65;

    }


    /* =====================================================
       FORMULÁRIO MOBILE
    ===================================================== */

    .pesquisa-form {

        display: block;

        width: 100%;

        padding: 6px;

        margin-bottom: 40px;

        border-radius: 7px;

    }


    .pesquisa-input-wrapper {

        width: 100%;

        min-height: 56px;

        padding: 0 14px;

        gap: 11px;

    }


    .pesquisa-input-wrapper svg {

        width: 19px;

        height: 19px;

        flex-shrink: 0;

    }


    /* =====================================================
       INPUT — 16PX PARA EVITAR AUTO-ZOOM NO IPHONE
    ===================================================== */

    .pesquisa-input-wrapper input {

        min-width: 0;

        width: 100%;

        border: none;

        outline: none;

        background: transparent;

        font-family: "Manrope", sans-serif;

        /*
         * NÃO reduzir este valor abaixo de 16px.
         * O Safari/iPhone pode fazer zoom automático
         * quando um input tem menos de 16px.
         */

        font-size: 16px !important;

        font-weight: 400;

        line-height: 1.4;

        color: #222;

        -webkit-text-size-adjust: 100%;

        text-size-adjust: 100%;

        -webkit-appearance: none;

        appearance: none;

    }


    .pesquisa-input-wrapper input::placeholder {

        font-size: 15px;

        color: #999;

        opacity: 1;

    }


    /* =====================================================
       BOTÃO
    ===================================================== */

    .pesquisa-form button {

        width: 100%;

        min-width: 0;

        min-height: 48px;

        padding: 0 18px;

        border-radius: 4px;

        font-size: 10px;

    }


    /* =====================================================
       RESULTADOS
    ===================================================== */

    .pesquisa-results-header {

        display: block;

        padding-bottom: 15px;

    }


    .pesquisa-results-header h2 {

        margin-bottom: 8px;

        font-size: 18px;

    }


    .pesquisa-results-header h2::before {

        height: 20px;

        top: 1px;

    }


    .pesquisa-results-header > span {

        font-size: 10px;

    }


    /* =====================================================
       RESULTADO
    ===================================================== */

    .pesquisa-result-item {

        display: block;

        padding: 22px 5px;

    }


    .pesquisa-result-item:hover {

        padding-left: 8px;

    }


    .pesquisa-result-type {

        margin-bottom: 8px;

        font-size: 8px;

    }


    .pesquisa-result-content h3 {

        margin-bottom: 7px;

    }


    .pesquisa-result-content h3 a {

        font-size: 15px;

        line-height: 1.45;

    }


    .pesquisa-result-content p {

        font-size: 11px;

        line-height: 1.65;

    }


    .pesquisa-result-date {

        font-size: 9px;

    }


    .pesquisa-result-link {

        display: inline-block;

        margin-top: 14px;

        font-size: 8px;

    }


    /* =====================================================
       NENHUM RESULTADO
    ===================================================== */

    .pesquisa-empty {

        min-height: 280px;

        padding: 40px 15px;

    }


    .pesquisa-empty-icon {

        width: 52px;

        height: 52px;

        margin-bottom: 16px;

        font-size: 22px;

    }


    .pesquisa-empty h2 {

        font-size: 18px;

    }


    .pesquisa-empty p {

        font-size: 11px;

        line-height: 1.6;

    }


    .pesquisa-back {

        min-height: 40px;

        padding: 0 18px;

        font-size: 8px;

    }

}


/* =========================================================
   MOBILE MUITO PEQUENO
========================================================= */

@media (max-width: 380px) {

    .pesquisa-container {

        width: 94%;

    }


    .pesquisa-page {

        padding-top: 38px;

    }


    .pesquisa-header h1 {

        font-size: 32px;

    }


    .pesquisa-input-wrapper {

        min-height: 54px;

        padding: 0 12px;

    }


    .pesquisa-input-wrapper input {

        /*
         * Manter 16px é obrigatório para evitar
         * o auto-zoom do Safari.
         */

        font-size: 16px !important;

    }


    .pesquisa-form button {

        min-height: 46px;

    }

}