/* RESET GLOBAL: Remove Margens e Paddings Padrões */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* PALETA DE CORES ATUALIZADA: Azul Escuro e Branco */
:root {
    --bg-light: #FFFFFF;        /* Branco puro */
    --bg-accent: #F0F2F5;       /* Cinza bem claro para seções de destaque */
    --text-dark: #212529;       /* Carvão (Mantido para boa legibilidade) */
    --text-light: #6c757d;      /* Cinza para textos secundários */
    --primary-color: #243c62;    /* Azul escuro principal */
    --secondary-color: #1b2d49;  /* Azul mais escuro para hover */
}

/* ------------------------------------------- */
/* DECLARAÇÃO DE FONTES PERSONALIZADAS         */
/* ------------------------------------------- */
@font-face {
  font-family: 'Painter'; 
  src: url('fonts/Painter.woff2') format('woff2'),
       url('fonts/Painter.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
    margin: 0; 
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; 
}

/* ------------------------------------------- */
/* ESTRUTURA E SCROLL-SNAP */
/* ------------------------------------------- */
.container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory; 
    scroll-behavior: smooth;
}

.section {
    scroll-snap-align: start; 
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    line-height: 1.6;
}

/* Cores de fundo e ajustes de overflow */
#nossa-filosofia, #motivos { 
    background-color: var(--bg-light);
    border-radius: 0; 
    box-shadow: none;  
}

/* Garante que o conteúdo de seções altas não vaze */
#aulas, #eventos, #professores, #planos, #localizacao { 
    background-color: #fff; 
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: max(5vh, 30px);
}

/* ------------------------------------------- */
/* TIPOGRAFIA E ELEMENTOS */
/* ------------------------------------------- */
.title {
    font-family: 'Painter', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

h2 {
    font-family: 'Painter', cursive;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.content-box {
    max-width: 90%;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ------------------------------------------- */
/* SEÇÃO MAPA / LOCALIZAÇÃO (NOVO)             */
/* ------------------------------------------- */

/* Card Estilo "Elementor" simplificado e semântico */
.map-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px; /* Largura máxima boa para desktop */
    overflow: hidden;
    margin-top: 10px;
    padding-bottom: 20px;
}

.map-title {
    font-family: 'Open Sans', sans-serif;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}

/* Container responsivo para o Iframe (técnica aspect-ratio) */
.map-responsive {
    position: relative;
    width: 100%;
    /* Altura fixa ou aspect ratio */
    height: 400px; 
    background-color: #eee;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-address {
    padding: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ------------------------------------------- */
/* HERO (HOME) - AVATAR E CTA INTERATIVO */
/* ------------------------------------------- */

.cta-principal-container {
    position: relative;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    margin-top: 2rem; 
}

.btn-cta-hero {
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    position: relative; 
    z-index: 20; 
    transition: transform 0.3s ease-out, background-color 0.3s ease-out;
}

.avatar-cta-guia {
    width: 170px; 
    height: auto;
    margin-top: -15px; 
    z-index: 10; 
    pointer-events: none; 
    transition: transform 0.3s ease-out; 
}

.btn-cta-hero:hover {
    transform: scale(1.05) translateY(-5px);
    background-color: var(--secondary-color);
}

.btn-cta-hero:hover + .avatar-cta-guia {
    transform: scale(1.1);
}


/* ------------------------------------------- */
/* SEÇÃO #FINAL_IMG */
/* ------------------------------------------- */
#final_img {
    background-color: #ECE8D8; 
    background-image: none;
    padding: 20px; 
    overflow: hidden; 
    position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#final_img::before { content: none; }

.final-image {
    display: block; 
    max-width: 90%; 
    max-height: 60vh; 
    width: auto;
    height: auto;
    object-fit: contain; 
    border-radius: 0; 
    box-shadow: none; 
}

.final-text-container {
    margin-top: -3%; 
    max-width: 900px;
    padding: 0 20px;
    z-index: auto; 
    position: relative;
}

#final_img .title {
    color: var(--primary-color); 
    text-shadow: none; 
}
#final_img .subtitle {
    color: var(--text-light);
    text-shadow: none;
}

/* ------------------------------------------- */
/* SEÇÃO DE PROFESSORES */
/* ------------------------------------------- */
.teacher-container {
    display: flex;
    justify-content: center;
    align-items: stretch; 
    flex-wrap: wrap; 
    gap: 40px; 
    width: 100%;
    max-width: 1300px;
    margin-top: 20px;
}

.teacher-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.teacher-card img {
    width: 45%; 
    object-fit: contain; 
}

.teacher-info {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1; 
}

.teacher-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.teacher-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 5px;
}

.teacher-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
    line-height: 1.4;
}

/* ------------------------------------------- */
/* SEÇÃO DE PLANOS E VALORES */
/* ------------------------------------------- */
.pricing-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
}

.pricing-column {
    background: var(--bg-accent);
    padding: 25px;
    border-radius: 15px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pricing-column h3 {
    font-family: 'Open Sans', sans-serif;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.plan-item:last-child {
    border-bottom: none;
}

.plan-name {
    font-weight: 600;
    color: var(--text-dark);
}

.plan-price {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    padding-left: 10px;
}

.plan-price small, .plan-name small {
    font-weight: 400;
    color: var(--text-light);
    display: block;
    font-size: 0.8rem;
}

.plan-item-family {
    padding: 15px 0;
    text-align: center;
}

.family-options {
    margin-top: 10px;
}

.family-options span {
    display: block;
    margin: 5px 0;
    color: var(--text-dark);
}

.contact-info {
    margin-top: 30px;
    text-align: center;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-info p {
    margin: 5px 0;
}

/* ------------------------------------------- */
/* LISTA DE MOTIVOS E FINALIZAÇÃO */
/* ------------------------------------------- */

#final { 
    background-color: #294c7a; 
    color: var(--bg-light);    
}

#final .final-title,
#final .subtitle {
    color: var(--bg-light); 
}

#final .signature {
    background-color: var(--bg-light); 
    color: var(--primary-color);       
}

#final .signature:hover {
    background-color: var(--bg-accent); 
    color: var(--secondary-color);    
    transform: translateY(-3px); 
}

.final-title {
    font-size: 3.5rem;
}

/* Estilo base do botão .signature */
.signature {
    margin-top: 20px;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.signature:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ------------------------------------------- */
/* EFEITOS DE REVELAÇÃO (FADE-IN) */
/* ------------------------------------------- */
.fade-element {
    opacity: 0;
    transform: translateY(20px); 
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------- */
/* RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS */
/* ------------------------------------------- */
@media (max-width: 768px) {
    
    #professores {
        justify-content: flex-start;
        overflow-y: auto; 
        padding-top: 30px;
    }
    .teacher-container {
        max-width: 90vw; 
    }
    .teacher-card {
        flex-direction: column;
        max-width: 100%; 
    }
    .teacher-card img {
        width: 100%;
        height: 300px; 
        object-fit: contain; 
    }
    
    .title { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .final-title { font-size: 2.5rem; }
    
    .final-image {
        max-height: 50vh; 
    }
    
    .final-text-container {
        margin-top: -3%; 
    }

    .teacher-container {
        gap: 20px;
    }
    
    .teacher-info {
        text-align: center;
    }
    
    .signature {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    /* Ajustes Mobile do Mapa */
    .map-card {
        width: 95%;
        margin-bottom: 20px;
    }
    .map-responsive {
        height: 300px; /* Mapa um pouco menor no mobile */
    }

    /* Ajuste do Avatar no Hero */
    .avatar-cta-guia {
        width: 140px; 
        margin-top: -10px;
    }
    
    .btn-cta-hero {
        font-size: 1.1rem; 
        padding: 12px 25px;
    }
}
/* Botão do Instagram nos Cards */
.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espaço entre ícone e texto */
    margin-top: 15px;
    color: var(--primary-color); /* Usa a cor azul do seu tema */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.instagram-link svg {
    transition: transform 0.3s ease;
}

.instagram-link:hover {
    color: #E1306C; /* Cor oficial do Instagram (Rosa/Roxo) */
    transform: translateX(3px); /* Leve movimento para a direita */
}

.instagram-link:hover svg {
    stroke: #E1306C; /* Muda a cor da linha do ícone */
}

/* SEÇÃO INSTAGRAM */
#instagram-feed {
    background-color: var(--bg-accent);
    padding-bottom: 50px;
    /* Ajuste de altura para acomodar o carrossel sem quebrar o snap da página */
    justify-content: center; 
}

.insta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.title-insta {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Container do Carrossel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Largura máxima do carrossel */
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* O "Trilho" onde as imagens ficam */
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Permite rolagem horizontal */
    scroll-snap-type: x mandatory; /* Efeito magnético */
    padding: 20px 5px; /* Padding para a sombra não cortar */
    scroll-behavior: smooth;
    
    /* Esconde a barra de rolagem (Estética) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Cards Individuais */
.carousel-card {
    flex: 0 0 auto; /* Não deixa o card encolher */
    width: 280px;   /* Largura fixa do card */
    height: 280px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: center; /* O card para sempre no meio */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Garante que tanto imagem quanto vídeo preencham o card perfeitamente */
.carousel-card img,
.carousel-card video {
    width: 100%;
    height: 100%;
    /* 'object-fit: cover' é o segredo para não distorcer o vídeo no quadrado */
    object-fit: cover; 
    display: block;
}

/* Opcional: muda ligeiramente a cor do overlay em vídeos */
.video-card .insta-overlay {
    background: rgba(36, 60, 98, 0.6); /* Um pouco mais transparente para ver o vídeo */
}

/* Efeito Hover Overlay */
.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 60, 98, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-overlay span {
    color: #fff;
    font-weight: bold;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.carousel-card:hover .insta-overlay { opacity: 1; }
.carousel-card:hover .insta-overlay span { transform: translateY(0); }
.carousel-card:hover { transform: translateY(-5px); }

/* Botões de Navegação (Setas) */
.carousel-btn {
    background-color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.2s;
    
    /* Posicionamento absoluto para ficar "flutuando" */
    position: absolute;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.carousel-btn:active { transform: scale(0.9); }

.btn-prev { left: -20px; }
.btn-next { right: -20px; }

/* Botão final "Ver Perfil" */
.btn-insta-follow {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-insta-follow:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .carousel-card {
        width: 240px;
        height: 240px;
    }
    
    /* No celular, escondemos as setas pois o usuário usa o dedo */
    .carousel-btn {
        display: none;
    }
    
    .carousel-container {
        width: 100%;
        padding: 0 10px;
    }
}