/*
Theme Name: Obra MissionAL Block Theme v4.0.5.5
Theme URI: https://obramissional.com
Author: Obra MissionAL
Author URI: https://obramissional.com
Description: Tema modular e moderno da plataforma Obra MissionAL, preparado para módulos dinâmicos, navegação extensível e integração visual independente entre tema e plugins.
Requires at least: 6.4
Requires PHP: 8.0
Version: 4.0.5.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obra-missional-v4
Tags: block-patterns, full-site-editing, one-column, custom-colors, custom-logo, featured-images
*/

:root {
  --om-navy: #071b35;
  --om-navy-deep: #031226;
  --om-burgundy: #8f1728;
  --om-burgundy-deep: #64121e;
  --om-gold: #cf9f3b;
  --om-gold-light: #ead29d;
  --om-cream: #fbf7ef;
  --om-sand: #f2e8d6;
  --om-green: #7a7b56;
  --om-ink: #111f33;
  --om-muted: #586578;
  --om-white: #ffffff;
  --om-radius: 24px;
  --om-shadow: 0 24px 70px rgba(3, 18, 38, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--om-cream);
  color: var(--om-ink);
  overflow-x: hidden;
}

a {
  text-underline-offset: 0.18em;
}

.om-header {
  position: sticky;
  top: 0;
  z-index: 100000;
  isolation: isolate;
  transform: translateZ(0);
  padding: 14px 24px;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(7, 27, 53, 0.09);
  backdrop-filter: blur(18px);
}

.admin-bar .om-header {
  top: 32px;
}

.om-header__inner {
  position: relative;
  z-index: 1;
  min-height: 54px;
  pointer-events: auto;
}

.om-brand {
  gap: 12px;
  flex-wrap: nowrap;
}

.om-logo {
  display: inline-block;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  background: url("assets/images/logo-obra-missional.svg") center / contain no-repeat;
}

.om-brand__name {
  margin: 0;
  color: var(--om-ink);
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 780;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.om-brand__name span {
  color: var(--om-burgundy);
  font-style: italic;
}

.om-header .wp-block-navigation {
  font-size: 0.91rem;
  font-weight: 650;
}

.om-header .wp-block-navigation a {
  color: var(--om-navy);
}

.om-button .wp-block-button__link,
.om-button--outline .wp-block-button__link {
  border-radius: 999px;
  padding: 0.86rem 1.25rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.om-button .wp-block-button__link {
  background: var(--om-burgundy);
  color: var(--om-white);
  box-shadow: 0 12px 28px rgba(100, 18, 30, 0.22);
}

.om-header__cta .wp-block-button__link {
  background: var(--om-gold);
  color: var(--om-ink);
  box-shadow: 0 12px 28px rgba(207, 159, 59, 0.25);
}

.om-button--outline .wp-block-button__link {
  background: transparent;
  color: var(--om-white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.om-button .wp-block-button__link:hover,
.om-button--outline .wp-block-button__link:hover {
  transform: translateY(-2px);
}

/* Capa editorial da Home: uma única tela antes do Devocional de Hoje. */
.om-hero {
  position: relative;
  min-height: calc(100svh - 84px);
  display: flex;
  align-items: center;
  padding: clamp(54px, 8vw, 92px) 24px;
  overflow: hidden;
  isolation: isolate;
  color: var(--om-white);
  background:
    radial-gradient(circle at 82% 20%, rgba(207,159,59,.26), transparent 28%),
    linear-gradient(135deg, var(--om-navy-deep), var(--om-navy) 58%, #10294a);
}

.om-hero__media-layer,
.om-hero__veil {
  position: absolute;
  inset: 0;
}

.om-hero__media-layer {
  z-index: 0;
  overflow: hidden;
  background: var(--om-navy-deep);
}

.om-hero__media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.om-hero__media--video-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.om-hero__media--video {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.om-hero__veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,18,38,.88) 0%, rgba(3,18,38,.76) 42%, rgba(3,18,38,.38) 72%, rgba(3,18,38,.56) 100%),
    linear-gradient(180deg, rgba(3,18,38,.18), rgba(3,18,38,.36));
}

.om-hero.has-no-media::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(68vw, 760px);
  aspect-ratio: 1;
  right: -24vw;
  top: -20%;
  border: 1px solid rgba(207,159,59,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(207,159,59,.035), 0 0 0 108px rgba(207,159,59,.025);
}

.om-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wp--style--global--wide-size, 1120px);
  margin-inline: auto;
}

.om-hero__content {
  width: min(100%, 780px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: clamp(22px, 3vw, 34px);
  background: linear-gradient(135deg, rgba(3,18,38,.56), rgba(3,18,38,.30));
  box-shadow: 0 28px 80px rgba(3,18,38,.28);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.om-eyebrow {
  margin: 0 0 16px;
  color: var(--om-gold-light);
  font-size: clamp(.76rem, 1.5vw, .88rem);
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.om-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--om-white);
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.om-hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  line-height: 1.62;
}

.om-hero__buttons {
  margin-top: 30px;
}

.om-hero__buttons .wp-block-button__link {
  background: var(--om-burgundy);
  color: var(--om-white);
  box-shadow: 0 14px 32px rgba(3,18,38,.30);
}

.om-hero__scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  color: var(--om-white);
  background: rgba(3,18,38,.28);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.om-hero__scroll-cue:hover,
.om-hero__scroll-cue:focus-visible {
  color: var(--om-gold-light);
  border-color: rgba(234,210,157,.8);
}


.om-section {
  padding: clamp(78px, 10vw, 132px) 24px;
}

.om-section--white {
  background: var(--om-white);
}

.om-section--soft {
  background: var(--om-sand);
}

.om-section--navy {
  color: var(--om-white);
  background: var(--om-navy-deep);
}

.om-section__head {
  max-width: 780px;
  margin-bottom: 48px;
}

.om-section__head h2,
.om-split h2,
.om-study h2,
.om-about h2 {
  margin-top: 0;
  color: var(--om-navy);
  font-size: clamp(2.25rem, 5.2vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.om-section--navy h2 {
  color: var(--om-white);
}

.om-theme-kicker {
  margin-bottom: 12px;
  color: var(--om-green);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.om-section--navy .om-theme-kicker {
  color: var(--om-gold-light);
}

.om-copy {
  color: var(--om-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.om-section--navy .om-copy {
  color: rgba(255, 255, 255, 0.74);
}

.om-split {
  gap: clamp(34px, 7vw, 90px);
  align-items: center !important;
}

.om-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--om-radius);
  background:
    linear-gradient(180deg, rgba(9, 35, 60, 0.02), rgba(9, 35, 60, 0.72)),
    radial-gradient(circle at 65% 28%, #f1cf83 0 9%, transparent 10%),
    linear-gradient(145deg, #d9bf87, #789084 55%, #17324d);
  box-shadow: var(--om-shadow);
}

.om-visual::before {
  content: "";
  position: absolute;
  left: 10%;
  right: -8%;
  bottom: -25%;
  height: 68%;
  border-radius: 50% 0 0 0;
  background: rgba(9, 35, 60, 0.6);
  transform: rotate(-8deg);
}

.om-visual__content {
  position: absolute;
  z-index: 2;
  left: clamp(26px, 5vw, 52px);
  right: clamp(26px, 5vw, 52px);
  bottom: clamp(28px, 5vw, 50px);
}

.om-visual__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.om-visual__content h3 {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--om-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.om-checks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.om-checks li {
  position: relative;
  margin: 14px 0;
  padding-left: 32px;
  color: var(--om-ink);
  line-height: 1.55;
}

.om-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--om-navy);
  background: var(--om-gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.om-theme-card-grid {
  gap: 24px;
}

.om-theme-card {
  height: 100%;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(16, 47, 79, 0.09);
  border-radius: var(--om-radius);
  background: var(--om-white);
  box-shadow: 0 18px 55px rgba(9, 35, 60, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.om-theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(9, 35, 60, 0.12);
}

.om-theme-card__number {
  margin-bottom: 30px;
  color: var(--om-gold);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.om-theme-card h3 {
  margin: 0 0 14px;
  color: var(--om-navy);
  font-size: 1.45rem;
  line-height: 1.2;
}

.om-theme-card p {
  margin-bottom: 0;
  color: var(--om-muted);
  line-height: 1.65;
}

.om-study {
  border-radius: 34px;
  padding: clamp(34px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.om-study__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: study;
}

.om-study__list li {
  counter-increment: study;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.om-study__list li::before {
  content: "0" counter(study);
  flex: 0 0 auto;
  color: var(--om-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.om-about__quote {
  margin: 28px 0 0;
  padding: 24px 0 24px 28px;
  border-left: 3px solid var(--om-gold);
  color: var(--om-navy);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 680;
  line-height: 1.45;
}

.om-cta {
  position: relative;
  padding: clamp(52px, 8vw, 92px);
  overflow: hidden;
  border-radius: 34px;
  color: var(--om-white);
  background: linear-gradient(135deg, var(--om-burgundy), var(--om-burgundy-deep));
  box-shadow: var(--om-shadow);
}

.om-cta::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  top: -145px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.035);
}

.om-cta h2 {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0;
  color: var(--om-white);
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.om-cta p,
.om-cta .wp-block-buttons {
  position: relative;
  z-index: 2;
}

.om-cta p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.65;
}

.om-footer {
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.68);
  background: var(--om-navy-deep);
}

.om-footer a {
  color: var(--om-gold-light);
}

.om-footer__inner {
  gap: 26px;
}

.om-footer__name {
  margin: 0;
  color: var(--om-white);
  font-weight: 750;
}

.om-post-shell {
  padding: clamp(60px, 8vw, 110px) 24px;
}

.om-post-shell .wp-block-post-title {
  color: var(--om-navy);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.om-post-shell .wp-block-post-content {
  font-size: 1.08rem;
  line-height: 1.8;
}



/* =========================================================
   v3.4.0 — Refatoração estrutural
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }

/* Cabeçalho: uma única navegação para desktop e celular. */
.om-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 9px 20px;
  overflow: visible;
  background: #fffdf9;
  border-bottom: 1px solid rgba(7, 27, 53, .09);
  box-shadow: 0 1px 0 rgba(7, 27, 53, .04);
  isolation: auto;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.admin-bar .om-header { top: 32px; }
.om-header__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 58px;
  gap: 24px;
  overflow: visible;
}
.om-brand__lockup {
  display:flex;
  align-items:center;
  min-width:0;
  text-decoration:none;
}
.om-header__signature {
  display:block;
  width:236px;
  height:59px;
  flex:0 0 auto;
  background:url("assets/images/assinatura-horizontal-topo-dourada.png") left center / contain no-repeat;
}

.om-menu-toggle {
  display: none;
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--om-navy);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(7,27,53,.10);
  touch-action: manipulation;
}
.om-menu-toggle:hover,
.om-menu-toggle:focus-visible { background:rgba(7,27,53,.06); outline:none; }
.om-menu-toggle__icon,
.om-menu-toggle__icon::before,
.om-menu-toggle__icon::after {
  position:absolute;
  left:50%;
  width:27px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform:translateX(-50%);
  transition:transform 160ms ease, top 160ms ease, opacity 160ms ease;
  content:"";
}
.om-menu-toggle__icon { top:23px; }
.om-menu-toggle__icon::before { top:-8px; }
.om-menu-toggle__icon::after { top:8px; }
.om-menu-toggle[aria-expanded="true"] .om-menu-toggle__icon { background:transparent; }
.om-menu-toggle[aria-expanded="true"] .om-menu-toggle__icon::before { top:0; transform:translateX(-50%) rotate(45deg); }
.om-menu-toggle[aria-expanded="true"] .om-menu-toggle__icon::after { top:0; transform:translateX(-50%) rotate(-45deg); }

.om-site-nav { margin-left:auto; }
.om-site-nav__list {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(13px,1.6vw,24px);
  margin:0;
  padding:0;
  list-style:none;
}
.om-site-nav a {
  display:block;
  padding:.45rem 0;
  color:var(--om-navy);
  font-size:.91rem;
  font-weight:650;
  line-height:1.2;
  text-decoration:none;
}
.om-site-nav a:hover,
.om-site-nav a:focus-visible,
.om-site-nav a[aria-current="page"] { color:var(--om-burgundy); outline:none; }

/* Integrações públicas: o tema só ajusta o contêiner, sem estilizar classes internas dos plugins. */
.om-shortcode-area { width:100%; max-width:1120px; margin:24px auto 0; }
.om-shortcode-area:empty,
.om-shortcode-area:has(> :only-child:empty) { display:none; }
.om-home-devotional .om-shortcode-area > .om-wrap,
.om-home-library .om-shortcode-area > .om-wrap {
  width:100%;
  max-width:1120px;
  margin-inline:auto;
  padding:0;
}
.om-home-devotional .om-today .om-card-featured { box-shadow:var(--om-shadow); }
.om-home-library > .wp-block-buttons { position:relative; z-index:2; clear:both; margin-top:42px!important; }

/* Elementos auxiliares e identidade. */
.screen-reader-text.om-skip-link:focus {
  position:fixed!important; z-index:1000000; top:12px; left:12px; width:auto; height:auto; clip:auto;
  padding:.75rem 1rem; border-radius:8px; color:var(--om-white); background:var(--om-navy);
}
.om-section { padding-block:clamp(58px,7vw,92px); }
.om-section__head { position:relative; margin-bottom:34px; }
.om-section__head::after { content:""; display:block; width:72px; height:2px; margin-top:22px; background:linear-gradient(90deg,var(--om-gold),transparent); }
.om-button .wp-block-button__link,
.om-button--outline .wp-block-button__link { min-height:48px; display:inline-flex; align-items:center; justify-content:center; padding:.78rem 1.3rem; }

/* Rodapé. */
.om-footer { padding:34px 24px 30px; border-top:3px solid var(--om-gold); }
.om-footer__inner { max-width:720px; gap:14px; text-align:center; }
.om-footer__inner > * { margin-inline:auto; }
.om-footer__signature {
  display:block;
  width:min(100%,410px);
  aspect-ratio:760 / 190;
  margin:0 auto 8px;
  background:url("assets/images/assinatura-horizontal-rodape-negativo.png") center / contain no-repeat;
}
.om-footer__brand-lockup { display:block; margin-bottom:0; }
.om-footer__mission {
  max-width:620px;
  margin-top:8px!important;
  margin-bottom:4px!important;
  color:rgba(255,255,255,.84);
  font-family:Georgia,'Times New Roman',serif;
  font-size:.98rem;
  line-height:1.5;
}
.om-footer__links {
  margin-block:5px!important;
  font-size:.91rem!important;
  line-height:1.55;
}
.om-footer__copyright {
  margin-block:5px!important;
  font-size:.82rem!important;
  line-height:1.5;
  opacity:.82;
}
.om-footer__links a { color:var(--om-gold-light); }

/* Template Universal de Leitura. */
.om-reading-shell {
  min-height:72vh;
  padding:clamp(38px,6vw,78px) 24px clamp(68px,9vw,118px);
  background:radial-gradient(circle at 86% 2%,rgba(207,159,59,.10),transparent 28%),var(--om-cream);
}
.om-reading-frame { width:min(100%,840px); margin-inline:auto; }
.om-reading-breadcrumb { margin:0 0 22px; color:var(--om-muted); font-size:.86rem; font-weight:700; letter-spacing:.02em; }
.om-reading-breadcrumb a { color:var(--om-burgundy); text-decoration:none; }
.om-reading-breadcrumb span { margin-inline:.55rem; opacity:.55; }
.om-reading-card {
  padding:clamp(30px,5vw,60px);
  border:1px solid rgba(7,27,53,.08);
  border-radius:clamp(22px,4vw,32px);
  background:rgba(255,255,255,.96);
  box-shadow:var(--om-shadow);
}
.om-reading-card .wp-block-post-title {
  max-width:760px;
  margin:0 0 16px;
  color:var(--om-navy);
  font-size:clamp(2.45rem,6vw,4.6rem);
  line-height:1;
  letter-spacing:-.04em;
}
.om-reading-card .wp-block-post-date { margin-bottom:14px; color:var(--om-burgundy); font-size:.78rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.om-reading-card .wp-block-post-featured-image { margin:28px 0 32px; }
.om-reading-card .wp-block-post-featured-image img { width:100%; border-radius:22px; box-shadow:0 18px 48px rgba(3,18,38,.13); }
.om-reading-content {
  max-width:720px;
  margin-inline:auto;
  color:#233247;
  font-size:clamp(1.03rem,1.45vw,1.13rem);
  line-height:1.68;
}
.om-reading-content > :first-child { margin-top:0; }
.om-reading-content h2 {
  margin-top:1.75em;
  margin-bottom:.5em;
  color:var(--om-navy);
  font-size:clamp(1.6rem,3.2vw,2.2rem);
  line-height:1.16;
  letter-spacing:-.02em;
}
.om-reading-content h3 { margin-top:1.45em; margin-bottom:.45em; color:var(--om-navy); }
.om-reading-content p { margin-block:.78em; }
.om-reading-content ul { padding-left:1.2em; margin-block:.85em; }
.om-reading-content li { margin-block:.42em; padding-left:.25em; }
.om-reading-content blockquote { margin:1.8rem 0; padding:1.15rem 1.4rem; border-left:4px solid var(--om-gold); border-radius:0 16px 16px 0; color:var(--om-navy); background:var(--om-cream); font-family:Georgia,'Times New Roman',serif; font-size:1.12em; }
.om-reading-lead { margin:0 0 1.45rem!important; color:var(--om-burgundy); font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.3rem,2.8vw,1.75rem); font-weight:700; line-height:1.35; }
.om-reading-highlight { margin:1.55rem 0!important; padding:1.05rem 1.35rem; border-left:4px solid var(--om-gold); color:var(--om-navy); background:var(--om-cream); font-weight:750; }
.om-reading-signature { margin-top:2.2rem!important; padding-top:1.45rem; border-top:1px solid rgba(7,27,53,.12); color:var(--om-navy); font-family:Georgia,'Times New Roman',serif; font-size:1.12rem; font-weight:700; }
.om-reading-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; max-width:720px; margin:36px auto 0; padding-top:24px; border-top:1px solid rgba(7,27,53,.12); }
.om-reading-actions a { display:inline-flex; align-items:center; min-height:44px; padding:.75rem 1rem; border-radius:999px; color:var(--om-navy); background:var(--om-sand); font-weight:750; text-decoration:none; }
.om-reading-actions a:hover { background:var(--om-gold-light); }
.om-theme-share-button { min-height:44px; padding:.75rem 1rem; border:0; border-radius:999px; color:var(--om-white); background:var(--om-burgundy); font:inherit; font-weight:750; cursor:pointer; }
.om-theme-share-button:hover { background:var(--om-burgundy-deep); }
.om-home-about-summary {
  padding-block: clamp(48px, 5vw, 66px);
}
.om-home-about-summary .om-about__quote { margin-bottom:24px; }
.om-home-about-summary .wp-block-buttons { margin-top:24px; }

.om-home-contact {
  padding-block: clamp(42px, 4.5vw, 60px);
}
.om-home-contact .om-section__head {
  margin-bottom:22px;
}
.om-home-contact .om-shortcode-area {
  margin-top:16px;
}

/* Arquivo de Estudos Bíblicos. */
.om-studies-archive { padding:clamp(52px,7vw,88px) 24px clamp(72px,9vw,112px); }
.om-studies-archive__head { width:min(100%,1120px); margin:0 auto 34px; }
.om-studies-archive__head h1 { max-width:760px; margin:.12em 0 .25em; color:var(--om-navy); font-size:clamp(2.6rem,6vw,4.7rem); line-height:1; letter-spacing:-.04em; }
.om-studies-archive__head p:last-child { max-width:720px; color:var(--om-muted); font-size:1.05rem; line-height:1.65; }
.om-studies-archive__body { width:min(100%,1120px); margin-inline:auto; }

@media (max-width: 960px) {
  .om-hero__inner { max-width:760px; }
  .om-split { gap:46px; }
}

@media (max-width: 782px) {
  .admin-bar .om-header { top:46px; }
  .om-header { padding:8px 16px; }
  .om-header__inner {
    width:100%!important;
    max-width:none!important;
    min-height:60px;
    margin-inline:0!important;
    gap:10px;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  .om-brand__lockup { flex:0 1 auto; max-width:calc(100% - 58px); }
  .om-header__signature { width:clamp(200px,60vw,230px); height:auto; aspect-ratio:4 / 1; }
  .om-menu-toggle { display:block; margin-left:auto; margin-right:0; }
  .om-site-nav {
    display:none;
    position:fixed;
    z-index:999;
    inset:76px 0 0;
    margin:0;
    padding:22px 20px 40px;
    overflow-y:auto;
    overscroll-behavior:contain;
    background:#fffdf9;
    border-top:1px solid rgba(7,27,53,.09);
    box-shadow:0 24px 45px rgba(3,18,38,.12);
  }
  .admin-bar .om-site-nav { inset-block-start:122px; }
  .om-site-nav.is-open { display:block; }
  .om-site-nav__list { width:min(100%,390px); margin:0 auto; flex-direction:column; align-items:stretch; gap:0; }
  .om-site-nav__list li { margin:0; border-bottom:1px solid rgba(7,27,53,.10); }
  .om-site-nav a { padding:16px 10px; font-size:1.1rem; font-weight:750; text-align:center; }
  body.om-menu-open { overflow:hidden; }

  .om-hero { min-height:calc(100svh - 76px); padding:34px 18px 54px; }
  .om-hero__inner { max-width:560px; }
  .om-hero__content { padding:24px 20px 26px; border-radius:22px; }
  .om-hero h1 { font-size:clamp(2.65rem,12.5vw,4rem); line-height:.96; }
  .om-hero__lead { margin-top:18px; font-size:1rem; line-height:1.55; }
  .om-hero__buttons { margin-top:22px; }
  .om-hero__veil { background:linear-gradient(180deg,rgba(3,18,38,.55),rgba(3,18,38,.72)); }
  .om-hero__scroll-cue { bottom:10px; width:38px; height:38px; }
  .om-section { padding:54px 20px; }
  .om-section__head { margin-bottom:28px; }
  .om-section__head::after { margin-top:16px; }
  .om-home-library > .wp-block-buttons { margin-top:34px!important; }
  .om-hero__buttons .wp-block-button,
  .om-hero__buttons .wp-block-button__link,
  .om-cta .wp-block-button,
  .om-cta .wp-block-button__link { width:100%; text-align:center; }
  .om-footer { padding:30px 20px 26px; }
  .om-footer__signature { width:min(100%,350px); }

  .om-reading-shell { padding:26px 16px 68px; }
  .om-reading-card { padding:27px 20px 32px; border-radius:22px; }
  .om-reading-card .wp-block-post-title { font-size:clamp(2.25rem,11vw,3.55rem); }
  .om-reading-content { font-size:1.01rem; line-height:1.62; }
  .om-reading-content h2 { margin-top:1.55em; }
  .om-reading-content p { margin-block:.7em; }
  .om-reading-actions { align-items:stretch; flex-direction:column; margin-top:30px; }
  .om-reading-actions a, .om-theme-share-button { justify-content:center; width:100%; }
  .om-studies-archive { padding:42px 18px 72px; }
}

@media (max-width: 400px) {
  .om-header { padding-inline:14px; }
  .om-header__signature { width:clamp(198px,60vw,220px); height:auto; aspect-ratio:4 / 1; }
  .om-site-nav { inset-block-start:70px; }
  .admin-bar .om-site-nav { inset-block-start:116px; }
  .om-footer__signature { width:min(100%,310px); }
}

@media (min-width: 783px) {
  .om-site-nav { display:block!important; }
}

@media (prefers-reduced-motion: reduce) {
  .om-hero__media--video { display:none; }
  html { scroll-behavior:auto; }
  *, *::before, *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; }
}


/* ==========================================================
   v4 — Navegação modular e acabamento contemporâneo
   ========================================================== */
.om-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--wp--style--global--wide-size, 1120px);
  margin-inline: auto;
}

.om-brand__lockup {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
  text-decoration: none;
}

.om-site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.om-site-nav__list > li { margin: 0; padding: 0; }

.om-site-nav__list > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 2px;
  color: var(--om-navy);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.om-site-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--om-burgundy);
  transition: left 160ms ease, right 160ms ease;
}

.om-site-nav__list > li > a:hover,
.om-site-nav__list > li > a:focus-visible {
  color: var(--om-burgundy);
}

.om-site-nav__list > li > a:hover::after,
.om-site-nav__list > li > a:focus-visible::after {
  left: 0;
  right: 0;
}

.om-site-nav__list > li.current-menu-item > a,
.om-site-nav__list > li > a[aria-current="page"] {
  color: var(--om-burgundy);
  font-weight: 800;
}

.om-site-nav__list > li.current-menu-item > a::after,
.om-site-nav__list > li > a[aria-current="page"]::after {
  left: 0;
  right: 0;
}

/* Nenhum módulo recebe marcador permanente: o destaque indica somente a página atual. */
.om-site-nav__list .ombyv-auto-menu-item > a::before,
.om-site-nav__list .om-bible-menu-item > a::before {
  display: none !important;
  content: none !important;
}

@media (max-width: 980px) {
  .om-brand__lockup { min-width: 0; }
  .om-site-nav__list { gap: 12px; }
  .om-site-nav__list > li > a { font-size: .84rem; }
}

@media (max-width: 820px) {
  .om-site-nav__list {
    display: block;
  }
  .om-site-nav__list > li > a {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 12px 4px;
    font-size: .98rem;
  }
  .om-site-nav__list > li > a::after { display: none; }
}


/* ==========================================================
   v4.0.1 — Integração de páginas modulares e navegação ativa
   ========================================================== */

/* A página /biblia/ possui template próprio de altura natural.
   O tema fornece apenas o palco; o plugin continua dono da interface. */
.om-bible-page-shell {
  min-height: 0;
  padding: 14px 14px 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(207,159,59,.08), transparent 25%),
    var(--om-cream);
}
.om-bible-page-frame {
  width: min(100%, 860px);
  min-height: 0;
  margin-inline: auto;
}
.om-bible-page-content {
  min-height: 0;
  margin: 0;
  padding: 0;
}
.om-bible-page-content > :first-child { margin-top: 0; }
.om-bible-page-content > :last-child { margin-bottom: 0; }

/* Fallback caso o WordPress use o template genérico por cache/customização. */
body.ombyv-bible-page .om-reading-shell {
  min-height: 0 !important;
  padding: 14px 14px 18px !important;
}
body.ombyv-bible-page .om-reading-breadcrumb,
body.ombyv-bible-page .om-reading-card > .wp-block-post-title,
body.ombyv-bible-page .om-reading-actions {
  display: none !important;
}
body.ombyv-bible-page .om-reading-frame {
  width: min(100%, 860px);
  min-height: 0 !important;
}
body.ombyv-bible-page .om-reading-card,
body.ombyv-bible-page .om-reading-content {
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Menu móvel: leitura simples e estado ativo sem bolinha decorativa. */
@media (max-width: 782px) {
  .om-site-nav a { text-align: left; }
  .om-site-nav__list > li.current-menu-item > a,
  .om-site-nav__list > li > a[aria-current="page"] {
    color: var(--om-burgundy);
    font-weight: 800;
  }
  .om-bible-page-shell { padding: 10px 8px 14px; }
  body.ombyv-bible-page .om-reading-shell { padding: 10px 8px 14px !important; }
}


/* =========================================================
   v4.0.3 — Capa editorial controlada pelo Destaques v1.2.0
   ========================================================= */

/* Remove o espaço do bloco Shortcode entre o cabeçalho e a capa. */
#conteudo-principal,
#conteudo-principal > .wp-block-shortcode:first-child {
  margin-block-start: 0 !important;
}

#conteudo-principal > .wp-block-shortcode:first-child {
  margin-block-end: 0 !important;
}

/* Picture precisa ocupar a camada inteira quando existe imagem mobile. */
.om-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Enquadramento configurável da mídia. */
.om-media-pos--center .om-hero__media { object-position: center center; }
.om-media-pos--left .om-hero__media { object-position: left center; }
.om-media-pos--right .om-hero__media { object-position: right center; }
.om-media-pos--top .om-hero__media { object-position: center top; }
.om-media-pos--bottom .om-hero__media { object-position: center bottom; }

/* Intensidade do overlay. Em mídia real, preserve a fotografia. */
.om-hero.has-media.om-overlay--light .om-hero__veil {
  background:
    linear-gradient(90deg, rgba(3,18,38,.42) 0%, rgba(3,18,38,.23) 48%, rgba(3,18,38,.10) 78%, rgba(3,18,38,.18) 100%),
    linear-gradient(180deg, rgba(3,18,38,.06), rgba(3,18,38,.18));
}

.om-hero.has-media.om-overlay--medium .om-hero__veil {
  background:
    linear-gradient(90deg, rgba(3,18,38,.62) 0%, rgba(3,18,38,.43) 48%, rgba(3,18,38,.20) 78%, rgba(3,18,38,.30) 100%),
    linear-gradient(180deg, rgba(3,18,38,.10), rgba(3,18,38,.25));
}

.om-hero.has-media.om-overlay--strong .om-hero__veil {
  background:
    linear-gradient(90deg, rgba(3,18,38,.80) 0%, rgba(3,18,38,.66) 48%, rgba(3,18,38,.40) 78%, rgba(3,18,38,.50) 100%),
    linear-gradient(180deg, rgba(3,18,38,.18), rgba(3,18,38,.34));
}

/* Três estilos de área de texto. */
.om-content-style--none .om-hero__content {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 2px 20px rgba(3,18,38,.38);
}

.om-content-style--glass .om-hero__content {
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(3,18,38,.36), rgba(3,18,38,.18));
  box-shadow: 0 24px 70px rgba(3,18,38,.20);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.om-content-style--dark .om-hero__content {
  border-color: rgba(255,255,255,.12);
  background: rgba(3,18,38,.74);
  box-shadow: 0 28px 80px rgba(3,18,38,.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Posição horizontal. */
.om-content-x--left .om-hero__content { margin-right: auto; text-align: left; }
.om-content-x--center .om-hero__content { margin-inline: auto; text-align: center; }
.om-content-x--right .om-hero__content { margin-left: auto; text-align: right; }

.om-content-x--center .om-hero__buttons { justify-content: center; }
.om-content-x--right .om-hero__buttons { justify-content: flex-end; }

/* Posição vertical. */
.om-content-y--top { align-items: flex-start; }
.om-content-y--center { align-items: center; }
.om-content-y--bottom { align-items: flex-end; }

.om-content-y--top .om-hero__inner { margin-top: clamp(14px, 4vh, 52px); }
.om-content-y--bottom .om-hero__inner { margin-bottom: clamp(26px, 5vh, 64px); }

/* Tamanhos configuráveis do título — desktop. */
.om-title-desktop--small h1 { font-size: clamp(2.25rem, 4.4vw, 3.8rem); }
.om-title-desktop--medium h1 { font-size: clamp(2.7rem, 5.5vw, 4.6rem); }
.om-title-desktop--large h1 { font-size: clamp(3.2rem, 7vw, 5.7rem); }

/* A capa continua sendo uma única tela, mas não precisa forçar excesso de altura. */
.om-hero.has-media {
  min-height: min(780px, calc(100svh - 82px));
}

@media (max-width: 782px) {
  /* Cabeçalho -> capa sem a faixa vazia vista no teste mobile. */
  #conteudo-principal,
  #conteudo-principal > .wp-block-shortcode:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .om-hero {
    min-height: calc(100svh - 82px);
    padding: 34px 20px 56px;
  }

  .om-hero__content {
    width: 100%;
    padding: 24px 22px;
    border-radius: 24px;
  }

  /* Sem card significa realmente sem caixa: a fotografia fica visível. */
  .om-content-style--none .om-hero__content {
    padding: 0 2px;
  }

  /* Tamanhos configuráveis do título — celular. */
  .om-title-mobile--auto h1 { font-size: clamp(2.35rem, 11.2vw, 3.55rem); }
  .om-title-mobile--small h1 { font-size: clamp(1.95rem, 8.7vw, 2.75rem); line-height: 1.02; letter-spacing: -.045em; }
  .om-title-mobile--medium h1 { font-size: clamp(2.25rem, 10.2vw, 3.15rem); line-height: .99; }
  .om-title-mobile--large h1 { font-size: clamp(2.7rem, 12.5vw, 3.8rem); line-height: .96; }

  .om-eyebrow {
    margin-bottom: 12px;
  }

  .om-hero__lead {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .om-hero__buttons {
    margin-top: 22px;
  }

  /* No mobile, o overlay leve deve preservar ainda mais a imagem. */
  .om-hero.has-media.om-overlay--light .om-hero__veil {
    background:
      linear-gradient(180deg, rgba(3,18,38,.24) 0%, rgba(3,18,38,.12) 40%, rgba(3,18,38,.14) 65%, rgba(3,18,38,.30) 100%),
      linear-gradient(90deg, rgba(3,18,38,.28), rgba(3,18,38,.08));
  }

  .om-hero.has-media.om-overlay--medium .om-hero__veil {
    background:
      linear-gradient(180deg, rgba(3,18,38,.38) 0%, rgba(3,18,38,.25) 42%, rgba(3,18,38,.28) 68%, rgba(3,18,38,.42) 100%),
      linear-gradient(90deg, rgba(3,18,38,.40), rgba(3,18,38,.14));
  }
}


/* =========================================================
   v4.0.4 — Refinamento mobile da capa editorial
   ========================================================= */

/* Zera o gap global do Site Editor entre o cabeçalho e o conteúdo da Home. */
body.home .wp-site-blocks > main#conteudo-principal,
body.home .wp-site-blocks > .wp-block-group#conteudo-principal,
body.home main#conteudo-principal {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

/* O primeiro shortcode não deve criar respiro antes da capa. */
body.home #conteudo-principal > .wp-block-shortcode:first-child,
body.home #conteudo-principal > .wp-block-shortcode:first-child > *:first-child {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

/* Em modo Sem card, zera toda herança visual da caixa-base. */
.om-hero.om-content-style--none .om-hero__content {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* O card translúcido continua disponível, mas deixa mais fotografia visível. */
.om-hero.om-content-style--glass .om-hero__content {
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(3,18,38,.25), rgba(3,18,38,.10));
  box-shadow: 0 18px 52px rgba(3,18,38,.16);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
}

@media (max-width: 782px) {
  /* Capa encosta no cabeçalho; sem faixa creme intermediária. */
  body.home .wp-site-blocks > main#conteudo-principal,
  body.home main#conteudo-principal,
  body.home #conteudo-principal,
  body.home #conteudo-principal > .wp-block-shortcode:first-child {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Título pequeno realmente compacto para séries longas. */
  .om-title-mobile--small h1 {
    font-size: clamp(1.78rem, 7.7vw, 2.38rem);
    line-height: 1.04;
    letter-spacing: -.038em;
  }

  /* Sem card: texto direto sobre a foto, com sombra discreta para leitura. */
  .om-hero.om-content-style--none .om-hero__content {
    width: min(100%, 94%);
    padding: 0 !important;
    text-shadow: 0 2px 16px rgba(3,18,38,.48);
  }

  /* O overlay leve fica ainda mais fotográfico no celular. */
  .om-hero.has-media.om-overlay--light .om-hero__veil {
    background:
      linear-gradient(180deg, rgba(3,18,38,.17) 0%, rgba(3,18,38,.07) 38%, rgba(3,18,38,.09) 67%, rgba(3,18,38,.23) 100%),
      linear-gradient(90deg, rgba(3,18,38,.22), rgba(3,18,38,.04));
  }

  /* Um pouco mais de imagem útil e menos massa de conteúdo. */
  .om-hero__lead {
    max-width: 32rem;
  }
}

/* =========================================================
   v4.0.5 — Remove estruturalmente o espaço header → hero na Home
   ========================================================= */

/*
 * O WordPress aplica o blockGap global entre os blocos de primeiro nível
 * de .wp-site-blocks. Na Home isso criava uma faixa creme entre o template
 * part do cabeçalho e <main>, mesmo quando o hero tinha margin-top: 0.
 * Aqui zeramos apenas a relação cabeçalho → conteúdo da Home.
 */
body.home .wp-site-blocks {
  row-gap: 0 !important;
  gap: 0 !important;
}

body.home .wp-site-blocks > header.wp-block-template-part,
body.home .wp-site-blocks > .wp-block-template-part:first-child,
body.home .wp-site-blocks > header.wp-block-template-part + main,
body.home .wp-site-blocks > .wp-block-template-part:first-child + main,
body.home .wp-site-blocks > main#conteudo-principal {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Compatibilidade com CSS gerado pelo motor de estilos do WordPress. */
body.home .wp-site-blocks > header.wp-block-template-part + *,
body.home .wp-site-blocks > .wp-block-template-part:first-child + * {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

/* O próprio cabeçalho não deve reservar espaço abaixo dele. */
body.home header.wp-block-template-part,
body.home header.wp-block-template-part > .om-header,
body.home .om-header {
  margin-bottom: 0 !important;
}

/* O primeiro conteúdo do main também encosta no início do main. */
body.home #conteudo-principal,
body.home #conteudo-principal > :first-child,
body.home #conteudo-principal > .wp-block-shortcode:first-child,
body.home #conteudo-principal .om-hero:first-child {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

