/* Identidade: tipografia da Escola, fotografias locais e seções com composições próprias. */
:root {
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Manrope", Arial, Helvetica, sans-serif;
  --navy: #0c3659;
  --deep: #0c1630;
  --school-blue: #28649c;
  --school-link: #1172e6;
  --school-sky: #6ec1e4;
  --school-gradient: linear-gradient(180deg, #0c3659 0%, #0c1630 100%);
  --ink: #15344c;
  --muted: #4b6273;
  --gold: #e2c78d;
  --surface: #eaf1f7;
  --line: #c6d5df;
}
body { font-family: var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 2.7vw, 2.5rem); line-height: 1.25; }
h3 { line-height: 1.35; }
p { text-wrap: pretty; }
a { text-underline-offset: 5px; }
.button { background: var(--school-blue); border-radius: 10px; gap: 24px; transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.button:hover { background: var(--school-link); transform: none; box-shadow: 0 5px 18px rgb(17 114 230 / 16%); }
.button-gold { background: var(--gold); color: var(--deep); }
.button-gold:hover { background: #eed9ae; box-shadow: 0 5px 18px rgb(226 199 141 / 15%); }
.button > span[aria-hidden] { font-size: 1.2em; }
.button-outline { background: transparent; color: var(--navy); border-color: #809aaf; }
.button-outline:hover { background: var(--navy); color: white; border-color: var(--navy); }
.text-link { border-color: #94aabc; padding-bottom: 6px; gap: 16px; transition: color .3s, border-color .3s; }
.text-link:hover { color: var(--school-blue); border-color: var(--school-link); }
.site-header { background: #000; color: white; border-bottom: 5px solid var(--navy); box-shadow: 0 4px 18px rgb(0 0 0 / 12%); }
.header-inner { min-height: 92px; }
.brand { font: 500 1.28rem/1.25 var(--serif); letter-spacing: -.035em; gap: 12px; }
.brand-mark { font-size: 2.65rem; color: var(--navy); -webkit-text-stroke: .055em currentColor; }
.brand small { margin-top: 5px; font: 600 .75rem/1.5 var(--sans); letter-spacing: .22em; color: #516b7e; }
.site-header .brand-mark { color: var(--gold); }
.site-header .brand small { color: #bcd0df; }
.main-nav { gap: 23px; flex-wrap: wrap; }
.main-nav > a:not(.button) { font-size: .875rem; font-weight: 600; transition: color .3s; }
.main-nav > a:not(.button):hover { color: var(--school-sky); }
.main-nav .button { min-width: auto; background: transparent; color: white; border-color: #527f9f; padding-inline: 20px; }
.main-nav .button:hover { background: var(--navy); color: white; }
.main-nav > a[aria-current] { color: var(--school-sky); }
.main-nav > a[aria-current]:after { right: 0; }
.main-nav > a:not(.button):after { height: 2px; background: var(--school-sky); transition: right .3s; }

/* A abertura mantém o enquadramento da fachada e deixa a tipografia respirar. */
.home-hero {
  position: relative;
  overflow: visible;
  color: white;
  background: var(--school-gradient);
}
.home-hero .hero-grid { padding-block: 52px; }
.home-hero .hero-copy { padding: 0; }
.home-hero .hero-copy::before { width: 64px; margin-bottom: 28px; background: var(--gold); }
.home-hero h1 { font-size: clamp(2.65rem, 4.5vw, 4rem); line-height: 1.14; max-width: none; letter-spacing: -.045em; }
.home-hero h1 > span, .home-hero h1 em { display: block; }
.home-hero h1 em { margin-top: 9px; font-style: italic; font-weight: 400; color: var(--school-sky); }
.home-hero .hero-description { color: #d9e7f2; margin-top: 25px; max-width: 43ch; }
.home-hero .hero-actions { gap: 14px 28px; margin-top: 29px; }
.home-hero .hero-actions .text-link { color: white; border-color: #8facc2; font-size: .875rem; }
.home-hero .hero-actions .text-link:hover { color: var(--school-sky); border-color: var(--school-sky); }
.home-hero .button { background: white; color: var(--navy); }
.home-hero .button:hover { background: #dceefd; box-shadow: 0 5px 20px rgb(110 193 228 / 20%); }
.home-hero .hero-figure { box-shadow: 0 14px 34px rgb(0 0 0 / 26%), 0 0 0 1px rgb(110 193 228 / 25%); }
.home-hero .hero-figure figcaption strong { font: 500 1.4rem/1.4 var(--serif); color: white; }
.home-hero .hero-figure figcaption > span { font-size: .875rem; letter-spacing: .1em; }
.home-about { border: 0; padding-block: 66px; }
.home-about .intro-grid { grid-template-columns: .85fr 1.15fr; align-items: start; gap: 80px; }
.home-about .intro-copy { max-width: 590px; }
.home-about .intro-copy .text-link { margin-top: 20px; }
.home-about h2 { max-width: 11ch; }

/* Duas colunas de endereços; os nomes das unidades são o ponto de entrada. */
.home-units { padding-block: 62px 68px; border-block: 1px solid #c7d8e5; background: #e8f0f6; }
.home-units .section-heading { margin-bottom: 38px; }
.home-units .section-heading > p { max-width: 36ch; }
.home-units .unit-grid { gap: 0; border-top: 1px solid #a9c0d1; }
.home-units .unit-card { display: flex; flex-direction: column; min-width: 0; padding: 27px 48px 0 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.home-units .unit-card + .unit-card { padding: 27px 0 0 48px; border-left: 1px solid #a9c0d1; }
.home-units .unit-top { min-height: 35px; margin-bottom: 12px; }
.home-units .unit-label { font-size: .875rem; font-weight: 600; letter-spacing: .075em; color: #45647c; }
.home-units .unit-top > span:last-child { font: italic 400 1.5rem/1 var(--serif); color: #53758e; }
.home-units .unit-card h3 { font: 500 clamp(1.9rem, 3vw, 2.7rem)/1.2 var(--serif); letter-spacing: -.04em; margin-bottom: 20px; }
.home-units .unit-card > p { min-height: 84px; color: #344f63; }
.home-units .unit-contact { padding-block: 20px; margin-block: 23px; gap: 12px 24px; }
.home-units .unit-contact > span { font-size: .875rem; letter-spacing: .07em; color: #48667c; }
.home-units .unit-contact > a { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.home-units .unit-contact > a:hover { text-decoration: underline; }
.home-units .card-actions { gap: 14px 26px; }
.home-units .button { background: transparent; }
.home-units .button:hover { background: var(--navy); }

/* A marca original da Escola ganha uma área própria, com proporção natural. */
.home-school { padding-block: 65px; border: 0; background: var(--school-gradient); color: white; }
.home-school .school-teaser { grid-template-columns: .85fr 1.15fr; gap: 80px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.home-school .school-teaser::after { display: none; }
.school-teaser-mark { display: flex; align-items: center; justify-content: flex-start; padding-right: 20px; }
.school-teaser-mark img { width: min(100%, 310px); height: auto; aspect-ratio: 847 / 301; object-fit: contain; }
.school-teaser-copy { border-left: 1px solid #5285ab; padding-left: 38px; }
.home-school .school-teaser h2 { font: 500 2.25rem/1.25 var(--serif); letter-spacing: -.03em; }
.home-school .school-teaser p { color: #dce7ef; max-width: 45ch; margin-top: 17px; }
.home-school .school-teaser .button { margin-top: 26px; white-space: normal; }

/* Notícias com data e título, ao lado de uma fotografia real do acervo. */
.home-community { padding-block: 76px; background: white; border: 0; }
.home-community .community-preview { grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.home-community .community-preview > figure { max-width: 540px; }
.home-community .community-preview img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; box-shadow: 0 8px 24px rgb(12 54 89 / 12%); }
.home-community .community-preview figcaption { font-size: .875rem; color: var(--muted); }
.home-community h2 { font-size: clamp(1.8rem, 2.7vw, 2.5rem); max-width: 15ch; margin: 0 0 25px; }
/* Estudos e acervo: apresentações com destinos próprios. */
.home-studies { padding-block: 62px; background: #f1f5f8; border-block: 1px solid #d2dfe8; }
.home-contact { padding-block: 43px; background: var(--navy); color: white; }
.home-contact h2 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; }
.home-contact p { color: #d9e7f2; }
.home-contact .button { background: white; color: var(--navy); }
.home-contact .button:hover { background: #dceefd; }

/* Os mesmos tipos e acabamentos seguem nas páginas internas. */
.page-intro { background: var(--school-gradient); color: white; border-bottom: 0; padding-bottom: 45px; }
.page-intro h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.8vw, 3.4rem); letter-spacing: -.035em; }
.page-intro h1::before { background: var(--gold); }
.breadcrumbs { color: #b9d5e8; }
.breadcrumbs a { color: white; }
.breadcrumbs a:hover { color: var(--school-sky); }
.page-description { color: #d9e7f2; max-width: 65ch; }
.school-visual, .north-panel { background: var(--school-gradient); border-radius: 10px; }
.archive-banner { background: var(--school-gradient); }
.school-grid h2, .unit-detail-copy h2, .archive-banner h2, .contact-page h2 { font-family: var(--serif); font-weight: 500; }
.news-card, .study-card { box-shadow: none; border-radius: 10px; transition: border-color .3s, box-shadow .3s; }
.news-card h3, .study-card h2, .principles-grid h3, .timeline h3, .contact-options h3 { font-family: var(--serif); font-weight: 500; }
.news-card h3, .study-card h2 { font-size: 1.5rem; }
.news-card[id] { scroll-margin-top: 115px; }
.archive-year h2, .archive-layout .eyebrow, .footer-top h2, .visit-schedule h3 { font-family: var(--sans); }
.site-footer { --footer-divider-color: var(--paper); position: relative; background: #000; color: white; border-top: 0; }
.site-footer::before { content: ""; display: block; position: absolute; top: 0; left: max(48px, calc((100% - 1180px)/2)); width: 70px; height: 3px; background: var(--gold); }
.footer-top { padding-block: 54px 43px; }
.site-footer .brand { color: white; }
.site-footer .brand-mark { color: var(--gold); }
.site-footer .brand small { color: #c6d7e4; }
.footer-top h2 { color: white; font-weight: 600; letter-spacing: 0; font-size: .9375rem; }
.footer-top p, .footer-top > div > a:not(.brand), .footer-bottom { color: #c2d3df; font-size: .875rem; }
.footer-top > div > a:not(.brand):hover { color: white; text-decoration: underline; }
.footer-bottom { display: block; text-align: left; border-top: 1px solid #355268; padding-block: 22px; }

/* Referência da Escola: degradê azul, sombra suave e divisor em ponta. */
.home-hero::after {
  content: "";
  position: absolute;
  width: 66px;
  height: 14px;
  left: calc(50% - 33px);
  top: calc(100% - 1px);
  background: var(--deep);
  /* A base sobrepõe a seção em 1px para não abrir uma emenda no recorte. */
  clip-path: polygon(0 0, 100% 0, 100% 1px, 50% 100%, 0 1px);
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -1px;
  left: calc(50% - 40px);
  width: 80px;
  height: 14px;
  background: var(--footer-divider-color);
  /* Faixa de 1px acima da ponta cobre a emenda em posições fracionárias. */
  clip-path: polygon(0 0, 100% 0, 100% 1px, 50% 100%, 0 1px);
  pointer-events: none;
}
.home-hero h1, .home-school h2, .page-intro h1 {
  text-shadow: 0 0 10px rgb(0 0 0 / 18%);
}
.school-page-nav { background: #e6f1fa; border-color: #b2cde1; }
.school-page-nav a { color: var(--school-blue); transition: color .3s, border-color .3s; }
.school-page-nav a:hover { color: var(--navy); border-color: var(--school-link); }
.faq details { border-radius: 10px; transition: border-color .3s, box-shadow .3s; }
.faq summary, .faq summary::after { color: var(--school-blue); }
.faq details[open] summary { color: var(--ink); }
.faq details[open] { border-left-color: var(--school-blue); }
.course-type, .study-meta { color: var(--school-blue); }
@media (hover: hover) {
  .news-card:hover, .study-card:hover { border-color: #81b6dc; box-shadow: 0 7px 22px rgb(12 54 89 / 9%); }
}
.news-card:focus-within, .study-card:focus-within { border-color: var(--school-blue); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline-color: var(--school-link); }
.home-hero a:focus-visible, .home-school a:focus-visible,
.site-header a:focus-visible, .site-header button:focus-visible,
.site-footer a:focus-visible, .page-intro a:focus-visible,
.home-contact a:focus-visible { outline-color: var(--school-sky); }
@media (prefers-reduced-motion: reduce) {
}


/* Títulos principais: negrito real da Lora e contornos sem sombra difusa. */
main h1,
main h2,
.page-intro h1,
.school-grid h2,
.unit-detail-copy h2,
.archive-banner h2,
.contact-page h2,
.contact-band h2,
.home-school .school-teaser h2,
.home-contact h2,
.home-units .unit-card h3,
#inscricoes .contact-options h3 {
  font-weight: 700;
  text-shadow: none;
}
.home-hero h1 em { font-weight: 700; }

/* Conteúdo informativo e links de navegação têm funções distintas. */
.community-summary { max-width: 48ch; }
.home-community .community-summary p { margin-bottom: 0; }
.community-summary > .text-link { margin-top: 25px; }
.community-recent { margin-top: 24px; }
.community-recent-entry { padding-block: 18px; border-top: 1px solid var(--line); }
.community-recent-entry:last-child { padding-bottom: 0; }
.community-recent-entry time { display: block; margin-bottom: 9px; color: #45647c; font: 600 .8125rem/1.6 var(--sans); }
.home-community .community-recent-entry h3 { margin: 0; color: var(--navy); font: 700 1.25rem/1.4 var(--serif); letter-spacing: -.02em; }
.learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.home-learning .learning-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: start; }
.learning-grid h2 { font-size: clamp(1.85rem, 2.7vw, 2.5rem); margin-bottom: 23px; }
.learning-overview h2::before { content: ""; display: block; width: 46px; height: 2px; margin-bottom: 17px; background: linear-gradient(to right, var(--navy) 0 30px, var(--gold) 30px); }
.learning-grid p { color: var(--muted); max-width: 54ch; }
.learning-grid .text-link { margin-top: 25px; }
@media (max-width: 680px) {
  .learning-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
.learning-archive { padding: 19px 0 0 42px; border-left: 1px solid #b4c9da; }
.learning-archive h2 { font-size: clamp(1.65rem, 2.3vw, 2rem); }
@media (max-width: 680px) {
  .learning-archive { padding: 28px 0 0; border-left: 0; border-top: 1px solid #b4c9da; }
  .community-summary { max-width: none; }
}

/* Cursos são descrições informativas; inscrições têm um acesso comum. */
#cursos .course-grid { gap: 0; border-block: 1px solid #b6cadb; }
.course-overview { padding: 28px 30px; }
.course-overview:first-child { padding-left: 0; }
.course-overview:last-child { padding-right: 0; }
.course-overview + .course-overview { border-left: 1px solid #b6cadb; }
.course-overview .course-type { display: block; margin-bottom: 13px; }
.course-overview h3 { font: 700 1.5rem/1.35 var(--serif); margin-bottom: 18px; }
.course-overview p, .course-overview ul { color: var(--muted); }
.course-overview ul { padding-left: 19px; margin: 19px 0 0; font-size: .9375rem; line-height: 1.75; }
.course-overview li + li { margin-top: 6px; }
@media (max-width: 900px) {
  .course-overview, .course-overview:first-child, .course-overview:last-child { padding: 26px 0; }
  .course-overview + .course-overview { border-left: 0; border-top: 1px solid #b6cadb; }
}

/* Refluxo em telas menores e ao ampliar o texto. */
@media (max-width: 1120px) {
  .header-inner { gap: 20px; }
  .brand { font-size: 1.15rem; }
  .main-nav { gap: 17px; }
  .main-nav .button { padding-inline: 14px; }
  .home-about .intro-grid, .home-school .school-teaser, .home-learning .learning-grid { gap: 50px; }
  .home-units .unit-card { padding-right: 32px; }
  .home-units .unit-card + .unit-card { padding-left: 32px; }
  .home-community .community-preview { gap: 40px; }
  .home-school .school-teaser h2 { font-size: 2rem; }
}
@media (max-width: 1000px) and (min-width: 901px) {
  .container.header-inner { width: calc(100% - 48px); }
  .header-inner { gap: 15px; }
  .main-nav { gap: 13px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { font-size: 2.3rem; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 82px; }
  .main-nav { gap: 0; background: #000; border-color: var(--navy); }
  .menu-toggle { color: white; border-color: #527f9f; }
  .main-nav .button { align-self: flex-start; padding-inline: 24px; }
  .brand { font-size: 1.25rem; }
  .home-hero h1 { font-size: 2.7rem; }
  .home-hero .hero-grid { padding-block: 40px; }
  .home-hero .hero-actions { align-items: flex-start; flex-direction: column; }
  .home-about .intro-grid, .home-school .school-teaser, .home-learning .learning-grid { gap: 32px; }
  .home-community .community-preview { gap: 32px; }
  .school-teaser-copy { padding-left: 28px; }
.home-units .unit-contact { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 78px; }
  .brand { font-size: 1.12rem; }
  .brand-mark { font-size: 2.3rem; }
  .brand small { font-size: .75rem; letter-spacing: .17em; }
  .menu-toggle { font-size: .875rem; border-radius: 3px; }
  .home-hero { background: var(--school-gradient); }
  .home-hero .hero-grid { padding-block: 34px 30px; gap: 30px; }
  .home-hero .hero-copy::before { width: 48px; margin-bottom: 22px; }
  .home-hero h1 { font-size: clamp(2.1rem, 8.8vw, 3.25rem); }
  .home-hero h1 em { margin-top: 6px; }
  .home-hero h1 em::before { content: none; }
  .home-hero .hero-description { margin-top: 21px; }
  .home-hero .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
  .home-hero .hero-figure figcaption strong { font-size: 1.25rem; }
  .home-about, .home-units, .home-community, .home-studies { padding-block: 43px; }
  .home-about .intro-grid, .home-school .school-teaser, .home-learning .learning-grid, .home-community .community-preview { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .home-about h2, .home-community h2 { max-width: none; }
  .home-about h2, .home-community h2, .home-learning .learning-grid h2, .home-units h2 { font-size: 1.85rem; }
  .home-units .section-heading { gap: 20px; margin-bottom: 28px; }
  .home-units .unit-card { padding: 25px 0 32px; }
  .home-units .unit-card + .unit-card { border-left: 0; border-top: 1px solid #a9c0d1; padding: 25px 0 0; }
  .home-units .unit-card h3 { font-size: 2.25rem; }
  .home-units .unit-card > p { min-height: 0; }
  .home-units .unit-contact { flex-direction: row; align-items: center; margin-block: 23px; }
  .home-units .unit-top { margin-bottom: 8px; }
  .home-school { padding-block: 42px; }
  .school-teaser-mark { padding: 0; }
  .school-teaser-mark img { width: 235px; max-width: 100%; }
  .school-teaser-copy { border-left: 0; border-top: 1px solid #628199; padding: 27px 0 0; }
  .home-school .school-teaser h2 { font-size: 1.85rem; }
  .home-school .school-teaser .button { margin-top: 24px; }
  .home-community .community-preview > figure { max-width: 100%; }
.home-community h2 { margin-bottom: 24px; }
.community-stories > article { padding-block: 21px; }
.study-list > :is(a, article) { gap: 15px; grid-template-columns: 27px minmax(0, 1fr) 19px; padding-block: 23px; }
.home-contact { padding-block: 34px; }
  .home-contact h2 { font-size: 1.65rem; }
  .page-intro { padding-bottom: 33px; }
  .page-intro h1 { font-size: 2.2rem; }
  .footer-top { padding-block: 40px 32px; }
  .site-footer::before { left: 20px; width: 48px; }
  .footer-bottom { font-size: .8125rem; }
}
@media print {
  .home-hero, .home-school, .home-units, .home-studies, .page-intro { background: white; color: black; }
  .home-hero h1, .home-hero h1 em, .home-hero .hero-description, .page-description, .breadcrumbs, .breadcrumbs a { color: black; }
  .home-hero::after, .site-footer::after { display: none; }
  .home-hero .hero-figure { box-shadow: none; }
  .home-school .school-teaser { color: black; }
  .home-school .school-teaser p { color: black; }
  .school-teaser-mark { background: var(--navy); padding: 15px; print-color-adjust: exact; }
}


/* Informações práticas de visita na página inicial. */
.home-units .home-unit-address { font-style: normal; color: #344f63; line-height: 1.8; min-height: 87px; }
.home-units .home-unit-schedule { border-top: 1px solid #b9cdda; margin-top: 23px; padding-top: 20px; }
.home-units .home-unit-schedule h4 { font: 750 1rem/1.5 var(--sans); color: var(--navy); margin: 0 0 7px; }
.home-units .home-unit-schedule p { color: #344f63; font-size: 1rem; line-height: 1.75; max-width: 43ch; }
.home-units .home-visit-actions { margin-top: auto; padding-top: 24px; gap: 14px 24px; }
.home-units .home-visit-actions .button { background: var(--navy); color: white; border-color: var(--navy); }
.home-units .home-visit-actions .button:hover { background: var(--school-blue); border-color: var(--school-blue); }
.home-units .home-visit-actions a { font-size: .9375rem; }
.home-units .home-unit-schedule dl { margin: 14px 0 0; display: grid; gap: 8px; }
.home-units .home-unit-schedule dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.home-units .home-unit-schedule dt { color: #344f63; }
.home-units .home-unit-schedule dd { font-weight: 750; color: var(--navy); margin: 0; text-align: right; }
@media (max-width: 680px) {
  .home-units .home-unit-address { min-height: 0; }
  .home-units .home-visit-actions { align-items: flex-start; flex-direction: column; }
  .home-units .home-unit-schedule dl > div { flex-wrap: wrap; gap: 3px 12px; }
}


.visit-schedule .meeting-hours { display: grid; gap: 10px; margin: 16px 0 22px; }
.visit-schedule .meeting-hours > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.visit-schedule .meeting-hours dt { color: #344f63; }
.visit-schedule .meeting-hours dd { margin: 0; color: var(--navy); font-weight: 750; text-align: right; }
.home-units .home-unit-schedule .meeting-note, .visit-schedule .meeting-note { margin: 16px 0 0; font-size: .875rem; line-height: 1.7; color: #48667c; }
.visit-schedule .meeting-note + .text-link { margin-top: 15px; }
@media (max-width: 680px) {
  .visit-schedule .meeting-hours > div { flex-wrap: wrap; gap: 3px 12px; }
}


/* Fotos fornecidas pela comunidade: enquadramento completo e legendas externas. */
.home-hero .documentary-hero { height: auto; margin: 0; border-top-right-radius: 52px; }
.home-hero .documentary-hero > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.home-hero .documentary-hero::after { content: none; }
.home-hero .documentary-hero figcaption { position: static; padding: 14px 20px; background: #102f49; color: #dbe8f2; font: 500 .875rem/1.6 var(--sans); }
.home-school .school-teaser { grid-template-columns: 1.15fr 1fr; gap: 52px; }
.school-teaser-photo { min-width: 0; }
.school-teaser-photo > img, .school-classroom-photo > img { width: 100%; height: auto; border-radius: 9px; box-shadow: 0 8px 24px rgb(12 54 89 / 14%); }
.home-school .school-teaser-photo figcaption { margin-top: 11px; font-size: .875rem; line-height: 1.6; color: #dce7ef; }
.home-school .school-supplied-logo { width: 210px; max-width: 100%; height: auto; mix-blend-mode: screen; margin: 0 0 22px; }
.school-classroom-photo { min-width: 0; margin: 0; }
.school-classroom-photo figcaption { margin-top: 12px; line-height: 1.7; }
.story-portrait.supplied-portrait { width: 100%; max-width: 420px; margin-inline: auto; }
.story-portrait.supplied-portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; border-top-right-radius: 48px; }
.unit-detail-image.supplied-unit-photos { align-self: start; background: #edf2f6; min-width: 0; }
.unit-detail-image.supplied-unit-photos img { width: 100%; height: auto; min-height: 0; object-fit: contain; }
.supplied-unit-photos figure { margin: 0; }
.supplied-unit-photos figcaption { padding: 11px 20px 15px; font-size: .875rem; line-height: 1.65; }
.unit-photo-details { padding: 0 20px 15px; }
.unit-photo-details > summary { padding: 10px 0; cursor: pointer; color: var(--navy); font-size: .9375rem; font-weight: 700; }
.unit-photo-gallery { display: grid; gap: 20px; margin-top: 14px; }
.unit-photo-gallery figcaption { padding-left: 0; padding-right: 0; }
.unit-photo-gallery img { border-radius: 5px; }
@media (max-width: 900px) {
  .home-school .school-teaser { gap: 32px; }
}
@media (max-width: 680px) {
  .home-school .school-teaser { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .home-hero .documentary-hero { border-top-right-radius: 32px; }
  .home-school .school-supplied-logo { width: 185px; }
  .story-portrait.supplied-portrait { max-width: 390px; margin-inline: auto; }
}

/* Princípios da fé: leitura contínua no encerramento da home. */
.home-beliefs { background: #f1f5f8; border-block: 1px solid #d2dfe8; padding-block: 68px 76px; }
.beliefs-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; margin-bottom: 40px; }
.home-beliefs .beliefs-intro h2 { margin: 0; font-weight: 700; }
.home-beliefs .beliefs-intro p { margin: 0; color: #344f63; }
.beliefs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.belief { min-width: 0; padding: 26px 0 28px; border-top: 1px solid #c7d8e5; }
.home-beliefs .belief h3 { margin: 0 0 14px; font: 700 1.375rem/1.4 var(--serif); color: var(--navy); letter-spacing: -.02em; }
.home-beliefs .belief p { margin: 0; color: #344f63; }
.belief-references { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-top: 16px; font-size: .875rem; line-height: 1.8; color: #45647c; }
.belief-references a { color: #245a83; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #94b3ca; }
.belief-references a:hover { color: #0c3659; text-decoration-color: currentColor; }
.belief-references a:focus-visible { outline: 2px solid #245a83; outline-offset: 4px; border-radius: 2px; }
@media (max-width: 760px) {
  .home-beliefs { padding-block: 44px; }
  .beliefs-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .beliefs-grid { grid-template-columns: 1fr; gap: 0; }
  .belief { padding-block: 23px 26px; }
  .home-beliefs .belief h3 { font-size: 1.25rem; }
  .belief:last-child { padding-bottom: 0; }
}

/* Cursos e textos de estudo reunidos na apresentação da Escola. */
.school-teaser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 26px; }
.home-school .school-teaser .school-teaser-actions .button { margin-top: 0; }
.school-teaser-actions .text-link { color: #fff; border-color: #8facc2; }
.school-teaser-actions .text-link:hover { color: var(--school-sky); border-color: var(--school-sky); }

/* Os triângulos prolongam a cor da seção anterior, sem bordas na junção. */
.home-hero + .home-units { border-top: 0; }
.home-beliefs { border-bottom: 0; }
main:has(> .home-beliefs:last-child) + .site-footer { --footer-divider-color: #f1f5f8; }
main:has(> .surface:last-child) + .site-footer { --footer-divider-color: var(--surface); }
main:has(> .timeline-provenance:last-child) + .site-footer { --footer-divider-color: #e0eaf2; }
main:has(> .timeline-section:last-child) + .site-footer { --footer-divider-color: #edf2f6; }

/* Fotos da unidade lado a lado, com a mesma altura e sem espaço entre elas. */
.home-hero .hero-photos {
  container-type: inline-size;
  --hero-photo-extra-height: 2.9rem;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-top-right-radius: 52px;
  box-shadow: 0 14px 34px rgb(0 0 0 / 26%);
}
.home-hero .hero-photos .documentary-hero {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
/* As imagens preenchem também a faixa antes ocupada pelas legendas. */
.home-hero .hero-photos .documentary-hero > img {
  aspect-ratio: auto;
  height: calc(75cqw + var(--hero-photo-extra-height));
  object-fit: cover;
}
.home-hero .hero-worship-photo > img { object-position: 60% center; }
.home-hero .hero-entrance-photo > img { object-position: center; }
@media (max-width: 680px) {
  .home-hero .hero-photos { --hero-photo-extra-height: 2.55rem; border-top-right-radius: 32px; }
}
