/* Importando a fonte Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* Variáveis de cores */
:root {
    --primary-red: #dc3545; /* Vermelho/Laranja principal */
    --primary-yellow: #ffc107; /* Amarelo de destaque */
    --primary-teal: #31647f; /* Azul escuro principal */
    --primary-green: #20c997; /* Verde para destaques */
    --dark-gray: #31647f;
    --light-gray: #f8f9fa;
    --text-dark: #31647f;
    --white: #ffffff;
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --radius-md: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------------------------------
 * ESTILOS DE COMPONENTES REUTILIZÁVEIS (Título, Botões, Destaque)
 * ------------------------------------------------------------------- */

strong, b { font-weight: 700; }

.title-apice {
    color: var(--dark-gray);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.subtitle-apice {
    color: var(--dark-gray);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Ajuste da classe .display-4 para o cabeçalho (hero) */
.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    color:var(--primary-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.icon-red { color: var(--primary-red); }

.btn-apice-red {
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}
.btn-apice-red:hover {
    background-color: #c82333;
    color: #fff;
}

/* Lista de diferenciais */
.list-apice li {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

/* -------------------------------------------------------------------
 * ESTILOS DO HEADER/FOOTER (CORES ATUALIZADAS PARA RED)
 * ------------------------------------------------------------------- */

.header {
    background-color: var(--primary-red); /* Header em Vermelho Principal */
    padding: 20px 0;
    position: relative;
    z-index: 1000;
}
.top-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}
.logo img {
    margin-left: 1rem;
    max-width: 180px;
    height: auto;
}
.contact-info {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 1rem;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
}
.info-item i {
    color: white; /* Ícones brancos no header vermelho */
    font-size: 16px;
}
.navigation { display: flex; justify-content: center; }
.nav-wrapper {
    background: white;
    border-radius: 50px;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 1200px;
    position: relative;
}
.nav-menu { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-menu a.active, .nav-menu a:hover { color: var(--primary-red); }
.social-links { display: flex; gap: 15px; }
.social-links a { color: var(--primary-red); font-size: 1.2rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--dark-gray); }

/* Hamburger e Responsividade do Header */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; position: absolute; top: 30px; right: 25px; }
.hamburger, .hamburger::before, .hamburger::after { content: ''; display: block; width: 25px; height: 3px; background-color: var(--dark-gray); border-radius: 3px; transition: transform 0.3s ease, background-color 0.3s ease; position: relative; }
.hamburger::before { position: absolute; top: -8px; }
.hamburger::after { position: absolute; top: 8px; }
.header.nav-open .hamburger { background-color: transparent; }
.header.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
.header.nav-open .hamburger::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .nav-wrapper {
        position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15); transform: translateX(100%);
        transition: transform 0.4s ease-in-out; flex-direction: column; justify-content: center;
        align-items: center; gap: 40px; padding: 40px 20px; border-radius: 0;
    }
    .header.nav-open .nav-wrapper { transform: translateX(0); }
    .nav-menu { flex-direction: column; font-size: 1.2rem; }
    .top-info { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .contact-info { flex-direction: column; gap: 10px; }
}

/* Footer Styles */

.footer {
    background: var(--primary-red); /* Footer em Vermelho Principal */
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--light-gray); /* Título do footer em cinza claro */
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    line-height: 1.6;
    color: #f8f9fa;
    display: flex;
    align-items: center;
}

.footer-section p i {
    margin-right: 10px;
    color:white; /* Ícones de contato do footer brancos */
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-yellow); /* Hover em amarelo */
}

.footer-bottom {
    border-top: 1px solid #fff;
    padding-top: 20px;
    text-align: center;
    color: #fff;
}

.footer-section img {
    width: 150px;
    height: auto;
    margin-bottom: 25px;
}

.footer-description {
    color: #FFF;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 35ch;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-yellow);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    .footer-section {
        text-align: center;
    }
    .footer-section h3 {
        margin-top: 10px;
    }
    .footer-section p, .footer-section ul {
        justify-content: center;
    }
    .footer-description {
        max-width: 100%;
    }
    .social-icons {
        justify-content: center;
    }
}

.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366;
    color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 1000; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease-out; text-decoration: none;
}
.whatsapp-float:hover { transform: translateY(-8px); box-shadow: 2px 8px 15px rgba(0, 0, 0, 0.4); }

/* Hero Section */
.hero-section {
    background: url('../imagens/ceuazulfinal.png') no-repeat center center/cover;
    height: 380px;
    color: var(--primary-red);
    position: relative;
    z-index: 1;
    font-size: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    padding-top: 50px; /* Espaço para o header fixo */
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.hero-section .breadcrumb a { color: var(--primary-yellow); text-decoration: none; }
.hero-section .breadcrumb .breadcrumb-item.active { color: white; }

/* -------------------------------------------------------------------
 * ESTILOS ESPECÍFICOS DOS SEGMENTOS (Tabs) - RESPONSIVIDADE OTIMIZADA
 * ------------------------------------------------------------------- */

/* Container principal das abas com scroll horizontal */
.segment-tabs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

/* Botões de navegação - visíveis apenas em mobile */
.scroll-btn {
    display: none;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.scroll-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

/* Container das abas com scroll horizontal */
.segment-tabs {
    border-bottom: none;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    
    /* Oculta a scrollbar mas mantém a funcionalidade */
    scrollbar-width: none;
}

.segment-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.segment-tabs .nav-item {
    flex-shrink: 0;
    margin: 0 5px;
}

.segment-tabs .nav-link {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.segment-tabs .nav-link:hover {
    background-color: #f0f0f0;
    color: var(--primary-red);
    transform: translateY(-2px);
}

.segment-tabs .nav-link.active {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.segment-tabs .nav-link.active i {
    color: var(--primary-yellow);
}

.segment-detail {
    background-color: white;
    padding: 40px !important;
    border: 1px solid #eee;
    margin-top: 20px;
    min-height: 450px;
}

.segment-detail img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* -------------------------------------------------------------------
 * RESPONSIVIDADE - MOBILE FIRST APPROACH
 * ------------------------------------------------------------------- */

/* Desktop: Oculta scrollbar e botões de navegação */
@media (min-width: 769px) {
    .segment-tabs {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
    }
    
    .segment-tabs .nav-item {
        margin: 5px;
    }
}

/* Tablet e Mobile: Ativa scroll horizontal */
@media (max-width: 768px) {
    .segment-tabs-wrapper {
        padding: 0 40px; /* Espaço para os botões */
    }
    
    .scroll-btn {
        display: flex;
        position: absolute;
    }
    
    .segment-tabs {
        justify-content: flex-start;
        padding: 10px 0;
        margin: 0 10px;
    }
    
    .segment-tabs .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .segment-detail {
        padding: 20px !important;
        min-height: auto;
    }
    
    .segment-detail .row {
        flex-direction: column;
    }
    
    /* Inverte a ordem das colunas para que a imagem venha antes do texto no mobile */
    .segment-detail .col-lg-6 {
        order: 2;
    }
    
    .segment-detail .col-lg-6:nth-child(2) {
        order: 1;
    }
    
    .segment-detail .col-lg-6:nth-child(1) {
        order: 2;
    }
    
    /* Ajuste para garantir que a imagem venha no topo, mesmo com ordens diferentes */
    #infantil .col-lg-6.order-lg-2,
    #bilingue .col-lg-6.order-lg-2 {
        order: 1 !important;
    }
    
    #infantil .col-lg-6.order-lg-1,
    #bilingue .col-lg-6.order-lg-1 {
        order: 2 !important;
    }
    
    .title-apice {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
    .segment-tabs-wrapper {
        padding: 0 35px;
    }
    
    .segment-tabs .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
    }
}

