/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;600;700;800&display=swap');


:root {
    --safe-zone-left: 7rem;
    --safe-zone-right: 2rem;
}

@media (max-width: 768px) {
    :root {
        /* Laterais iguais: ícones flutuantes existem nos dois lados no mobile */
        --safe-zone-left: 3.5rem;
        --safe-zone-right: 3.5rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Escala fluida responsiva: começa em 14px, atinge 16px em telas normais, e escala até 26px em monitores gigantes (4K) */
    font-size: clamp(14px, 0.45vw + 10px, 26px);
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
}

.site-header {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Deixa o menu (header inteiro) fixo no topo no Desktop */
@media (min-width: 992px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}


/* Aplicar a fórmula mágica de zona segura */
/* Aplica a Safe Zone a TODOS os containers do site (regra global) */
/* .hero-container fica de fora: no mobile a safe-zone assimétrica quebrava a centralização do texto */
:not(.faq-container):not(.hero-container)[class*="-container"],
.eventos-instagram-link,
.eventos-text-pill-mobile,
.alunos-content-grid,
.galeria-header,
.galeria-footer-text,
.bottom-ticker {
    padding-left: max(1.5rem, var(--safe-zone-left) - max(0px, 50vw - 45rem)) !important;
    padding-right: max(1.5rem, var(--safe-zone-right) - max(0px, 50vw - 45rem)) !important;
}

/* ==================================================
   1. Faixa Superior (Letreiro Rotativo)
   ================================================== */
.top-bar {
    background-color: #071a33;
    color: #fff;
    height: 2.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 90s linear infinite;
}

.ticker-content {
    display: inline-block;
    /* Aumentado de 30s para 90s para deixar mais lento */
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.ticker-content span {
    padding: 0 4rem;
    /* Aumentado para dar mais espaçamento entre as palavras */
    color: #fff;
    /* Alterado para branco conforme solicitado */
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* "AGUAS LINDAS DE GO" Fixo */
.static-location {
    position: absolute;
    right: 15%;
    top: 0;
    height: 100%;
    background-color: #063155;
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
    z-index: 10;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* ==================================================
   Wrapper do Meio e Inferior
   ================================================== */
.header-main-bottom {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ==================================================
   2. Faixa do Meio (Área da Logo)
   ================================================== */
.middle-bar {
    background-color: #f2f2f2;
    height: 7.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.header-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 0.85rem;
    padding-bottom: 0.35rem;
    text-decoration: none;
}

.header-logo-img {
    max-height: 5.2rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-top: 0.35rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.header-logo-link:hover .header-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 0.25rem 0.5rem rgba(0, 0, 0, 0.08));
}

/* ==================================================
   3. Faixa Inferior (Menu de Navegação)
   ================================================== */
.bottom-bar {
    background-color: #f8f8f8;
    height: 5rem;
    /* 3.5rem de cinza + 0.75rem borda cima + 0.75rem borda baixo */
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 0.75rem solid #fff;
    /* Espessura intermediária */
    border-bottom: 0.75rem solid #fff;
    /* Espessura intermediária */
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-menu li a.active {
    color: #14253d;
    font-weight: 800;
}

.nav-menu li a:hover {
    color: #14253d;
}

/* ==================================================
   4. Botão Retangular Lateral (Login)
   ================================================== */
.login-button {
    position: absolute;
    right: 0;
    /* Colado na lateral direita da tela */
    bottom: 4.625rem;
    /* Posicionado no centro da nova borda superior branca (4.25rem a 5rem) */
    transform: translateY(50%);
    /* Move 50% da sua própria altura para baixo, centralizando na linha */
    background-color: #14253d;
    color: #fff;
    text-decoration: none;
    padding: 0.65rem 4.5rem 0.65rem 2rem;
    /* Aumentado levemente de 0.5 para 0.65rem */
    font-size: 1.125rem;
    /* Fonte visivelmente maior conforme o print */
    font-weight: 400;
    /* Peso normal (sem negrito) para o "| FILOS" */
    border-radius: 0.3rem 0 0 0.8rem;
    /* Reduzido o arredondamento conforme feedback */
    z-index: 20;
    transition: background-color 0.3s ease;
    letter-spacing: 0.05em;
}

.login-button strong {
    font-weight: 700;
    /* Mantém apenas a palavra LOGIN em negrito */
}

.login-button:hover {
    background-color: #0d1b2a;
}

/* Mobile nav extras — ocultos no desktop */
.mobile-nav-trigger,
.nav-item-mobile-login {
    display: none;
}

/* ==================================================
   5. Ícones Flutuantes (Redes Sociais e Ações)
   ================================================== */
.floating-socials {
    position: fixed;
    top: 50%;
    left: 2rem;
    /* Espaçamento da lateral esquerda idêntico ao print */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Espaçamento idêntico ao do print original */
    z-index: 2000;
    /* Garante que ficará sobre qualquer conteúdo */
}

/* Container de cada ícone recorta os cantos escuros formando squarcles perfeitos */
.social-link {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    /* Arredondamento suave */
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
    /* Sombra para fundo claro */
}

.social-link.location {
    border-radius: 50%;
    /* O último ícone é um círculo perfeito */
}

/* Fazemos a imagem ser levemente maior que o container (108%) e a centralizamos.
   Isso corta as bordinhas azuis que vêm grudadas na imagem original do Facebook/Pesquisar! */
.social-link img {
    width: 108%;
    height: 108%;
    object-fit: cover;
    display: block;
    /* Centraliza a imagem que está maior que o container */
    transform: translate(-4%, -4%);
}

/* Formatação Exclusiva para o ícone do Instagram no Menu Flutuante */
.social-link:has(img[src*="insta"]) {
    background-color: #ffffff;
    /* Fundo totalmente branco como os outros cortados */
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link img[src*="insta"] {
    width: 65%;
    height: 65%;
    transform: none;
    /* Remove o transform do 108% acima */
    object-fit: contain;
    /* Filtro exato para #071a33 (Azul Marinho Filos) */
    filter: brightness(0) invert(10%) sepia(61%) saturate(2338%) hue-rotate(193deg) brightness(91%) contrast(94%);
}



.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

/* ==================================================
   6. Hero Banner (Banner Rotativo)
   ================================================== */
.hero-banner {
    background-color: #14253d;
    background-image: linear-gradient(rgba(20, 37, 61, 0.8), rgba(20, 37, 61, 0.8)), url('../assets/images/FUNDO/fundo-festa-junina-caixas.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Mesmo fundo escuro do cabeçalho com a imagem de fundo e 80% de overlay */
    min-height: 40rem;
    /* Tornando fluido ao invés de fixo */
    position: relative;
    overflow: hidden;
}

/* Novo contêiner centralizador para o Banner */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 90rem;
    /* Limite responsivo (aprox 1440px no base, escala junto com rem) */
    margin: 0 auto;
    position: relative;
    height: 100%;
    min-height: 40rem;
}

/* Logo Branca Fixa no Canto Superior Direito do Banner */
.hero-fixed-logo {
    position: absolute;
    top: 4.8rem;
    right: 3.5rem;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fixed-logo-img {
    width: clamp(3.6rem, 4.5vw, 4.8rem);
    height: clamp(3.6rem, 4.5vw, 4.8rem);
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0.25rem 0.6rem rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.hero-content {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 5rem;
    /* Margem esquerda do texto */
    padding-right: 2rem;
    padding-top: 8rem;
    /* Mantém a altura inicial do título que você pediu */
    padding-bottom: 5rem;
    /* Mantém a altura base final onde o botão ficará */
    max-width: 100%;
    height: 100%;
    /* Preenche todo o container para o flex funcionar */
}

/* Empilha todos os slides: a altura fica no maior texto */
.hero-slides {
    display: grid;
    width: 100%;
    flex: 1 1 auto;
}

.hero-title {
    color: #fff;
    font-size: 4rem;
    /* Maior para dar peso */
    font-weight: 800;
    line-height: 1.05;
    /* Mais espremido */
    margin-bottom: 2.5rem;
    font-family: 'Arial', sans-serif;
    letter-spacing: -0.02em;
    display: flex;
    align-items: flex-end;
}

.hero-title-text {
    /* Envolve o texto para que o flexbox alinhe o bloco inteiro sem quebrar as tags fortes inline */
    display: block;
    width: 100%;
}

.hero-text {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 65%;
    font-family: 'Arial', sans-serif;
    margin-bottom: 1.2rem;
}

.hero-text strong {
    font-weight: 700;
}

.hero-highlight {
    font-weight: 800;
    margin-top: 1.25rem;
    display: block;
}

/* Controles fora dos slides — não animam com a transição do texto */
.hero-controls {
    position: absolute;
    right: 2rem;
    top: 55%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 6;
    margin-top: 0;
}

.hero-arrow {
    background-color: #e6e6e6;
    /* Cinza clarinho */
    border: none;
    width: 2rem;
    /* Menor (antes era 2.5rem) */
    height: 2rem;
    /* Menor */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #14253d;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.btn-matricule {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #579b8c;
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    padding: 0.95rem 3rem;
    border-radius: 2.5rem;
    text-decoration: none;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-family: 'Arial', sans-serif;
    margin-top: auto;
    /* MÁGICA FLEX: Empurra o botão exatamente para a base do banner (padding-bottom: 5rem) */
    align-self: flex-start;
    margin-left: 0;
    /* Alinhado exatamente na mesma margem que o mini texto */
    z-index: 10;
}

.btn-matricule:hover {
    background-color: #488476;
    transform: scale(1.05);
}

.hero-visuals {
    flex: 0 0 45%;
    position: relative;
    height: 100%;
    min-height: 40rem;
}

.hero-bg-frame {
    position: absolute;
    top: 35%;
    bottom: 15%;
    left: 4rem;
    /* Move a moldura mais para a direita para separar mais do texto */
    width: 50vw;
    /* Bleed to the right edge of the screen */
    border-radius: 3rem 0 0 3rem;
    overflow: hidden;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.08);
    border: 0.0625rem solid rgba(255, 255, 255, 0.18);
    border-right: none;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.hero-bg-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    opacity: 0.88;
    filter: blur(0.03rem);
}

.hero-bg-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(0.12rem);
    -webkit-backdrop-filter: blur(0.12rem);
    pointer-events: none;
}

.hero-character {
    position: absolute;
    bottom: -15rem;
    /* Desce o boneco de forma agressiva para garantir o corte nas coxas */
    left: -8rem;
    height: 135%;
    /* Aumenta a escala para a cabeça continuar tocando o topo */
    z-index: 2;
    pointer-events: none;
    /* Não atrapalha cliques */
}

.hero-character img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0.625rem 1.25rem rgba(0, 0, 0, 0.3));
    /* Sombra para o efeito pop-out */
}

.hero-phi-logo {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: 'Times New Roman', Times, serif;
    font-size: 6rem;
    color: #fff;
    line-height: 1;
    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
}

/* ==================================================
   7. Faixa Rotativa Inferior (Colégio Filos)
   ================================================== */
.bottom-ticker {
    background-color: #053256;
    /* Tom de azul ligeiramente diferente e específico desta barra */
    color: #fff;
    height: 3.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bottom-ticker .ticker-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.bottom-ticker .ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
}

.bottom-ticker .ticker-content {
    display: inline-block;
    /* Animação suave (mesma do topo) */
    font-size: 1.125rem;
    /* Fonte um pouco maior que a do topo */
    font-weight: 700;
    /* Texto em negrito como no print */
    letter-spacing: 0.02em;
}

.bottom-ticker .ticker-content span {
    margin-right: 5rem;
    /* Espaçamento largo entre as palavras, conforme o print */
}

/* ==================================================
   8. Seção Diferenciais
   ================================================== */
.diferenciais-section {
    background-color: #f2f2f2;
    padding: 5rem 2rem;
    font-family: 'Arial', sans-serif;
}

.diferenciais-container {
    max-width: 82rem;
    /* Substitui 1300px por rem, para escalar proporcionalmente em telas gigantes */
    padding-left: 8rem;
    /* Garante que nunca vai sobrepor os ícones sociais na esquerda */
    padding-right: 2rem;
    margin: 0 auto;
}

.diferenciais-title {
    font-size: 2.2rem;
    color: #1a2f4c;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: 400;
    /* FILOS não é negrito */
    letter-spacing: 0.05em;
    margin-left: -2.5rem;
}

.diferenciais-title strong {
    font-weight: 800;
}

.diferenciais-content {
    display: flex;
    gap: 3.5rem;
    /* Gap restaurado para separar bem as duas colunas */
    align-items: stretch;
}

/* --- Esquerda: Cards --- */
.diferenciais-cards {
    flex: 1;
    margin-left: -2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.diferencial-card {
    background-color: #fff;
    border-radius: 5rem;
    padding: 1rem 2rem 1rem 12.5rem;
    /* Aumentado padding-left de 10rem para 12.5rem para afastar o texto do numeral */
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 7.5rem;
    /* Altura mínima garantida para o estado fechado */
}

.diferencial-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.diferencial-number {
    position: absolute;
    left: 2.5rem;
    bottom: -1.5rem;
    /* Desce mais o número para esconder mais a parte de baixo */
    font-size: 8.5rem;
    /* Número maior conforme pedido */
    font-weight: 900;
    color: #b8b8b8;
    line-height: 0.75;
    font-family: Arial, sans-serif;
    letter-spacing: -0.05em;
    pointer-events: none;
}

/* O card do meio (02) tem o número sempre preto, sem animação de hover */
.diferencial-card:nth-child(2) .diferencial-number {
    color: #000;
}

.diferencial-text-content {
    flex: 1;
    z-index: 1;
}

.diferencial-text-content h3 {
    font-size: 0.75rem;
    /* Fonte ainda menor */
    color: #333;
    margin-bottom: 0;
    /* Zerado para ficar perfeitamente centralizado quando fechado */
    font-weight: 800;
}

/* Configuração base para o texto do card */
.diferencial-desc {
    font-size: 0.65rem;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    margin: 0;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

/* Quando expande: mostra o texto completo */
.diferencial-card:hover .diferencial-desc,
.diferencial-card.active .diferencial-desc {
    max-height: 20rem;
    /* Espaço suficiente para textos longos */
    opacity: 1;
    margin-top: 0.5rem;
    /* Adiciona o espaço do título */
}


/* --- Direita: Banner Rotativo --- */
.diferenciais-right-panel {
    flex: 1.05;
    display: flex;
    margin-top: -2.4rem;
}

.diferenciais-banner-carousel {
    width: 100%;
    position: relative;
    border-radius: 2.5rem;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.banner-slide {
    display: none;
    width: 100%;
    animation: fadeSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(3%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-blue-box {
    background: linear-gradient(rgba(14, 43, 76, 0.25), rgba(14, 43, 76, 0.25)), url('../assets/images/DIFERENCIAIS/fachada-colegio-faculdade-filos.webp') center / cover no-repeat;
    height: 22.5rem;
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
}

.banner-blue-box.banner-bg-patio-letras {
    background: linear-gradient(rgba(14, 43, 76, 0.25), rgba(14, 43, 76, 0.25)), url('../assets/images/DIFERENCIAIS/escola-diferencial-1.webp') center / cover no-repeat;
}

.banner-blue-box.banner-bg-patio-numeros {
    background: linear-gradient(rgba(14, 43, 76, 0.25), rgba(14, 43, 76, 0.25)), url('../assets/images/DIFERENCIAIS/escola-diferencial-2.webp') center / cover no-repeat;
}

.logo-phi {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.phi-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-dots {
    position: absolute;
    bottom: 1.8rem;
    left: 2.2rem;
    display: flex;
    gap: 0.6rem;
    z-index: 2;
}

.banner-dots .dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots .dot.active {
    background-color: #ffffff;
    border-color: #ffffff;
}

.banner-white-box {
    padding: 1.8rem 2.4rem 2.6rem 2.4rem;
    background-color: #ffffff;
    border-radius: 0 0 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 8rem;
    position: relative;
}

.banner-text {
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.45;
    margin: 0;
    max-width: 82%;
}

.banner-text strong {
    font-weight: 800;
    color: #1a2f4c;
}

.banner-btn-wrapper {
    position: absolute;
    bottom: -1.3rem;
    right: 2.4rem;
    z-index: 10;
}

.btn-matricule-small {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #55a684;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 2.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(85, 166, 132, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.btn-matricule-small:hover {
    background-color: #3f8b6b;
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 991px) {
    .diferenciais-content {
        margin-top: -2rem;
        flex-direction: column;
    }

    .diferenciais-cards {
        margin-left: 0;
        width: 100%;
    }

    .diferenciais-right-panel {
        margin-top: 0;
    }

    .diferencial-card {
        padding: 1.5rem;
    }

    .diferenciais-banner-carousel {
        margin-top: 2rem;
    }

    .banner-blue-box {
        height: 18rem;
    }

    .banner-text {
        max-width: 100%;
        margin-bottom: 1.2rem;
    }
}

/* ==================================================
   8. Etapas de Ensino (Sanfona Horizontal)
   ================================================== */
.etapas-ensino {
    display: flex;
    width: 100%;
    height: 40rem;
    position: relative;
    /* Adicionado para prender o botão flutuante */
    /* Altura da seção */
    color: #fff;
    font-family: 'Open Sans', sans-serif;
}

.etapa-panel {
    flex: 1;
    position: relative;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease;
    overflow: hidden;
    container-type: inline-size;
}

/* Cores de fundo em degradê */
.etapa-panel.panel-1 {
    background-color: #2b5072;
    padding-left: 7rem;
    /* Respeitar ícones flutuantes */
}

.etapa-panel.panel-2 {
    background-color: #224261;
}

.etapa-panel.panel-3 {
    background-color: #19344f;
}

.etapa-panel.panel-4 {
    background-color: #12263a;
}

/* Estado Expandido */
.etapa-panel.active {
    flex: 3.5;
    cursor: default;
}

/* Número no topo direito */
.etapa-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 10;
}

/* Informações Fechadas */
.etapa-closed-info {
    margin-top: auto;
    margin-bottom: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: max-content;
}

.etapa-panel.active .etapa-closed-info {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.etapa-closed-info h2 {
    font-size: clamp(1.85rem, 14.5cqw, 2.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    /* Segurança extra */
    hyphens: auto;
    /* Para telas extremamente pequenas */
}

.etapa-closed-info p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 15rem;
}

.etapa-closed-info p strong {
    font-weight: 800;
}

.btn-etapa-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-etapa-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.circle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #fff;
    color: #12263a;
    border-radius: 50%;
    margin-left: 1rem;
    font-size: 1rem;
}

/* Informações Abertas */
.etapa-open-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease 0.2s;
    /* delay to let flex transition happen */
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.etapa-panel.panel-1 .etapa-open-info {
    padding-left: 7rem;
    /* Respeitar ícones flutuantes quando o painel 1 abre */
}

.etapa-panel.active .etapa-open-info {
    opacity: 1;
    pointer-events: auto;
}

/* Letreiro de Fundo */
.bg-text {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(5.2rem, 15.5cqw, 9.2rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.01em;
    color: #fff;
    opacity: 0.98;
    white-space: nowrap;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.etapa-panel.panel-1 .bg-text {
    left: calc(50% + 2.5rem);
    transform: translateX(-50%);
    font-size: clamp(4.5rem, 13.5cqw, 8rem);
    line-height: 0.9;
    top: 1.8rem;
}

.etapa-panel.panel-2 .bg-text,
.etapa-panel.panel-3 .bg-text {
    font-size: clamp(3.8rem, 12cqw, 7.2rem);
    line-height: 0.88;
    letter-spacing: -0.02em;
    top: 1.2rem;
}

/* Detalhes de Texto por cima da imagem */
.etapa-details {
    position: absolute;
    bottom: 3.5rem;
    left: 3rem;
    z-index: 3;
    max-width: 17rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.etapa-panel.panel-1 .etapa-details {
    left: 7rem;
    /* Respeitar ícones flutuantes */
}

.etapa-badge {
    display: inline-block;
    background-color: #fff;
    color: #12263a;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.etapa-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.etapa-sub {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.etapa-sub strong {
    font-weight: 800;
}

.btn-saiba-mais-white {
    position: absolute;
    bottom: 3.5rem;
    right: 3.5rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0.5rem 0.5rem 1.6rem;
    background-color: #eae7e2;
    color: #12263a;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-saiba-mais-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.3);
}

.circle-icon.orange {
    background-color: #d18529;
    color: #fff;
}

/* Botão Matricule-se Flutuante */
.btn-matricule-floating {
    position: absolute;
    bottom: 0;
    left: 70%;
    transform: translate(-50%, 50%);
    background-color: #589b88;
    color: #fff;
    padding: 0.85rem 3rem;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn-matricule-floating:hover {
    transform: translate(-50%, calc(50% - 5px));
    background-color: #488372;

}

.btn-matricule-floating svg {
    fill: #fff;
}

/* Texto Vertical Instagram */
.vertical-text {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center right;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    z-index: 5;
    white-space: nowrap;
    text-decoration: none;
}

/* Placeholder e Imagem 3D dos Personagens */
.character-placeholder {
    position: absolute;
    bottom: 0;
    right: 6.5rem;
    height: 90%;
    width: auto;
    max-width: 55%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.character-placeholder .character-img {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    filter: drop-shadow(0 0.5rem 1.8rem rgba(0, 0, 0, 0.32));
    transition: transform 0.4s ease;
}

.panel-1 .character-placeholder {
    height: 86%;
    right: 5.5rem;
}

.panel-2 .character-placeholder {
    height: 88%;
    right: 6rem;
}

.panel-3 .character-placeholder {
    height: 89%;
    right: 6rem;
}

.panel-4 .character-placeholder {
    height: 91%;
    right: 6.5rem;
}

/* --- Responsividade da Sanfona --- */
@media (max-width: 900px) {
    .etapas-ensino {
        flex-direction: column;
        height: auto;
    }

    .etapa-panel {
        flex: none !important;
        height: 24rem !important;
        /* Altura fixa confortável para todos os blocos no mobile */
        padding-left: 6.5rem !important;
        /* Afasta o texto dos ícones flutuantes sem cortar o fundo azul */
        transition: none;
    }

    /* Cancela o efeito de sanfona no celular, todos ficam com a mesma cara e tamanho */
    .etapa-panel.active {
        flex: none !important;
        height: 24rem !important;
    }

    .etapa-panel.active .etapa-closed-info {
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
    }

    .etapa-panel.active .etapa-open-info {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .bg-text {
        display: none;
        /* Não precisamos do texto gigante no mobile se não há sanfona */
    }

    .vertical-text {
        display: none;
    }

    /* Centraliza o botão flutuante no mobile para não espremer na borda */
    .btn-matricule-floating {
        left: 50%;
        transform: translate(-50%, 50%);
    }
}

/* =========================================
   SEÇÃO 4: MINI GALERIA
========================================= */
.mini-galeria {
    padding: 5rem 0;
    width: 100%;
    overflow-x: hidden;
    /* Corta itens na horizontal sem quebrar o hover vertical */
}

.galeria-header {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 4rem;
    /* Alinhamento com a seção acima se necessário */
}

.galeria-title {
    text-align: center;
    font-size: 2.5rem;
    color: #12263a;
    font-weight: 400;
    margin-bottom: 2rem;
}

.galeria-title strong {
    font-weight: 800;
}

/* Filtros */
.galeria-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 10rem;
}

.filter-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.filter-link {
    text-decoration: none;
    color: #666;
    font-size: 0.875rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.filter-link:hover,
.filter-link.active {
    color: #12263a;
}

.filter-link.active {
    border-bottom: 2px solid #12263a;
}

/* Grade 100 colunas para precisão nos tamanhos do print */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(100, 1fr);
    gap: 0.25rem;
    /* Espaço bem fino como no print (bordas brancas) */
    width: 100%;
    /* Ocupa de margem a margem */
}

/* 1ª Linha: 4 itens simétricos (25% cada) */
.galeria-item:nth-child(-n+4) {
    grid-column: span 25;
}

/* 2ª Linha: 3 fotos e o filete cortado no canto */
.galeria-item:nth-child(5) {
    grid-column: span 30;
}

.galeria-item:nth-child(6) {
    grid-column: span 32;
}

.galeria-item:nth-child(7) {
    grid-column: span 32;
}

.galeria-item:nth-child(8) {
    grid-column: span 6;
    /* Filete cortado no canto */
    pointer-events: none;
    /* Apenas decoração */
}

.galeria-item.hidden {
    display: none !important;
}

.galeria-item {
    position: relative;
    height: 22rem;
    /* Altura fixa do slot */
    background-color: transparent;
    z-index: 1;
}

.galeria-item:hover,
.galeria-grid:not(:has(.galeria-item:hover)) .galeria-item:nth-child(2) {
    z-index: 10;
}

.galeria-inner {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow: none;
    background-color: transparent;
    /* Removido fundo daqui */
}

/* Todos os itens ancoram em baixo e crescem para cima */
.galeria-item .galeria-inner {
    bottom: 0;
    justify-content: flex-end;
}

.galeria-image {
    width: 100%;
    height: 22rem;
    /* Mesmo tamanho inicial */
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 1.5rem;
    background-color: #1a2a3a;
    /* Placeholder escuro */
    z-index: 2;
    transition: all 0.4s ease;
    overflow: hidden;
}

.galeria-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.galeria-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 27, 43, 0.85) 0%, rgba(14, 27, 43, 0.3) 50%, rgba(14, 27, 43, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.galeria-item:hover .galeria-image img,
.galeria-grid:not(:has(.galeria-item:hover)) .galeria-item:nth-child(2) .galeria-image img {
    transform: scale(1.05);
}

.galeria-item:hover .galeria-image::after,
.galeria-grid:not(:has(.galeria-item:hover)) .galeria-item:nth-child(2) .galeria-image::after {
    opacity: 0.2;
}

.galeria-title-overlay {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.galeria-caption {
    width: 100%;
    height: 0;
    /* Começa escondida */
    background-color: #e5e5e5;
    /* Cinza claro */
    padding: 0 1.5rem;
    /* Padding horizontal fixo, vertical vai animar */
    margin-top: 0;
    /* Corrigido para não empurrar a imagem para baixo */
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.galeria-caption h4 {
    color: #12263a;
    font-weight: 800;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.galeria-caption p {
    color: #666;
    font-size: 0.65rem;
    line-height: 1.4;
}

/* Interação de Hover */
.galeria-item:hover .galeria-inner,
.galeria-grid:not(:has(.galeria-item:hover)) .galeria-item:nth-child(2) .galeria-inner {
    height: 140%;
    /* Cresce em altura */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    /* Sombra espalhada */
    border-radius: 2rem;
    /* A sombra acompanha o arredondamento */
}

.galeria-item:hover .galeria-image,
.galeria-grid:not(:has(.galeria-item:hover)) .galeria-item:nth-child(2) .galeria-image {
    border-radius: 2rem;
    /* A imagem arredonda por completo */
}

/* Cresce sempre para cima, imagem em cima da caption */
.galeria-item:hover .galeria-inner,
.galeria-grid:not(:has(.galeria-item:hover)) .galeria-item:nth-child(2) .galeria-inner {
    flex-direction: column;
}

.galeria-item:hover .galeria-title-overlay,
.galeria-grid:not(:has(.galeria-item:hover)) .galeria-item:nth-child(2) .galeria-title-overlay {
    opacity: 0;
    /* Título some */
}

.galeria-item:hover .galeria-caption,
.galeria-grid:not(:has(.galeria-item:hover)) .galeria-item:nth-child(2) .galeria-caption {
    height: 40%;
    /* A caixa expande */
    padding: 1.5rem;
    padding-top: 3.5rem;
    /* Compensar a parte que fica atrás da foto */
    margin-top: -2rem;
    /* Apenas no hover ela sobe pra trás da imagem arredondada */
    opacity: 1;
    /* Legenda aparece */
    border-radius: 0 0 2rem 2rem;
    /* Cantos inferiores arredondados */
}

/* Responsividade da Galeria */
@media (max-width: 900px) {
    .galeria-item:nth-child(n) {
        grid-column: span 50;
        /* Força 2 colunas no celular/tablet */
    }
}

@media (max-width: 600px) {
    .galeria-grid {
        display: grid;
        grid-template-columns: none !important;
        /* Desativa as 100 colunas do desktop */
        grid-template-rows: repeat(2, 50vh) !important;
        /* Duas linhas de 50% */
        grid-auto-flow: column !important;
        grid-auto-columns: 100% !important;
        /* Cada coluna ocupa 100% da tela */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        min-width: 0;
        padding-top: 25vh !important;
        /* Cria espaço invisível dentro do contêiner para a carta crescer para cima sem cortar */
        margin-top: -25vh !important;
        /* Puxa o contêiner de volta para a posição original */
        padding-bottom: 10vh !important;
        /* Evita que o vazamento da legenda crie barra de rolagem */
        margin-bottom: -10vh !important;
        z-index: 10;
        /* Fica abaixo do menu quando fechado */
        position: relative;
    }

    /* Eleva toda a grade para cobrir o menu e trava a rolagem lateral apenas quando um card estiver aberto */
    .galeria-grid:has(.is-open) {
        z-index: 50 !important;
        overflow-x: hidden !important;
        /* Trava a rolagem (swipe) enquanto o card estiver focado */
    }

    .galeria-grid::-webkit-scrollbar {
        display: none;
    }

    .galeria-item,
    .galeria-item:nth-child(n) {
        grid-column: auto !important;
        /* Força a anulação de todos os nth-child do desktop */
        height: 100%;
        scroll-snap-align: start;
    }

    .galeria-image {
        height: 100% !important;
        /* Faz a imagem preencher todo o bloco de 50vh sem deixar faixa em branco */
    }

    /* Impede que o card "pule" ou mude de tamanho quando o usuário toca para arrastar (Sticky Hover do Mobile) */
    .galeria-item:hover,
    .galeria-item:active {
        z-index: 1 !important;
    }

    .galeria-item:hover .galeria-inner,
    .galeria-item:active .galeria-inner {
        height: 100% !important;
        box-shadow: none !important;
        border-radius: 2rem !important;
        flex-direction: column !important;
    }

    .galeria-item:hover .galeria-image,
    .galeria-item:active .galeria-image {
        border-radius: 2rem !important;
        height: 100% !important;
    }

    .galeria-item:hover .galeria-title-overlay,
    .galeria-item:active .galeria-title-overlay {
        opacity: 1 !important;
    }

    .galeria-item:hover .galeria-caption,
    .galeria-item:active .galeria-caption {
        height: 0 !important;
        padding: 0 1.5rem !important;
        margin-top: 0 !important;
        opacity: 0 !important;
        border-radius: 0 !important;
    }

    /* Efeito puro do PC mapeado para .is-open no celular */
    .galeria-item.is-open,
    .galeria-grid:not(:has(.is-open)) .galeria-item:nth-child(2) {
        z-index: 30 !important;
        /* Passa por cima dos filtros e de tudo */
    }

    .galeria-item.is-open .galeria-inner,
    .galeria-grid:not(:has(.is-open)) .galeria-item:nth-child(2) .galeria-inner {
        height: 140% !important;
        /* Cresce em altura, igual ao PC */
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8) !important;
        border-radius: 2rem !important;
        flex-direction: column !important;
    }

    .galeria-item.is-open .galeria-image,
    .galeria-grid:not(:has(.is-open)) .galeria-item:nth-child(2) .galeria-image {
        flex: 1 !important;
        /* Permite que a imagem encolha um pouco para dar espaço à legenda sem transbordar */
        height: auto !important;
        /* Desativa a altura fixa para evitar overflow */
        border-radius: 2rem !important;
    }

    .galeria-item.is-open .galeria-title-overlay,
    .galeria-grid:not(:has(.is-open)) .galeria-item:nth-child(2) .galeria-title-overlay {
        opacity: 0 !important;
    }

    .galeria-item.is-open .galeria-caption,
    .galeria-grid:not(:has(.is-open)) .galeria-item:nth-child(2) .galeria-caption {
        height: 40% !important;
        padding: 1.5rem !important;
        padding-top: 3.5rem !important;
        margin-top: -2rem !important;
        opacity: 1 !important;
        border-radius: 0 0 2rem 2rem !important;
    }

    .galeria-header {
        position: relative;
        z-index: 40;
    }

    .galeria-filters {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1rem 1.5rem;
        padding-left: 1.5rem;
        /* Leve recuo para os ícones */
        padding-right: 1.5rem;
        width: 100%;
        position: relative;
        z-index: 40 !important;
        /* Menu fica na camada 40 normalmente */
    }

    .filter-row {
        display: contents;
        /* Joga os botões direto para o flex pai */
    }

    .filter-link {
        font-size: 0.95rem;
        /* Tamanho ajustado para caber na tela */
        white-space: nowrap;
        /* Mantém o nome inteiro em uma única linha */
        text-align: center;
        width: auto;
        /* Permite que os menores fiquem lado a lado */
    }
}

/* ==================================================
   10. Rodapé da Galeria & Eventos Filos
   ================================================== */
.galeria-footer {
    text-align: center;
    margin-top: 5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
    background-color: #fff;
    /* Ensure it stays white above the gray area */
}

.galeria-title-text {
    color: #1b2f4c;
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.galeria-subtitle-text {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

.galeria-nav-arrows {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
    padding-bottom: 0;
}

.arrow-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.arrow-btn:hover {
    transform: scale(1.05);
}

.arrow-btn.prev {
    background-color: #e6e6e6;
    color: #1b2f4c;
}

.arrow-btn.next {
    background-color: #1b2f4c;
    color: #fff;
}

/* Seção Eventos Filos */
.eventos-filos-section {
    position: relative;
    background-color: #e6e6e6;
    width: 100%;
    overflow: visible;
    padding-top: 4rem;
    /* Important for the overlapping tab */
}

.eventos-container {
    max-width: 90rem;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 8rem;
    padding: 0 2rem;
}

.eventos-logo {
    position: absolute;
    left: 6rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.eventos-logo-img {
    width: clamp(3.2rem, 3.8vw, 4.2rem);
    height: clamp(3.2rem, 3.8vw, 4.2rem);
    object-fit: contain;
    display: block;
}

.eventos-title {
    color: #1b2f4c;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.eventos-title strong {
    font-weight: 800;
}

/* O Rebaixo Curvo (Inverted border-radius tab) */
.white-tab-decorator {
    position: absolute;
    top: -1px;
    left: 68%;
    width: clamp(20rem, 40vw, 35rem);
    aspect-ratio: 551 / 41;
    height: auto;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 551 41' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 0 L 58 0 C 79 0, 79 41, 100 41 L 438 41 C 458.5 41, 458.5 0, 479 0 L 551 0 L 551 -20 L 0 -20 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 0;
}

.eventos-filos-section .white-tab-decorator {
    left: 55%;
}

/* ==================================================
   11. Layout Grid da Seção de Eventos
   ================================================== */
.eventos-instagram-link {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0 2rem;
    text-align: right;
    color: #666;
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    transform: translateY(-2rem);
    /* Sobe um pouco para ficar perto do título */
}

.eventos-instagram-link p {
    margin: 0;
}

.instagram-icon-small {
    color: #1b2f4c;
    display: block;
    width: 24px;
    height: 24px;
}

.instagram-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.eventos-mobile-carousel,
.eventos-text-pill-mobile {
    display: none;
}

.eventos-content-grid {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem 7rem 6rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    /* Esquerda mais larga que a direita */
    gap: 4rem;
    align-items: stretch;
}

/* ÁREA ESQUERDA */
.eventos-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.eventos-videos-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.video-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease;
}

.video-wrapper:hover,
.eventos-videos-group:not(:has(.video-wrapper:hover)) .video-wrapper:nth-child(2) {
    transform: translateY(-1.5rem);
    z-index: 2;
}

.video-card {
    background-color: #1b2f4c;
    border-radius: 2.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(27, 47, 76, 0.15);
    width: 100%;
    height: 22rem;
    z-index: 2;
    overflow: hidden;
    /* Fica acima da label */
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #000;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #000;
}

.video-label {
    position: absolute;
    bottom: 2rem;
    /* Fica escondido atrás do card inicialmente */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #666;
    font-size: 0.85rem;
    padding: 4rem 1rem 1.25rem 1rem;
    border-radius: 0 0 2.5rem 2.5rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 1;
    /* Fica atrás do card */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.video-wrapper:hover .video-label,
.eventos-videos-group:not(:has(.video-wrapper:hover)) .video-wrapper:nth-child(2) .video-label {
    opacity: 1;
    visibility: visible;
    bottom: -3rem;
    /* Desce ainda mais para ficar com uma área bem maior */
}

.video-label strong {
    color: #1b2f4c;
    font-weight: 800;
}

/* CAIXA DE TEXTO BRANCA */
.eventos-text-pill {
    background-color: #fff;
    border-radius: 3rem;
    padding: 2rem 3rem;
    text-align: left;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.eventos-text-pill p {
    margin: 0;
    max-width: 90%;
}

.eventos-text-pill strong {
    color: #1b2f4c;
    font-weight: 800;
}

.btn-matricule-pill {
    position: absolute;
    bottom: -1.25rem;
    right: 3rem;
    background-color: #589b88;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.btn-matricule-pill:hover {
    transform: scale(1.05);
}

.eventos-nav-arrows {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-left: clamp(2rem, 3vw, 3rem);
}

.eventos-nav-arrows svg {
    width: 1.55rem;
    height: 1.55rem;
    display: block;
}

/* ÁREA DIREITA */
.eventos-right {
    position: relative;
    display: flex;
    align-items: stretch;
}

.eventos-white-bg {
    position: absolute;
    top: 0;
    left: 30%;
    /* Para garantir que seja largo o suficiente e fique atrás do vídeo */
    right: 0;
    /* Para encostar no limite do grid e manter o espaçamento do canto da tela */
    height: 100%;
    background-color: #fff;
    border-radius: 3rem;
    /* Cantos totalmente arredondados */
    z-index: 1;
}

.video-featured {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    background-color: #000;
    border-radius: 2.5rem;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(27, 47, 76, 0.15);
    overflow: hidden;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1b2f4c;
    border-radius: 2.5rem;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.video-slide.active {
    opacity: 1;
    z-index: 2;
}

.featured-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.nav-dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1b2f4c;
    transition: transform 0.2s;
}

.nav-dot:hover {
    transform: scale(1.1);
}

/* ==================================================
   12. Seção Alunos Filos
   ================================================== */
.alunos-filos-section {
    background-color: #ffffff;
    width: 100%;
    padding: 7.5rem 0 6rem 0;
    overflow: hidden;
}

/* Desativados temporariamente: ainda não há fotos nem conteúdo na seção Alunos Filos. */
.alunos-filos-section--off,
.white-tab-decorator.left-tab--off {
    display: none;
}

.alunos-content-grid {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.alunos-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.alunos-title {
    font-size: clamp(2rem, 3.5vw, 4rem);
    color: #1b2f4c;
    line-height: 1.1;
    margin: 0;
}

.alunos-title strong {
    font-weight: 800;
}

.alunos-text {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
    margin: 0;
    max-width: 90%;
}

.alunos-nav-arrows {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.arrow-btn-small {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #1b2f4c;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.arrow-btn-small:hover {
    transform: scale(1.05);
    background-color: #27436b;
}

.alunos-right {
    position: relative;
    width: 100%;
}

.alunos-cards-group {
    display: flex;
    gap: 1.5rem;
    /* Permits scrolling or overflowing */
    overflow-x: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    /* Hides scrollbar in most browsers with vendor prefixes, but let's keep it simple */
    scrollbar-width: none;
    /* Firefox */
}

.alunos-cards-group::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.aluno-wrapper {
    flex: 0 0 clamp(14rem, 20vw, 18rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.4s ease;
}

.aluno-wrapper:hover,
.alunos-cards-group:not(:has(.aluno-wrapper:hover)) .aluno-wrapper:nth-child(1) {
    transform: translateY(-1.5rem);
    z-index: 2;
}

.aluno-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #1b2f4c;
    border-radius: 2rem;
    position: relative;
    z-index: 2;
}

.aluno-label {
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e6e6e6;
    color: #1b2f4c;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    padding: 3rem 1rem 1.5rem 1rem;
    border-radius: 0 0 2rem 2rem;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.aluno-wrapper:hover .aluno-label,
.alunos-cards-group:not(:has(.aluno-wrapper:hover)) .aluno-wrapper:nth-child(1) .aluno-label {
    opacity: 1;
    visibility: visible;
    bottom: -3rem;
}

/* ==================================================
   13. Seção Sobre o Colégio Filos
   ================================================== */
.sobre-filos-section {
    position: relative;
    background-color: #f4f4f4;
    padding: 6rem 0;
    width: 100%;
}

.sobre-filos-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sobre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sobre-title {
    font-size: clamp(2rem, 3.5vw, 4rem);
    color: #1b2f4c;
    line-height: 1.1;
    margin: 0;
}

.sobre-title strong {
    font-weight: 800;
}

.sobre-icon-placeholder {
    width: 4rem;
    height: 4rem;
    /* Espaço reservado para o Phi (fundo cinza normal já provido pela seção) */
}

.sobre-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sobre-content p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.sobre-content p strong {
    color: #333;
    font-weight: 700;
}

/* Botão Saiba Mais Animado */
.btn-saiba-mais-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    border: 2px solid #000000;
    border-radius: 3rem;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-top: 1.5rem;
}

.saiba-mais-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background-color: #313335;
    /* Cor escura do botão */
    border-radius: 3rem;
    transition: width 0.4s ease;
    z-index: 1;
}

.btn-saiba-mais-bar:hover .saiba-mais-bg {
    width: 100%;
}

.saiba-mais-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding-left: 2rem;
    letter-spacing: 0.5px;
}

.saiba-mais-icon {
    position: relative;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* Footer (Convite e WhatsApp) */
.sobre-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.sobre-footer-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.btn-whatsapp-sobre {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: #5a9d8c;
    /* Verde estilo print */
    color: #ffffff;
    padding: 1rem 3rem;
    border-radius: 3rem;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    letter-spacing: 0.03em;
}

.btn-whatsapp-sobre:hover {
    transform: scale(1.05);
    background-color: #4b8676;
}

@media (max-width: 900px) {
    .floating-socials {
        display: none;
    }
}

/* ---------------------------------------------------
   Páginas Internas (Sobre, etc)
   --------------------------------------------------- */
.inner-page-banner {
    background-color: #f7f7f7;
    width: 100%;
    padding: 3.5rem 0;
}

.inner-banner-container {
    max-width: 90rem;
    margin: 0 auto;
    /* Usa a mesma lógica dinâmica de padding para alinhar com o menu */
    display: flex;
    align-items: center;
}

.inner-banner-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: #071a33;
    font-weight: 300;
    margin: 0;
    letter-spacing: 1px;
}

.inner-banner-title strong {
    font-weight: 700;
}

.sobre-page-content {
    background-color: #f7f7f7;
    position: relative;
    /* Igual ao banner */
    padding: 3rem 0 6rem 0;
}

.sobre-page-container {
    max-width: 90rem;
    margin: 0 auto;
}

.sobre-text-block {
    color: #333333;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sobre-text-block h2 {
    font-size: 1.25rem;
    color: #222222;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.sobre-text-block h2:first-child {
    margin-top: 0;
}

.sobre-text-block p {
    margin-bottom: 1rem;
}

.sobre-text-block strong {
    font-weight: 700;
    color: #111111;
}

.sobre-cta-block {
    margin-top: 4rem;
    font-family: 'Poppins', sans-serif;
}

.sobre-cta-text {
    text-align: center;
    color: #333333;
    margin-bottom: 3rem;
}

.sobre-cta-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.sobre-cta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sobre-cta-phone {
    font-size: 1rem;
    color: #333333;
}

.sobre-cta-phone strong {
    font-weight: 700;
}

.btn-matricule-se {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #58a294;
    /* Tom verde/teal do botão */
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-matricule-se:hover {
    background-color: #498b7e;
    transform: translateY(-2px);
}

/* ---------------------------------------------------
   11b. Seção Localização
   --------------------------------------------------- */
/* ==================================================
   11. Seção Localização ("Onde nos Encontrar")
   ================================================== */
.localizacao-section {
    position: relative;
    background-color: #0c1c2e;
    background-image: linear-gradient(rgba(12, 28, 46, 0.88), rgba(12, 28, 46, 0.92)), url('../assets/images/GALERIA/FESTA%20JUNINA/festa-junina-quadrilha.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    padding: 7rem 2rem 8.5rem 2rem;
}

.localizacao-container {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Cabeçalho */
.localizacao-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.localizacao-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.loc-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.95;
}

.loc-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

.loc-title strong {
    font-weight: 800;
}

.loc-logo-placeholder {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3.8rem;
    height: 3.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loc-phi-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Conteúdo Principal (Grid 2 colunas) */
.localizacao-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* FAQ (Esquerda) */
.loc-faq-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.loc-pill-accent,
.loc-divider {
    display: block;
    width: 3.5rem;
    height: 0.35rem;
    background-color: #ffffff;
    border-radius: 1rem;
    margin-bottom: 1.2rem;
}

.loc-faq-column .faq-title {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1.8rem 0;
    line-height: 1.2;
}

.loc-faq-column .faq-title strong {
    font-weight: 800;
}

.loc-faq-column .faq-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.8rem;
}

.loc-faq-column .faq-item {
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.6rem;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, border-radius 0.25s ease, transform 0.2s ease;
}

.loc-faq-column .faq-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.loc-faq-column .faq-item.active {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    border-radius: 1.25rem;
}

.loc-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
}

.loc-faq-column .faq-plus {
    position: static;
    transform: none;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1;
    color: #ffffff;
    margin-left: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.loc-faq-column .faq-item.active .faq-plus {
    transform: rotate(45deg);
}

.loc-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.loc-faq-column .faq-item.active .loc-faq-answer {
    max-height: 15rem;
    opacity: 1;
    margin-top: 0.75rem;
}

.loc-faq-answer p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.btn-fale-equipe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    background-color: #579b8c;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    min-height: 3.45rem;
    padding: 0.65rem 2.4rem;
    border-radius: 1.15rem;
    text-decoration: none;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.btn-fale-equipe svg {
    width: 1.7rem;
    height: 1.7rem;
    flex-shrink: 0;
}

.btn-fale-equipe:hover {
    transform: translateY(-0.1rem);
    background-color: #4b8a7c;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.18);
}

/* Mapa (Direita) */
.loc-map-column {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    width: 100%;
    aspect-ratio: 16 / 11;
    min-height: 20rem;
    max-height: 25rem;
    border-radius: 2.2rem;
    overflow: hidden;
    box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.4);
    background-color: #e5e7eb;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Rodapé do Endereço */
.loc-footer-details {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    max-width: 54rem;
    margin: 3.5rem auto 0 auto;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.025em;
    color: #ffffff;
    opacity: 0.95;
}

.loc-pin {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: #ffffff;
}

.loc-pin svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: #ffffff;
}

.loc-footer-details p {
    margin: 0;
}

@media (max-width: 64rem) {
    .localizacao-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
        width: 100%;
        max-width: 100%;
    }

    .loc-faq-column,
    .loc-map-column,
    .map-placeholder {
        min-width: 0;
        max-width: 100%;
    }

    .loc-logo-placeholder {
        display: none;
    }
}

@media (max-width: 48rem) {
    .localizacao-section {
        padding: 5rem 1rem 4rem 1rem;
        overflow-x: clip;
    }

    .localizacao-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* min-height + aspect-ratio forçava o mapa a ~407px e vazava da tela */
    .map-placeholder {
        min-height: 0;
        max-height: none;
        width: 100%;
        max-width: 100%;
    }

    .map-placeholder iframe {
        max-width: 100%;
    }

    .btn-fale-equipe {
        width: 100%;
        max-width: 100%;
        font-size: 1.05rem;
        padding: 0.7rem 1.2rem;
        gap: 0.75rem;
        box-sizing: border-box;
    }

    .loc-faq-question {
        min-width: 0;
        gap: 0.5rem;
    }

    .loc-faq-question > span:first-child {
        min-width: 0;
        flex: 1 1 auto;
        overflow-wrap: anywhere;
    }

    .loc-footer-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 100%;
        padding: 0 0.25rem;
        box-sizing: border-box;
    }

    .loc-footer-details p {
        overflow-wrap: anywhere;
    }
}

/* ---------------------------------------------------
   12. Rodapé Global (Site Footer)
   --------------------------------------------------- */

.site-footer {
    background-color: #071a33;
    /* Cor exata solicitada */
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    padding-top: 7.5rem;
}

.footer-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem 5.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    position: relative;
}

/* Coluna Info (Esquerda) */
.footer-col-info {
    max-width: 32rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 6.25rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-desc {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 700;
}

.footer-address .pin-icon {
    flex-shrink: 0;
}

.footer-address .pin-icon svg {
    margin-top: 0.2rem;
}

/* Agrupamento Central (Ensino / Contato) */
.footer-col-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-col h3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    color: #ffffff;
}

.footer-title-phi {
    width: 1.55rem;
    height: 1.55rem;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    margin-left: -2.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-col p {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.footer-col p strong {
    color: #ffffff;
    font-weight: 700;
}

/* Canto das Redes Sociais */
.footer-social-corner {
    position: absolute;
    bottom: 5.5rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
}

.social-icon-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #ffffff;
    border-radius: 35%;
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

.social-icon-outline:hover {
    background-color: #ffffff;
    color: #0b192c;
}

/* Barra Inferior */
.footer-bottom {
    background-color: #06111f;
    display: flex;
    justify-content: center;
    gap: 15vw;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.04em;
    padding: 2.5rem 2rem;
    min-height: 5.5rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.5;
}

/* Responsividade do Rodapé */
@media (max-width: 64rem) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-social-corner {
        position: static;
        margin-top: 2rem;
        justify-content: center;
    }
}

@media (max-width: 48rem) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem 4rem;
    }

    .footer-col {
        padding-left: 2.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

.white-tab-decorator.center-tab {
    left: 50%;
    transform: translateX(-50%);
}

.white-tab-decorator.left-tab {
    left: 9rem;
    z-index: 5;
}

@media (max-width: 48rem) {
    .white-tab-decorator.left-tab {
        left: 3rem;
    }
}

@media (min-width: 90rem) {
    .white-tab-decorator.left-tab {
        left: calc((100% - 90rem) / 2 + 9rem);
    }
}

/* ---------------------------------------------------
   Ações Flutuantes na Direita (Up e WhatsApp)
   --------------------------------------------------- */
.floating-actions-right {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
}

.action-btn-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
}

.action-btn-right:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.btn-up-arrow {
    background-color: #a0c279;
    color: #071a33;
}

.btn-whatsapp-right {
    background-color: #2b7848;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .floating-actions-right {
        display: none;
    }
}

/* ==========================================================================
   HERO - EDUCAÇÃO INFANTIL
   ========================================================================== */
.infantil-hero-section {
    background-color: #15273b;
    position: relative;
    padding-top: 12rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Vídeo de fundo responsivo no espaço completo do banner */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    user-select: none;
}

.hero-scrub-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(21, 39, 59, 0.85) 0%, rgba(21, 39, 59, 0.55) 45%, rgba(21, 39, 59, 0.15) 100%);
}

.infantil-hero-container {
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Alinhado à esquerda como no print */
    justify-content: center;
    padding-bottom: 8rem;
    position: relative;
    z-index: 2;
    min-height: 28rem;
}

.infantil-hero-text-block {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 68rem;
    width: 100%;
}

.infantil-hero-title {
    color: #ffffff;
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
    font-weight: 300;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.infantil-hero-title strong {
    font-weight: 800;
}

.infantil-hero-subtitle {
    color: #ffffff;
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
    font-weight: 400;
    margin: 0 0 4rem 0;
    letter-spacing: 0.02em;
}

.btn-infantil-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #589b88;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-infantil-hero svg {
    width: 1.5rem;
    height: 1.5rem;
}

.btn-infantil-hero:hover {
    background-color: #467e6e;
    transform: translateY(-0.2rem);
}

/* Responsividade do Hero e do Vídeo */
@media (max-width: 64rem) {
    .infantil-hero-section {
        padding-top: 10rem;
    }

    .infantil-hero-container {
        padding-left: 4.8rem !important;
        padding-right: 1.5rem !important;
        padding-bottom: 5rem;
        min-height: auto;
    }

    .infantil-hero-text-block {
        max-width: 100%;
    }

    .hero-video-overlay {
        background: linear-gradient(180deg, rgba(21, 39, 59, 0.9) 0%, rgba(21, 39, 59, 0.65) 55%, rgba(21, 39, 59, 0.3) 100%);
    }
}

/* Ajustes da Faixa Rotativa no Hero */
.hero-ticker {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   CONTEÚDO TEXTO - EDUCAÇÃO INFANTIL
   ========================================================================== */
.infantil-content-section {
    padding-top: 5rem;
    padding-bottom: 8rem;
    background-color: #f1f1f1;
    /* Fundo cinza claro igual ao print */
}

.infantil-main-heading {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
    color: #15273b;
    /* Azul escuro */
    font-weight: 300;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.infantil-main-heading strong {
    font-weight: 800;
}

.infantil-main-subheading {
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
    color: #4a4a4a;
    margin-top: 0;
    margin-bottom: 3rem;
}

/* ==========================================================================
   DROPDOWN MENU - ENSINO
   ========================================================================== */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    /* Adicionando espaçamento entre o menu principal e a caixa do submenu */
    top: calc(100% + 45px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #f4f4f4;
    border-radius: 1.5rem;
    padding: 1.5rem 0;
    min-width: 420px;
    /* Mais gordinho para caber em uma linha */
    white-space: nowrap;
    /* Impede que o texto quebre de linha */
    list-style: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

/* Tab de conexão (a aba arredondada no topo da caixa) REMOVIDA A PEDIDO */

/* Hitbox invisível para o hover não quebrar quando passar no "espaçamento" */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 2.5rem;
    color: #000;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease;
    letter-spacing: 0.05em;
}

.dropdown-menu li a strong {
    font-weight: 800;
}

/* Cor de animação ao passar o mouse */
.dropdown-menu li a:hover {
    background-color: #ced5dc;
    /* Tom cinza-azulado mais escuro do print */
}

/* Indicador de aba invertida para o menu ativo */
.nav-menu li {
    position: relative;
}

/* ==================================================
   MOBILE MENU (hamburger + painel)
   ================================================== */
@media (max-width: 991px) {
    .header-main-bottom {
        z-index: 1100;
    }

    .middle-bar {
        height: 5.5rem;
        justify-content: flex-start;
        padding-left: 1.25rem;
        padding-right: 7.5rem;
        background-color: #f2f2f2;
    }

    .header-logo-img {
        max-height: 3.6rem;
        margin-top: 0;
    }

    .login-button {
        top: 50%;
        bottom: auto;
        right: 0;
        transform: translateY(-50%);
        padding: 0.55rem 1.5rem 0.55rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 0.35rem 0 0 0.65rem;
    }

    /* Posiciona o LOGIN na faixa da logo no mobile */
    .header-main-bottom > .login-button {
        top: 2.75rem;
        transform: translateY(-50%);
    }

    .bottom-bar {
        height: auto;
        min-height: 3.5rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        border-top: 0.5rem solid #fff;
        border-bottom: 0.5rem solid #fff;
        background-color: #fff;
        position: relative;
        padding: 0;
    }

    .mobile-nav-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 3.25rem;
        padding: 0 1.5rem;
        background-color: #fff;
        box-sizing: border-box;
    }

    .mobile-nav-cta {
        font-size: 0.95rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        text-decoration: none;
        color: #14253d;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 0.4rem;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle-line {
        display: block;
        height: 0.14rem;
        background-color: #14253d;
        border-radius: 999px;
        transition: transform 0.25s ease, width 0.25s ease, opacity 0.25s ease;
    }

    .menu-toggle-line:first-child {
        width: 1.55rem;
    }

    .menu-toggle-line:last-child {
        width: 1.05rem;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-line:first-child {
        width: 1.35rem;
        transform: translateY(0.27rem) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-line:last-child {
        width: 1.35rem;
        transform: translateY(-0.27rem) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        width: calc(100% - 2.9rem);
        max-width: 23.1rem;
        margin: 0.35rem auto 0.75rem;
        padding: 0;
        list-style: none;
        background-color: #ececec;
        border-radius: 1.35rem;
        overflow: hidden;
        box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.08);
    }

    .bottom-bar.is-open .nav-menu {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(20, 37, 61, 0.12);
    }

    .nav-menu > li:last-child {
        border-bottom: 0;
    }

    .nav-menu > li > a,
    .nav-menu > li > .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 3.15rem;
        padding: 0.85rem 1.25rem;
        box-sizing: border-box;
        text-align: center;
        font-size: 0.92rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        color: #2a3544;
        background-color: transparent;
    }

    .nav-menu li a.active::after {
        display: none;
    }

    .nav-item-desktop-only {
        display: none !important;
    }

    .nav-item-dropdown {
        position: static;
    }

    .nav-item-dropdown::after {
        display: none;
    }

    .nav-item-dropdown .dropdown-menu {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        min-width: 0;
        width: 100%;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: #c5ced6;
        opacity: 1;
        visibility: visible;
        display: none;
        white-space: normal;
    }

    .nav-item-dropdown.is-open > .nav-dropdown-toggle {
        background-color: #9aa7b3;
        color: #14253d;
        font-weight: 800;
    }

    .nav-item-dropdown.is-open > .dropdown-menu {
        display: block;
    }

    .nav-item-dropdown .dropdown-menu li a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        padding: 0.8rem 1.25rem;
        background-color: #b7c4d0;
        color: #14253d;
        font-size: 0.9rem;
        font-weight: 800;
        border-bottom: 1px solid rgba(20, 37, 61, 0.12);
    }

    .nav-item-dropdown .dropdown-menu li:last-child a {
        border-bottom: 0;
    }

    .nav-item-dropdown .dropdown-menu li a:hover {
        background-color: #b7c2cc;
    }

    .nav-item-mobile-login {
        display: list-item;
    }

    .nav-item-mobile-login a {
        background-color: #14253d !important;
        color: #fff !important;
        font-weight: 700 !important;
        min-height: 3.5rem !important;
        border-radius: 0 0 1.35rem 1.35rem;
    }

    .nav-item-mobile-login a strong {
        font-weight: 800;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    /* Move a aba para o fundo da barra cinza, que tem 3.5rem de altura e os links estão centralizados nela */
    bottom: -1.45rem;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 14px;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    pointer-events: none;
    z-index: 10;
}

.contact-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-footer-row p {
    margin: 0 !important;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Rebaixo da transição específico para a página Educação Infantil */
.page-infantil .projetos-section .white-tab-decorator {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 551 41' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 0 L 58 0 C 79 0, 79 41, 100 41 L 438 41 C 458.5 41, 458.5 0, 479 0 L 551 0 L 551 -20 L 0 -20 Z' fill='%23f1f1f1'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------
   Seção de Projetos - Educação Infantil
   --------------------------------------------------- */
.projetos-section {
    position: relative;
    background-color: #15273b;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    padding: 6rem 0 4rem 0;
    overflow: hidden;
    isolation: isolate;
}

.page-infantil .projetos-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 31, 57, 0.91) 0%, rgba(8, 31, 57, 0.86) 53%, rgba(8, 31, 57, 0.72) 100%),
        url('../assets/images/sala-de-aula-pública-salvador-bahia-brasil-outubro-vista-uma-vazia-escola-estadual-na-cidade-273053003.webp') center / cover no-repeat;
    filter: saturate(0.7);
}

.page-infantil .projetos-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 24, 47, 0.05), rgba(5, 24, 47, 0.32));
    pointer-events: none;
}

.projetos-container {
    max-width: 90rem;
    margin: 0 auto;
    width: 100%;
    padding-inline: clamp(2rem, 7vw, 7.5rem);
}

.projetos-header-row {
    margin-bottom: 2rem;
}

.projetos-title {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
}

.projetos-title strong {
    font-weight: 800;
}

.projetos-main-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 3rem;
    justify-content: space-between;
    align-items: stretch;
}

.projetos-left-col {
    flex: 1 1 52%;
    max-width: 50rem;
    position: relative;
    z-index: 3;
}

.projetos-text {
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1.1rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.projetos-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.projetos-accordion-item {
    background-color: #3b4959;
    border-radius: 2rem;
    padding: 1.1rem 1.6rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: background-color 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.projetos-accordion-item:hover {
    background-color: #46576b;
}

.projetos-accordion-item.active {
    background-color: #26384c;
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.projetos-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    user-select: none;
}

.projetos-item-title {
    font-size: clamp(0.95rem, 0.85vw + 0.45rem, 1.15rem);
    font-weight: 600;
    color: #ffffff;
    padding-right: 1rem;
    line-height: 1.35;
}

.projetos-accordion-item .plus-icon {
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    color: #ffffff;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.projetos-accordion-item.active .plus-icon {
    transform: rotate(45deg);
}

.projetos-accordion-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.3s ease;
}

.projetos-accordion-item.active .projetos-accordion-body {
    max-height: 25rem;
    opacity: 1;
    margin-top: 0.9rem;
}

.projetos-accordion-body p {
    font-size: clamp(0.85rem, 0.75vw + 0.4rem, 1rem);
    line-height: 1.6;
    color: #e0e7ef;
    margin: 0;
    font-weight: 400;
}

.projetos-accordion-body em {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85em;
    color: #9cb3cc;
    font-style: normal;
}

.projetos-right-col {
    flex: 1 1 43%;
    min-width: 25rem;
    min-height: 45rem;
    position: relative;
    align-self: stretch;
    z-index: 2;
}

.projetos-brand {
    position: absolute;
    top: 0.5rem;
    right: 12%;
    z-index: 4;
}

.projetos-brand img {
    display: block;
    width: clamp(3.5rem, 5vw, 5.25rem);
    height: auto;
}

.projetos-insta-box {
    position: absolute;
    top: 8rem;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    text-align: right;
    color: inherit;
    text-decoration: none;
}

.projetos-insta-box p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 300;
}

.projetos-image-placeholder {
    position: absolute;
    right: calc(clamp(2rem, 7vw, 7.5rem) * -1);
    bottom: 2rem;
    width: calc(100% + clamp(2rem, 7vw, 7.5rem));
    aspect-ratio: 16 / 9;
    border-radius: 1.25rem 0 0 1.25rem;
    overflow: hidden;
}

.projetos-classroom-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: blur(2.5px);
    transform: scale(1.025);
}

.projetos-character {
    position: absolute;
    z-index: 3;
    left: -18%;
    bottom: -17rem;
    width: min(100%, 34rem);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0.75rem 1rem rgba(3, 18, 34, 0.25));
}

@media (max-width: 56.25rem) {
    .projetos-main-grid {
        flex-direction: column;
    }

    .projetos-right-col {
        width: 100%;
        min-width: 0;
        min-height: 42rem;
    }

    .projetos-insta-box {
        top: 5rem;
        right: 0;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .projetos-brand {
        top: 0;
        right: 8%;
    }

    .projetos-character {
        left: 4%;
        bottom: -14rem;
        width: min(78%, 27rem);
    }

    .projetos-image-placeholder {
        bottom: 1rem;
        right: calc(clamp(2rem, 7vw, 7.5rem) * -1);
        width: calc(100% + clamp(2rem, 7vw, 7.5rem) * 2);
    }
}

.projetos-insta-icon-retro {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

/* ==================================================
   NOVA SEÇÃO: Diferenciais (Ensino Infantil)
   ================================================== */
.diferenciais-section-new {
    background-color: #ffffff;
    padding: 6rem 2rem;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

/* Rebaixo centralizado no meio */
.diferenciais-section-new .white-tab-decorator {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    top: auto;
    z-index: 10;
}

.diferenciais-container-new {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Coluna da Esquerda (Texto) */
.diferenciais-text-column {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    flex-direction: column;
}

.diferenciais-title-new {
    font-size: 2.8rem;
    line-height: 1.1;
    color: #1a2f4c;
    margin-bottom: 2rem;
}

.diferenciais-title-new .font-light {
    font-weight: 300;
}

.diferenciais-title-new strong {
    font-weight: 800;
}

.diferenciais-desc-new {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Controles (Setas) */
.diferenciais-slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    padding-right: 1.5rem;
}

.diferenciais-slider-controls button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #0b1a2d;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.diferenciais-slider-controls button:hover {
    background-color: #1a2f4c;
}

.diferenciais-slider-controls button svg {
    width: 1rem;
    height: 1rem;
}

/* Coluna da Direita (Cards) */
.diferenciais-slider-column {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.diferenciais-slider-track-new {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 2rem;
}

.diferenciais-slider-track-new::-webkit-scrollbar {
    display: none;
}

/* Container do Card (Cinza Claro) */
.diferencial-card-new {
    flex: 0 0 17.5rem;
    width: 17.5rem;
    max-width: 17.5rem;
    align-self: flex-start;
    height: auto;
    background-color: #e2e4e6;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diferencial-card-new:hover,
.diferencial-card-new.is-active {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.08);
}

/* Parte Superior (Azul Escuro com cantos arredondados) */
.dif-card-top {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #2b3950;
    border-radius: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Botão WhatsApp exatamente entre o quadrado azul e o cinza */
.dif-whatsapp-btn {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -30%) scale(0.95);
    background-color: #579b8c;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.15);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.2s ease;
}

/* Revelação suave do botão exatamente sobre a divisória ao passar o mouse ou quando animado/ativo */
.diferencial-card-new:hover .dif-whatsapp-btn,
.diferencial-card-new.is-active .dif-whatsapp-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.dif-whatsapp-btn:hover {
    background-color: #468778;
    transform: translate(-50%, -54%) scale(1.03);
}

/* Parte Inferior (Área com texto cinza) */
.dif-card-bottom {
    flex: 0 0 14.5rem;
    height: 14.5rem;
    display: flex;
    flex-direction: column;
    padding: 2.2rem 1.4rem 1.4rem;
    box-sizing: border-box;
    overflow: hidden;
}

.dif-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #112233;
    line-height: 1.25;
    margin: 0 0 0.8rem 0;
    letter-spacing: -0.01em;
}

.dif-card-text {
    font-size: 0.88rem;
    color: #445566;
    line-height: 1.45;
    margin: 0 0 0.8rem 0;
}

.dif-card-highlight {
    font-size: 0.95rem;
    font-weight: 800;
    color: #112233;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .diferenciais-container-new {
        flex-direction: column;
        align-items: flex-start;
    }

    .diferenciais-text-column {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .diferencial-card-new {
        flex: 0 0 min(17.5rem, calc(50% - 0.75rem));
        width: min(17.5rem, calc(50% - 0.75rem));
        max-width: 17.5rem;
    }
}

@media (max-width: 768px) {
    .diferenciais-section-new {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden;
    }

    .diferenciais-text-column {
        padding: 0 3.5rem;
    }

    .diferenciais-slider-column {
        position: relative;
        width: 100%;
        overflow: visible;
    }

    .diferenciais-slider-track-new {
        --dif-card-w: min(17.5rem, 70vw);
        scroll-snap-type: x mandatory;
        padding: 0 max(1.5rem, calc((100% - var(--dif-card-w)) / 2)) 3.5rem;
        scroll-padding-inline: max(1.5rem, calc((100% - var(--dif-card-w)) / 2));
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0;
        z-index: 20;
        position: relative;
    }

    .diferencial-card-new {
        flex: 0 0 var(--dif-card-w);
        width: var(--dif-card-w);
        max-width: var(--dif-card-w);
        scroll-snap-align: center;
        transform: none !important;
    }

    .diferencial-card-new:hover {
        transform: none !important;
    }

    /* HTML dummy masks style */
    .dummy-dif {
        display: none !important;
    }
}

/* ==================================================
   Hero Carousel (9 Slides)
   ================================================== */
.hero-carousel {
    width: 100%;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75em 1.75em;
    background: #1565c0;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta-btn:hover {
    background: #0d47a1;
    transform: translateY(-2px);
}

/* Dots indicadores */
.hero-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* Barra de navegação inferior do hero */
.hero-nav-bar {
    margin-top: 1.5rem;
}

/* ==================================================
   MOBILE OVERRIDES (Global)
   ================================================== */
@media (max-width: 768px) {

    /* A foto da sala na Educação Infantil encosta na borda direita da tela */
    .page-infantil .projetos-image-placeholder {
        right: calc(max(1.5rem, var(--safe-zone-right) - max(0px, 50vw - 45rem)) * -1);
    }

    .page-infantil .projetos-brand,
    .page-infantil .projetos-insta-box {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
    }

    .page-infantil .projetos-insta-box {
        width: max-content;
        max-width: 100%;
        align-items: center;
    }

    /* O card de diferenciais fica inteiro na tela, com folga nos dois lados */
    .page-infantil .diferenciais-slider-column {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: 0;
        overflow: hidden;
    }

    .page-infantil .diferenciais-slider-track-new {
        width: 100%;
        box-sizing: border-box;
    }

    /* Impede seções/carrosséis de empurrarem a página para a direita */
    .eventos-filos-section,
    .alunos-filos-section,
    .diferenciais-section,
    .diferenciais-section-new,
    .galeria-section,
    .faq-section,
    .sobre-section,
    .global-bottom-wrapper,
    .site-footer,
    main {
        overflow-x: clip;
        max-width: 100%;
    }

    .white-tab-decorator:not(.left-tab) {
        left: 50%;
        transform: translateX(-50%);
        width: min(18rem, 72vw);
        max-width: 85vw;
    }

    /* Restaurar Ícones Flutuantes (Opção 1) */
    .floating-socials {
        display: flex !important;
        left: 0.5rem !important;
        /* Totalmente dentro da tela com um respiro */
        transform: translateY(-50%) scale(0.85);
        /* Diminui o tamanho em ~15% */
        transform-origin: left center;
    }

    .floating-actions-right {
        display: flex !important;
        right: 0.5rem !important;
        transform: translateY(-50%) scale(0.85);
        transform-origin: right center;
    }

    /* Ajustar Banner */
    .hero-banner {
        height: auto !important;
        min-height: 60vh;
    }

    .hero-banner > .hero-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0;
        /* Laterais iguais — DevTools antes: 49px esq / 21px dir */
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }

    .hero-fixed-logo {
        top: 0.85rem;
        right: 1rem;
        z-index: 5;
    }

    .hero-fixed-logo-img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .hero-banner .hero-content {
        /* Área do texto com laterais simétricas */
        padding-top: 5.5rem !important;
        padding-bottom: 1rem !important;
        padding-left: 2.75rem !important;
        padding-right: 2.75rem !important;
        flex: none;
        width: 100%;
        max-width: 22.5rem;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .hero-slides {
        width: 100%;
    }

    .hero-visuals {
        flex: none;
        width: 100%;
        min-height: 20.5rem;
        height: 20.5rem;
        /* Espaço entre o botão do banner e o boneco */
        margin-top: 1.35rem;
        position: relative;
        z-index: 1;
    }

    .hero-bg-frame {
        width: 56vw;
        height: 11rem;
        border-radius: 2rem 0 0 2rem;
        right: 0;
        left: auto;
        top: auto;
        bottom: 2.25rem;
    }

    .hero-character {
        left: calc(100% - 28vw);
        transform: translateX(-50%);
        top: auto;
        bottom: 0;
        height: 19rem;
    }

    .hero-title {
        height: auto !important;
        /* clamp evita título “estourar” em telas ~390px */
        font-size: clamp(1.55rem, 5.9vw, 1.95rem) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.01em;
        margin-bottom: 1.1rem !important;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
        text-wrap: balance;
    }

    .hero-title-text {
        display: block;
        width: 100%;
        text-align: center;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    /* No mobile, <br> forçado do desktop atrapalha o equilíbrio das linhas */
    .hero-title-text br {
        display: none;
    }

    .hero-text {
        max-width: 100% !important;
        width: 100%;
        text-align: center;
        overflow-wrap: break-word;
        text-wrap: pretty;
        margin-bottom: 1.5rem;
        font-size: 1.05rem;
    }

    .hero-controls {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        justify-content: center;
        margin: 0.25rem auto 0.5rem;
        order: 2;
    }

    .hero-content .btn-matricule {
        order: 3;
        align-self: center;
        margin-left: 0;
        margin-top: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .diferenciais-title {
        margin-left: 0 !important;
        font-size: 1.8rem !important;
        text-align: center;
    }

    .banner-text {
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
        /* Espaço para o botão respirar */
    }

    .banner-btn-wrapper {
        right: 2rem !important;
        transform: none !important;
    }

    .diferenciais-cards {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .diferencial-card {
        padding: 1rem 1.5rem 1rem 7rem !important;
        min-height: 6.5rem !important;
    }

    .diferencial-number {
        font-size: 6.5rem !important;
        left: 0.5rem !important;
        bottom: -1rem !important;
    }

    .site-header.fixed .top-bar {
        padding-left: 1.5rem !important;
        /* Ticker no topo não precisa do recuo grande */
        padding-right: 1.5rem !important;
    }

    .back-to-top {
        right: 1.5rem !important;
    }
}

.carousel-mobile-wrapper,
.eventos-mobile-arrows {
    display: none;
}

/* ==================================================
   MOBILE UNIFIED CAROUSEL (EVENTOS FILOS)
   ================================================== */
@media (max-width: 600px) {
    .desktop-eventos {
        display: none !important;
    }

    .eventos-logo {
        left: 1.5rem;
    }

    .eventos-logo-img {
        width: 2.4rem;
        height: 2.4rem;
    }

    .carousel-mobile-wrapper {
        display: block;
        position: relative;
        overflow-x: clip;
        width: 100%;
        max-width: 100%;
    }

    .eventos-mobile-arrows {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .eventos-mobile-arrows .arrow-btn.prev {
        background-color: #cccccc;
        /* Cinza um tom mais escuro para gerar contraste com o fundo #e6e6e6 */
    }

    .eventos-mobile-carousel {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 17.5vw 0 17.5vw;
        margin-bottom: 1.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .eventos-mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    .eventos-mobile-carousel .video-wrapper {
        flex: 0 0 65vw;
        aspect-ratio: 9/16;
        max-height: 65vh;
        scroll-snap-align: center;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        background-color: #000;
        transform: none !important;
    }

    /* Detalhes simulando vídeos decorativos nas laterais (Máscaras) */
    .carousel-mobile-wrapper .dummy-peeking-card {
        position: absolute;
        top: 0;
        pointer-events: none;
        /* Para não atrapalhar o scroll ou cliques */
        z-index: 10;
        /* Fica por cima dos cards reais que rolam por baixo */
        width: 65vw;
        /* Fixed width needed since it's absolute, not flex */
        aspect-ratio: 9/16;
        max-height: 65vh;
        border-radius: 20px;
        background-color: #000;
    }

    .carousel-mobile-wrapper .left-mask {
        left: calc(17.5vw - 1rem - 65vw);
    }

    .carousel-mobile-wrapper .right-mask {
        right: calc(17.5vw - 1rem - 65vw);
    }

    .eventos-mobile-carousel .video-wrapper:hover {
        transform: none !important;
    }

    .eventos-mobile-carousel .video-card {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 800;
        letter-spacing: 2px;
        background: url('../assets/placeholder-video.jpg') center/cover no-repeat;
    }

    .eventos-mobile-carousel .video-label {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        color: #fff;
        font-size: 0.85rem;
        z-index: 2;
    }

    .eventos-mobile-carousel .video-wrapper::before,
    .carousel-mobile-wrapper .dummy-peeking-card::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 3rem;
        height: 3rem;
        background-color: #fff;
        border-radius: 50%;
        z-index: 1;
    }

    .eventos-mobile-carousel .video-wrapper::after,
    .carousel-mobile-wrapper .dummy-peeking-card::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-40%, -50%);
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 12px solid #1b2f4c;
        z-index: 2;
    }

    .eventos-text-pill-mobile {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        border-radius: 30px;
        padding: 2rem 1rem 2rem 2.5rem;
        /* Mais espaço interno na esquerda para afastar texto dos ícones */
        margin: 0 1.5rem 4rem 1.5rem;
        /* Margens simétricas para centralizar a caixa na tela */
        position: relative;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    }

    .eventos-text-pill-mobile p {
        color: #666;
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        text-align: center;
    }

    .eventos-text-pill-mobile strong {
        color: #1b2f4c;
        font-weight: 800;
    }

    .eventos-text-pill-mobile .btn-matricule-pill {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #589b88;
        color: #ffffff;
        padding: 0.8rem 1.5rem;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 800;
        font-size: 0.9rem;
        gap: 0.5rem;
        margin: 0 auto;
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    }

    /* COMPENSAÇÃO DE SIMETRIA (CENTRALIZAÇÃO) */
    /* Para que os textos centralizados não pareçam "tortos" para a direita devido à safe-zone maior na esquerda */
    .galeria-header,
    .galeria-footer-text,
    .bottom-ticker {
        padding-right: var(--safe-zone-left) !important;
        /* Mesma medida da esquerda (3.5rem) */
    }

    .diferenciais-title,
    .eventos-title,
    .alunos-title,
    .sobre-title {
        /* Os containers já dão 3.5rem na esq e 1.5rem na dir. Adicionamos 2rem na dir do título para equilibrar (1.5 + 2 = 3.5) */
        padding-right: 2rem !important;
    }

    /* REORDENAÇÃO ALUNOS FILOS (Mobile) */
    .alunos-content-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding-left: 0 !important;
        /* Retira o padding para o carrossel ir até a borda */
        padding-right: 0 !important;
    }

    .alunos-left {
        display: contents;
        /* Remove o wrapper visual para podermos aplicar a ordem nos elementos filhos independentemente */
    }

    .alunos-title {
        order: 1;
        text-align: center;
        padding: 0 2rem;
        /* Devolve o padding removido do grid para não colar na borda */
    }

    .alunos-right {
        order: 2;
        width: 100%;
        margin: 0;
        position: relative;
        /* Para os dummies laterais */
    }

    .alunos-nav-arrows {
        order: 3;
        justify-content: center;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        position: relative;
        z-index: 50;
        pointer-events: auto;
    }

    .alunos-text {
        order: 4;
        text-align: center;
        margin: 0 auto;
        padding: 0 2rem 2rem 2rem;
        /* Devolve o padding removido do grid */
    }

    .alunos-right {
        position: relative;
        overflow-x: clip;
        width: 100%;
        max-width: 100%;
    }

    .alunos-cards-group {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 0 20vw 3.5rem 20vw;
        /* 20vw lateral, 3.5rem embaixo para a legenda não cortar */
        margin-bottom: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        position: relative;
        z-index: 20;
        /* Fica acima dos dummies */
    }

    .alunos-cards-group::-webkit-scrollbar {
        display: none;
    }

    .aluno-wrapper {
        flex: 0 0 60vw;
        /* Largura focada no mobile */
        scroll-snap-align: center;
        transform: none !important;
        /* Reseta o hover do desktop no mobile */
        cursor: pointer;
        /* Garante que o iOS reconheça o toque */
    }

    .aluno-wrapper:hover {
        transform: none !important;
    }

    /* Desativa o hover do desktop que o iOS Safari ativa ao tocar */
    .aluno-wrapper:hover .aluno-label {
        opacity: 0;
        visibility: hidden;
        bottom: 0rem;
    }

    /* Interação no clique (mobile) controlada estritamente pelo JS */
    .aluno-wrapper.active-mobile .aluno-label {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: -3rem !important;
    }

    /* Detalhes simulando cards decorativos nas laterais (Máscaras azuis infinitas) */
    .dummy-aluno {
        position: absolute;
        top: 0;
        /* Alinha perfeitamente com os cards reais */
        pointer-events: none;
        /* Não atrapalhar cliques/scroll */
        z-index: 10;
        /* Fica por TRÁS dos cards reais, aparecendo só quando não há card na lateral */
        width: 60vw;
        aspect-ratio: 1 / 1;
        background-color: #1b2f4c;
        /* Mesmo azul do aluno-card */
        border-radius: 2rem;
    }

    .alunos-right .left-mask {
        left: calc(20vw - 1.5rem - 60vw);
    }

    .alunos-right .right-mask {
        right: calc(20vw - 1.5rem - 60vw);
    }
}

/* ==========================================================================
   SEÇÃO DEPOIMENTOS
   ========================================================================== */
.depoimentos-section {
    position: relative;
    background-color: #061627;
    background-image: linear-gradient(rgba(6, 22, 39, 0.85), rgba(6, 22, 39, 0.85)), url('../assets/images/FUNDO/fundo-festa-junina-caixas.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0 14rem 0;
    /* Aumentado para não esconder as bolinhas quando o FAQ sobrepor */
    overflow: hidden;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.depoimentos-section .white-tab-decorator-top {
    /* O SVG original tem fill #FFFFFF. Como a seção acima é #f4f4f4, precisamos ajustar a cor para casar perfeitamente */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 551 41' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 0 L 58 0 C 79 0, 79 41, 100 41 L 438 41 C 458.5 41, 458.5 0, 479 0 L 551 0 L 551 -20 L 0 -20 Z' fill='%23f4f4f4'/%3E%3C/svg%3E");
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(20rem, 50vw, 40rem);
    z-index: 2;
}

.depoimentos-section .white-tab-decorator-bottom {
    /* Rebaixo invertido no bottom, apontando pra cima com fundo branco */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 551 41' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 41 L 58 41 C 79 41, 79 0, 100 0 L 438 0 C 458.5 0, 458.5 41, 479 41 L 551 41 L 551 61 L 0 61 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    bottom: -1px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(20rem, 50vw, 40rem);
    z-index: 2;
}

.depoimentos-container {
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.depoimentos-title {
    width: 100%;
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    margin-bottom: 4rem;
    line-height: 1.2;
}

.depoimentos-title strong {
    font-weight: 700;
}

.depoimentos-carousel {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.depoimentos-track {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0;
    padding-bottom: 2rem;
    margin: 0 auto;
    justify-content: flex-start;
    will-change: transform;
}

.depoimento-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    /* 3 cards visíveis — o 4º entra ao deslizar */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 3.5rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    color: #061627;
}

.depoimento-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.depoimento-avatar {
    width: 4.5rem;
    height: 4.5rem;
    background-color: #061627;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.depoimento-info {
    display: flex;
    flex-direction: column;
}

.depoimento-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
    color: #061627;
}

.depoimento-role {
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
    color: #4a5568;
    opacity: 0.85;
}

.depoimento-body {
    flex-grow: 1;
}

.depoimento-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    text-align: center;
    color: #1e293b;
}

.depoimento-stars {
    margin-top: 1.5rem;
    text-align: right;
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.depoimentos-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.depoimentos-pagination .dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 0.125rem solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

.depoimentos-pagination .dot.active {
    background: #ffffff;
}

/* Responsividade Depoimentos */
@media (max-width: 991px) {
    .depoimento-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        /* 2 cards on tablet */
    }
}

@media (max-width: 768px) {
    .depoimentos-section {
        padding: 5rem 0 4rem 0;
    }

    .depoimento-card {
        flex: 0 0 85%;
        /* 1 card on mobile */
        min-width: unset;
    }
}

.depoimento-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.depoimento-avatar img[src*="hellen"] {
    object-position: center 38%;
}

/* ==========================================================================
   SEÇÃO FAQ (Nova Seção)
   ========================================================================== */

.faq-section {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    background-color: #ffffff;
    padding-bottom: 5rem;
}

/* Container principal com sobreposição (overlapping depoimentos) */
.faq-container {
    width: 90%;
    max-width: 82rem;
    margin: -8.5rem auto 0 auto !important;
    padding: 5rem 5rem 4.5rem 5rem !important;
    background-color: #f2f2f2;
    border-radius: 7rem;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    box-shadow: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.faq-header {
    width: 100%;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.faq-header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

/* Linha bold acima do título */
.faq-header-line {
    width: 3.5rem;
    height: 0.35rem;
    background-color: #1a1a1a;
    border-radius: 999rem;
    margin-bottom: 0;
}

.faq-phi-logo {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3.8rem;
    color: #1a1a1a;
    line-height: 0.8;
    margin-top: -0.5rem;
    user-select: none;
}

.faq-section-title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 300;
    color: #1a1a1a;
    margin: 0 0 3.2rem 0;
    padding-left: 0;
    text-align: left !important;
}

.faq-section-title strong {
    font-weight: 700;
}

/* Grid de perguntas em 2 colunas flexíveis com animação fluida de expansão */
.faq-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 2.2rem;
    margin-top: 0;
    margin-bottom: 3.5rem;
    text-align: left !important;
    width: 100%;
    box-sizing: border-box;
}

/* Cada Pergunta na Seção FAQ Principal */
.faq-grid .faq-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: calc(50% - 2.5rem);
    padding: 0;
    border-bottom: none;
    position: relative;
    background: transparent;
    border-radius: 0;
    text-align: left !important;
    box-sizing: border-box;
    transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-grid .faq-item:hover {
    background-color: transparent;
}

/* Quando o item está ativo ou é o parceiro da linha, expande suavemente para 100% da largura */
.faq-grid .faq-item.active,
.faq-grid .faq-item.sibling-full {
    width: 100%;
}

/* Cabeçalho da Pergunta com a linha e a bolinha pretas */
.faq-question-header {
    width: 100%;
    min-height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0 0.8rem 0;
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.32);
    position: relative;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.faq-question-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Bolinha preta posicionada com o centro exato no início da linha */
.faq-question-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.45rem;
    transform: translateX(-50%);
    width: 0.8rem;
    height: 0.8rem;
    background-color: #1a1a1a;
    border-radius: 50%;
}

/* Texto da pergunta indentado para dar respiro à bolinha */
.faq-question-text {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
    padding-left: 1.8rem;
    padding-right: 2rem;
    position: relative;
    text-align: left !important;
}

.faq-plus {
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    font-weight: 300;
    color: #1a1a1a;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1;
}

.faq-grid .faq-item.active .faq-plus {
    transform: translateY(-50%) rotate(45deg);
}

/* Resposta do Accordion com animação fluida moderna via CSS Grid Rows */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    color: #444444;
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-grid .faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    padding-left: 1.8rem;
    padding-right: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-grid .faq-item.active .faq-answer-inner {
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.faq-answer-inner p {
    margin: 0;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.faq-answer-inner strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Rodapé do FAQ */
.faq-footer-text {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.6;
    width: 100%;
}

.faq-footer-text strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Botão Whatsapp FAQ */
.faq-container>.btn-whatsapp-faq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: #579b8c;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.04rem;
    padding: 0.95rem 4rem;
    border-radius: 4rem;
    text-decoration: none;
    margin: 0 auto;
    width: fit-content;
    align-self: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 0.4rem 1.2rem rgba(87, 155, 140, 0.25);
}

.faq-container>.btn-whatsapp-faq svg {
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
}

.faq-container>.btn-whatsapp-faq:hover {
    background-color: #48877a;
    transform: translateY(-0.15rem);
    box-shadow: 0 0.6rem 1.6rem rgba(87, 155, 140, 0.35);
}

/* Responsividade FAQ */
@media (max-width: 62rem) {
    .faq-grid {
        flex-direction: column;
        row-gap: 2.2rem;
    }

    .faq-grid .faq-item {
        width: 100% !important;
    }

    /* Em telas menores (1 coluna), exibe ordenado sequencialmente de 1 a 10 */
    .faq-grid .faq-item:nth-child(1) {
        order: 1;
    }

    .faq-grid .faq-item:nth-child(2) {
        order: 6;
    }

    .faq-grid .faq-item:nth-child(3) {
        order: 2;
    }

    .faq-grid .faq-item:nth-child(4) {
        order: 7;
    }

    .faq-grid .faq-item:nth-child(5) {
        order: 3;
    }

    .faq-grid .faq-item:nth-child(6) {
        order: 8;
    }

    .faq-grid .faq-item:nth-child(7) {
        order: 4;
    }

    .faq-grid .faq-item:nth-child(8) {
        order: 9;
    }

    .faq-grid .faq-item:nth-child(9) {
        order: 5;
    }

    .faq-grid .faq-item:nth-child(10) {
        order: 10;
    }

    .faq-container {
        padding: 4rem 3rem 3.5rem 3rem !important;
        margin-top: -6rem !important;
        border-radius: 5rem;
    }

    .faq-container>.btn-whatsapp-faq {
        font-size: 1.3rem;
        padding: 0.85rem 3rem;
    }

    .faq-container>.btn-whatsapp-faq svg {
        width: 1.6rem;
        height: 1.6rem;
    }
}

@media (max-width: 48rem) {
    .faq-container {
        padding: 3.2rem 1.6rem 3rem 1.6rem !important;
        border-radius: 3.5rem;
        margin-top: -4rem !important;
        width: 92%;
    }

    .faq-section-title {
        margin-bottom: 2.5rem;
    }

    .faq-container>.btn-whatsapp-faq {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1.2rem;
    }

    .faq-container>.btn-whatsapp-faq svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* ==================================================
   PÁGINA DE BLOG (blog.html)
   ================================================== */

.page-blog {
    background-color: #f4f5f7;
    font-family: 'Montserrat', sans-serif;
    color: #112233;
}

.blog-main-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-header-box {
    width: 100%;
    position: relative;
    text-align: center;
    margin-bottom: 2.5rem;
}

.blog-main-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    color: #112233;
    margin: 0;
    letter-spacing: 0.05em;
}

.blog-main-title strong {
    font-weight: 800;
}

.blog-main-title .divider {
    font-weight: 400;
    margin: 0 0.5rem;
}

.blog-phi-icon-wrap {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
}

.blog-phi-icon {
    width: clamp(2.5rem, 4vw, 3.5rem);
    height: auto;
    /* Inverte a cor branca para um tom azul marinho escuro (#0d1e30) */
    filter: brightness(0) invert(10%) sepia(30%) saturate(2000%) hue-rotate(190deg) brightness(95%) contrast(95%);
    pointer-events: none;
}

.blog-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.blog-filter-btn {
    background: transparent;
    border: none;
    color: #556677;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 0.2rem 0;
    transition: color 0.3s ease;
}

.blog-filter-btn:hover {
    color: #112233;
}

.blog-filter-btn.active {
    color: #112233;
    font-weight: 800;
}

.blog-filter-btn.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.25rem;
    height: 1.25rem;
    background-color: #112233;
    border-radius: 0.125rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 17.5rem));
    justify-content: center;
    gap: 2.5rem 2rem;
    width: 100%;
    max-width: 40rem;
    margin-bottom: 3rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.75rem;
}

.blog-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 0.6rem 1.25rem rgba(10, 27, 44, 0.1);
}

.blog-card-tag {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e5e8eb;
    color: #112233;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    white-space: nowrap;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.blog-card-title {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 800;
    color: #112233;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.blog-card-text {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: #556677;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    flex: 1;
}

.blog-card-action {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.blog-action-line {
    flex: 1;
    height: 0.0625rem;
    background-color: #a0aec0;
    border: none;
    margin: 0;
}

.blog-btn-saibamais {
    background-color: #0a1b2c;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    margin-left: -1rem;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.blog-btn-saibamais:hover {
    background-color: #1a3b5c;
    transform: translateY(-0.1rem);
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.blog-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-page-prev {
    background-color: #e5e8eb;
    color: #556677;
}

.blog-page-prev:hover {
    background-color: #d1d5db;
}

.blog-page-next.active {
    background-color: #0a1b2c;
    color: #ffffff;
}

.blog-page-next.active:hover {
    background-color: #1a3b5c;
}

@media (max-width: 48rem) {
    .blog-phi-icon-wrap {
        display: none;
    }

    .blog-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-filter-btn.active::before {
        display: none;
    }

    .blog-filter-btn.active {
        text-decoration: underline;
        text-underline-offset: 0.25rem;
    }
}

/* ==================================================
   PÁGINA DE CONTATO (contato.html)
   ================================================== */
.page-contato {
    font-family: 'Montserrat', sans-serif;
    background-color: #0d1e30;
}

.contato-main {
    width: 100%;
}

.contato-hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 10rem);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
}

.contato-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 30, 48, 0.95) 0%, rgba(13, 30, 48, 0.8) 50%, rgba(13, 30, 48, 0.4) 100%);
    z-index: 1;
}

.contato-container {
    position: relative;
    z-index: 2;
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.contato-info-col {
    flex: 1;
    max-width: 38rem;
    color: #ffffff;
}

.contato-phi-icon {
    width: clamp(3rem, 5vw, 4.5rem);
    height: auto;
    margin-bottom: 2.5rem;
}

.contato-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.contato-title strong {
    font-weight: 800;
}

.contato-desc {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 90%;
}

.contato-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.contato-ctrl-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: #ffffff;
    color: #0d1e30;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.contato-ctrl-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.contato-details {
    margin-bottom: 3.5rem;
}

.contato-subtitle {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
}

.contato-text {
    font-size: 1.05rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.contato-contact-line {
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0;
}

.contato-contact-line strong {
    font-weight: 800;
}

.contato-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #5ba381;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.8rem 1.8rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contato-whatsapp-btn:hover {
    background-color: #4a8d6e;
    transform: translateY(-0.1rem);
}

.contato-form-col {
    flex: 1;
    max-width: 35rem;
    width: 100%;
}

.contato-form-card {
    background-color: #f4f5f7;
    border-radius: 2.5rem;
    padding: 3rem 3rem 4.5rem;
    position: relative;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.contato-form-title {
    color: #112233;
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 2rem 0;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contato-form .form-group {
    display: flex;
    flex-direction: column;
}

.contato-form label {
    color: #112233;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contato-form input,
.contato-form textarea,
.contato-form select {
    background-color: #c4ccd4;
    border: none;
    border-radius: 1.25rem;
    padding: 0.85rem 1.25rem;
    color: #112233;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.3s ease, outline 0.1s ease;
}

.contato-form input:focus,
.contato-form textarea:focus,
.contato-form select:focus {
    outline: 2px solid #5ba381;
    background-color: #ffffff;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.4rem solid #112233;
    pointer-events: none;
}

.contato-form select {
    width: 100%;
    appearance: none;
    padding-right: 2.5rem;
}

.contato-submit-btn {
    position: absolute;
    bottom: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #7296ce;
    color: #ffffff;
    border: none;
    border-radius: 2rem;
    padding: 0.8rem 4rem;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contato-submit-btn:hover {
    background-color: #5e82b7;
    transform: translateX(-50%) translateY(-0.1rem);
}

@media (max-width: 64rem) {
    .contato-container {
        flex-direction: column;
        align-items: center;
    }

    .contato-overlay {
        background: linear-gradient(180deg, rgba(13, 30, 48, 0.95) 0%, rgba(13, 30, 48, 0.85) 100%);
    }

    .contato-info-col {
        text-align: center;
        margin-bottom: 3rem;
    }

    .contato-desc {
        max-width: 100%;
        margin: 0 auto 2.5rem;
    }

    .contato-controls {
        justify-content: center;
    }
}

/* ==================================================
   CONTATO - DIFERENCIAIS E GALERIA
   ================================================== */
.contato-diferenciais {
    width: 100%;
    background-color: #ffffff;
    padding: 6rem 2rem;
}

.contato-dif-container {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.contato-dif-info {
    flex: 0 0 22rem;
    color: #112233;
}

.contato-dif-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: #556677;
}

.contato-dif-title strong {
    font-weight: 800;
    color: #112233;
}

.contato-dif-desc {
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    line-height: 1.6;
    color: #556677;
    margin-bottom: 2.5rem;
}

.contato-ctrl-btn.dark {
    background-color: #0d1e30;
    color: #ffffff;
}

.contato-ctrl-btn.dark:hover {
    background-color: #1a3b5c;
}

.contato-dif-grid {
    display: flex;
    gap: 2rem;
    flex: 1;
    overflow: hidden;
    /* Or allow wrapping */
}

.contato-dif-card {
    flex: 1;
    min-width: 16rem;
    background-color: #e5e9ec;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
}

.contato-dif-img-wrapper {
    position: relative;
    width: 100%;
}

.contato-dif-card-img {
    width: 100%;
    height: clamp(14rem, 18vw, 18rem);
    background-color: #2a3b4c;
    border-radius: 1.5rem;
}

.contato-dif-whatsapp-btn {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5ba381;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.contato-dif-whatsapp-btn:hover {
    background-color: #4a8d6e;
}

.contato-dif-card-body {
    padding: 2rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contato-dif-card-body h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #112233;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.contato-dif-card-body p {
    font-size: 0.85rem;
    color: #556677;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.contato-dif-highlight {
    font-weight: 800;
    color: #112233 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

.contato-minigaleria {
    width: 100%;
    background-color: #ffffff;
    padding: 2rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contato-galeria-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 300;
    color: #556677;
    margin: 0 0 2.5rem 0;
    text-align: center;
}

.contato-galeria-title strong {
    font-weight: 800;
    color: #112233;
}

@media (max-width: 64rem) {
    .contato-dif-container {
        flex-direction: column;
    }

    .contato-dif-info {
        flex: auto;
        max-width: 100%;
        text-align: center;
    }

    .contato-dif-grid {
        flex-direction: column;
        width: 100%;
    }
}

/* ==========================================
   SUBPÁGINA DE GALERIA COMPLETA (.page-galeria)
   ========================================== */
.page-galeria {
    background-color: #ffffff;
    width: 100%;
    overflow-x: hidden;
}

.page-galeria-hero {
    width: 100%;
    padding: 3.5rem 1.5rem 7.5rem;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-galeria-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    color: #12263a;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 1.8rem 0;
    line-height: 1.1;
}

.page-galeria-hero .galeria-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 65rem;
    width: 100%;
    margin: 0 auto;
}

.page-galeria-hero .filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
}

.page-galeria-hero .filter-link {
    color: #556677;
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
    padding-bottom: 0.35rem;
    border-bottom: 0.125rem solid transparent;
}

.page-galeria-hero .filter-link:hover,
.page-galeria-hero .filter-link.active {
    color: #12263a;
    font-weight: 800;
    border-bottom: 0.125rem solid #12263a;
}

.page-galeria-grid-wrap {
    width: 100%;
    padding: 1.5rem 0 5rem;
    background-color: #ffffff;
}

.page-galeria .galeria-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.25rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-galeria .galeria-item {
    grid-column: auto !important;
    height: 22rem !important;
    pointer-events: auto !important;
}

@media (max-width: 64rem) {
    .page-galeria .galeria-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .page-galeria-hero .filter-row {
        gap: 1rem;
    }
}

@media (max-width: 36rem) {
    .page-galeria .galeria-grid {
        grid-template-columns: 1fr !important;
    }

    .page-galeria-hero {
        padding: 2.5rem 1rem 2rem;
    }

    .page-galeria-hero .filter-row {
        gap: 0.6rem;
    }
}