
:root {
  --largura-card: 150px; /* ALTERE AQUI */
}

/* ================= RESET ================= */
* {
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    background-color: #ffffff;
    color: #170da0;
    margin: 0;
}

/* ================= CONTAINER PADRÃO (TEXTOS) ================= */
.container,
.texto-imagem,
.conteudo,
.contato {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0;   /* FAZ O TEXTO SUBIR */
}

/* ================= TEXTO ================= */
p {
    line-height: 1.9;
    margin-bottom: 16px;
    text-align: justify;
    color: #170da0;
}

/* ================= IMAGENS GERAIS ================= */
img {
    display: block;
    margin: 0 auto;
    max-width: 70%;
    height: auto;
}

/* ================= MENU ================= */
.principal {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

.principal ul {
    list-style: none;
    display: flex;
    gap: 50px;
    padding: 0;
}

.principal a {
    color: #170da0;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
}

.principal a:hover {
    text-decoration: underline;
}

/* ================= TÍTULOS ================= */
h1, h2, h3, h4 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    color: #170da0;
}

/* ================= SEÇÃO ÁREAS DE ATUAÇÃO ================= */
#areas {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 40px 0;
}

/* ================= TÍTULO ÁREAS ================= */
.titulo-areas {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
}

/* ================= GRID DE CARDS ================= */
.cards-area {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;

    width: 95%;
    margin: 0 auto;
}

/* força todos os cards a caberem no grid */
.cards-area > * {
    min-width: 0;
}

/* ================= CARD ================= */
.card {
    background: #f9f9f9;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 16px 14px;
    height: 100%;
    color: #170da0;
}

/* ================= LINK DO CARD ================= */
.card-link {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

/* ================= IMAGEM DO CARD SIZE ================= */
.card img {
    margin-bottom: 6px;
}

/* ================= TÍTULO DO CARD ================= */
.card h3 {
    margin: 6px 0;
    line-height: 1.2;
    text-align: center;
    font-size: 1.05rem; /* ALTERE AQUI */
}
}

/* ================= TEXTO DO CARD ================= */
.card p {
    margin: 0;
    line-height: 1.4;
    text-align: center;
    font-size: 0,95rem; /* ALTERE AQUI */
}
}

/* ================= BASE LEGAL ================= */
.cards-area .lei,
.cards-area .protecao {
    margin-top: 10px;
    background: #ffffff;
    border-left: 4px solid #170da0;
    padding: 10px;
    font-size: 0.9rem;
    width: 100%;
}

/* ================= BOTÕES ================= */
.btn,
button {
    background: #170da0;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 1200px) {
    .cards-area {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cards-area {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-area {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   AJUSTE DEFINITIVO – ÁREAS DE ATUAÇÃO
===================================================== */

/* Seção ocupa largura real da página */
#areas {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 40px 0 20px;
}

/* Grid real de 5 colunas */
.cards-area {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    width: 95%;
    margin: 0 auto;
}

/* Garante que nenhum card quebre linha */
.cards-area > * {
    min-width: 0;
}

/* ================= CARD ================= */
.card {
    background: #f9f9f9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 14px 18px;
    height: 100%;
}

/* Link do card não interfere no layout */
.card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ================= IMAGEM ================= */
.card img {
    margin: 0 0 8px 0;
}

/* ================= TÍTULO ================= */
.card h3 {
    margin: 4px 0 6px 0;
    line-height: 1.25;
    text-align: center;
    font-size: 1.05rem;
}

/* ================= TEXTO ================= */
.card p {
    margin: 0;
    padding: 0;
    line-height: 1.45;
    text-align: center;
}

/* ================= BASE LEGAL ================= */
.cards-area .lei,
.cards-area .protecao {
    margin-top: 10px;
    padding: 10px;
    font-size: 0.9rem;
    width: 100%;
}

/* =====================================================
   BOTÃO CONTATO – CENTRALIZAÇÃO REAL
===================================================== */

.contato {
    width: 100%;
    margin: 50px auto 0;
    text-align: center;
}

.contato .btn {
    display: inline-block;
    margin: 0 auto;
}

/* ================= CONTROLE INDIVIDUAL DAS IMAGENS DO SITE ================= */
/* (NÃO AFETA IMAGENS DOS CARDS) */

/* Imagem de abertura */
.img-abertura {
    max-width: 900px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    margin: 20px auto 0; /* controle de margem superior*/
    max-height: 900px; /* ajuste o valor */

}

/* Imagem da advogada (acordos judiciais) */
.img-advogada {
    max-width: 650px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Imagem trabalho híbrido */
.img-trabalho-hibrido {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Imagem atendimento digital */
.img-atendimento {
    max-width: 450px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ================= IMAGENS DOS CARDS ================= */
.cards-area img {
    max-width: 100%;
    height: auto;
    margin: 0;
}

.cards-area {
    margin: 0 auto;
}

.card {
    min-width: 0;
    height: 100%;
}

.cards-area {
    display: grid;
    grid-template-columns: repeat(var(--cards-por-linha), minmax(0, 1fr));
    gap: 20px;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.card-titulo {
    margin: 12px 0 8px;
    text-align: center;
}

/* ================= TÍTULOS DOS CARDS ================= */
.cards-area .card h3,
.cards-area .card h3 a {
    color: #170da0;
    text-decoration: none;
    font-weight: 600;
}

/* Hover opcional, sem mudar layout */
.cards-area .card h3 a:hover {
    text-decoration: underline;
}

.card-titulo a:hover {
    text-decoration: underline;
}

.card-conteudo {
    flex-grow: 1;
    font-size: 14px;
}

.lei {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* CORREÇÃO GARANTIDA DAS IMAGENS DOS CARDS */
.card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* ================= CENTRALIZAÇÃO DOS CARDS ================= */

/* Centraliza a seção inteira dos cards */
#areas {
    width: 100%;
}

/* Wrapper que controla a largura geral dos cards */
.cards-wrapper {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Grid dos cards centralizado */
.cards-area {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    justify-content: center;
}

/* Garante que cada card fique centralizado internamente */
.card {
    margin: 0 auto;
}

/* ================= CONTROLE DO ESPAÇO USADO PELOS CARDS NA PÁGINA ================= */

.cards-wrapper {
    width: 85%;
    width: 95%;
}

:root {
    --cards-por-linha: 5;
}

.cards-area {
    display: grid;
    grid-template-columns: repeat(var(--cards-por-linha), minmax(0, 1fr));
    gap: 20px;
    justify-content: center;
}
/* === CORREÇÃO DEFINITIVA: TEXTO SOBE E BOTÃO REAPARECE === */
main > section:first-child > *:first-child {
    margin-top: 0;
}

main > section:first-child {
    padding-top: 0;
}
/* === LINKS CLICÁVEIS DOS CARDS – COR PADRÃO DO SITE === */
.cards-area a,
.cards-area a:visited {
    color: #170da0;
    text-decoration: none;
}
.cards-area a:hover {
    text-decoration: underline;
}


/* === CORREÇÃO DEFINITIVA DE JUSTIFICAÇÃO DO TEXTO INTRODUTÓRIO === */
.texto-imagem {
    text-align: left; /* quebra herança do header */
}

.texto-imagem p {
    text-align: justify;
}
/* === LINKS DO MENU (INÍCIO | ÁREAS | CONTATO) — SUBLINHADOS EM TODO O SITE === */
.principal a,
.principal a:visited {
    color: #170da0;
    text-decoration: underline;
    font-weight: 600;
}
.principal a:hover {
    text-decoration-thickness: 2px;
}

/* =====================================================
   CORREÇÃO MENU MOBILE – LINKS ABAIXO DA IMAGEM
===================================================== */
@media (max-width: 768px) {

    .principal {
        display: flex;
        justify-content: center;
        margin: 20px auto 0;
        width: 100%;
    }

    .principal ul {
        display: flex;
        flex-direction: column; /* quebra para coluna */
        align-items: center;
        gap: 16px;
        padding: 0;
        margin: 0;
    }

    .principal li {
        width: 100%;
        text-align: center;
    }

    .principal a {
        display: inline-block;
        width: 100%;
        font-size: 1.2em;
        padding: 8px 0;
    }
}

/* =====================================================
   CORREÇÃO – ESPAÇO ENTRE CARDS (APENAS MOBILE)
===================================================== */
@media (max-width: 768px) {

    .cards-area {
        gap: 24px !important; /* espaço vertical garantido */
    }

    /* Segurança extra: evita colagem visual */
    .card {
        margin-bottom: 24px;
    }

    /* Remove margem extra do último card */
    .card:last-child {
        margin-bottom: 0;
    }
}

/* =====================================================
   CORREÇÃO RODAPÉ – LINKS E ÍCONES (APENAS MOBILE)
===================================================== */
@media (max-width: 768px) {

    footer {
        width: 100%;
        text-align: center;
    }

    footer .links,
    footer .logos,
    footer .rodape-links {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap; /* permite quebra organizada */
        gap: 12px;       /* espaço entre símbolos */
    }

    footer a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap; /* evita quebra interna */
    }

    footer img {
        max-width: 80px; /* evita que símbolos “estourem” */
        height: auto;
    }
}






















































