/* Blog e páginas de serviço. Arquivo separado: a landing page não carrega isto. */

body.blog {
    background: var(--paper);
    color: var(--text-dark);
}

/* Aqui o orçamento sempre passa pelo formulário, em qualquer tela, para o lead
   ser registrado com o artigo e a UTM. */
body.blog .btn--popup,
body.blog .footer__cta--blog {
    display: inline-flex;
}

body.blog .nav__cta,
body.blog .nav__menu-cta button {
    font: inherit;
    cursor: pointer;
}

body.blog .nav__menu-cta button {
    border: 0;
    background: none;
    color: inherit;
    padding: 0;
}

.materia__topo {
    padding: 148px var(--gutter) 104px;
    background: var(--navy);
    color: var(--text-light);
}

.materia__topo-inner {
    width: min(100%, 780px);
    margin-inline: auto;
}

.materia__topo--lista {
    padding-bottom: 56px;
}

.lista-topo {
    width: min(100%, var(--container));
    margin-inline: auto;
}

.lista-topo__lead {
    max-width: 620px;
    margin-top: 18px;
    color: var(--text-light-dim);
    font-size: 18px;
    line-height: 1.5;
}

.trilha {
    margin-bottom: 22px;
    color: var(--text-light-dim);
    font-size: 14px;
}

.trilha a {
    color: inherit;
}

.trilha span[aria-hidden] {
    margin-inline: 4px;
    opacity: .6;
}

.materia__titulo {
    max-width: 920px;
    margin: 0;
    color: var(--text-light);
    font-size: clamp(36px, 4.6vw, 60px);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1.08;
    text-wrap: balance;
}

.materia__datas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin-top: 22px;
    color: var(--text-light-dim);
    font-size: 14px;
}

.materia__coluna {
    width: min(100% - 2 * var(--gutter), 780px);
    margin-inline: auto;
    padding-bottom: 96px;
}

.materia__coluna--autor {
    padding-top: 8px;
}

/* A resposta sobe sobre o topo: é o que o leitor veio buscar */
.materia__resposta {
    position: relative;
    margin: -56px 0 0;
    padding: 28px 32px;
    border-radius: var(--radius);
    background: var(--ice);
    color: var(--ink);
    font-size: 21px;
    letter-spacing: -.01em;
    line-height: 1.45;
}

.materia__capa {
    margin: 28px 0 0;
}

.materia__capa img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--paper-2);
}

.prosa {
    margin-top: 40px;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.65;
}

.prosa > * + * {
    margin-top: 20px;
}

.prosa h2 {
    margin-top: 52px;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.prosa h3 {
    margin-top: 32px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.35;
}

.prosa h2 + *,
.prosa h3 + * {
    margin-top: 12px;
}

.prosa a {
    color: var(--steel);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prosa a:hover {
    color: var(--navy);
}

.prosa ul,
.prosa ol {
    padding-left: 24px;
}

.prosa ul {
    list-style: disc;
}

.prosa ol {
    list-style: decimal;
}

.prosa li + li {
    margin-top: 8px;
}

.prosa li::marker {
    color: var(--steel);
}

.prosa figure {
    margin-inline: 0;
}

.prosa figure img {
    width: 100%;
    max-height: 640px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--paper-2);
}

.prosa figcaption {
    margin-top: 8px;
    color: var(--text-dark-dim);
    font-size: 14px;
    line-height: 1.45;
}

.prosa__tabela {
    overflow-x: auto;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
}

.prosa table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.45;
}

.prosa th,
.prosa td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-dark);
    text-align: left;
    vertical-align: top;
}

.prosa thead th {
    border-bottom: 0;
    background: var(--navy);
    color: var(--text-light);
    font-weight: 500;
}

.prosa tbody td:first-child {
    font-weight: 600;
}

.prosa tbody tr:last-child td {
    border-bottom: 0;
}

.atendemos {
    margin-top: 52px;
    padding: 28px 32px;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--text-light-dim);
}

.atendemos__titulo {
    margin: 0 0 10px;
    color: var(--text-light);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.atendemos a {
    color: var(--mist);
}

.orcamento,
.autoria,
.relacionados {
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid var(--line-dark);
}

.orcamento__titulo,
.relacionados__titulo {
    margin: 0 0 8px;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.orcamento__botao {
    margin-top: 20px;
}

.autoria {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.autoria__foto {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--paper-2);
}

.autoria__foto--logo {
    padding: 14px;
    background: var(--navy);
    object-fit: contain;
}

.autoria__nome {
    font-size: 18px;
    font-weight: 600;
}

.autoria__nome a {
    color: inherit;
    text-underline-offset: 3px;
}

.autoria__cargo {
    color: var(--text-dark-dim);
    font-size: 14px;
}

.autoria__bio {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
}

.relacionados__servico a {
    color: var(--steel);
    font-weight: 500;
    text-underline-offset: 3px;
}

.relacionados__lista {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.relacionados__lista a {
    display: block;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.relacionados__lista a:hover {
    border-color: var(--steel);
}

.relacionados__categoria {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark-dim);
    font-size: 13px;
    font-weight: 400;
}

/* Rodapé */
.footer__empresa {
    padding-block: 24px;
    color: var(--text-light-dim);
    font-size: 15px;
    font-style: normal;
    line-height: 1.6;
}

.footer__empresa strong {
    color: var(--text-light);
    font-weight: 500;
}

.footer__empresa a {
    color: inherit;
}

/* CTA fixo */
.cta-fixo {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 30;
}

.cta-fixo .btn {
    box-shadow: 0 10px 30px rgba(19, 24, 44, .3);
}

/* Listagem */
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.filtro {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    background: transparent;
    color: var(--text-light);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.filtro:hover {
    border-color: var(--mist);
}

.filtro[aria-pressed='true'] {
    border-color: var(--ice);
    background: var(--ice);
    color: var(--ink);
}

.lista-corpo {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding-block: 64px 96px;
}

.lista-corpo [hidden] {
    display: none !important;
}

#todos {
    margin-top: 64px;
}

.lista-secao {
    margin: 0 0 24px;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 500;
    letter-spacing: -.03em;
}

.pilares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.pilar {
    display: block;
    color: inherit;
    text-decoration: none;
}

.pilar__foto {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--paper-2);
}

.pilar__categoria {
    display: block;
    margin-top: 14px;
    color: var(--text-dark-dim);
    font-size: 14px;
}

.pilar__titulo {
    margin: 6px 0 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.pilar:hover .pilar__titulo,
.linha__link:hover .linha__titulo {
    color: var(--steel);
}

.pilar__resumo {
    margin-top: 8px;
    color: var(--text-dark-dim);
    line-height: 1.5;
}

.linhas {
    padding: 0;
    border-top: 1px solid var(--line-dark);
    list-style: none;
}

.linha {
    border-bottom: 1px solid var(--line-dark);
}

.linha__link {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding-block: 24px;
    color: inherit;
    text-decoration: none;
}

.linha__foto {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--paper-2);
}

.linha__categoria,
.linha__data {
    color: var(--text-dark-dim);
    font-size: 14px;
}

.linha__titulo {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.linha__resumo {
    max-width: 68ch;
    margin-top: 6px;
    line-height: 1.5;
}

.linha__data {
    margin-top: 8px;
}

.orcamento--lista {
    margin-top: 64px;
}

/* Pré-visualização */
.aviso-rascunho {
    position: relative;
    z-index: 40;
    padding: 96px 20px 14px;
    background: #FFE08A;
    color: #3D2E00;
    font-size: 15px;
}

.pendente {
    padding: 0 4px;
    background: #FFE08A;
}

@media (max-width: 767px) {
    .materia__topo {
        padding: 112px 20px 88px;
    }

    .materia__topo--lista {
        padding-bottom: 40px;
    }

    .materia__titulo {
        font-size: 36px;
    }

    .materia__coluna,
    .lista-corpo {
        width: calc(100% - 40px);
    }

    .materia__resposta {
        padding: 22px 20px;
        font-size: 18px;
    }

    .prosa {
        font-size: 17px;
    }

    .prosa table {
        font-size: 14px;
        hyphens: auto;
    }

    .prosa th,
    .prosa td {
        padding: 10px;
    }

    .prosa th {
        hyphens: manual;
    }

    .atendemos {
        padding: 24px 20px;
    }

    .autoria {
        gap: 16px;
    }

    .autoria__foto {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .autoria__foto--logo {
        padding: 10px;
    }

    .relacionados__lista {
        grid-template-columns: minmax(0, 1fr);
    }

    .orcamento__botao .btn {
        width: 100%;
    }

    .filtros {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -20px;
        padding-inline: 20px;
        scrollbar-width: none;
    }

    .filtro {
        flex: 0 0 auto;
    }

    .lista-corpo {
        padding-block: 40px 64px;
    }

    .linha__link {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 16px;
        align-items: start;
        padding-block: 20px;
    }

    .linha__titulo {
        font-size: 20px;
    }

    .linha__resumo {
        display: none;
    }

    /* Reserva a altura da faixa fixa */
    body.blog:has(.cta-fixo) {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .cta-fixo {
        right: 0;
        bottom: 0;
        left: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line-light);
        background: var(--navy);
    }

    .cta-fixo .btn {
        width: 100%;
        background: var(--ice);
        color: var(--ink);
        box-shadow: none;
    }
}
