/* ========== BASE RESPONSIVA ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
iframe,
svg {
    display: block;
    max-width: 100%;
}

.page-banner,
.primeira-infancia-content,
.idade-grupos {
    padding-left: 20px;
    padding-right: 20px;
}

/* ========== BANNER TOPO ========== */
.page-banner {
    background: linear-gradient(135deg, #f3e6d8 0%, #e8d5c0 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.page-banner h1 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    line-height: 1.15;
    word-break: break-word;
}

.banner-subtitle {
    font-size: 1.3rem;
    color: #666;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* ========== CONTEÚDO PRINCIPAL ========== */
.primeira-infancia-content {
    padding: 80px 20px;
    background: #ffffff;
}

.content-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

/* ========== LADO ESQUERDO - TEXTO ========== */
.content-texto {
    flex: 1;
    min-width: 0;
}

.etiqueta-secao {
    display: inline-block;
    background: #f3e6d8;
    color: #8b6914;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    max-width: 100%;
}

.content-texto h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.texto-bloco {
    margin-bottom: 40px;
}

.texto-bloco p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.texto-bloco p strong {
    color: #2c3e50;
}

/* ========== PILARES ========== */
.pilares-container h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 700;
}

.pilar-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #faf9f7;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 0;
}

.pilar-item:hover {
    background: #f5f0eb;
    transform: translateX(5px);
}

.pilar-icone {
    flex-shrink: 0;
}

.pilar-texto {
    min-width: 0;
}

.pilar-texto h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.3;
}

.pilar-texto p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Botão */
.btn-matricula-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #e74c3c;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid #e74c3c;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    text-align: center;
    min-height: 52px;
    max-width: 100%;
}

.btn-matricula-page:hover {
    background: transparent;
    color: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.btn-matricula-page svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-matricula-page:hover svg {
    transform: translateX(5px);
}

/* ========== LADO DIREITO - VÍDEO ========== */
.content-video {
    flex: 1;
    position: sticky;
    top: 120px;
    min-width: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 20px;
}

.video-info {
    text-align: center;
    margin-top: 20px;
    padding: 0 10px;
}

.video-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.video-info p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========== SEÇÃO GRUPOS POR IDADE ========== */
.idade-grupos {
    padding: 80px 20px;
    background: #faf9f7;
}

.idade-grupos h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.grupos-subtitle {
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 50px;
    line-height: 1.6;
}

.grupos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.grupo-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    min-width: 0;
}

.grupo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.grupo-idade {
    display: inline-block;
    background: #f3e6d8;
    color: #8b6914;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.grupo-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.grupo-card p {
    color: #777;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        gap: 40px;
    }

    .content-texto h2 {
        font-size: 2rem;
    }

    .page-banner h1 {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.1rem;
    }

    .grupos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 60px 20px 40px;
    }

    .page-banner::before {
        width: 240px;
        height: 240px;
        top: -25%;
        left: -20%;
    }

    .page-banner::after {
        width: 180px;
        height: 180px;
        bottom: -15%;
        right: -12%;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .primeira-infancia-content,
    .idade-grupos {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .content-wrapper {
        flex-direction: column-reverse;
        gap: 32px;
    }

    .content-video {
        position: static;
        margin-bottom: 0;
        width: 100%;
    }

    .content-texto h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .etiqueta-secao {
        display: table;
        margin: 0 auto 20px;
    }

    .texto-bloco p,
    .video-info p,
    .grupo-card p,
    .grupos-subtitle {
        font-size: 1rem;
    }

    .pilares-container h3 {
        text-align: center;
        font-size: 1.35rem;
    }

    .btn-matricula-page {
        width: 100%;
    }

    .grupos-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .idade-grupos h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .page-banner,
    .primeira-infancia-content,
    .idade-grupos {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-banner h1 {
        font-size: 1.75rem;
    }

    .content-texto h2 {
        font-size: 1.5rem;
    }

    .texto-bloco p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .pilar-item {
        padding: 16px;
        gap: 14px;
        align-items: flex-start;
    }

    .pilar-icone svg,
    .pilar-icone img {
        width: 24px;
        height: 24px;
    }

    .pilar-texto h4 {
        font-size: 1rem;
    }

    .pilar-texto p,
    .video-info p,
    .grupo-card p {
        font-size: 0.95rem;
    }

    .video-info h3 {
        font-size: 1.1rem;
    }

    .grupo-card {
        padding: 22px 18px;
    }

    .grupo-card h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 360px) {
    .page-banner h1 {
        font-size: 1.55rem;
    }

    .banner-subtitle {
        font-size: 0.95rem;
    }

    .content-texto h2 {
        font-size: 1.35rem;
    }

    .btn-matricula-page {
        font-size: 0.95rem;
        padding: 14px 18px;
    }
}