@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* Cabeçalho compartilhado pelas páginas do novo layout */
.cdi-site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    box-shadow: 0 1px 0 rgba(18, 86, 162, .06);
    font-family: 'Quicksand', Arial, sans-serif;
}
.cdi-site-header__nav {
    width: min(1320px, calc(100% - 42px));
    min-height: 98px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 38px;
}
.cdi-site-header__brand { flex: 0 0 auto; }
.cdi-site-header__brand img { display: block; width: 42px; height: 55px; object-fit: contain; }
.cdi-site-header__menu { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.cdi-site-header__links { display: flex; align-items: center; gap: clamp(28px, 4.4vw, 70px); }
.cdi-site-header__links a {
    color: #1257ad;
    font-size: clamp(18px, 1.55vw, 24px);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}
.cdi-site-header__links a:hover,
.cdi-site-header__links a:focus { color: #08a94d; }
.cdi-site-header__social { display: flex; align-items: center; gap: 20px; }
.cdi-site-header__social a { color: #1257ad; font-size: 27px; line-height: 1; }
.cdi-site-header__toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; }
.cdi-site-header__toggle > span:not(.visually-hidden) { display: block; width: 29px; height: 3px; margin: 5px 0; border-radius: 4px; background: #1257ad; }

.canva-layout {
    --blue: #109bd8;
    --blue-dark: #1356a2;
    --green: #0bad4b;
    --green-dark: #00953f;
    --text: #158dc2;
    --white: #fff;
    --page: #fafafa;
}

.canva-layout, .canva-layout * { box-sizing: border-box; }
.canva-layout {
    color: var(--text);
    background: var(--page);
    font-family: 'Quicksand', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.45;
    overflow: hidden;
}
.canva-layout img { display: block; max-width: 100%; }
.canva-layout a { color: inherit; text-decoration: none; }
.canva-layout p { margin: 0 0 1.25rem; }
.canva-layout h1, .canva-layout h2, .canva-layout h3 { margin: 0; font-weight: 500; line-height: 1.12; }
.canva-layout strong { font-weight: 700; }
.canva-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.canva-layout .section { padding: 74px 0; }
.canva-layout .section--compact { padding: 48px 0; }

.enrollment-strip { position: relative; background: linear-gradient(105deg, #1478c6 0%, #089ede 60%, #1677c4 100%); color: #fff; overflow: hidden; font-family: 'Quicksand', Arial, sans-serif; }
.enrollment-strip::after { content: ''; position: absolute; right: -4%; bottom: -95px; width: 55%; height: 170px; border-radius: 50%; background: rgba(17, 96, 183, .45); pointer-events: none; }
.enrollment-strip__inner { position: relative; z-index: 1; min-height: 150px; display: grid; grid-template-columns: 250px 1.1fr .85fr 1.75fr; align-items: center; gap: 26px; padding-right: 26px; }
.enrollment-strip__image { height: 150px; overflow: hidden; }
.enrollment-strip__image img { width: 100%; height: 100%; object-fit: cover; }
.enrollment-strip h2 { color: #fff; font-size: clamp(29px, 3vw, 38px); text-align: right; line-height: 1; }
.enrollment-strip h2 strong { display: block; }
.enrollment-strip__availability { font-size: clamp(15px, 1.45vw, 20px); font-weight: 700; line-height: 1.05; }
.outline-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 2px solid currentColor; border-radius: 12px; padding: 12px 22px; font-weight: 600; text-align: center; transition: background .2s ease, color .2s ease; }
.outline-button--light { color: #fff; }
.outline-button--blue { color: var(--blue-dark); }
.outline-button:hover { background: currentColor; }
.outline-button--light:hover { color: #0e86cf; background: #fff; }
.outline-button--blue:hover { color: #fff; background: var(--blue-dark); }
.outline-button__icon { width: 20px !important; height: 26px !important; object-fit: contain !important; flex: 0 0 auto; }

.home-intro-title { padding: 38px 20px; color: var(--green); text-align: center; font-size: clamp(29px, 4vw, 50px); }
.home-intro-title strong { color: var(--text); }
.home-hero img { width: 100%; height: clamp(380px, 48vw, 650px); object-fit: cover; object-position: center 52%; }
.intro-copy h1 { font-size: clamp(28px, 3.2vw, 45px); margin-bottom: 34px; }
.intro-copy h1::before { content: '| '; font-weight: 700; }
.intro-copy h1 strong:last-child { color: var(--green); }
.intro-copy p { font-size: clamp(17px, 1.7vw, 21px); }

.green-feature { background: var(--green); color: white; position: relative; overflow: hidden; }
.green-feature::after { content: ''; position: absolute; right: -130px; top: -170px; width: 430px; height: 360px; border-radius: 50%; background: rgba(0, 145, 65, .55); }
.green-feature__inner { display: grid; grid-template-columns: 450px 1fr; min-height: 290px; align-items: stretch; position: relative; z-index: 1; background-image: url(../img/bg-ensino-humanizado.png); background-position: left; background-size: contain; background-repeat: no-repeat; }
.green-feature__inner img { width: 100%; height: 100%; object-fit: cover; }
.green-feature__inner img:first-child { border-radius: 0 52% 52% 0; }
.green-feature__content { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; text-align: center; }
.green-feature h2 { font-size: clamp(32px, 3.2vw, 50px); margin-bottom: 30px; }
.green-feature h2, .green-feature a { color: #fff; }

.pill-title { display: table; margin: 0 auto 34px; color: white; background: var(--green-dark); border-radius: 15px; padding: 8px 20px; font-size: clamp(30px, 3vw, 46px); }
.segment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 840px; margin: auto; }
.segment-card { position: relative; min-height: 285px; overflow: hidden; border-radius: 22px 0 0 22px; }
.segment-grid .segment-card:last-child { border-radius: 0 22px 22px 0; }
.segment-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.segment-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(0,0,0,.28)); }
.segment-card h3 { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: white; font-size: clamp(35px, 4vw, 55px); text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,.25); }

.spaces-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 46px; align-items: start; }
.spaces-copy h2 { color: var(--text); font-size: clamp(29px, 3vw, 45px); margin-bottom: 28px; }
.spaces-copy h2 span { display: block; }
.spaces-copy p { font-size: 18px; text-align: justify; }
.photo-mosaic { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: 180px 125px 125px; gap: 8px; }
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.photo-mosaic img:nth-child(1) { grid-row: 1; grid-column: 1; }
.photo-mosaic img:nth-child(2) { grid-row: 1 / span 2; grid-column: 2; }
.photo-mosaic img:nth-child(3) { grid-row: 2 / span 3; grid-column: 1; }
.photo-mosaic img:nth-child(4) { grid-row: 3 / span 2; grid-column: 2; }

.cards-section { border-top: 1px solid #b9c7d3; }
.cards-section h2 { color: var(--green); text-align: center; margin-bottom: 42px; font-size: clamp(30px, 3vw, 45px); }
.heading-tree { display: inline-block !important; width: 25px; height: 32px; object-fit: contain; vertical-align: middle; }
.culture-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 24px; }
.culture-grid--four { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 920px; margin: auto; }
.culture-card { background: var(--blue); color: white; border-radius: 18px 18px 24px 24px; overflow: hidden; }
.culture-card img { width: 100%; height: 250px; object-fit: cover; }
.culture-card h3 { min-height: 82px; padding: 15px 18px; font-size: 21px; font-weight: 600; color: #FFFFFF; }

.split-hero { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 450px; }
.split-hero__title { display: flex; flex-direction: column; justify-content: center; padding: 55px clamp(40px, 7vw, 105px); background: var(--blue); color: white; }
.split-hero__title h1 { color: #fff; font-size: clamp(47px, 6vw, 76px); margin-bottom: 5px; display: grid;
    grid-template-columns: 50px 1fr; }
.split-hero__title h1 img { display: inline-block; width: 54px; height: 72px; margin-right: 14px; object-fit: contain; vertical-align: middle; }
.split-hero__title p { color: #fff; font-size: 27px; margin-bottom: 0; }
.split-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.lead-copy { font-size: 19px; text-align: justify; }
.three-photos { position: relative;}
.three-photos .canva-container, .three-photos .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 70px; margin-top: 38px; }
.three-photos img { width: 100%; border-radius: 24px; position: relative; z-index: 1; }
.blue-band { height: 150px; width: 70%; background: var(--blue); margin-top: -18px; border-radius: 0 100px 100px 0; position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; margin: auto; }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 45px; }
.method-card { border-top: 10px solid var(--blue); padding: 28px 20px; text-align: center; background: white; min-height: 175px; box-shadow: 0 8px 24px rgba(12, 97, 145, .08); }
.method-card h3 { color: var(--green); font-size: 24px; font-weight: 700; }
.method-card p { margin-top: 8px; font-style: italic; }

.hands-on-copy { padding-top: 0 !important; }
.stages { background: #fff; }
.stages h2 { text-align: center; color: var(--green); font-size: 42px; margin-bottom: 38px; }
.section-heading-left { margin-bottom: 38px; }
.section-heading-left h2 { margin: 0 0 10px; color: #fff; text-align: left; }
.section-heading-left p { color: var(--green); font-size: 19px; font-style: italic; font-weight: 400; }
.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stage-grid--connected { position: relative; }
.stage-grid--connected::before { content: ''; position: absolute; z-index: 0; left: 10%; right: 10%; top: 82px; height: 2px; background: #64c786; }
.stage-card { text-align: center; }
.stage-card img { position: relative; z-index: 1; width: 165px; height: 165px; margin: 0 auto 16px; border: 8px solid #fff; border-radius: 50%; object-fit: cover; }
.stage-card h3 { color: var(--green); font-size: 26px; font-weight: 700; }
.stage-card p { font-size: 20px; }

.learning-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 38px 44px; align-items: center; }
.learning-item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; }
.learning-item:nth-child(3n) { grid-column: 1 / -1; max-width: 780px; margin: auto; }
.learning-item img { width: 100%; height: 250px; object-fit: cover; border-radius: 0 120px 0 0; }
.learning-label h3, .green-label { display: inline-block; color: white; background: var(--green); padding: 7px 12px; font-size: 25px; }
.learning-label p { color: var(--green); font-size: 20px; font-style: italic; margin-top: 9px; }

.program-details { display: grid; grid-template-columns: 1.03fr .97fr; gap: 50px; align-items: start; }
.program-collage { display: grid; grid-template-columns: 1.6fr .8fr; grid-template-rows: repeat(3, 200px); gap: 6px; }
.program-collage-2 { display: grid; grid-template-columns: .8fr 1.6fr; gap: 6px; margin-top: 6px; }
.program-collage img { width: 100%; height: 100%; object-fit: cover; }
.program-collage img:nth-child(1) { grid-column: 1; grid-row: 1; }
.program-collage img:nth-child(2) { grid-column: 1; grid-row: 2 / span 3; }
.program-collage img:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
.program-collage img:nth-child(4) { grid-column: 2; grid-row: 3 / span 2; }
.program-collage img:nth-child(5) { grid-column: 1; grid-row: 4; }
.program-collage img:nth-child(6) { grid-column: 2; grid-row: 4; }
.program-methods { display: flex; flex-direction: column; gap: 25px; padding-top: 8px; }
.method-label { max-width: 90%; }
.method-label:nth-child(even) { align-self: flex-end; }
.method-label strong { display: inline-block; padding: 6px 10px; color: #fff; background: var(--green); font-size: clamp(19px, 1.8vw, 27px); line-height: 1.1; }
.method-label span { display: block; margin-top: 7px; color: var(--green); font-size: 17px; font-style: italic;  }
.method-label--wide { max-width: 100%; }

.report-block { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.report-block h2 { margin-bottom: 14px; }
.report-block h3 { color: var(--green); font-style: italic; font-weight: 400; margin-bottom: 25px; }
.report-block img { width: 330px; height: 330px; object-fit: cover; border-radius: 50%; justify-self: center; }

.routine-intro { background: var(--blue); color: white; padding: 52px 0 0; margin-bottom: 160px; }
.routine-intro h1 { font-size: clamp(31px, 3.3vw, 50px); margin-bottom: 30px; }
.routine-intro h1::before { content: '| '; font-weight: 700; }
.routine-intro p { color: #fff; font-size: 18px; }
.routine-overlap { display: flex; align-items: flex-end; gap: 24px; margin: 0 0 -105px 30px; }
.routine-overlap img { width: 260px; height: 330px; object-fit: cover; border-radius: 18px;     transform: translateY(50px); }
.routine-overlap img:nth-child(2) { transform: translateY(110px); }

.routine-records h2 { display: table; margin: 0 0 34px auto; }
.routine-records p { color: var(--green); text-align: justify; }
.routine-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(5, 265px); gap: 18px; margin-top: 42px; margin-bottom: -150px; }
.routine-gallery img { width: 100%;  object-fit: cover; border-radius: 15px; }
.routine-gallery img:nth-child(1) { grid-column: 3 / 8; grid-row: 1; }
.routine-gallery img:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.routine-gallery img:nth-child(3) { grid-column: 1 / 6; grid-row: 2; }
.routine-gallery img:nth-child(4) { grid-column: 6 / 11; grid-row: 2; margin-top: 80px; }
.routine-gallery img:nth-child(5) { grid-column: 3 / 8; grid-row: 3; margin-top: 80px; }
.routine-gallery img:nth-child(6) { grid-column: 8 / 13; grid-row: 3; margin-top: 140px; }
.routine-gallery img:nth-child(7) { grid-column: 1 / 6; grid-row: 4; margin-left: -20%; margin-top: 80px; }
.routine-gallery img:nth-child(8) { grid-column: 6 / 11; grid-row: 4; margin-top: 140px; }

@media (max-width: 992px) {
    .cdi-site-header__nav { min-height: 78px; }
    .cdi-site-header__brand img { width: 34px; height: 46px; }
    .cdi-site-header__toggle { display: block; }
    .cdi-site-header__menu { display: none; position: absolute; top: 100%; right: 0; left: 0; padding: 18px 24px 24px; background: #fff; box-shadow: 0 12px 26px rgba(1, 39, 88, .14); }
    .cdi-site-header__menu.is-open { display: block; }
    .cdi-site-header__links { align-items: stretch; flex-direction: column; gap: 0; }
    .cdi-site-header__links a { padding: 10px 0; border-bottom: 1px solid #e5edf6; font-size: 18px; }
    .cdi-site-header__social { padding-top: 18px; }
    .canva-layout { font-size: 16px; }
    .canva-container { width: min(100% - 32px, 720px); }
    .enrollment-strip__inner { grid-template-columns: 130px 1fr; padding: 18px 18px 18px 0; gap: 14px; }
    .enrollment-strip__image { height: 100px; }
    .enrollment-strip__availability, .enrollment-strip .outline-button { grid-column: 1 / -1; text-align: center; }
    .green-feature__inner { grid-template-columns: 1fr 1fr; }
    .green-feature__content { grid-column: 1 / -1; grid-row: 1; }
    .green-feature__inner img { height: 250px; }
    .spaces-grid, .report-block { grid-template-columns: 1fr; }
    .culture-grid { grid-template-columns: repeat(2, 1fr); }
    .split-hero { grid-template-columns: 1fr; }
    .split-hero__image { height: 380px; }
    .method-grid { grid-template-columns: 1fr 1fr; }
    .stage-grid { grid-template-columns: repeat(2, 1fr); }
    .learning-grid, .program-details { grid-template-columns: 1fr; }
    .learning-item:nth-child(3n) { grid-column: auto; }
    .routine-gallery img:nth-child(n) { grid-column: span 6; }
    .green-feature__inner {
        background-image: none;
    }
    .split-hero__title h1 { font-size: 36px; }
    .split-hero__title p { font-size: 24px; }
    .three-photos .canva-container, .three-photos .container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .cdi-site-header__nav { width: calc(100% - 28px); }
    .canva-layout .section { padding: 30px 0; }
    .enrollment-strip__inner { grid-template-columns: 92px 1fr; padding-right: 14px; }
    .enrollment-strip__image { height: 82px; }
    .enrollment-strip h2 { font-size: 24px; }
    .enrollment-strip__availability { font-size: 15px; }
    .enrollment-strip .outline-button { padding: 10px 12px; font-size: 14px; }
    .home-hero img { height: 330px; }
    .green-feature__inner { grid-template-columns: 1fr; }
    .green-feature__inner img { height: 220px; }
    .segment-grid, .three-photos, .method-grid, .stage-grid, .culture-grid, .culture-grid--four { grid-template-columns: 1fr; }
    .segment-card { min-height: 230px; }
    .photo-mosaic { grid-template-rows: 145px 190px; }
    .culture-card img { height: 220px; }
    .split-hero__title { padding: 42px 25px; }
    .split-hero__image { height: 300px; }
    .learning-item { grid-template-columns: 1fr; }
    .program-collage { grid-template-rows: repeat(4, 130px); }
    .program-methods { gap: 18px; }
    .method-label { max-width: 100%; }
    .stage-grid--connected::before { display: none; }
    .routine-intro {
        margin-bottom: 130px;
    }
    .routine-overlap { margin: 0; gap: 12px; }
    .routine-overlap img { width: calc(50% - 6px); height: 245px; }
    .routine-gallery { display: grid; grid-template-columns: 1fr; grid-template-rows: none; margin: 0; }
    .routine-gallery img:nth-child(n) { grid-column: auto; grid-row: auto; margin: auto;}
}
