
:root {
    --azul: #092b59;
    --azul-claro: #16477f;
    --vermelho: #c8202c;
    --dourado: #d6aa42;
    --branco: #fff;
    --cinza: #f4f6f9;
    --texto: #263449;
    --largura: 1200px;
}

/* CONFIGURAÇÕES GERAIS */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    background: var(--branco);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(92%, var(--largura));
    margin: 0 auto;
}

/* CABEÇALHO */

.cabecalho-site {
    width: 100%;
}

.menu {
    width: 100%;
    background: var(--azul);
    color: #fff;
}

.menu-conteudo {
    min-height: 56px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 5px 0;
}

.menu-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    min-width: 0;
}

.menu-links a {
    display: inline-flex;
    align-items: center;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px; /* Aumentado de 12px para 14px */
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
}

.menu-links a:hover,
.menu-links a:focus {
    background: var(--vermelho);
    color: #fff;
}

/* BUSCA */

.busca {
    display: flex;
    flex: 0 0 270px;
    width: 270px;
    max-width: 270px;
    margin-left: auto;
}

.busca input {
    width: 100%;
    min-width: 0;
    padding: 9px 13px;
    border: 1px solid #ccd3dc;
    border-right: 0;
    border-radius: 22px 0 0 22px;
    font-size: 13px;
    outline: none;
}

.busca input:focus {
    border-color: var(--dourado);
}

.busca button {
    flex-shrink: 0;
    border: 0;
    background: var(--vermelho);
    color: #fff;
    padding: 0 17px;
    border-radius: 0 22px 22px 0;
    font-size: 19px;
    cursor: pointer;
}
/* BANNER PRINCIPAL */
/* BANNER PRINCIPAL - PROPORÇÃO PRESERVADA */


/* BANNER COM PROPORÇÃO ORIGINAL */


/* BANNER PRINCIPAL — PROPORÇÕES ORIGINAIS */

.banner {
    width: 100%;
    height: auto;
    background: var(--azul);
    border-bottom: 4px solid var(--dourado);
    overflow: hidden;
}

.banner-link {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

.banner-imagem {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* TABLETS E CELULARES */
@media (max-width: 768px) {
    .banner-imagem {
        width: 100%;
        height: auto !important;
    }
}


/* Responsividade */
@media (max-width: 768px) {
    .banner-imagem {
        width: 100%;
        height: auto;
    }
}


/* Mantém a responsividade proporcional no celular e tablet */
@media (max-width: 768px) {
    .banner-imagem {
        height: auto !important;
        object-fit: contain !important;
    }
}


/* SEÇÕES */

.secao {
    padding: 48px 0;
}

.titulo-secao {
    color: var(--azul);
    font-size: 27px;
    margin-bottom: 8px;
    border-left: 5px solid var(--vermelho);
    padding-left: 13px;
}

.subtitulo {
    color: #667085;
    margin: 10px 0 25px;
}

/* CATEGORIAS */

.categorias {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.categoria {
    background: var(--cinza);
    border: 1px solid #e0e4eb;
    border-radius: 14px;
    padding: 20px 8px;
    text-align: center;
    transition: .2s;
}

.categoria:hover {
    border-color: var(--dourado);
    transform: translateY(-3px);
}

.categoria .icone {
    display: block;
    font-size: 34px;
    margin-bottom: 8px;
}

.categoria strong {
    color: var(--azul);
    font-size: 13px;
}

/* GUIAS */

.guias {
    background: var(--azul);
    color: #fff;
}

.guias .titulo-secao {
    color: #fff;
}

.guias .subtitulo {
    color: #e0e8f4;
}

.grade-guias {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.guia {
    background: #fff;
    color: var(--texto);
    padding: 25px;
    border-radius: 12px;
    border-bottom: 4px solid var(--dourado);
}

.guia h3 {
    color: var(--azul);
    margin-bottom: 10px;
}

.guia p {
    font-size: 14px;
}

/* PRODUTOS */

.grade-produtos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.produto {
    border: 1px solid #e0e4eb;
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
    text-align: center;
    padding-bottom: 20px;
    transition: .2s;
}

.produto:hover {
    box-shadow: 0 7px 20px rgba(0,0,0,.09);
    transform: translateY(-3px);
}

.produto-imagem {
    height: 145px;
    background: linear-gradient(135deg, #edf1f7, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
}

.produto h3 {
    color: var(--azul);
    font-size: 17px;
    margin: 15px 8px 5px;
}

.produto p {
    font-size: 13px;
    padding: 0 12px;
    margin-bottom: 15px;
}

.botao-produto {
    display: inline-block;
    background: var(--azul);
    color: #fff;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* DICAS */

.dicas {
    background: #f5f6f9;
}

.grade-dicas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dica {
    background: #fff;
    border-left: 5px solid var(--dourado);
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
}

.dica h3 {
    color: var(--azul);
    margin-bottom: 8px;
}

/* RODAPÉ */

.rodape {
    background: var(--azul);
    color: #fff;
    border-top: 5px solid var(--dourado);
    padding: 40px 0 20px;
}

.rodape-grade {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.rodape h3 {
    color: var(--dourado);
    margin-bottom: 12px;
}

.rodape p,
.rodape a {
    font-size: 14px;
    color: #e6ebf3;
}

.rodape a {
    display: block;
    margin-bottom: 7px;
}

.rodape a:hover {
    color: var(--dourado);
}

.direitos {
    border-top: 1px solid rgba(255,255,255,.2);
    text-align: center;
    margin-top: 30px;
    padding-top: 18px;
    font-size: 13px;
}

/* TABLETS E TELAS INTERMEDIÁRIAS */

@media (max-width: 1100px) {

    .menu-conteudo {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px;
        padding: 7px 0;
    }

    .menu-links {
        flex-wrap: wrap !important;
        justify-content: center;
        width: 100%;
    }

    .busca {
        flex: 0 1 320px;
        width: 320px;
        max-width: 100%;
        margin: 4px auto;
    }

    .categorias {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .grade-produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rodape-grade {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* CELULARES */

@media (max-width: 600px) {

    .menu-conteudo {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 5px;
    }

    .menu-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center;
        width: 100%;
    }

    .menu-links a {
        padding: 9px 8px;
        font-size: 12px;
    }

    .busca {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        margin: 5px 0;
    }

    .banner {
        height: 20vh;
        min-height: 110px;
        max-height: 150px;
    }

    .secao {
        padding: 34px 0;
    }

    .categorias {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grade-guias,
    .grade-dicas,
    .grade-produtos,
    .rodape-grade {
        grid-template-columns: 1fr;
    }

    .titulo-secao {
        font-size: 23px;
    }
}

 /* BAnnER 
 
.banner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.banner-link {
    height: auto !important;
}

.banner .banner-link .banner-imagem {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

*/

/* CORREÇÃO DEFINITIVA DO CABEÇALHO EM CELULARES */

@media (max-width: 760px) {

    .cabecalho-site .menu-conteudo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        min-height: 0;
        padding: 12px 10px;
        gap: 10px;
    }

    .cabecalho-site .marca-menu {
        width: 100%;
        flex: 0 0 auto;
        justify-content: center;
    }

    .cabecalho-site .marca-menu-imagem {
        width: min(88%, 390px);
        max-height: 95px;
    }

    .cabecalho-site .menu-links {
        width: 100%;
        flex: 0 0 auto;
        justify-content: center;
        flex-wrap: wrap !important;
    }

    .cabecalho-site .menu-links a {
        min-height: 36px;
        padding: 6px 9px;
        font-size: 13px;
    }

    /* BUSCA: ALTURA FIXA */

    .cabecalho-site .busca-menu {
        display: flex !important;
        flex: 0 0 46px !important;
        align-self: center;
        width: min(92%, 420px) !important;
        max-width: 420px !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    .cabecalho-site .busca-menu input {
        flex: 1 1 auto;
        width: 100%;
        height: 46px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 15px !important;
    }

    .cabecalho-site .busca-menu button {
        flex: 0 0 46px;
        width: 46px;
        height: 46px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* BANNER SEM LIMITAÇÃO DE ALTURA */

    .banner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .banner-conteudo {
        width: 100%;
        height: auto;
        aspect-ratio: 1835 / 508;
    }

    .banner-imagem {
        width: 100%;
        height: 100% !important;
        object-fit: contain !important;
    }
}
