/* =============================== */
/* 1. Base e Reset CSS */
/* =============================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
    /* Cores */
    --primary-color: #FFC0CB; /* Rosa claro - principal */
    --secondary-color: #FFE0B2; /* Pêssego suave */
    --tertiary-color: #B2EBF2; /* Azul menta */
    --accent-color: #FF7043; /* Laranja vibrante para destaque */
    --text-dark: #333;
    --text-light: #fefefe;
    --bg-light: #fefefe;
    --bg-dark: #333;
    --border-color: #ddd;

    /* Fontes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Espaçamento */
    --spacing-xs: 0.5rem; /* 8px */
    --spacing-sm: 1rem;   /* 16px */
    --spacing-md: 1.5rem; /* 24px */
    --spacing-lg: 2rem;   /* 32px */
    --spacing-xl: 4rem;   /* 64px */

    /* Transições */
    --transition-speed: 0.3s;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove espaços extras sob a imagem */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; } /* 48px */
h2 { font-size: 2.5rem; } /* 40px */
h3 { font-size: 2rem; } /* 32px */
h4 { font-size: 1.5rem; } /* 24px */

/* =============================== */
/* 2. Utilitários e Layout Geral */
/* =============================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm); /* Padding nas laterais para mobile */
}

/* Padding para seções */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.btn-accent:hover {
    background-color: var(--primary-color);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 2.8rem;
    color: var(--text-dark);
}

/* =============================== */
/* 3. Cabeçalho (Header) */
/* =============================== */
.main-header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Altura fixa para o logo */
    width: auto;
}

/* Menu Hambúrguer (Mobile) */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Acima do nav */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
}

/* Animação do hambúrguer */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Navegação Principal (Mobile e Desktop) */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Esconde o menu para a direita */
    width: 70%;
    height: 100vh;
    background-color: var(--bg-dark);
    padding-top: var(--spacing-xl);
    transition: right var(--transition-speed) ease-in-out;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.main-nav.active {
    right: 0; /* Mostra o menu */
}

.main-nav ul {
    width: 100%;
    text-align: center;
    padding: 0;
}

.main-nav ul li {
    margin: var(--spacing-md) 0;
    width: 100%;
}

.main-nav ul li a {
    color: var(--text-light);
    font-size: 1.2rem;
    padding: var(--spacing-sm) var(--spacing-lg);
    display: block;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-radius: 5px;
}


/* =============================== */
/* 4. Seção Hero (Slider - Home) */
/* =============================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Altura total da viewport */
    overflow: hidden;
    color: var(--text-light);
}

.slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Escurece a imagem para o texto se destacar */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-content h1 {
    font-size: 3.8rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.hero-slider .prev,
.hero-slider .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: var(--spacing-md);
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border: none;
    z-index: 3;
}

.hero-slider .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.hero-slider .prev:hover,
.hero-slider .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* =============================== */
/* 5. Seções de Destaque / Categorias */
/* =============================== */
.highlight-categories {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna em mobile */
    gap: var(--spacing-lg);
}

.category-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card img {
    width: 100%;
    height: 200px; /* Altura fixa para as imagens dos cards */
    object-fit: cover; /* Garante que a imagem cubra a área */
    margin-bottom: var(--spacing-md);
}

.category-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-md);
}

.category-card p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

/* =============================== */
/* 6. Seção de Valores / Diferenciais */
/* =============================== */
.values-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.values-section .section-title {
    color: var(--text-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna em mobile */
    gap: var(--spacing-lg);
    text-align: center;
}

.value-item {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.value-item img {
    margin: 0 auto var(--spacing-sm) auto;
    height: 60px;
    width: 60px;
}

.value-item h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
}

.value-item p {
    font-size: 0.95rem;
}

/* =============================== */
/* 7. Seção CTA (Call to Action) */
/* =============================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--text-dark);
}

.cta-section h2 {
    color: var(--text-dark);
    font-size: 2.2rem;
    margin-bottom: var(--spacing-lg);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

/* =============================== */
/* 8. Rodapé (Footer) */
/* =============================== */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-sm) 0;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna em mobile */
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin: 0 auto var(--spacing-sm) auto; /* Centraliza no mobile */
}

.footer-about p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.social-icons img {
    height: 30px;
    width: 30px;
    transition: transform var(--transition-speed) ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.footer-links ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-links ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.footer-contact p a {
    color: var(--text-light);
}

.footer-contact p a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-sm);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* =============================== */
/* 9. Estilos Específicos para Páginas Internas */
/* =============================== */

/* Ajuste para a seção hero estática (Quem Somos, Contato, etc.) */
.static-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: var(--spacing-xl) 0; /* Padding que ajuda a definir a altura */
    min-height: 400px; /* Altura mínima para a seção hero estática, pode ajustar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Adicione um overlay para o texto se destacar se a imagem for muito clara */
}

.static-hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Escurece a imagem para o texto se destacar */
    z-index: 1;
}

.static-hero-section .container {
    position: relative;
    z-index: 2; /* Garante que o conteúdo esteja acima do overlay */
}

.static-hero-section h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.static-hero-section p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Seções de Conteúdo Alternado (ex: Quem Somos) */
.alternating-content-section {
    padding: var(--spacing-xl) 0;
}

.alternating-content-section .section-title {
    margin-bottom: var(--spacing-xl);
}

.alternating-item {
    display: flex;
    flex-direction: column; /* Coluna em mobile */
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: center;
    text-align: center;
}

.alternating-item:last-child {
    margin-bottom: 0;
}

.alternating-image-container {
    width: 100%;
    max-width: 500px; /* Limita a largura da imagem */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alternating-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.alternating-text-container {
    width: 100%;
}

.alternating-text-container h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.alternating-text-container p {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

/* Seção de Contato */
.contact-details-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.contact-card {
    background-color: #fff;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.contact-card p {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.contact-card a {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--primary-color);
}

.contact-card .social-links-list {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.contact-card .social-links-list img {
    height: 35px;
    width: 35px;
}

.contact-details-section .contact-card .social-links-list li {
    margin-bottom: var(--spacing-xs);
}

.contact-details-section .btn-secondary.small-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
}

/* Formulário de Contato (se ativado) */
.contact-form-section {
    padding: var(--spacing-xl) 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input[type="submit"] {
    width: auto;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.contact-form input[type="submit"]:hover {
    background-color: var(--accent-color);
}

/* =============================== */
/* 10. Responsividade (Mobile First) */
/* =============================== */

@media (min-width: 768px) {
    /* Layout Geral */
    .container {
        padding: 0 var(--spacing-lg); /* Aumenta padding em tablet/desktop */
    }

    .section-title {
        font-size: 3.5rem; /* Ajusta tamanho do título para desktop */
    }

    .btn-large {
        padding: var(--spacing-md) var(--spacing-xl); /* Ajusta botões maiores */
    }

    /* Header */
    .hamburger-menu {
        display: none; /* Esconde hambúrguer em desktop */
    }

    .main-nav {
        position: static; /* Remove posicionamento fixo */
        width: auto;
        height: auto;
        background-color: transparent;
        padding-top: 0;
        flex-direction: row;
        align-items: center;
    }

    .main-nav ul {
        display: flex; /* Menu horizontal */
        text-align: left;
    }

    .main-nav ul li {
        margin: 0 var(--spacing-sm); /* Espaçamento entre itens */
        width: auto;
    }

    .main-nav ul li a {
        color: var(--text-dark);
        font-size: 1rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        background-color: transparent;
        color: var(--primary-color);
    }

    /* Hero Slider */
    .hero-content h1 {
        font-size: 4.5rem; /* Título maior no desktop */
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    /* Categorias Destaque */
    .category-grid {
        grid-template-columns: repeat(3, 1fr); /* Três colunas em desktop */
    }

    /* Valores */
    .values-grid {
        grid-template-columns: repeat(4, 1fr); /* Quatro colunas em desktop */
    }

    /* CTA Section */
    .cta-buttons {
        flex-direction: row; /* Botões lado a lado */
        justify-content: center;
    }

    /* Footer */
    .footer-content-grid {
        grid-template-columns: 1.5fr 1fr 1fr; /* Três colunas com proporções diferentes */
        text-align: left;
    }

    .footer-logo img {
        margin: 0 0 var(--spacing-sm) 0; /* Alinha à esquerda no desktop */
    }

    .social-icons {
        justify-content: flex-start;
    }

    /* Seções de Conteúdo Alternado */
    .alternating-item {
        flex-direction: row; /* Lado a lado em desktop */
    }

    .alternating-item:nth-child(even) { /* Inverte ordem para cada segundo item */
        flex-direction: row-reverse;
    }

    .alternating-image-container,
    .alternating-text-container {
        width: 50%; /* Metade da largura */
    }

    .alternating-text-container h2 {
        text-align: left; /* Alinha o texto à esquerda */
    }

    /* Seção de Contato */
    .contact-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2 ou mais colunas */
    }
}

/* @media (min-width: 1024px) { */
    /* Ajustes para telas maiores se necessário */
/* } */
/* --- Slider Ajustes --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh; /* Ajuste a altura para um valor responsivo, 60% da altura da viewport. Você pode ajustar este valor. */
    overflow: hidden;
    margin-bottom: 40px; /* Espaçamento após o slider */
}

.hero-slider .slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Transição suave para o movimento do slide */
}

.hero-slider .slide {
    min-width: 100%; /* Garante que cada slide ocupe a largura total */
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.hero-slider .slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Escurece um pouco a imagem para o texto se destacar */
}

.hero-slider .hero-content {
    position: relative; /* Para garantir que o conteúdo fique acima do overlay */
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-slider .hero-content h1 {
    font-size: 3em; /* Tamanho do título */
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-slider .hero-content p {
    font-size: 1.2em; /* Tamanho do parágrafo */
    margin-bottom: 30px;
}

/* Botões de navegação do slider */
.hero-slider .prev,
.hero-slider .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2; /* Garante que os botões fiquem acima do slider */
}

.hero-slider .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.hero-slider .prev:hover,
.hero-slider .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsividade para o slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 50vh; /* Altura menor em telas menores */
    }

    .hero-slider .hero-content h1 {
        font-size: 2em;
    }

    .hero-slider .hero-content p {
        font-size: 1em;
    }

    .hero-slider .prev,
    .hero-slider .next {
        font-size: 20px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 40vh; /* Altura ainda menor em celulares */
    }

    .hero-slider .hero-content h1 {
        font-size: 1.5em;
    }

    .hero-slider .hero-content p {
        font-size: 0.9em;
    }
}
document.addEventListener('DOMContentLoaded', () => {
    // ===============================
    // Menu Mobile
    // ===============================
    const menuToggle = document.querySelector('.menu-toggle');
    const mainNav = document.querySelector('.main-nav');
    const navList = document.querySelector('.nav-list');

    if (menuToggle && mainNav && navList) { // Adicionado verificação para garantir que os elementos existem
        menuToggle.addEventListener('click', () => {
            mainNav.classList.toggle('active');
            menuToggle.classList.toggle('active');
            navList.classList.toggle('active'); // Opcional, para transições de altura no nav-list
        });

        // Fechar menu ao clicar em um item (apenas mobile)
        navList.querySelectorAll('a').forEach(link => {
            link.addEventListener('click', () => {
                if (window.innerWidth < 768) { // Apenas se for mobile
                    mainNav.classList.remove('active');
                    menuToggle.classList.remove('active');
                    navList.classList.remove('active');
                }
            });
        });
    }

    // ===============================
    // Slider de Depoimentos
    // ===============================
    const testimonials = document.querySelectorAll('.testimonial-item');
    let currentTestimonial = 0;
    let testimonialInterval;

    function showTestimonial(index) {
        testimonials.forEach((item, i) => {
            item.classList.toggle('active', i === index);
        });
    }

    function nextTestimonial() {
        currentTestimonial = (currentTestimonial + 1) % testimonials.length;
        showTestimonial(currentTestimonial);
    }

    // Inicia o slider de depoimentos se houver mais de um
    if (testimonials.length > 1) {
        showTestimonial(currentTestimonial); // Mostra o primeiro depoimento
        testimonialInterval = setInterval(nextTestimonial, 5000); // Muda a cada 5 segundos
    }

    // ===============================
    // Slider do Hero (NOVA FUNCIONALIDADE)
    // ===============================
    const slidesContainer = document.querySelector('.hero-slider .slides-container');
    const slides = document.querySelectorAll('.hero-slider .slide');
    const prevBtn = document.querySelector('.hero-slider .prev');
    const nextBtn = document.querySelector('.hero-slider .next');
    let currentSlide = 0;
    let slideInterval; // Variável para armazenar o ID do intervalo

    if (slidesContainer && slides.length > 0 && prevBtn && nextBtn) { // Verifica se os elementos do slider do hero existem
        // Função para mostrar um slide específico
        function showSlide(index) {
            if (index >= slides.length) {
                currentSlide = 0;
            } else if (index < 0) {
                currentSlide = slides.length - 1;
            } else {
                currentSlide = index;
            }
            slidesContainer.style.transform = `translateX(${-currentSlide * 100}%)`;
        }

        // Função para avançar para o próximo slide
        function nextSlide() {
            showSlide(currentSlide + 1);
        }

        // Função para iniciar o slider automático
        function startSlider() {
            // Limpa qualquer intervalo existente para evitar duplicações
            if (slideInterval) {
                clearInterval(slideInterval);
            }
            slideInterval = setInterval(nextSlide, 5000); // Mudar a cada 5 segundos (5000ms)
        }

        // Event Listeners para os botões de navegação
        nextBtn.addEventListener('click', () => {
            nextSlide();
            startSlider(); // Reinicia o timer após interação manual
        });

        prevBtn.addEventListener('click', () => {
            showSlide(currentSlide - 1);
            startSlider(); // Reinicia o timer após interação manual
        });

        // Inicia o slider automaticamente ao carregar a página
        startSlider();
    }
});
/* --- Ajustes para o Banner de Páginas Internas (reutilizável) --- */
.hero-page-static {
    position: relative;
    width: 100%;
    height: 50vh; /* Altura do banner: 50% da altura da viewport */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light); /* Cor do texto (definida nas variáveis CSS) */
    text-align: center;
    margin-bottom: 40px; /* Espaçamento abaixo do banner */
    overflow: hidden; /* Garante que o conteúdo não vaze */
}

.hero-page-static .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Escurece a imagem para o texto se destacar */
}

.hero-page-static .hero-content {
    position: relative;
    z-index: 1; /* Garante que o conteúdo fique acima do overlay */
    max-width: 800px;
    padding: 0 var(--spacing-md); /* Espaçamento horizontal */
}

.hero-page-static .hero-content h1 {
    font-size: 2.8em;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-page-static .hero-content p {
    font-size: 1.1em;
    margin-bottom: var(--spacing-lg);
}

/* Responsividade para o Banner de Páginas Internas */
@media (max-width: 768px) {
    .hero-page-static {
        height: 40vh; /* Altura menor em telas menores */
    }
    .hero-page-static .hero-content h1 {
        font-size: 2em;
    }
    .hero-page-static .hero-content p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero-page-static {
        height: 35vh; /* Altura ainda menor em celulares */
    }
    .hero-page-static .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-page-static .hero-content p {
        font-size: 0.9em;
    }
}
/* --- Ajustes para o Banner de Páginas Internas (reutilizável) --- */
.hero-page-static {
    position: relative;
    width: 100%;
    height: 50vh; /* Altura do banner: 50% da altura da viewport */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light); /* Cor do texto (definida nas variáveis CSS) */
    text-align: center;
    margin-bottom: 40px; /* Espaçamento abaixo do banner */
    overflow: hidden; /* Garante que o conteúdo não vaze */
}

.hero-page-static .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Escurece a imagem para o texto se destacar */
}

.hero-page-static .hero-content {
    position: relative;
    z-index: 1; /* Garante que o conteúdo fique acima do overlay */
    max-width: 800px;
    padding: 0 var(--spacing-md); /* Espaçamento horizontal */
}

.hero-page-static .hero-content h1 {
    font-size: 2.8em;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-page-static .hero-content p {
    font-size: 1.1em;
    margin-bottom: var(--spacing-lg);
}

/* Responsividade para o Banner de Páginas Internas */
@media (max-width: 768px) {
    .hero-page-static {
        height: 40vh; /* Altura menor em telas menores */
    }
    .hero-page-static .hero-content h1 {
        font-size: 2em;
    }
    .hero-page-static .hero-content p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero-page-static {
        height: 35vh; /* Altura ainda menor em celulares */
    }
    .hero-page-static .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-page-static .hero-content p {
        font-size: 0.9em;
    }
}

/* --- Estilo para os Itens de Bolo Caseiro --- */
.cake-item {
    display: flex; /* Permite que imagem e detalhes fiquem lado a lado */
    align-items: center; /* Alinha verticalmente no centro */
    margin-bottom: 50px; /* Espaçamento entre os itens de bolo */
    background-color: var(--bg-light); /* Fundo claro para cada item */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    gap: 30px; /* Espaçamento entre a imagem e os detalhes */
}

.cake-item:nth-child(odd) { /* Para alternar a ordem da imagem e texto */
    flex-direction: row-reverse; /* Imagem à direita, texto à esquerda */
}

.cake-item .cake-image {
    flex-shrink: 0; /* Impede a imagem de encolher */
    width: 350px; /* Largura fixa para a imagem */
    height: 250px; /* Altura fixa para a imagem */
    border-radius: 8px;
    overflow: hidden; /* Garante que a imagem se ajuste ao container */
}

.cake-item .cake-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra o espaço sem distorção */
    display: block; /* Remove espaço extra abaixo da imagem */
    transition: transform 0.3s ease; /* Efeito de zoom ao passar o mouse */
}

.cake-item .cake-image img:hover {
    transform: scale(1.05); /* Pequeno zoom */
}

.cake-item .cake-details {
    flex-grow: 1; /* Permite que os detalhes ocupem o espaço restante */
    text-align: left; /* Alinha o texto à esquerda */
}

.cake-item .cake-details h3 {
    font-family: var(--font-heading);
    font-size: 2.2em;
    color: var(--primary-color); /* Cor do título */
    margin-bottom: var(--spacing-sm);
}

.cake-item .cake-details .description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.cake-item .cake-details .price {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color); /* Cor do preço */
    margin-bottom: var(--spacing-lg);
}

.cake-item .cake-details .btn-whatsapp {
    display: inline-block;
    background-color: #25D366; /* Cor verde do WhatsApp */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cake-item .cake-details .btn-whatsapp:hover {
    background-color: #1DA851;
}

/* Responsividade para Itens de Bolo */
@media (max-width: 992px) {
    .cake-item {
        flex-direction: column; /* Em telas menores, imagem e texto ficam um sobre o outro */
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .cake-item:nth-child(odd) { /* Remove a inversão para mobile */
        flex-direction: column;
    }

    .cake-item .cake-image {
        width: 100%; /* Imagem ocupa a largura total */
        height: 280px; /* Ajuste a altura para mobile */
    }

    .cake-item .cake-details {
        text-align: center; /* Centraliza o texto */
    }

    .cake-item .cake-details h3 {
        font-size: 2em;
    }

    .cake-item .cake-details .description {
        font-size: 1em;
    }

    .cake-item .cake-details .price {
        font-size: 1.6em;
    }
}

@media (max-width: 576px) {
    .cake-item {
        padding: 15px;
    }
    .cake-item .cake-image {
        height: 200px;
    }
    .cake-item .cake-details h3 {
        font-size: 1.8em;
    }
}
/* --- Ajustes para o Banner de Páginas Internas (reutilizável) --- */
/* Este bloco já deve estar no seu style.css, mas estou incluindo para referência */
.hero-page-static {
    position: relative;
    width: 100%;
    height: 50vh; /* Altura do banner: 50% da altura da viewport */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light); /* Cor do texto (definida nas variáveis CSS) */
    text-align: center;
    margin-bottom: 40px; /* Espaçamento abaixo do banner */
    overflow: hidden; /* Garante que o conteúdo não vaze */
}

.hero-page-static .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Escurece a imagem para o texto se destacar */
}

.hero-page-static .hero-content {
    position: relative;
    z-index: 1; /* Garante que o conteúdo fique acima do overlay */
    max-width: 800px;
    padding: 0 var(--spacing-md); /* Espaçamento horizontal */
}

.hero-page-static .hero-content h1 {
    font-size: 2.8em;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-page-static .hero-content p {
    font-size: 1.1em;
    margin-bottom: var(--spacing-lg);
}

/* Responsividade para o Banner de Páginas Internas */
@media (max-width: 768px) {
    .hero-page-static {
        height: 40vh; /* Altura menor em telas menores */
    }
    .hero-page-static .hero-content h1 {
        font-size: 2em;
    }
    .hero-page-static .hero-content p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero-page-static {
        height: 35vh; /* Altura ainda menor em celulares */
    }
    .hero-page-static .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-page-static .hero-content p {
        font-size: 0.9em;
    }
}

/* --- Estilo para os Itens de Bolo (cake-item) - Reutilizado do caseiros.html --- */
.cake-item {
    display: flex; /* Permite que imagem e detalhes fiquem lado a lado */
    align-items: center; /* Alinha verticalmente no centro */
    margin-bottom: 50px; /* Espaçamento entre os itens de bolo */
    background-color: var(--bg-light); /* Fundo claro para cada item */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    gap: 30px; /* Espaçamento entre a imagem e os detalhes */
}

.cake-item:nth-child(odd) { /* Para alternar a ordem da imagem e texto */
    flex-direction: row-reverse; /* Imagem à direita, texto à esquerda */
}

.cake-item .cake-image {
    flex-shrink: 0; /* Impede a imagem de encolher */
    width: 350px; /* Largura fixa para a imagem */
    height: 250px; /* Altura fixa para a imagem */
    border-radius: 8px;
    overflow: hidden; /* Garante que a imagem se ajuste ao container */
}

.cake-item .cake-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra o espaço sem distorção */
    display: block; /* Remove espaço extra abaixo da imagem */
    transition: transform 0.3s ease; /* Efeito de zoom ao passar o mouse */
}

.cake-item .cake-image img:hover {
    transform: scale(1.05); /* Pequeno zoom */
}

.cake-item .cake-details {
    flex-grow: 1; /* Permite que os detalhes ocupem o espaço restante */
    text-align: left; /* Alinha o texto à esquerda */
}

.cake-item .cake-details h3 {
    font-family: var(--font-heading);
    font-size: 2.2em;
    color: var(--primary-color); /* Cor do título */
    margin-bottom: var(--spacing-sm);
}

.cake-item .cake-details .description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.cake-item .cake-details .price {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color); /* Cor do preço */
    margin-bottom: var(--spacing-lg);
}

.cake-item .cake-details .btn-whatsapp {
    display: inline-block;
    background-color: #25D366; /* Cor verde do WhatsApp */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cake-item .cake-details .btn-whatsapp:hover {
    background-color: #1DA851;
}

/* Responsividade para Itens de Bolo */
@media (max-width: 992px) {
    .cake-item {
        flex-direction: column; /* Em telas menores, imagem e texto ficam um sobre o outro */
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .cake-item:nth-child(odd) { /* Remove a inversão para mobile */
        flex-direction: column;
    }

    .cake-item .cake-image {
        width: 100%; /* Imagem ocupa a largura total */
        height: 280px; /* Ajuste a altura para mobile */
    }

    .cake-item .cake-details {
        text-align: center; /* Centraliza o texto */
    }

    .cake-item .cake-details h3 {
        font-size: 2em;
    }

    .cake-item .cake-details .description {
        font-size: 1em;
    }

    .cake-item .cake-details .price {
        font-size: 1.6em;
    }
}

@media (max-width: 576px) {
    .cake-item {
        padding: 15px;
    }
    .cake-item .cake-image {
        height: 200px;
    }
    .cake-item .cake-details h3 {
        font-size: 1.8em;
    }
}

/* --- Ajustes para substituir estilos anteriores do product-grid, se necessário --- */
/* Estas regras podem ser necessárias para sobrescrever estilos antigos se houver conflito */
.product-grid {
    display: block; /* Garante que os cake-items se comportem como blocos */
    /* Remova quaisquer propriedades 'display: grid' ou 'grid-template-columns' se existirem */
}

/* Se houver um estilo anterior para .product-card, ele pode precisar ser resetado */
.product-card {
    background: none; /* Remove fundo se houver */
    box-shadow: none; /* Remove sombra se houver */
    padding: 0; /* Remove padding se houver */
    margin: 0; /* Remove margin se houver */
    border-radius: 0; /* Remove border-radius se houver */
    /* Adicione outras propriedades para resetar o estilo original do product-card se necessário */
}
/* --- Estilos para a Página de Revenda (revenda.html) --- */

/* Seção de Introdução (opcional, se quiser um estilo diferente do default) */
.section-subtitle {
    font-size: 1.15em;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 60px auto; /* Centraliza e adiciona espaço abaixo */
    line-height: 1.6;
}

/* Estilo para cada Item de Modelo de Parceria */
.partnership-models .model-item {
    display: flex;
    align-items: flex-start; /* Alinha o topo dos itens */
    gap: 30px;
    margin-bottom: 60px;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partnership-models .model-item:hover {
    transform: translateY(-5px); /* Efeito sutil ao passar o mouse */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.partnership-models .model-item:nth-child(even) { /* Inverte a ordem para itens pares */
    flex-direction: row-reverse;
}

.model-item .model-icon {
    flex-shrink: 0;
    width: 100px; /* Tamanho fixo para o ícone */
    height: 100px;
    background-color: var(--primary-color); /* Fundo do círculo do ícone */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.model-item .model-icon img {
    width: 60px; /* Tamanho da imagem dentro do círculo */
    height: 60px;
    object-fit: contain;
}

.model-item .model-details {
    flex-grow: 1;
}

.model-item .model-details h3 {
    font-family: var(--font-heading);
    font-size: 2.3em;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.model-item .model-details .description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.model-item .model-details ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
}

.model-item .model-details ul li {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.model-item .model-details ul li i.icon-check { /* Estilo para o ícone de check */
    color: var(--accent-color); /* Cor do check (laranja) */
    margin-right: 10px;
    font-size: 1.1em;
    /* Se estiver usando Font Awesome, certifique-se de linkar a biblioteca no <head> */
    /* Exemplo: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> */
}

/* Fallback se não usar Font Awesome, pode ser um ícone SVG ou imagem */
.model-item .model-details ul li::before {
    /* content: '✓'; */ /* Exemplo de um caracter como ícone */
    /* margin-right: 10px; */
    /* color: var(--accent-color); */
    /* font-weight: bold; */
}


.model-item .model-details .contact-info {
    font-size: 1em;
    color: var(--text-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

/* Estilo para o botão do WhatsApp dentro dos modelos */
.model-item .btn-whatsapp {
    display: inline-flex; /* Permite ícone e texto na mesma linha */
    align-items: center;
    background-color: #25D366; /* Verde WhatsApp */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none; /* Remove borda se houver */
}

.model-item .btn-whatsapp:hover {
    background-color: #1DA851;
}

.model-item .btn-whatsapp i.icon-whatsapp {
    margin-right: 8px;
    font-size: 1.2em;
    /* Se estiver usando Font Awesome, certifique-se de linkar a biblioteca no <head> */
    /* Exemplo: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> */
    /* Para o ícone do WhatsApp, você usaria <i class="fab fa-whatsapp"></i> */
}

/* Seção de CTA Final */
.cta-final {
    padding: 80px 0;
}

.cta-final .section-title {
    margin-bottom: var(--spacing-md);
}

.cta-final p {
    font-size: 1.15em;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg) auto;
    color: var(--text-light); /* Texto claro no fundo escuro */
}


/* --- Responsividade para a Página de Revenda --- */
@media (max-width: 992px) {
    .partnership-models .model-item {
        flex-direction: column; /* Empilha o ícone e os detalhes */
        align-items: center; /* Centraliza itens */
        text-align: center;
        padding: 30px;
        gap: 25px;
    }

    .partnership-models .model-item:nth-child(even) { /* Remove a inversão para mobile */
        flex-direction: column;
    }

    .model-item .model-icon {
        width: 80px;
        height: 80px;
    }

    .model-item .model-icon img {
        width: 50px;
        height: 50px;
    }

    .model-item .model-details h3 {
        font-size: 2em;
    }

    .model-item .model-details ul {
        text-align: left; /* Mantém a lista alinhada à esquerda no centro */
        max-width: 350px; /* Limita a largura da lista */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .partnership-models .model-item {
        padding: 20px;
        margin-bottom: 40px;
    }
    .model-item .model-details h3 {
        font-size: 1.8em;
    }
    .model-item .model-details .description,
    .model-item .model-details ul li,
    .model-item .model-details .contact-info,
    .cta-final p {
        font-size: 0.95em;
    }
    .model-item .btn-whatsapp {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .cta-final .btn-large {
        font-size: 1em;
        padding: 15px 30px;
    }
}