/* ==================================== */
/* 1. RESET BÁSICO E ESTILO GERAL       */
/* ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9; 
    color: #333;
}

/* ==================================== */
/* 2. ESTILO DO CABEÇALHO DUPLO (VERMELHO/AMARELO) */
/* ==================================== */
.main-header {
    background-color: #FFC107; /* Fundo do cabeçalho é AMARELO */
    position: relative; 
}
/* Container da linha superior (Logo, Busca, Ícones) */
.top-header {
    color: #333;
    padding: 10px 15px; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
}

.main-header .logo {
    margin-right: 20px; 
    display: flex;
    align-items: center; 
}

.logo-img {
    max-height: 120px; 
    width: auto; 
    display: block;
    max-width: 100%; 
}

.header-banner {
    max-width: 400px; 
    width: 100%;
    margin: 0 auto; 
    flex-grow: 1;
    text-align: center; 
}
.banner-img {
    max-width: 100%; 
    height: auto;
    display: block;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #D32F2F;
    border-radius: 20px 0 0 20px;
    flex-grow: 1;
    font-size: 1em;
}

.search-box button {
    background-color: #D32F2F; 
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 1em;
}

.social-icons {
    margin-left: 20px;
    display: flex;
    align-items: center; 
}
.social-icons a {
    color: #D32F2F; 
    font-size: 1.5rem;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #333; 
}

.menu-bar {
    background-color: #D32F2F; 
    width: 100%; 
    margin: 0; 
    padding: 15px 15px; 
    border-radius: 0; 
    box-shadow: none; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap; 
}

.nav-links {
    list-style: none; 
    display: flex; 
    justify-content: center; 
    width: 100%; 
}

.nav-links li {
    margin: 0 20px; 
}

.nav-links a {
    color: white;
    text-decoration: none; 
    padding: 10px 0; 
    transition: transform 0.3s ease-in-out; 
    display: inline-block; 
    font-size: 1.2em;
}

.nav-links a:hover {
    color: #FFC107; 
    transform: scale(1.1); 
}

/* ==================================== */
/* 3. ESTILO DO CARROSSEL               */
/* ==================================== */
.carousel-section {
    width: 100%;
    margin-bottom: 30px; 
}

.carousel-container {
    width: 100%;
    max-width: 1920px; 
    margin: 0 auto;
    overflow: hidden; 
    position: relative;
    padding-top: 32.91%; 
    height: 0; 
}

.carousel-track {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.carousel-slide {
    flex-shrink: 0; 
    height: 100%;
    object-fit: cover; 
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-button:hover {
    opacity: 1;
}

.carousel-button.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.carousel-button.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* ==================================== */
/* 4. ESTILO DO FORMULÁRIO DE CONTATO   */
/* ==================================== */
.contact-form-container {
    padding: 40px 20px;
    background-color: white;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 20px auto; 
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    color: #333;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 15px; 
}

.form-group label {
    display: block; 
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%; 
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background-color: #D32F2F; 
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 15px;
}

.submit-button:hover {
    background-color: #C62828;
}

/* ==================================== */
/* 5. ESTILO DO RODAPÉ (FOOTER)         */
/* ==================================== */
.main-footer {
    background-color: #333; 
    color: white;
    padding: 30px 20px;
    border-top: 5px solid #FFC107; 
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: flex-start;
}

.footer-section {
    width: 23%; 
    min-width: 200px; 
    margin: 15px 0.5%; 
}

.footer-section h3 {
    border-bottom: 2px solid #FFC107;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none; 
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc; 
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FFC107; 
}

.payment-icons {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
}

.social-icons-footer {
    margin-top: 15px;
}

.social-icons-footer a {
    color: #D32F2F; 
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons-footer a:hover {
    color: #FFC107;
}

.address-link, .whatsapp-link {
    display: block;
    color: #ccc;
    text-decoration: none;
    line-height: 1.5;
}

.footer-bottom {
    width: 100%; 
    text-align: center;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 1px solid #444; 
    font-size: 0.9em;
}

/* ==================================== */
/* 6. RESPONSIVIDADE (MEDIA QUERIES)    */
/* ==================================== */

@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        padding: 10px; 
    }

    .main-header .logo {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .logo-img {
        max-height: 150px; 
    }
    
    .social-icons {
        order: 2; 
        margin-bottom: 15px;
        margin-top: 20px; 
        margin-left: 0;
    }
    
    .search-box {
        order: 3; 
        margin: 10px 0;
        max-width: 100%;
        width: 100%; 
    }
    
    .menu-bar {
        margin: 0; 
        width: 100%; 
        padding: 5px 15px; 
    }

    .nav-links {
        flex-direction: row; 
        justify-content: center;
        flex-wrap: wrap; 
        margin-bottom: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li {
        margin: 5px 10px; 
    }
    
    .nav-links a {
        padding: 3px 0; 
        font-size: 1.1em; 
        display: inline-block; 
    }

    .main-footer {
        flex-direction: column;
        align-items: center; 
        text-align: center;
    }

    .footer-section {
        min-width: 90%; 
        width: 100%; 
        margin: 15px 0;
        padding-bottom: 15px;
        border-bottom: 1px solid #444; 
    }
    
    .main-footer .footer-section:last-of-type {
        border-bottom: none;
    }
}

/* ==================================== */
/* 7. ESTILO DA PÁGINA DE OFERTAS (ATUALIZADO PARA 6 COLUNAS) */
/* ==================================== */

.offer-banner-section {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    background-color: #f4f4f9; 
    overflow: hidden;
    text-align: center; 
}

.banner-image {
    width: 100%;
    max-width: 1200px; 
    height: auto; 
    display: block;
    margin: 0 auto; 
    object-fit: cover; 
}

/* Container do GRID de Ofertas - FIXO 6 COLUNAS */
.offers-grid-container {
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    /* Define 6 colunas, mas o 'minmax' permite que elas diminuam se necessário */
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); 
    /* Centraliza os itens no meio da tela */
    justify-content: center; 
    gap: 15px;
}

.offer-card {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.offer-image {
    width: 100%;
    height: 160px; /* Reduzido de 200px para adequar ao card menor */
    object-fit: contain; 
}

.offer-details {
    padding: 10px;
}

.offer-name {
    color: #D32F2F;
    font-size: 1.1em; /* Fonte menor para 6 colunas */
    margin-bottom: 5px;
    height: 2.4em; /* Mantém altura constante */
    overflow: hidden;
}

.offer-description {
    font-size: 0.85em;
    color: #666;
    height: 35px; 
    overflow: hidden;
    margin-bottom: 10px;
}

.offer-price-old {
    display: block;
    color: #999;
    text-decoration: line-through;
    font-size: 0.8em;
    margin-bottom: 3px; 
}

.offer-price-new {
    display: block;
    color: #4CAF50; 
    font-size: 1.4em; /* Fonte menor para 6 colunas */
    font-weight: bold;
    margin-bottom: 10px;
}

.offer-price-new.only {
    color: #D32F2F; 
}

.offer-button {
    display: block;
    padding: 8px;
    background-color: #FFC107; 
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s;
    margin: 10px; 
}

.offer-button:hover {
    background-color: #FFB300;
}

/* ==================================== */
/* 8. ESTILO DA PÁGINA INSTITUCIONAL    */
/* ==================================== */

.institutional-content {
    padding: 40px 20px;
    background-color: white; 
}

.institutional-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

.institutional-content h2 {
    color: #D32F2F; 
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    border-bottom: 3px solid #FFC107; 
    padding-bottom: 15px;
}

.institutional-content h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.institutional-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.history-block {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.history-text {
    flex: 2; 
}

.history-image-placeholder {
    flex: 1; 
    max-width: 300px;
    border: 5px solid #FFC107;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.history-image {
    width: 100%;
    height: auto;
    display: block;
}

.institutional-content ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 10px;
}

.institutional-content ul li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.lgpd-section {
    padding: 20px;
    border: 1px solid #ddd;
    border-left: 5px solid #D32F2F;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-top: 30px;
}
.lgpd-section h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #D32F2F;
}
.lgpd-section a {
    color: #007bff;
    text-decoration: none;
}
.lgpd-section a:hover {
    text-decoration: underline;
}

.nav-links a.active {
    border-bottom: 3px solid #FFC107; 
    color: #FFC107;
}

@media (max-width: 768px) {
    .history-block {
        flex-direction: column; 
    }
    .history-image-placeholder {
        margin: 20px auto; 
    }
}

/* ================================================= */
/* 10. ESTILO DA SEÇÃO DE PATROCINADORES (6 CARDS)   */
/* ================================================= */

.sponsor-offers-section {
    padding: 20px 0;
}

.sponsor-grid-container {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto 40px auto;
    display: grid;
    /* Segue a mesma lógica: colunas de no máximo 220px centralizadas */
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 15px;
}


/* RESPONSIVIDADE PARA GRIDS (AMBOS) */
@media (max-width: 1200px) {
    .offers-grid-container, .sponsor-grid-container {
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (max-width: 768px) {
    .offers-grid-container, .sponsor-grid-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 480px) {
    .offers-grid-container, .sponsor-grid-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* ==================================== */
/* 3.5. LINK DE ATALHO RÁPIDO PARA O TABLOIDE */
/* ==================================== */

.quick-tabloide-link {
    padding: 40px 20px;
    background-color: #f7f7f7;
    text-align: center;
    border-bottom: 5px solid #FFC107; 
    margin-bottom: 30px;
}

.tabloide-link-box {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px; 
    margin: 0 auto;
    text-decoration: none; 
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; 
}

.tabloide-link-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tabloide-visual {
    flex-basis: 40%;
    min-width: 250px;
}

.tabloide-capa-img {
    width: 100%;
    height: auto;
    display: block;
}

.tabloide-cta-content {
    flex-basis: 60%;
    padding: 30px;
    text-align: left;
}

.tabloide-subtitle {
    color: #D32F2F; 
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    display: inline-block;
}

.tabloide-text-main {
    color: #333;
    font-size: 2em;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tabloide-button {
    display: inline-block;
    background-color: #FFC107; 
    color: #333; 
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.tabloide-button:hover {
    background-color: #ffaa00; 
}

@media (max-width: 800px) {
    .tabloide-link-box {
        flex-direction: column; 
        max-width: 95%;
    }
    .tabloide-visual {
        flex-basis: 100%;
    }
    .tabloide-cta-content {
        flex-basis: 100%;
        text-align: center; 
        padding: 20px;
    }
    .tabloide-text-main {
        font-size: 1.5em;
    }
}

/* ================================================= */
/* 11. ESTILO DO CARROSSEL DE LOGOS (Círculos)   */
/* ================================================= */

.logo-carousel-section {
    padding: 30px 0;
    background-color: #f8f8f8;
}

.logo-carousel-section .section-title {
    text-align: center;
    color: #444;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.logo-carousel-track {
    width: 90%;
    margin: 0 auto;
}

.logo-slide {
    padding: 20px; 
    box-sizing: border-box; 
}

.logo-circle {
    width: 130px; 
    height: 130px; 
    background-color: #FFC107; 
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    overflow: hidden; 
    margin: 0 auto;
}

.logo-circle:hover {
    transform: scale(1.1);
}

.supplier-logo {
    max-width: 75%;
    max-height: 75%;
    height: auto;
    object-fit: contain;
}

.slick-prev:before, .slick-next:before {
    color: #D32F2F;
    font-size: 30px;
    opacity: 1;
}

.slick-prev {
    left: -30px;
    z-index: 10; 
}

.slick-next {
    right: -30px;
    z-index: 10;
}

@media (max-width: 768px) {
    .logo-slide {
        padding: 15px 55px; 
    }
    .logo-circle {
        width: 110px;
        height: 110px;
    }
    .slick-prev {
        left: 0px; 
    }
    .slick-next {
        right: 0px;
    }
}

/* ================================================= */
/* 12. ESTILO DOS CARDS DE DESTAQUE ARREDONDADOS (BANNERS) */
/* ================================================= */

.highlight-cards-section {
    padding: 30px 20px; 
    background-color: #ffffff; 
}

.highlight-cards-section .section-title { 
    display: none; 
}

.highlight-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 15px; 
    max-width: 1300px;
    margin: 0 auto;
}

.highlight-card {
    display: block;
    background-color: transparent; 
    border-radius: 15px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
    overflow: hidden; 
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: scale(1.02); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
}

.highlight-card-image {
    width: 100%;
    height: auto;
    display: block; 
}

@media (max-width: 1024px) {
    .highlight-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .highlight-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .highlight-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================= */
/* 9. ESTILOS ADICIONAIS: OFERTAS WHATSAPP (CORREÇÃO) */
/* ================================================= */

.nav-links a.whatsapp-link-menu {
    color: white; 
}

.nav-links a.whatsapp-link-menu i {
    color: #25D366; 
    margin-right: 5px;
}

.nav-links a.whatsapp-link-menu.active {
    color: #FFC107;
    border-bottom: 3px solid #FFC107; 
}

.nav-links a.whatsapp-link-menu.active i {
    color: #25D366; 
}