:root {
  --forest: #003a30;
  --forest-deep: #002d26;
  --support: #337469;
  --copper: #bc642b;
  --cream: #e6ded1;
  --paper: #fbf9f4;
  --ink: #092d26;
  --soft-line: #bdc9bf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1216px, calc(100% - 80px)); margin: 0 auto; }
h1, h2, h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: -1.8px; }
.overline { margin: 0; color: #d9dfd9; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.overline.copper { color: var(--copper); }
.overline.muted { color: #668175; }

/* Cabeçalho e abertura */
.site-header { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; height: 94px; display: flex; align-items: center; padding: 0 max(40px, calc((100vw - 1296px) / 2)); color: #fff; }
.brand-mark { display: block; width: 126px; height: 50px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 42px; }
.main-nav a { font-size: 11px; font-weight: 600; letter-spacing: .6px; transition: opacity .2s; }
.main-nav a:hover { opacity: .65; }
.main-nav .nav-login { color: var(--copper); font-weight: 700; }
.main-nav .nav-login:hover { opacity: 1; color: #e79a67; }
.nav-cta { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.nav-cta span { font-size: 18px; }
.menu-button { display: none; }

.hero { position: relative; min-height: 680px; overflow: hidden; background: var(--forest); color: #f8f5ef; }
.hero-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: calc(100% / 5) 100%, calc(100% / 5) 100%; }
.hero-word { position: absolute; right: -11px; bottom: 3px; color: rgba(255,255,255,.04); font: 700 clamp(90px, 13vw, 212px) / .7 "Cormorant Garamond", serif; letter-spacing: -10px; }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 560px; gap: 70px; align-items: center; min-height: 680px; }
.hero-copy { padding-top: 60px; }
.hero-copy h1 { max-width: 620px; margin-top: 22px; font-size: clamp(58px, 6.1vw, 91px); line-height: .89; }
.hero-copy > p:not(.overline) { max-width: 404px; margin: 30px 0 0; color: #d3ddd7; font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 31px; margin-top: 37px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 47px; padding: 0 19px; font-size: 10px; font-weight: 700; letter-spacing: .8px; transition: transform .22s, background .22s; }
.button:hover { transform: translateY(-3px); }
.button b { font-size: 19px; font-weight: 400; }
.button-copper { background: var(--copper); color: #fff; }
.button-light { background: var(--paper); color: var(--forest); }
.button-dark { background: var(--forest); color: #fff; }
.quiet-link { padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.55); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.quiet-link b { margin-left: 8px; font-size: 16px; }
.hero-carousel { position: relative; height: 390px; padding-bottom: 64px; }
.film-panel { height: 100%; overflow: hidden; background: var(--forest-deep); border-radius: 1px 1px 1px 55px; }
.film-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .36s ease, transform .65s ease; }
.film-panel.is-changing img { opacity: 0; transform: scale(1.04); }
.carousel-ui { position: absolute; right: 0; bottom: 29px; display: flex; align-items: center; gap: 12px; color: #d4dcd6; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.progress { width: 110px; height: 1px; background: rgba(242,246,241,.32); }
.progress i { display: block; width: 50%; height: 1px; background: #fff; transition: width .5s; }
.carousel-caption { position: absolute; bottom: 0; left: 0; display: flex; align-items: center; gap: 10px; }
.carousel-caption p { width: 230px; margin: 0; color: #e0e5df; font: 600 17px / 1.2 "Cormorant Garamond", serif; }
.carousel-caption button, .ead-carousel-meta button { width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; font: 400 15px / 1 sans-serif; cursor: pointer; }
.scroll-cue { position: absolute; bottom: 29px; left: max(40px, calc((100% - 1216px) / 2)); display: flex; align-items: center; gap: 9px; color: #c2d0c6; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.scroll-cue span { width: 20px; height: 1px; background: #c2d0c6; }

/* Instituto */
.manifesto { position: relative; z-index: 0; display: grid; grid-template-columns: 145px minmax(320px, 1fr) 330px; gap: 70px; align-items: end; padding: 131px 0 142px; }
.manifesto::before { content: ""; position: absolute; z-index: -1; top: 0; right: calc((100vw - 100%) / -2); bottom: 0; left: calc((100vw - 100%) / -2); background-color: var(--paper); background-image: radial-gradient(circle at 84% 13%, rgba(255,255,255,.94), transparent 31%), radial-gradient(rgba(0,58,48,.13) .65px, transparent .95px), repeating-linear-gradient(128deg, rgba(0,58,48,.03) 0 1px, transparent 1px 8px); background-size: auto, 7px 7px, auto; }
.manifesto::after { content: "NASCIMENTO · ATIBAIA"; position: absolute; left: 163px; top: 146px; color: rgba(0,58,48,.62); font-size: 8px; font-weight: 700; letter-spacing: 1.45px; writing-mode: vertical-rl; }
.section-signature { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; gap: 18px; }
.section-signature img { width: 80px; height: 136px; object-fit: contain; }
.section-signature span { color: #8b9b90; font: 600 17px "Cormorant Garamond", serif; }
.manifesto h2 { max-width: 720px; margin-top: 20px; font-size: 53px; line-height: .98; }
.manifesto-detail { color: #5d7366; font-size: 13px; line-height: 1.85; }
.manifesto-detail p { margin: 0; }
.manifesto-detail p + p { margin-top: 18px; color: var(--forest); font-weight: 600; }

/* Formação */
.formation { position: relative; padding: 111px 0 118px; background-color: var(--cream); background-image: radial-gradient(ellipse at 16% 10%, rgba(255,255,255,.95), transparent 34%), repeating-linear-gradient(132deg, rgba(0,58,48,.1) 0 1px, transparent 1px 9px), linear-gradient(90deg, rgba(0,58,48,.045) 1px, transparent 1px); background-size: auto, auto, 68px 100%; }
.formation .container { position: relative; }
.formation-rail { position: absolute; top: 78px; right: -42px; color: rgba(0,58,48,.57); font-size: 9px; font-weight: 700; letter-spacing: 1.35px; writing-mode: vertical-rl; transform: rotate(180deg); }
.formation-head { display: flex; align-items: end; justify-content: space-between; gap: 65px; margin-top: 20px; }
.formation h2 { font-size: 64px; line-height: .84; }
.formation h2 i { font-weight: 700; letter-spacing: -2.6px; }
.formation-head > p { max-width: 283px; margin: 0; color: #5c7366; font-size: 13px; line-height: 1.85; }
.course-list { margin-top: 71px; border-top: 1px solid #b5c1b7; }
.course-list > a { position: relative; display: grid; grid-template-columns: 84px 1fr 1.1fr 22px; gap: 25px; align-items: center; min-height: 107px; border-bottom: 1px solid #b5c1b7; transition: padding .22s, background .22s; }
.course-list > a:hover { padding: 0 16px; background: rgba(255,255,255,.28); }
.course-list > a > span { position: relative; display: grid; width: 28px; height: 28px; place-items: center; justify-self: center; border: 1px solid rgba(0,58,48,.38); border-radius: 50%; color: var(--forest); font: 600 12px "Cormorant Garamond", serif; }
.course-list > a > span::before, .course-list > a > span::after { content: ""; position: absolute; left: 50%; width: 1px; height: 28px; background: var(--support); transform: translateX(-50%); }
.course-list > a > span::before { bottom: calc(100% + 7px); }
.course-list > a > span::after { top: calc(100% + 7px); }
.course-list h3 { font-size: 31px; }
.course-list p { margin: 0; color: #5a7063; font-size: 12px; line-height: 1.6; }
.course-list b { color: var(--copper); font-size: 20px; font-weight: 400; }
.formation-signals { padding: 53px 0; background-color: var(--support); background-image: linear-gradient(116deg, rgba(0,46,39,.15), transparent 48%), radial-gradient(ellipse at 84% -40%, rgba(226,250,239,.45), transparent 72%); color: #f7f4ed; }
.formation-signals .overline { color: #e0eee6; }
.signals-line { display: flex; align-items: center; gap: 18px; margin-top: 16px; overflow: hidden; white-space: nowrap; font: 600 clamp(31px, 4vw, 57px) / 1 "Cormorant Garamond", serif; letter-spacing: -1.5px; }
.signals-line i { color: #e8c9b3; font-style: normal; }
.signal-notes { display: flex; gap: 34px; margin-top: 31px; color: #e0eee6; font-size: 9px; font-weight: 700; letter-spacing: 1.25px; }

/* Plataforma EAD */
.student-area { padding: 128px 0; background-color: #f7f3eb; background-image: radial-gradient(circle at 82% 12%, rgba(255,255,255,.98), transparent 34%), radial-gradient(rgba(0,58,48,.12) .6px, transparent .9px); background-size: auto, 8px 8px; }
.student-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 117px; align-items: center; }
.student-visual { position: relative; min-height: 470px; overflow: hidden; background-color: var(--forest); background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px), radial-gradient(circle at 80% 18%, rgba(85,157,147,.28), transparent 35%); background-size: calc(100% / 4) 100%, calc(100% / 4) 100%, auto; }
.student-circle { position: absolute; top: 50%; left: 50%; width: 610px; height: 610px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; transform: translate(-50%, -50%); }
.student-visual::after { content: ""; position: absolute; z-index: 2; right: 21px; bottom: 26px; width: 2px; height: 118px; background: var(--copper); box-shadow: 6px -17px 0 -2px rgba(255,255,255,.72); }
.ead-carousel { position: relative; z-index: 1; height: 470px; }
.ead-preview { position: relative; display: flex; flex-direction: column; height: 100%; padding: 31px 31px 75px; overflow: hidden; background: linear-gradient(145deg, rgba(16,92,78,.98), rgba(0,48,41,.98)); transition: opacity .22s ease; }
.ead-preview::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 1px 20px 1px 1px; pointer-events: none; }
.ead-preview.is-changing { opacity: .28; }
.ead-preview-head, .ead-lesson, .ead-grid { position: relative; z-index: 1; }
.ead-preview-head { display: flex; align-items: center; gap: 10px; min-height: 38px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.2); color: #dce7df; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.ead-preview-head img { width: 24px; height: 30px; object-fit: contain; }
.ead-preview-head b { margin-left: auto; padding: 5px 7px; border: 1px solid rgba(255,255,255,.35); color: #dcece2; font-size: 7px; letter-spacing: 1px; white-space: nowrap; }
.ead-lesson { position: relative; height: 205px; margin-top: 23px; padding: 92px 21px 16px; overflow: hidden; border-radius: 2px 14px 2px 2px; background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.035)); }
.ead-lesson::before { content: ""; position: absolute; top: 14px; right: 16px; left: 16px; height: 54px; border: 1px solid rgba(255,255,255,.2); border-radius: 2px 9px 2px 2px; background: linear-gradient(125deg, rgba(255,255,255,.25), rgba(255,255,255,.04)), radial-gradient(circle at 22% 55%, rgba(220,149,95,.85) 0 12px, transparent 13px), linear-gradient(90deg, rgba(255,255,255,.15) 36%, transparent 36%); }
.ead-lesson::after { content: "▶"; position: absolute; top: 27px; left: 50%; z-index: 1; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; font-size: 11px; transform: translateX(-50%); }
.ead-lesson small, .ead-lesson strong, .ead-lesson span { position: relative; z-index: 1; display: block; }
.ead-lesson small { color: #cfa37e; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.ead-lesson strong { max-width: 280px; margin-top: 8px; font: 600 22px / 1 "Cormorant Garamond", serif; letter-spacing: -.45px; }
.ead-lesson span { max-width: 255px; margin-top: 6px; color: #cfddd3; font-size: 9px; line-height: 1.35; }
.ead-preview[data-screen="aula"] .ead-lesson::before { background: linear-gradient(125deg, rgba(91,168,153,.5), rgba(0,20,17,.12)), repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 21px), linear-gradient(0deg, rgba(0,0,0,.22), transparent); }
.ead-preview[data-screen="materiais"] .ead-lesson::before { background: linear-gradient(90deg, rgba(255,255,255,.18) 0 29%, transparent 29% 35%, rgba(255,255,255,.12) 35% 64%, transparent 64% 70%, rgba(255,255,255,.2) 70%), linear-gradient(135deg, rgba(220,149,95,.42), rgba(255,255,255,.06)); }
.ead-preview[data-screen="materiais"] .ead-lesson::after { content: "01 · 02 · 03"; top: 33px; left: 24px; width: auto; height: auto; border: 0; border-radius: 0; font: 600 10px "DM Sans", sans-serif; letter-spacing: 1px; transform: none; }
.ead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: auto; background: rgba(255,255,255,.16); }
.ead-grid span { display: block; height: 43px; padding: 10px 8px; background: #0b493d; color: #d8e5dc; font-size: 8px; line-height: 1.35; }
.ead-carousel-meta { position: absolute; z-index: 3; right: 31px; bottom: 20px; left: 31px; display: flex; align-items: center; gap: 9px; color: #d3e5da; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.ead-carousel-meta i { display: block; width: 88px; height: 1px; background: rgba(255,255,255,.3); }
.ead-carousel-meta i b { display: block; width: 100%; height: 1px; background: #f0f5f0; transition: width .3s; }
.ead-carousel-meta small { margin-left: auto; color: #b9d1c3; font-size: 8px; letter-spacing: 1.15px; }
.ead-carousel-meta button { width: 25px; height: 25px; border-color: rgba(255,255,255,.42); color: #eef7f0; }
.ead-carousel-meta button:hover { background: rgba(255,255,255,.12); }
.student-copy h2 { margin-top: 20px; font-size: 56px; line-height: .86; }
.student-copy h2 i { font-weight: 700; }
.student-copy > p:not(.overline) { max-width: 420px; margin: 27px 0 22px; color: #5d7366; font-size: 13px; line-height: 1.85; }
.ead-highlight { max-width: 410px; margin: 0 0 29px; padding: 15px 0 15px 14px; border-top: 1px solid #9fb7a9; border-bottom: 1px solid #9fb7a9; background: linear-gradient(90deg, rgba(51,116,105,.12), transparent); }
.ead-highlight span { display: block; color: var(--copper); font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.ead-highlight strong { display: block; margin-top: 6px; color: #234a39; font: 600 19px / 1.05 "Cormorant Garamond", serif; }

/* Contato e rodapé */
.contact { position: relative; overflow: hidden; padding: 36px 0; background: var(--copper); color: #fff; }
.contact::after { content: ""; position: absolute; top: 0; right: 5.5%; width: 1px; height: 100%; background: rgba(255,245,235,.42); box-shadow: -10px 0 0 -1px rgba(255,245,235,.2); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.18fr; gap: 100px; align-items: center; }
.contact h2 { margin-top: 21px; font-size: 56px; line-height: .86; }
.contact .overline { color: #ffe7d6; }
.contact-layout > div:first-child { padding: 13px 0; }
.contact-layout > div:last-child { padding-left: 42px; border-left: 1px solid rgba(255,244,234,.38); }
.contact-layout > div:last-child p { max-width: 375px; margin: 0 0 26px; color: #fde8d9; font-size: 13px; line-height: 1.75; }
footer { padding: 52px 0 25px; background-color: var(--paper); background-image: radial-gradient(circle at 82% 12%, rgba(255,255,255,.98), transparent 34%), radial-gradient(rgba(0,58,48,.12) .6px, transparent .9px); background-size: auto, 8px 8px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 35px; padding-bottom: 54px; }
.footer-top > img { width: 142px; height: 63px; object-fit: contain; object-position: left top; }
.footer-top div { display: grid; align-content: start; gap: 9px; }
.footer-top p { margin: 0 0 6px; color: #86968b; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.footer-top a, .footer-top span { color: #264c3c; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 19px; border-top: 1px solid #d6ddd4; color: #839388; font-size: 9px; letter-spacing: .2px; }

/* O EAD como objeto vertical, sem cartão externo solto */
.student-visual { min-height: 570px; overflow: visible; background: transparent; }
.student-circle, .student-visual::after { display: none; }
.student-visual::before { content: "PLATAFORMA EAD"; position: absolute; top: 52px; left: 0; color: var(--support); font-size: 9px; font-weight: 700; letter-spacing: 1.45px; writing-mode: vertical-rl; transform: rotate(180deg); }
.ead-carousel { height: 540px; margin: 25px 0 0 46px; overflow: hidden; border-radius: 0 96px 0 0; background: var(--forest); box-shadow: -16px 18px 0 rgba(51,116,105,.22), 0 24px 34px rgba(0,58,48,.14); }
.ead-preview { border-radius: 0 96px 0 0; }

@media (max-width: 820px) {
  .container { width: calc(100% - 40px); }
  .site-header { position: absolute; height: 70px; padding: 0 20px; }
  .brand-mark { width: 91px; height: 38px; }
  .main-nav, .nav-cta { display: none; }
  .menu-button { display: grid; width: 38px; height: 38px; margin-left: auto; padding: 11px 7px; gap: 6px; border: 0; background: transparent; }
  .menu-button span { display: block; height: 1px; background: #fff; }
  .site-header.menu-open { position: fixed; background: var(--forest); }
  .site-header.menu-open .main-nav { position: absolute; top: 70px; right: 0; left: 0; display: grid; gap: 0; padding: 8px 20px 20px; background: var(--forest); }
  .site-header.menu-open .main-nav a { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }

  .hero { min-height: 710px; }
  .hero-layout { display: block; min-height: 710px; padding-top: 119px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy > p:not(.overline) { margin-top: 22px; font-size: 13px; }
  .hero-actions { gap: 20px; margin-top: 28px; }
  .hero-carousel { height: 250px; margin-top: 50px; padding-bottom: 47px; }
  .carousel-caption p { width: 210px; font-size: 15px; }
  .carousel-ui { bottom: 17px; }
  .progress { width: 68px; }
  .scroll-cue, .hero-word { display: none; }

  .manifesto { grid-template-columns: 1fr; gap: 27px; padding: 82px 0; }
  .manifesto::after { display: none; }
  .section-signature { flex-direction: row; align-items: center; justify-content: flex-start; }
  .section-signature img { width: 56px; height: 96px; }
  .manifesto h2 { font-size: 42px; }
  .manifesto-detail { max-width: 430px; }

  .formation { padding: 75px 0; background-size: auto, auto, 48px 100%; }
  .formation-rail { display: none; }
  .formation-head { display: block; margin-top: 16px; }
  .formation h2 { font-size: 49px; }
  .formation-head > p { margin-top: 24px; }
  .course-list { margin-top: 44px; }
  .course-list > a { grid-template-columns: 34px 1fr 16px; gap: 11px; min-height: 126px; }
  .course-list h3 { grid-column: 2 / 3; font-size: 27px; }
  .course-list p { display: block; grid-column: 2 / 3; margin-top: -20px; font-size: 10px; }
  .course-list b { grid-column: 3; grid-row: 1; }
  .course-list > a > span::before, .course-list > a > span::after { height: 18px; }
  .formation-signals { padding: 43px 0; }
  .signals-line { gap: 12px; font-size: 35px; }
  .signal-notes { flex-wrap: wrap; gap: 11px 21px; margin-top: 24px; font-size: 8px; }

  .student-area { padding: 75px 0; }
  .student-layout { grid-template-columns: 1fr; gap: 58px; }
  .student-visual { min-height: 430px; overflow: hidden; background: var(--forest); }
  .student-visual::before { top: 22px; left: 12px; color: rgba(220,240,229,.72); font-size: 7px; }
  .student-circle { width: 530px; height: 530px; }
  .student-visual::after { right: 15px; bottom: 19px; height: 70px; }
  .ead-carousel { height: 410px; margin: 0 0 0 20px; border-radius: 0 46px 0 0; box-shadow: -8px 10px 0 rgba(51,116,105,.22); }
  .ead-preview { height: 100%; padding: 21px 21px 64px; border-radius: 0 46px 0 0; }
  .ead-lesson { height: 188px; margin-top: 19px; padding: 82px 17px 14px; }
  .ead-lesson::before { top: 12px; right: 13px; left: 13px; height: 51px; }
  .ead-lesson::after { top: 24px; }
  .ead-preview[data-screen="materiais"] .ead-lesson::after { top: 29px; left: 21px; }
  .ead-lesson strong { font-size: 20px; }
  .ead-lesson span { font-size: 8px; }
  .ead-grid span { height: 39px; font-size: 8px; }
  .ead-carousel-meta { right: 21px; bottom: 16px; left: 21px; }
  .ead-carousel-meta i { width: 64px; }
  .ead-carousel-meta small { font-size: 7px; }
  .ead-carousel-meta button { width: 23px; height: 23px; }
  .student-copy h2 { font-size: 48px; }

  .contact { padding: 37px 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 0; }
  .contact-layout > div:last-child { margin-top: 20px; padding: 20px 0 0; border-top: 1px solid rgba(255,244,234,.38); border-left: 0; }
  .contact::after { right: 17px; }
  .contact h2 { font-size: 48px; }
  .footer-top { grid-template-columns: 70px 1fr; gap: 25px; padding-bottom: 44px; }
  .footer-top > img { width: 112px; height: 50px; }
  .footer-top > div:last-child { grid-column: 2; }
  .footer-bottom { gap: 20px; }
  .footer-bottom span:last-child { text-align: right; }
}
