.header-inner, .hero-inner {
  width: min(1280px, calc(100% - 2 * var(--editorial-gutter)));
  max-width: none;
  margin-inline: auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  min-height: 0;
  padding: 32px 0 48px;
  align-items: center;
  gap: 24px;
}
.hero-copy { width: auto; max-width: none; padding: 0; }
.hero h1 { font-size: clamp(3.5rem, 7.5vw, 7.8rem); margin: 0; }
.hero-portrait { position: static; width: 100%; height: auto; mask-image: none; overflow: visible; }
.hero-portrait img { position: static; width: 100%; height: auto; display: block; mask-image: none; }
.profile-social { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; }
.profile-social a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: #124b80; text-decoration: none; }
.profile-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.profile-social .filled { fill: currentColor; stroke: none; }
@media (max-width:700px) {
  .hero-inner { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 5rem); }
  .hero-portrait { width: min(86vw,390px); justify-self: center; }
  .about-v3 .about-story { order: 0; }
  .about-v3 .about-photo { order: 1; }
}
/* Rodada 2: retrato ancorado e superfícies com funções claras. */
.hero-inner { padding-bottom: 0; }
.hero-copy { padding-bottom: 24px; }
.hero-portrait { align-self: end; }
main > .hero { margin-bottom: 0; }
main > .about-v3 { margin-top: 0; }
.about-photo img { mask-image: none; }
.theme-grid .theme:nth-child(n) { background: var(--cream); }
.course-list .course:nth-child(n) { background: var(--mist); }
.course-list .course { display: grid; grid-template-rows: auto auto 1fr auto auto; align-content: stretch; }
.course-list .course a { justify-self: start; }
.course-list .course .course-link-note { min-height: 1.6em; }
.book-card:nth-child(n) { background: #eef3f8; }
.direct-contact[href^="https://wa.me/"] { background: #124b80; color: white; }
.direct-contact[href^="https://wa.me/"]:hover { background: #0e3d68; }
@media (max-width:700px) {
  .hero-copy { padding-bottom: 0; }
  .hero-inner { gap: 12px; }
  .hero-portrait { width: min(82vw,355px); }
}
.profile-social a, .footer-social a {
  text-decoration: none;
  border-radius: 10px;
  padding-inline: 8px;
}
.profile-social a:hover { background: #e7f0f8; }
.footer-social a:hover { background: #ffffff18; }
#agenda .content-note { border: 0; padding-inline: 0; }
.event-action, .course-list .course a, .button, .catalog-more > summary, .dialog-close {
  border-radius: 12px;
}
#agenda .event-action {
  width: fit-content;
  padding: 8px 14px;
  background: #e7f0f8;
  text-decoration: none;
}
#agenda .event-action:hover { background: #d8e7f4; }
/* Ações secundárias: mesma linguagem visual em Cursos e Instituto. */
#cursos .course-youtube {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  color: var(--deep);
}
#cursos .course-youtube:hover {
  background: var(--mist);
}
.course-list .course { grid-template-rows: auto auto 1fr auto; }
/* Paleta editorial: contraste de superfície nas passagens entre folhas. */
:root {
  --agenda-surface: #c6daeb;
  --themes-surface: #efe0cb;
}
main > .agenda-v3 { background: var(--agenda-surface); }
main > .themes-section { background: var(--themes-surface); }
#agenda .section-intro,
#agenda .content-note,
#temas .section-intro { color: #304b61; }
/* V6: espaço editorial, bordas das folhas e ações. */
:root {
  --chapter-space: clamp(32px, 4.8vw, 72px);
  --chapter-overlap: clamp(34px, 4.5vw, 66px);
  --sheet-travel: clamp(46px, 4.9vw, 74px);
  --chapter-radius: clamp(30px, 4.1vw, 56px);
  --reverse-overlap: clamp(30px, 4vw, 54px);
}
main { position: relative; isolation: isolate; }
main > .section {
  padding-block: var(--chapter-space) calc(var(--chapter-space) + var(--chapter-overlap));
  margin-top: calc(-1 * var(--chapter-overlap));
  border-radius: var(--chapter-radius) var(--chapter-radius) 0 0;
}
main > .about-v3 { margin-top: 0; }
main > #leoes-nordestinos {
  z-index: 2;
  border-radius: var(--chapter-radius);
  padding-bottom: var(--chapter-space);
}
main > #convites {
  z-index: 1;
  border-radius: 0;
  margin-top: calc(-1 * var(--reverse-overlap));
  padding-top: calc(var(--chapter-space) + var(--reverse-overlap));
  padding-bottom: var(--chapter-space);
}
#sobre .about-photo { width: min(100%, 360px); margin-inline: auto; }
#sobre .about-story p { max-width: 58ch; }
#sobre .profile-social { gap: 4px 12px; }
#sobre .profile-social a { background: #fff; padding-inline: 12px; }
.section-heading { align-items: center; margin-bottom: clamp(22px, 3vw, 36px); }
.section-heading .section-intro { margin: 0; }
#agenda .content-note { margin-block: 0 20px; }
#agenda .compact-event {
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
}
#agenda .compact-date { align-self: center; min-height: 0; }
#agenda .event-action { justify-content: center; min-height: 44px; }
.theme-grid .theme, .course-list .course {
  padding: clamp(18px, 2.5vw, 28px);
  text-align: center;
}
.theme-grid .theme { align-items: center; justify-content: center; }
.theme-grid .theme p, .course-list .course p { max-width: 36ch; margin-inline: auto; }
.theme-grid .theme p { margin-bottom: 0; }
.theme-grid .theme h3 { margin-top: 0; }
.theme-invite { display: flex; width: fit-content; margin-inline: auto; justify-content: center; }
.course-list .course { align-items: start; }
.course-list .course a { justify-self: center; text-decoration: none; }
.course-list .course p:not(.course-link-note) { margin-bottom: 14px; }
.book-card { align-content: center; }
#convites .contact-story { align-self: start; }
#convites .contact-story h2 { margin-top: 0; }
#convites .field :is(input, textarea) { border-radius: 8px; }
#convites .form-submit { justify-content: center; }
.footer-main .text-link { border: 0; text-decoration: none; }
@media (max-width: 700px) {
  .section-heading .section-intro { margin-top: 12px; }
  #sobre .about-photo { width: min(100%, 300px); }
  .hero-inner { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
