/* -------------------- BASE -------------------- */
body {
    background-color: #f1eff3; /* Fundo principal claro */
    color: #320077; /* Cor de texto padrão para seções gerais */
    font-family: 'Tw Cen MT Condensed Extra Bold', sans-serif; /* Certifique-se de que esta fonte esteja disponível ou use uma fallback */
    text-align: center;
    margin: 0; /* Remove margem padrão do body */
    padding: 0; /* Remove padding padrão do body */
    box-sizing: border-box; /* Garante que padding e border sejam incluídos na largura/altura do elemento */
    padding-top: 80px; /* Adiciona padding no topo para compensar o header fixo */
}

/* Impede a rolagem quando o menu mobile está aberto ou pop-up ativo */
body.no-scroll {
    overflow: hidden;
}

/* Estilo para botões gerais */
.btn-principal, .btn-plano {
    display: inline-block;
    background-color: #ffd700; /* Dourado */
    color: #1e0046; /* Roxo escuro */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 30px; /* Espaço acima do botão */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap; /* Evita que o texto quebre em várias linhas em botões menores */
}

.btn-principal:hover, .btn-plano:hover {
    background-color: #e0b800; /* Dourado mais escuro */
    transform: translateY(-3px);
}

.mt-40 {
    margin-top: 40px;
}

/* -------------------- HEADER -------------------- */
.header-wrapper {
    background-color: #1e0046; /* Roxo escuro */
    padding: 10px 20px; /* Ajustei um pouco o padding para ser mais consistente */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 180px; /* Tamanho do logo ajustado */
    height: auto;
    max-width: 100%;
}

/* -------------------- NAVEGAÇÃO (Menu Hambúrguer) -------------------- */
/* Esconde o botão do menu por padrão (visível apenas no mobile) */
.menu-toggle {
    display: none; /* Esconde o botão por padrão */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 30px;
    height: 4px;
    margin: 6px auto;
    background-color: #ffd700; /* Cor das barras/pontos */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Estilo para o menu quando está ativo (o "X" do hambúrguer) */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.main-nav {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end; /* Alinha os itens à direita no desktop */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav ul li {
    margin: 0 12px; /* Espaçamento entre os itens da navegação */
}

.main-nav ul li a {
    color: #ffd700; /* Dourado */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: block;
}

.main-nav ul li a:hover {
    color: #ffffff; /* Branco ao passar o mouse */
}

/* -------------------- SEÇÕES DE CONTEÚDO GERAIS -------------------- */
section {
    padding: 60px 20px;
    color: #320077;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* Garante que padding e border não aumentem a largura */
}

/* Compensar o header fixo na primeira seção */
#home {
    padding-top: calc(80px + 60px); /* Altura do header + padding normal da seção */
    margin-top: -80px; /* Move a seção para cima para que o padding superior não cause rolagem extra */
    background: linear-gradient(rgba(50, 0, 119, 0.8), rgba(30, 0, 70, 0.8)), url('img/home-background.jpg') no-repeat center center/cover;
    color: #ffffff;
    height: 100vh; /* Ocupa a altura total da viewport */
    justify-content: center;
}

#home .home-content {
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

#home h2 {
    color: #ffd700;
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#home p {
    color: #ffffff;
    font-size: 1.4em;
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

section h2 {
    color: #320077;
    font-size: 2.5em;
    margin-bottom: 20px;
}

section p {
    color: #1e0046;
    max-width: 800px;
    line-height: 1.6;
    font-size: 1.1em;
    text-align: center;
}

.texto-destaque {
    background-color: #ffd700;
    color: #1e0046;
    padding: 25px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.texto-destaque h2 {
    color: #1e0046;
    font-size: 2em;
    margin-top: 0;
}

.texto-destaque .intro {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 0;
}

/* -------------------- SEÇÃO NOSSA ESCOLA (CARROSSEL DE CARDS) -------------------- */
#escola {
    padding-bottom: 80px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #f8f8f8;
    padding: 20px;
    box-sizing: border-box;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding-bottom: 30px;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 20px); /* 33.333% da largura do slide, menos o espaço do gap */
    margin-right: 30px; /* Espaçamento entre os cards */
    
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}

/* Para o último item do slide, remover a margem direita para não ter espaço extra */
.carousel-item:last-child {
    margin-right: 0; 
}

.carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

.carousel-caption {
    background-color: rgba(30, 0, 70, 0.8);
    color: #ffd700;
    padding: 10px 15px;
    font-size: 0.95em;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    position: static;
    width: 100%;
    border-radius: 0 0 8px 8px;
    margin-top: auto;
}

/* Botões de navegação */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(50, 0, 119, 0.6);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 2em;
    border-radius: 50%;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.carousel-button:hover {
    background-color: rgba(50, 0, 119, 0.9);
    opacity: 1;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Indicadores (bolinhas) */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid #ffd700;
}

.dot.active {
    background-color: #ffd700;
    transform: scale(1.2);
}

/* -------------------- SEÇÃO MODALIDADES -------------------- */
#modalidades {
    background-color: #320077;
    color: #ffffff;
}

.texto-destaque-modalidades {
    background-color: #ffd700;
    color: #1e0046;
    padding: 25px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.texto-destaque-modalidades h2 {
    color: #1e0046;
    margin-top: 0;
}

.texto-destaque-modalidades p {
    color: #320077;
}

.modalidades-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 15px;
}

.modalidade-card {
    background-color: #1e0046;
    border: 2px solid #ffd700;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 320px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modalidade-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modalidade-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #ffd700;
}

.modalidade-card h3 {
    color: #ffd700;
    font-size: 1.6em;
    margin: 20px 20px 10px;
    text-align: center;
}

.modalidade-card p {
    color: #ffffff;
    font-size: 0.95em;
    margin: 0 20px 20px;
    line-height: 1.5;
    flex-grow: 1;
    text-align: center;
}

/* -------------------- SEÇÃO HORÁRIOS - TABELA / CARDS -------------------- */
#horarios {
    background-color: #f1eff3;
    color: #320077;
    padding-bottom: 60px;
}

#horarios h2 {
    color: #320077;
    margin-bottom: 20px;
}

#horarios p {
    color: #1e0046;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.table-container {
    margin: 0 auto;
    max-width: 90%;
}

/* Estilos para a tabela padrão (desktop) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    display: table; /* Por padrão, mostra a tabela */
}

table thead {
    background-color: #ffd700;
    color: #1e0046;
}

table th,
table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    color: #1e0046;
}

table th {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9em;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #ffecc6;
    cursor: pointer;
}

/* Estilos para os Horários em Formato de Cards (Mobile) */
.horarios-cards-container {
    /* REMOVIDO: display: none; daqui. Ele será controlado exclusivamente pela media query */
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
    max-width: 600px;
    margin: 0 auto;
    /* Adicionado por garantia */
    display: none; /* Inicia oculto e é ativado pela media query */
}

.horario-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #1e0046;
}

.horario-card .card-item {
    margin-bottom: 8px;
    font-size: 1em;
}

.horario-card .card-item:last-child {
    margin-bottom: 0;
}

.horario-card .card-item strong {
    color: #320077;
    display: inline-block;
    margin-right: 5px;
    min-width: 80px;
}

/* -------------------- SEÇÃO PLANOS E VALORES -------------------- */
#planos {
    background-color: #f1eff3;
    color: #ffd700;
}

.tabela-planos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.plano {
    background-color: #320077;
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 30px;
    width: 300px;
    flex-shrink: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plano:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.plano h3 {
    margin-top: 0;
    font-size: 1.6em;
    color: #ffd700;
    margin-bottom: 10px;
}

.plano .descricao {
    font-style: italic;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 0.95em;
}

.plano ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
    color: #ffffff;
}

.plano ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.plano ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.preco {
    font-size: 2.2em;
    font-weight: bold;
    margin-top: auto;
    color: #ffd700;
}

.btn-plano {
    margin-top: auto;
}

/* -------------------- SEÇÃO DEPOIMENTOS -------------------- */
#depoimentos {
    background-color: #f1eff3;
    padding-bottom: 60px;
}

.depoimentos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 15px;
    max-width: 1200px;
}

.depoimento-card {
    background-color: #320077;
    color: #ffd700;
    border-radius: 12px;
    padding: 25px;
    width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
}

.depoimento-card p {
    margin-bottom: 20px;
    color: #ffffff !important;
}

.depoimento-card span {
    font-weight: bold;
    color: #ffd700;
    font-style: normal;
    font-size: 0.95em;
    margin-top: auto;
}


/* -------------------- SEÇÃO PRIMEIROS PASSOS / FAQ -------------------- */
#primeirospassos {
    background-color: #320077;
    color: #ffffff;
}

.texto-destaque-faq {
    background-color: #ffd700;
    color: #1e0046;
    padding: 25px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.texto-destaque-faq h2 {
    color: #1e0046;
    margin-top: 0;
}

.texto-destaque-faq p {
    color: #320077;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    width: 100%;
}

.faq-item {
    background-color: #1e0046;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.faq-item p {
    color: #ffffff;
    font-size: 1em;
    line-height: 1.6;
    text-align: left;
}

/* -------------------- SEÇÃO EVENTOS -------------------- */
#eventos {
    background-color: #f1eff3;
    color: #1e0046;
    padding: 60px 20px;
}

.texto-destaque-eventos {
    background-color: #ffd700;
    color: #1e0046;
    padding: 25px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    box-sizing: border-box;
}

.texto-destaque-eventos h2 {
    color: #1e0046;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.texto-destaque-eventos p {
    color: #320077;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.eventos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 15px;
}

.evento-card {
    background-color: #320077;
    color: #ffd700;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 320px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.evento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: #ffd700;
}

.evento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.evento-card h3 {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: #ffd700;
    text-align: center;
}

.evento-card .data-evento {
    font-style: italic;
    font-size: 0.95em;
    margin: 0 20px 15px;
    color: #e0b800 !important;
    text-align: center;
}

.evento-card p {
    font-size: 1em;
    margin: 0 20px 20px;
    color: #ffd700 !important;
    line-height: 1.5;
    flex-grow: 1;
    text-align: center;
}

.btn-evento {
    display: inline-block;
    background-color: #ffd700;
    color: #1e0046;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: center;
}

.btn-evento:hover {
    background-color: #e0b800;
    transform: translateY(-2px);
}

/* -------------------- SEÇÃO CONTATO -------------------- */
#contato {
    background-color: #f1eff3;
    padding-bottom: 60px;
}

#contato h2 {
    color: #320077;
}

#contato p {
    color: #1e0046;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.contato-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

form {
    width: 100%;
    max-width: 600px;
    background-color: #320077;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    box-sizing: border-box;
}

form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left;
    color: #ffd700;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ffd700;
    background-color: #f1eff3;
    color: #1e0046;
    font-family: Arial, sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    margin-top: 25px;
    padding: 15px 30px;
    background-color: #ffd700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #1e0046;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: center;
    max-width: 100%;
    box-sizing: border-box;
}

button[type="submit"]:hover {
    background-color: #e0b800;
    transform: translateY(-3px);
}

iframe {
    width: 100%;
    max-width: 600px;
    height: 350px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    display: block;
}

.contato-info {
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #1e0046;
}

.contato-info h3 {
    color: #320077;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
}

.contato-info p {
    color: #1e0046;
    font-size: 1em;
    margin-bottom: 8px;
    text-align: left;
}

/* -------------------- RODAPÉ -------------------- */
.footer-contato {
    background-color: #1e0046;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    color: #ffd700;
    text-align: center;
}

.contato-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.contato-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.social-icon {
    width: 45px;
    height: 45px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.3);
}

.footer-contato p {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
    color: #ccc;
}
/* -------------------- Botão Instagram -------------------- */
.instagram-button {
    position: fixed;
    bottom: 90px; /* Acima do WhatsApp */
    right: 20px;
    background-color: #E1306C;
    color: #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    text-decoration: none;
    /* Animação de entrada e pulsação */
    animation: slideUp 0.6s ease forwards 0.2s, pulse 2s infinite ease-in-out 1s;
    opacity: 1; /* Agora o botão já aparece automaticamente */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.instagram-button:hover {
    transform: scale(1.15);
    background-color: #C13584;
}

.instagram-button img {
    width: 35px;
    height: 35px;
    filter: brightness(1.2);
}

/* -------------------- Botão WhatsApp (mantido) -------------------- */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-decoration: none;
    animation: slideUp 0.6s ease forwards 0.2s, pulse 2s infinite ease-in-out 1s;
    opacity: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.15);
    background-color: #1da851;
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
    filter: brightness(1.2);
}

/* -------------------- Animações -------------------- */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}



/* -------------------- POP-UP DE OFERTA -------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-content h2 {
    color: #320077;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 15px;
}

.popup-content p {
    color: #1e0046;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.popup-image {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-popup {
    display: inline-block;
    background-color: #ffd700;
    color: #1e0046;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-popup:hover {
    background-color: #e0b800;
    transform: translateY(-2px);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-button:hover {
    color: #333;
}

/* -------------------- MEDIA QUERIES (RESPONSIVIDADE) -------------------- */

/* Telas menores que 1024px (tablets ou notebooks menores) */
@media (max-width: 1024px) {
    #home h2 {
        font-size: 3em;
    }
    #home p {
        font-size: 1.2em;
    }
    .carousel-container {
        max-width: 90%;
        padding: 15px;
    }
    .carousel-item {
        flex: 0 0 calc(50% - 15px); /* Mostrar 2 cards por vez em tablets */
        margin-right: 30px;
    }
    .carousel-item:last-child { /* Garante que o último item ainda tenha margem se for o único na linha */
        margin-right: 30px;
    }
    .carousel-item:nth-last-child(1),
    .carousel-item:nth-last-child(2) {
        margin-right: 0; /* Remove a margem do último ou penúltimo item se eles completarem a linha */
    }
    .carousel-item img {
        height: 220px;
    }
    .carousel-caption {
        font-size: 0.9em;
        padding: 8px 10px;
    }
    .plano {
        width: 45%;
    }
    .modalidade-card, .depoimento-card {
        width: 45%;
    }
}

/* Telas menores que 992px (tablets e celulares grandes - ponto de ruptura do menu) */
@media (max-width: 992px) {
    .header-wrapper {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .logo-container {
        margin-bottom: 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #1e0046;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        z-index: 999;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    .main-nav.open {
        display: flex;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .main-nav ul li a {
        font-size: 1.2em;
        padding: 10px 20px;
    }

    body {
        padding-top: 80px;
    }
    #home {
        padding-top: 60px;
        margin-top: 0;
    }
    #home h2 {
        font-size: 2.5em;
    }
    #home p {
        font-size: 1.1em;
    }
    section h2 {
        font-size: 2em;
    }
    .logo-container img {
        width: 150px;
    }
    .tabela-planos {
        gap: 20px;
    }
    .contato-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    form, iframe, .contato-info {
        max-width: 95%;
    }
    .footer-contato {
        gap: 30px;
    }
    .modalidade-card, .depoimento-card {
        width: 90%;
    }
    .faq-item {
        width: 90%;
    }
    /* CORREÇÃO AQUI: Esconde a tabela e mostra os cards */
    table {
        display: none; 
    }
    .horarios-cards-container {
        display: flex !important; /* FORÇA A EXIBIÇÃO COMO FLEXBOX EM MOBILE */
    }
}

/* Telas menores que 768px (celulares e tablets pequenos) */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 10px;
    }
    .carousel-item {
        flex: 0 0 100%;
        margin-right: 0;
    }
    .carousel-item img {
        height: 200px;
    }
    .carousel-caption {
        font-size: 0.85em;
        padding: 6px 8px;
    }
    .carousel-button {
        font-size: 1.5em;
        padding: 6px 10px;
    }
    .carousel-dots {
        bottom: 5px;
    }

    body {
        padding-top: 80px;
    }
    .header-wrapper {
        padding: 10px 15px;
    }
    .logo-container img {
        width: 120px;
    }
    .main-nav {
        top: 65px;
    }
    #home h2 {
        font-size: 2em;
    }
    #home p {
        font-size: 1em;
    }
    .btn-principal {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    section h2 {
        font-size: 1.8em;
    }
    .plano {
        width: 85%;
    }
    form, iframe, .contato-info {
        max-width: 95%;
    }
    form {
        padding: 20px;
    }
    button[type="submit"] {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .social-icon {
        width: 40px;
        height: 40px;
    }
    .table-container {
        max-width: 95%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-button img {
        width: 30px;
        height: 30px;
    }
    .popup-content {
        padding: 20px;
    }
    .popup-content h2 {
        font-size: 1.8em;
    }
    .popup-content p {
        font-size: 1em;
    }
    .btn-popup {
        font-size: 1em;
        padding: 10px 20px;
    }
}

/* Telas menores que 480px (celulares muito pequenos) */
@media (max-width: 480px) {
    section {
        padding: 40px 15px;
    }
    section h2 {
        font-size: 1.6em;
    }
    section p {
        font-size: 0.95em;
    }
    .logo-container img {
        width: 90px;
    }
    .main-nav ul li a {
        font-size: 1.1em;
    }
    #home h2 {
        font-size: 1.8em;
    }
    #home p {
        font-size: 0.95em;
    }
    .texto-destaque {
        padding: 15px;
    }
    .plano {
        width: 95%;
        padding: 20px;
    }
    .plano h3 {
        font-size: 1.3em;
    }
    .plano .preco {
        font-size: 1.6em;
    }
    form, iframe, .contato-info {
        max-width: 100%;
    }
    .footer-contato {
        gap: 15px;
        padding: 15px 10px;
    }
    .contato-item {
        margin-bottom: 5px;
    }
    .social-icon {
        width: 30px;
        height: 30px;
    }
    .footer-contato p {
        font-size: 0.8em;
    }
    .popup-content h2 {
        font-size: 1.5em;
    }
    .popup-content p {
        font-size: 0.9em;
    }
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e0046;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    display: none; /* Escondido por padrão, será exibido pelo JS */
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    z-index: 2000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner a {
    color: #ffd700;
    text-decoration: underline;
}

.btn-cookie {
    background-color: #ffd700;
    border: none;
    color: #1e0046;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-cookie:hover {
    background-color: #e0b800;
}

/* Responsivo */
@media (max-width: 480px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}
