/* ========================================= */
/* CSS para a página de Educação Infantil    */
/* ========================================= */

/* HERO PADRONIZADO (ESTILO REESCRITO MANTENDO BORDAS) */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    z-index: 10;
    /* BORDAS ARREDONDADAS MANTIDAS */
    border-bottom-left-radius: 70px;
    border-bottom-right-radius: 70px;
    /* Reset de propriedades antigas */
    height: auto;
}

.hero .hero__image-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../images/hero-infantil.webp');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    z-index: 1;
}

.hero .hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.hero .hero__content {
    position: relative;
    z-index: 3;
    text-align: left;
    margin-left: 15%;
    margin-right: auto;
    max-width: 700px;
    padding-top: 0; /* Resetado */
}

.hero .hero__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    text-shadow: none;
    margin-bottom: 15px;
}

.hero .hero__content > .hero__subtitle:first-of-type {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: none;
    max-width: none;
    margin: 0;
}

.hero .hero__content > .hero__subtitle:last-of-type {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: none;
    max-width: none;
    margin: 0;
}

/* Seção abaixo do hero ajustada para o efeito de sobreposição */
.new-student-promo {
    padding: 120px 0 80px 0;
    margin-top: -70px;
    background-color: var(--color-white); /* Garante fundo para a sobreposição */
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.early-childhood-info {
    padding: 80px 0;
}

.info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center; /* Centraliza verticalmente */
}

.info-media-content {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.info-media-content img {
    width: 100%;
    height: auto; /* Altura automática para manter proporção */
    object-fit: cover;
    display: block;
}

.info-text-content {
    text-align: left;
}

.info-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    justify-content: flex-start;
}

.info-title .info-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.info-summary {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 20px;
}

.info-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.benefits-list li {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 12px;
    position: relative;
    padding-left: 35px;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-accent);
    position: absolute;
    left: 0;
    top: 3px;
}

.exclusive-spaces-promo {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 60px 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 80px 20px;
}
.exclusive-spaces-promo__bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.exclusive-spaces-promo__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}
.exclusive-spaces-promo .container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.exclusive-spaces-promo-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    text-align: left;
    color: var(--color-text-dark);
}
.exclusive-spaces-promo-card__super-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 5px;
}
.exclusive-spaces-promo-card__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}
.exclusive-spaces-promo-card__text-group p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.exclusive-spaces-promo-card .btn--primary {
    margin-top: 10px;
}

.programs-carousel-section {
    padding: 100px 0;
    background-color: var(--color-white);
}
.programs-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

/* ADICIONADO PARA CARDS CLICÁVEIS */
.program-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.program-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background-color: #333;
}
.program-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.program-card:hover .program-card__image {
    transform: scale(1.1);
    filter: brightness(0.6);
}
.program-card__overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 25px;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent 100%);
    z-index: 2;
    text-align: left;
}
.program-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    transition: transform 0.4s ease;
}
.program-card__description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 15px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.program-card:hover .program-card__title {
    transform: translateY(-70px);
}
.program-card:hover .program-card__description {
    max-height: 100px; 
    opacity: 1;
    margin-top: 10px;
}
.programs-slider {
    padding-bottom: 70px;
}
.programs-slider-wrapper .programs-nav-button {
    color: #F16137;
}
.programs-slider-wrapper .programs-pagination .swiper-pagination-bullet-active {
    background-color: #F16137;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.early-childhood-info .info-layout.animate-on-scroll:nth-child(even) { transition-delay: 0.1s; }


@media (max-width: 992px) {
    .hero .hero__content {
        margin-left: 10%;
    }
    .new-student-promo, .early-childhood-info, .programs-carousel-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .info-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .info-media-content img {
        height: 300px;
    }
    .exclusive-spaces-promo {
        margin: 60px 15px;
    }
    .exclusive-spaces-promo .container {
        justify-content: center;
    }
    .exclusive-spaces-promo-card {
        text-align: center;
    }
    .programs-slider-wrapper {
        padding: 0 15px;
    }
    .programs-slider-wrapper .swiper-button-next,
    .programs-slider-wrapper .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
    .hero .hero__content {
        max-width: 90%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .new-student-promo {
        margin-top: -40px;
        padding-top: 80px;
    }
    .early-childhood-info, .programs-carousel-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .info-layout {
        gap: 30px;
    }
    .info-media-content img {
        height: 250px;
    }
    .info-title {
        font-size: 1.8rem;
        gap: 10px;
        margin-bottom: 15px;
    }
    .info-title .info-icon {
        font-size: 1.8rem;
    }
    .info-summary, .info-additional-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .info-subtitle {
        font-size: 1.4rem;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    .benefits-list li {
        font-size: 0.95rem;
        padding-left: 30px;
    }
    .exclusive-spaces-promo {
        margin: 40px 15px;
        min-height: 400px;
    }
    .exclusive-spaces-promo-card {
        padding: 30px;
    }
    .exclusive-spaces-promo-card__title {
        font-size: 1.8rem;
    }
    .program-card:hover .program-card__title {
        transform: translateY(0);
    }
    .program-card__description {
        max-height: 100px;
        opacity: 1;
    }
}