:root {
  --ink: #08344a;
  --ink-strong: #06293a;
  --sky: #0d91c4;
  --blue: #096ea3;
  --gold: #f0aa1c;
  --rose: #c72f54;
  --green: #49785e;
  --paper: #ffffff;
  --mist: #eef6f8;
  --line: #d9e7ec;
  --text: #263944;
  --muted: #667986;
  --danger: #8f1730;
  --success: #22663f;
  --shadow: 0 18px 45px rgba(6, 41, 58, 0.14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.5;
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(8, 52, 74, 0.12);
  backdrop-filter: blur(12px);
}

.utility-bar,
.main-nav,
.news-band,
.quick-services,
.schedule,
.media-section,
.archive-section,
.intro-band,
.narrow,
.dashboard {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.utility-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.utility-bar .spacer { flex: 1; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.social-icon-only {
  width: 30px;
  height: 30px;
  justify-content: center;
  gap: 0;
}

.social-icon-only span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.main-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  color: var(--ink);
}

.brand-logo {
  width: 54px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(6, 41, 58, 0.12));
}

.brand strong,
.brand small { display: block; }
.brand small {
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.button.small { min-height: 36px; padding: 0 14px; font-size: 0.82rem; }
.button-soft { color: #fff; background: var(--rose); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 12px 30px rgba(9, 110, 163, 0.25); }
.button-outline { color: var(--blue); border-color: var(--blue); background: transparent; }

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  padding: 10px;
  border: 0;
  background: var(--ink);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  min-height: clamp(680px, 88vh, 920px);
  position: relative;
  display: grid;
  align-items: start;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero img { object-position: 30% 40%; }

/* Contraste para o título na parte superior da imagem. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 22, 33, 0.72) 0%, rgba(4, 22, 33, 0.25) 30%, rgba(4, 22, 33, 0) 60%, rgba(4, 22, 33, 0.2) 100%),
    linear-gradient(270deg, rgba(4, 22, 33, 0.55) 0%, rgba(4, 22, 33, 0) 55%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(32px, 6vh, 64px) 0 0;
  color: #fff;
  display: grid;
  justify-items: end;
  text-align: right;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero h1 {
  max-width: 820px;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.42);
}

.hero-actions,
.service-grid,
.media-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-actions a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.intro-band,
.news-band,
.quick-services,
.schedule,
.media-section {
  padding: 76px 0;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.intro-band p:last-child {
  color: var(--muted);
  font-size: 1.2rem;
}

.section-heading { margin-bottom: 28px; }
.section-heading.centered { text-align: center; }

h1, h2, h3 { color: var(--ink); }
h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}
h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) 1.2fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.placeholder-media {
  min-height: 240px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(240, 170, 28, 0.7), rgba(9, 110, 163, 0.88)),
    radial-gradient(circle at 30% 20%, #fff 0 8%, transparent 9%);
}

.featured-photo {
  width: 100%;
  min-height: 240px;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.tag {
  margin: 0 0 8px;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-card p:not(.tag),
.campaign-strip p,
.newsletter p,
.liturgy-card p { color: var(--muted); }

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--rose);
  font-weight: 900;
  text-transform: uppercase;
}

.heading-link {
  color: inherit;
}

.heading-link:hover,
.heading-link:focus-visible {
  color: var(--blue);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.campaign-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 41, 58, 0.94), rgba(9, 110, 163, 0.82)),
    linear-gradient(135deg, var(--ink), var(--green));
}

.campaign-strip h2,
.campaign-strip p { color: #fff; }
.campaign-strip p { margin-bottom: 0; }
.mass-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}
.mass-grid span {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}
.mass-grid strong {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.source-note {
  font-size: 0.9rem;
  color: var(--muted);
}
.campaign-strip .source-note {
  color: rgba(255, 255, 255, 0.78);
}

.liturgy-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 38px;
  border-top: 4px solid #25a760;
  background: #fff;
  box-shadow: 0 18px 50px rgba(6, 41, 58, 0.1);
}

.liturgy-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.liturgy-topbar h2 {
  color: #25a760;
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
}

.liturgy-date-form {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  text-align: left;
}

.liturgy-date-form label {
  grid-column: 1 / -1;
  margin: 0;
}

.liturgy-date-form input {
  min-height: 42px;
}

.liturgy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 6px;
  color: #25a760;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.liturgy-title {
  margin-bottom: 8px;
  color: #8c7e5b;
  font-size: 1.35rem;
}

.liturgy-page .reference {
  margin-bottom: 24px;
}

.liturgy-page small {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.liturgy-readings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.liturgy-readings li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--mist);
  font-weight: 800;
}

.liturgy-card a {
  color: var(--blue);
  font-weight: 900;
}

.liturgy-carousel {
  display: grid;
  gap: 22px;
}

.liturgy-slides {
  min-height: 420px;
  display: grid;
}

.liturgy-slide {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 34px 0 4px;
  border-top: 1px solid #ece7dd;
  background: #fff;
  text-align: left;
}

.liturgy-slide[hidden] {
  display: none;
}

.liturgy-slide .tag {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 1rem;
  text-transform: none;
}

.liturgy-slide p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
}

.liturgy-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.liturgy-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e9e2d6;
  border-radius: 0;
}

.liturgy-tabs button {
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid #e9e2d6;
  color: #9a8e72;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.liturgy-tabs button:last-child {
  border-right: 0;
}

.liturgy-tabs button[aria-current="true"] {
  color: #fff;
  background: #8c7e5b;
}

.liturgy-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: #fff;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.liturgy-arrow:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.liturgy-full {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  text-align: left;
}

.liturgy-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.liturgy-section h3 {
  margin-bottom: 12px;
  color: var(--rose);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.liturgy-section p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.liturgy-page small,
.reference,
.muted {
  color: var(--muted);
}

.daily-liturgy-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 86px;
}

.daily-liturgy-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.daily-liturgy-head h1 {
  margin: 0 0 12px;
  color: #25a760;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-style: italic;
  line-height: 1;
}

.daily-liturgy-head p:last-child {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.daily-liturgy-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid #25a760;
  background: #fff;
  box-shadow: 0 12px 34px rgba(6, 41, 58, 0.08);
}

.daily-liturgy-body {
  display: grid;
  gap: 34px;
}

.daily-liturgy-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.daily-liturgy-date {
  display: grid;
  gap: 8px;
  color: #25a760;
  font-weight: 900;
}

.daily-liturgy-date span {
  font-size: 1.45rem;
}

.daily-liturgy-date small {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.daily-liturgy-summary h2 {
  margin-bottom: 8px;
  color: #8c7e5b;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.daily-liturgy-summary p:last-child {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.daily-word {
  display: grid;
  gap: 22px;
}

.daily-word .liturgy-page {
  max-width: none;
  width: 100%;
  margin: 0;
}

.daily-reading {
  padding: 0 0 28px;
  border-bottom: 1px solid #ece7dd;
}

.daily-reading h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.08rem;
}

.daily-reading p {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
}

.daily-source {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.daily-source a {
  color: var(--blue);
  font-weight: 800;
}

.homily-box {
  padding: 28px 0 4px;
  border-top: 1px solid #ece7dd;
}

.homily-box h3 {
  margin-bottom: 12px;
  color: #8c7e5b;
  font-size: 1.35rem;
}

.homily-box p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.visit-zone {
  width: 100%;
  padding: 76px max(16px, calc((100% - 1180px) / 2));
  background: #f7fbfc;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.visit-grid > a {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background:
    linear-gradient(180deg, transparent, rgba(6, 41, 58, 0.84)),
    linear-gradient(135deg, var(--sky), var(--green));
}

.visit-grid > a small {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.pastorais-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.pastorais-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
}

.pastorais-page .section-heading p:last-child {
  max-width: 720px;
  color: var(--muted);
}

.pastorais-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pastoral-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.pastoral-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mist);
}

.pastoral-photo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 2rem;
  font-weight: 900;
}

.pastoral-photo.pastoral-art,
.community-item img.pastoral-art,
.pastoral-heading-art {
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.community-item img.pastoral-art { width: 88px; height: 88px; }
.pastoral-heading-art { width: 140px; height: 140px; margin-bottom: 20px; }

.pastoral-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.pastoral-card p:not(.tag) {
  color: var(--muted);
}

.pastoral-card .button {
  margin-top: 8px;
}

.page-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.06);
}

.page-subnav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid transparent;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-subnav a[aria-current="page"] {
  color: #fff;
  background: var(--blue);
}

.paroquia-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.paroquia-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
}

.paroquia-page .section-heading > p:last-child {
  max-width: 780px;
  color: var(--muted);
}

.church-pyramid {
  padding: 22px 0 48px;
}

.pyramid-stack {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.pyramid-level {
  min-height: 112px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgba(6, 41, 58, 0.08);
}

.pyramid-level-1 { width: min(360px, 100%); border-top: 4px solid var(--gold); }
.pyramid-level-2 { width: min(520px, 100%); border-top: 4px solid var(--green); }
.pyramid-level-3 { width: min(700px, 100%); border-top: 4px solid var(--blue); }
.pyramid-level-4 { width: min(880px, 100%); border-top: 4px solid var(--rose); }

.pyramid-level h3 {
  font-size: 1.15rem;
}

.clergy-photo {
  width: 112px;
  height: 148px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  background: var(--mist);
}

.clergy-photo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 2rem;
  font-weight: 900;
}

.pyramid-level p:last-child {
  margin: 0;
  color: var(--muted);
}

.paroquia-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.paroquia-story,
.paroquia-pastorais {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.paroquia-story h2,
.paroquia-pastorais h2 {
  margin-bottom: 14px;
}

.paroquia-story p:not(.eyebrow),
.paroquia-pastorais p:not(.eyebrow) {
  color: var(--muted);
}

.historia-article {
  max-width: 820px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.historia-article p {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.85;
}

.history-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.history-timeline article {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.history-timeline time {
  display: block;
  margin-bottom: 12px;
  color: var(--sky);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-timeline h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.history-timeline p {
  color: var(--muted);
}

.priests-timeline {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.priests-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 128px;
  width: 2px;
  background: var(--line);
}

.priest-entry {
  position: relative;
  display: grid;
  grid-template-columns: 96px 112px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.priest-period {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--blue);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(6, 41, 58, 0.06);
  z-index: 1;
}

.priest-photo {
  width: 112px;
  height: 148px;
  border: 4px solid #fff;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  background: var(--mist);
  box-shadow: 0 10px 24px rgba(6, 41, 58, 0.12);
  z-index: 1;
}

.priest-photo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 2.2rem;
  font-weight: 900;
}

.priest-info {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.priest-info h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.priest-info p:not(.tag) {
  color: var(--muted);
}

.pastoral-disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.whatsapp-cta {
  gap: 8px;
  text-transform: none;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.whatsapp-float {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #128c46;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
  transition: background-color .2s ease;
}

.whatsapp-float-label {
  max-width: 0;
  margin-right: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  transition: max-width .25s ease, margin-right .25s ease, opacity .2s ease;
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  max-width: 160px;
  margin-right: 10px;
  opacity: 1;
}

.whatsapp-float img {
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.whatsapp-float:hover { background: #0b7037; }

.whatsapp-float:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 0 10px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float-label { transition: none; }
}

.capelas-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.capelas-page h1,
.capela-hero-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
}

.capelas-page .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
}

.capelas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.capela-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(6, 41, 58, 0.08);
}

.capela-card-banner {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
}

.capela-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 41, 58, 0.08), rgba(6, 41, 58, 0.82));
}

.capela-card-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.capela-card-banner span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.capela-card-body {
  padding: 24px;
}

.capela-card h2,
.capela-info-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
}

.capela-card p,
.capela-info-card p {
  color: var(--muted);
}

.capela-times {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.capela-times span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbfc;
  color: var(--text);
  font-weight: 800;
}

.capela-times strong {
  color: var(--ink);
}

.capela-hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.capela-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capela-hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 76px;
  color: #fff;
}

.capela-hero-content h1 {
  max-width: 760px;
  color: #fff;
}

.capela-hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.capela-detail-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.capela-info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 18px;
}

.capela-info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.capela-times-large span {
  padding: 14px;
  font-size: 1.05rem;
}

.capela-next {
  margin-top: 0;
}

.newsletter-section {
  padding: 76px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(120deg, #eef6f8, #f7fbfc 65%);
  border-block: 1px solid var(--line);
}

.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.newsletter-intro h2 {
  max-width: 480px;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.newsletter-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  border: 1px solid #c5dfe9;
  border-radius: 18px;
  color: var(--blue);
  background: #fff;
}

.newsletter-icon svg { width: 30px; height: 30px; }
.newsletter-subtitle { max-width: 470px; font-size: 1.08rem; line-height: 1.75; }
.newsletter-detail { max-width: 420px; margin-bottom: 0; color: var(--muted); }

.newsletter-layout .newsletter {
  grid-column: auto;
  grid-row: auto;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(6, 41, 58, 0.08);
}

.newsletter-layout .newsletter h3 { margin: 0 0 6px; font-size: 1.3rem; }
.newsletter-layout .newsletter > p { color: var(--muted); }
.newsletter-layout .newsletter label:not(.checkbox) { margin: 18px 0; }
.newsletter-layout .newsletter input:not([type="checkbox"]) { min-height: 50px; }
.newsletter-layout .newsletter input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.newsletter-layout .newsletter .checkbox { margin: 22px 0; font-weight: 400; color: var(--muted); line-height: 1.65; }
.newsletter-layout .newsletter .checkbox a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.newsletter-layout .newsletter .button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; text-transform: none; }
.newsletter-layout .form-note:empty { display: none; }
.newsletter-layout .form-note:not(:empty) { margin-top: 16px; color: var(--ink); }

@media (max-width: 900px) {
  .newsletter-layout { grid-template-columns: 1fr; gap: 32px; max-width: 640px; margin-inline: auto; }
  .newsletter-intro h2, .newsletter-subtitle, .newsletter-detail { max-width: none; }
}

@media (max-width: 560px) {
  .newsletter-section { padding-block: 48px; }
}

.newsletter {
  grid-column: span 2;
  grid-row: span 2;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

textarea { resize: vertical; }
.checkbox {
  grid-template-columns: 20px 1fr;
  align-items: start;
}
.checkbox input { width: auto; min-height: 0; margin-top: 4px; }
.form-note {
  min-height: 24px;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.archive-section {
  padding: 76px 0;
}
.archive-section .section-heading p:last-child {
  max-width: 680px;
  color: var(--muted);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.archive-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}
.archive-card img,
.archive-card-fallback {
  width: 100%;
  height: 180px;
}
.archive-card img {
  object-fit: cover;
}
.archive-card-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.archive-card > div {
  padding: 18px;
}
.archive-card > div:not(.archive-card-fallback) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.archive-card .text-link {
  margin-top: auto;
  padding-top: 24px;
}
.archive-card time {
  display: block;
  margin-bottom: 8px;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.archive-card h3 {
  min-height: 54px;
}
.archive-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.archive-source {
  margin-top: 24px;
}

.blog-list-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.blog-list-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
}

.blog-list-page .section-heading p:last-child {
  max-width: 680px;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  color: var(--ink);
  font-weight: 900;
}

.pagination a,
.pagination span,
.pagination strong {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pagination a {
  color: var(--blue);
}

.pagination span {
  color: var(--muted);
}

.blog-post-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.blog-post-page header {
  margin: 20px 0 30px;
}

.blog-post-page time {
  display: block;
  margin-bottom: 12px;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-post-page h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.blog-post-cover {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.blog-post-content {
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.8;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: var(--radius);
}

.blog-post-content a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
}

.blog-post-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  background: var(--mist);
}

.schedule {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.schedule .button {
  justify-self: start;
  grid-column: 1;
}

.event-list {
  grid-row: span 2;
  display: grid;
  gap: 12px;
}

.event-list a {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.event-list time {
  height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  text-transform: uppercase;
}

.event-list time strong {
  font-size: 1.55rem;
  line-height: 1;
}

.event-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.media-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.media-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-links .pascom-link {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: var(--blue);
}

.media-links .pascom-link:hover { background: var(--ink); }

.media-links a {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  background: var(--mist);
  text-align: center;
}

.media-links .social-link {
  display: flex;
  gap: 10px;
}

.media-links .social-icon {
  width: 24px;
  height: 24px;
}

.site-footer {
  color: #c9d9e2;
  background: var(--ink-strong);
  font-size: 0.92rem;
}

.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.05fr;
  gap: 40px;
  padding: 64px 0 56px;
}

.footer-title {
  margin: 0 0 28px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-logo {
  display: block;
  width: fit-content;
  margin: 0 auto 22px;
}

.footer-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.music-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 72px; }
.music-page .section-heading > p:not(.eyebrow) { max-width: 740px; color: var(--muted); }
.music-layout { display: grid; gap: 28px; }
.music-layout-edit { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; }
.music-filters { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 28px; }
.music-filters label { margin: 0; }
.music-group { margin-top: 28px; }
.music-group > h2 { color: var(--ink); font-size: 1.35rem; }
.music-card { margin-top: 14px; }
.music-card h3 { margin: 0 0 8px; color: var(--ink); }
.music-notes { white-space: pre-line; overflow-wrap: anywhere; }
.music-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.music-editor { scroll-margin-top: 110px; }
.music-editor h2 { margin-top: 0; }
.music-editor > .button { width: 100%; }
.music-editor > .text-link { display: inline-block; margin-top: 16px; }
.music-empty p { margin-bottom: 0; color: var(--muted); }
@media (max-width: 900px) {
  .music-layout-edit { grid-template-columns: 1fr; }
  .music-editor { grid-row: 1; }
}
@media (max-width: 560px) {
  .music-filters { grid-template-columns: 1fr; }
  .music-page { padding-top: 32px; }
}

.footer-brand { text-align: center; }

.footer-brand p {
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.8;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li { margin-top: 14px; }

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 18px;
  color: #e4eef3;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: rotate(45deg);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 0 0 20px;
}

.footer-contact-item + .footer-contact-item {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-item strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-contact-item p {
  margin: 0;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  margin: 8px 0;
  color: #e4eef3;
  transition: color 0.2s ease;
}

.footer-social:hover,
.footer-social:focus-visible { color: var(--gold); }

.footer-social .social-icon {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 4px;
  background: #fff;
  box-sizing: content-box;
}

.footer-review {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-review h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.95rem;
}

.footer-review p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.footer-review-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--ink-strong);
  background: var(--gold);
  font-weight: 800;
  line-height: 1.4;
}

.footer-review-link img { flex-shrink: 0; }

.footer-review-link:hover { background: #fff; }

.footer-review-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.footer-bottom-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  font-size: 0.86rem;
}

.footer-bottom a {
  color: #fff;
  font-weight: 800;
}

.footer-bottom a:hover { color: var(--gold); }

.auth {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 60px 16px;
  background: var(--mist);
}

.panel,
.callout,
.notice {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.auth .panel { width: min(460px, 100%); }
.auth h1,
.narrow h1,
.dashboard h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.alert,
.success {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}
.alert { color: var(--danger); background: #fde7ec; }
.success { color: var(--success); background: #e2f4ea; }

.dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  padding: 70px 0;
}
.dashboard aside {
  border-right: 1px solid var(--line);
  padding-right: 26px;
}
.dashboard-content > * { margin-bottom: 24px; }
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--mist);
  font-weight: 800;
}
.link-button {
  border: 0;
  background: none;
  color: var(--rose);
  padding: 20px 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
}
.radio {
  grid-template-columns: 20px 1fr;
  align-items: center;
  font-weight: 600;
}
.radio input { width: auto; min-height: 0; }

.narrow {
  max-width: 820px;
  min-height: 65vh;
  padding: 76px 0;
}
.narrow.wide { max-width: 1100px; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.legal {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}
.legal h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
}
.legal h2 {
  margin-top: 32px;
  font-size: 1.45rem;
}
.legal h3 {
  margin: 24px 0 8px;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin: 8px 0;
}
.legal a {
  color: var(--blue);
  font-weight: 800;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  color: var(--ink);
  background: var(--mist);
  font-size: 0.86rem;
  text-transform: uppercase;
}
.legal-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .utility-bar { display: none; }
  .menu-toggle { display: inline-block; }
  .main-nav { flex-wrap: wrap; }
  .nav-links {
    width: 100%;
    display: none;
    padding: 0 0 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.is-open { display: flex; }
  .hero-actions,
  .service-grid,
  .news-grid,
  .archive-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-card,
  .schedule,
  .media-section,
  .intro-band,
  .dashboard,
  .paroquia-sections {
    grid-template-columns: 1fr;
  }
  .visit-grid,
  .pastorais-grid,
  .history-timeline,
  .capelas-grid,
  .capela-info-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .capela-info-card:first-child {
    grid-column: 1 / -1;
  }
  .newsletter { grid-column: 1 / -1; }
  .footer-grid { gap: 40px 32px; }
  .campaign-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .brand { min-width: 0; }
  .brand-logo {
    width: 42px;
    height: 58px;
  }
  .brand small { display: none; }
  .hero { min-height: 700px; }
  .hero-content {
    justify-items: start;
    text-align: left;
  }
  .hero-actions,
  .service-grid,
  .news-grid,
  .archive-grid,
  .liturgy-readings,
  .visit-grid,
  .pastorais-grid,
  .history-timeline,
  .capelas-grid,
  .capela-info-grid,
  .media-links,
  .footer-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .capela-info-card:first-child {
    grid-column: auto;
  }
  .capela-hero {
    min-height: 620px;
  }
  .pastoral-card {
    grid-template-columns: 76px 1fr;
    padding: 18px;
  }
  .pastoral-photo {
    width: 76px;
    height: 76px;
  }
  .featured-card,
  .panel,
  .callout,
  .notice {
    padding: 16px;
  }
  .liturgy-page {
    padding: 24px 18px;
  }
  .liturgy-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .liturgy-date-form {
    grid-template-columns: 1fr;
  }
  .daily-liturgy-head,
  .daily-liturgy-summary {
    grid-template-columns: 1fr;
  }
  .daily-liturgy-form {
    width: 100%;
  }
  .page-subnav a {
    flex: 1 1 100%;
  }
  .pyramid-level {
    width: 100%;
    text-align: left;
  }
  .priests-timeline::before {
    left: 55px;
  }
  .priest-entry {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .priest-period {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .priest-photo {
    width: 74px;
    height: 98px;
  }
  .liturgy-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .liturgy-tabs button:nth-child(2n) {
    border-right: 0;
  }
  .liturgy-slides,
  .liturgy-slide {
    min-height: 0;
  }
  .footer-grid { padding: 48px 0 40px; }
  .footer-title { margin-bottom: 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ===== Página do app (PWA) ===== */
.app-page { max-width: 1120px; margin: 0 auto; padding: 56px 20px 72px; }
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.app-hero-icon { width: 120px; height: 120px; border-radius: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.app-hero h1 { color: var(--ink); margin: 4px 0 12px; }
.app-hero p { max-width: 640px; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.app-status { margin: 0; color: var(--ink); font-weight: 700; }
.app-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.app-step-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.app-step-card.is-current { background: var(--paper); border-color: var(--blue); box-shadow: var(--shadow); }
.app-step-card h2 { font-size: 1.1rem; color: var(--ink); margin: 0 0 12px; }
.app-step-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.app-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app-features div { border-top: 3px solid var(--gold); padding-top: 12px; display: grid; gap: 4px; }
.app-features strong { color: var(--ink); }
.app-features span { color: var(--text); font-size: 0.92rem; }
.app-offline { text-align: center; max-width: 560px; }
.app-offline img { margin: 0 auto 16px; display: block; }
@media (max-width: 860px) {
  .app-steps, .app-features { grid-template-columns: 1fr; }
  .app-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .app-page { padding-top: 36px; }
  .app-hero { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .app-hero-icon { width: 88px; height: 88px; border-radius: 20px; }
  .app-features { grid-template-columns: 1fr; }
}
.app-push { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 32px; }
.app-push h2 { color: var(--ink); margin: 4px 0 10px; font-size: 1.35rem; }
.app-push-form { display: grid; gap: 12px; }
.app-push-form .app-actions { margin-top: 4px; }
@media (max-width: 860px) { .app-push { grid-template-columns: 1fr; padding: 22px; } }

/* Garante que elementos com o atributo hidden fiquem escondidos mesmo com display definido (ex.: .button) */
[hidden] { display: none !important; }

/* Faixa "Nova versão do app disponível" */
.app-update { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 32px); padding: 12px 14px 12px 20px; background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 700; }
.app-update .button { flex-shrink: 0; }
@media (max-width: 560px) { .app-update { bottom: 12px; gap: 10px; padding: 10px 10px 10px 14px; font-size: 0.9rem; } }

/* Convite para ativar notificações (app instalado) */
.push-invite { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1001; display: flex; gap: 14px; align-items: flex-start; width: min(440px, calc(100% - 32px)); padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.push-invite img { border-radius: 12px; flex-shrink: 0; }
.push-invite strong { display: block; color: var(--ink); margin-bottom: 4px; }
.push-invite span { display: block; color: var(--text); font-size: 0.92rem; }
.push-invite-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ===== Gestão paroquial (Fase 1) ===== */
.gestao { max-width: 1240px; margin: 0 auto; padding: 32px 20px 64px; display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.gestao-nav { position: sticky; top: 16px; display: grid; gap: 4px; padding: 12px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.gestao-nav a { padding: 10px 12px; border-radius: 6px; color: var(--ink); font-weight: 700; text-decoration: none; }
.gestao-nav a:hover { background: #fff; }
.gestao-nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.gestao-content { min-width: 0; }
.gestao-content h1 { color: var(--ink); margin: 4px 0 16px; }
.gestao-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.gestao-title .eyebrow a { color: inherit; }
.gestao-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.gestao-cards a.panel { text-decoration: none; color: var(--text); }
.gestao-cards a.panel:hover { border-color: var(--blue); }
.gestao-cards h2, .gestao-split h2 { font-size: 1.1rem; color: var(--ink); margin: 0 0 8px; }
.gestao-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.gestao-split > div > .panel + .panel { margin-top: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat strong { font-size: 1.8rem; color: var(--ink); }
.stat span { color: var(--muted); font-size: 0.9rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 8px 0; }
.filter-bar label { flex: 1 1 180px; margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table, .table-wrap > table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.data-table th, .data-table td, .table-wrap > table th, .table-wrap > table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th, .table-wrap > table th { background: var(--mist); color: var(--ink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; }
.data-table tr:last-child td, .table-wrap > table tr:last-child td { border-bottom: 0; }
.data-table a, .table-wrap > table a:not(.button) { color: var(--blue); font-weight: 700; }
.gestao-content .panel > h2, .central-main .panel > h2 { margin: 0 0 14px; font-size: 1.3rem; }
.is-muted td { color: var(--muted); }
.person-form fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.person-form legend { font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid label { margin: 8px 0; }
.field-error { color: var(--danger); font-weight: 700; }
.history, .member-list, .role-list, .role-help { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.history ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.history time { font-weight: 700; color: var(--ink); }
.role-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.role-list form, .inline-actions form { margin: 0; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.temp-password code { font-size: 1.3rem; letter-spacing: 0.05em; padding: 6px 10px; background: #fff; border-radius: 6px; }
@media (max-width: 900px) {
  .gestao { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .gestao-nav { position: static; display: flex; overflow-x: auto; }
  .gestao-nav a { white-space: nowrap; }
  .gestao-split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}
.temp-password { margin-bottom: 20px; }
.temp-password h2 { font-size: 1.15rem; margin: 0 0 8px; }
.cep-status { color: var(--muted); font-weight: 600; min-height: 1em; }
.form-grid { align-items: start; }
.form-grid label > input, .form-grid label > select { align-self: start; }
input.is-locked { background: var(--mist); color: var(--ink); cursor: not-allowed; }

/* Verificação em duas etapas */
.twofactor-steps { display: grid; gap: 20px; padding-left: 20px; }
.qr-box { width: 220px; max-width: 100%; margin: 12px 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.qr-box svg { display: block; width: 100%; height: auto; }
.totp-key { font-size: 1.05rem; letter-spacing: 0.06em; word-break: break-all; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.inline-form input { max-width: 180px; font-size: 1.3rem; letter-spacing: 0.2em; text-align: center; }
.recovery-codes { columns: 2; gap: 24px; padding-left: 24px; }
.recovery-codes code { font-size: 1.05rem; letter-spacing: 0.05em; }
.auth-cancel { text-align: center; margin-top: 12px; }

/* ===== Minha área (painel.php) ===== */
.ma { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; display: grid; gap: 28px; }
.ma-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ma-hero { display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 24px; align-items: stretch; padding: 32px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 100%); box-shadow: var(--shadow); }
.ma-hero-main { display: flex; gap: 20px; align-items: center; min-width: 0; }
.ma-avatar { display: grid; place-items: center; width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; }
.ma-date { margin: 0 0 4px; color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; font-weight: 600; }
.ma-hero h1 { margin: 0 0 12px; color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; }
.ma-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-chip { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.82rem; font-weight: 700; }
.ma-account { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
.ma-account form { margin: 0; }
.ma-account-email { margin: 0 0 6px; padding: 0 8px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); word-break: break-all; }
.ma-account-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 8px; background: none; color: #fff; font: inherit; font-weight: 700; font-size: 0.92rem; text-align: left; text-decoration: none; cursor: pointer; }
.ma-account-link:hover, .ma-account-link:focus-visible { background: rgba(255, 255, 255, 0.14); }
.ma-account-link .ma-icon { width: 20px; height: 20px; }
.ma-status { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
.ma-status.is-on { background: #d6f2e1; color: var(--success); }
.ma-status.is-off { background: rgba(255, 255, 255, 0.2); color: #fff; }
.ma-logout { color: #ffd8df; }
.ma-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ma-tile { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.ma-tile .ma-icon { width: 30px; height: 30px; color: var(--blue); margin-bottom: 4px; }
.ma-tile strong { color: var(--ink); font-size: 1.02rem; }
.ma-tile span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.ma-tile:hover, .ma-tile:focus-visible { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6, 41, 58, 0.1); }
.ma-tile.is-primary { background: var(--mist); border-color: #bcdbe6; }
.ma-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.ma-columns.is-single { grid-template-columns: 1fr; }
.ma-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ma-section-head h2 { margin: 0; color: var(--ink); font-size: 1.3rem; }
.ma-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); background: #fff; }
.ma-news { display: grid; gap: 12px; }
.ma-news-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ma-news-date { display: grid; place-content: center; text-align: center; height: 64px; border-radius: 10px; background: var(--mist); color: var(--blue); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.ma-news-date strong { display: block; font-size: 1.5rem; color: var(--ink); }
.ma-news-item h3 { margin: 2px 0 6px; color: var(--ink); font-size: 1.05rem; }
.ma-news-item p { margin: 0; color: var(--text); line-height: 1.55; }
.ma-poll { padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.ma-poll h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.05rem; }
.ma-poll-deadline { color: var(--muted); font-size: 0.86rem; }
.ma-poll-done { margin: 8px 0 0; color: var(--success); }
@media (max-width: 860px) {
  .ma { padding-top: 20px; gap: 20px; }
  .ma-hero { grid-template-columns: 1fr; padding: 22px; }
  .ma-columns { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ma-hero-main { align-items: flex-start; }
  .ma-avatar { width: 52px; height: 52px; font-size: 1.2rem; }
  .ma-shortcuts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ma-tile { padding: 14px; }
  .ma-tile span { display: none; }
  .ma-news-item { grid-template-columns: 52px 1fr; padding: 14px; gap: 12px; }
  .ma-news-date { height: 52px; }
}

/* ===== Gestão: navegação, painel e páginas administrativas ===== */
.g-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.gestao-nav { gap: 2px; padding: 14px 10px; background: #fff; }
.gestao-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 0.94rem; }
.gestao-nav a:hover { background: var(--mist); }
.gestao-nav a[aria-current="page"] .g-icon { color: #fff; }
.gestao-nav .g-icon { color: var(--blue); }
.gestao-nav-group { margin: 14px 12px 4px; color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.gestao-back { color: var(--muted) !important; font-size: 0.86rem !important; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0 !important; margin-bottom: 4px; }
.button .g-icon { width: 18px; height: 18px; margin-right: 4px; vertical-align: -4px; }
.stat { text-decoration: none; position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.stat:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(6, 41, 58, 0.08); }
.stat .g-icon { position: absolute; top: 16px; right: 16px; color: var(--blue); opacity: 0.7; }
.g-section-title { margin: 8px 0 12px; color: var(--ink); font-size: 1.1rem; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 28px; }
.quick-actions a { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.quick-actions a:hover { border-color: var(--blue); background: var(--mist); }
.quick-actions .g-icon { color: var(--blue); }
.activity { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.activity li { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.activity li:last-child { border-bottom: 0; }
.activity time { float: right; color: var(--muted); font-size: 0.82rem; }
.todo-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.todo-list a { color: var(--rose); font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 12px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.tabs a span { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--mist); font-size: 0.78rem; text-align: center; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.status-pill.is-published { background: #e2f4ea; color: var(--success); }
.status-pill.is-draft { background: #fff3d6; color: #8a5a00; }
.status-pill.is-archived { background: var(--mist); color: var(--muted); }
.row-actions form { margin: 0; }
.row-actions { white-space: nowrap; text-align: right; }
.announcement-form { margin-bottom: 8px; }
.announcement-form h2, .settings-grid h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--ink); font-size: 1.15rem; }
.settings-grid h2 .g-icon { color: var(--blue); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.settings-side { display: grid; gap: 20px; }
.mass-editor { display: grid; gap: 8px; margin: 12px 0; }
.mass-row { display: grid; grid-template-columns: 190px 1fr; gap: 8px; }
.data-table tr.is-alert td { background: #fff4f6; }
@media (max-width: 900px) {
  .gestao-nav-group, .gestao-back span { display: none; }
  .gestao-nav { padding: 6px; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .mass-row { grid-template-columns: 1fr 1fr; } }

/* Comunidades na gestão */
.community-list { display: grid; gap: 12px; }
.community-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.community-item img, .community-noimg { width: 96px; height: 72px; border-radius: 8px; object-fit: cover; }
.community-noimg { display: grid; place-items: center; background: var(--mist); color: var(--blue); }
.community-item h2 { margin: 0 0 2px; font-size: 1.05rem; color: var(--ink); }
.community-item h2 a { color: inherit; }
.community-item p { margin: 2px 0; }
.community-times { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.88rem; }
.community-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.community-form > .button { margin-top: 16px; }
.community-form h3 { margin: 20px 0 4px; color: var(--ink); font-size: 1rem; }
@media (max-width: 560px) {
  .community-item { grid-template-columns: 72px 1fr; }
  .community-item img, .community-noimg { width: 72px; height: 56px; }
  .community-item img.pastoral-art { width: 72px; height: 72px; padding: 6px; }
  .community-item > .button { grid-column: 1 / -1; }
}

/* Editor de texto formatado */
.rich-editor { display: grid; gap: 6px; margin: 12px 0; }
.rich-label { color: var(--ink); font-size: 0.86rem; font-weight: 800; }
.re-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--mist); }
.re-toolbar button { min-width: 36px; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 0.85rem; cursor: pointer; }
.re-toolbar button:hover { border-color: var(--blue); }
.re-area { min-height: 260px; max-height: 70vh; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: #fff; line-height: 1.65; outline: none; }
.re-area:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9, 110, 163, 0.12); }
.re-area h2 { font-size: 1.35rem; color: var(--ink); margin: 1em 0 0.4em; }
.re-area h3 { font-size: 1.12rem; color: var(--ink); margin: 1em 0 0.4em; }
.re-area blockquote { margin: 1em 0; padding: 4px 16px; border-left: 4px solid var(--gold); color: var(--muted); }
.re-area img { max-width: 100%; height: auto; }
.re-link { display: flex; gap: 8px; align-items: center; }
.re-link input { max-width: 420px; }

/* Blog e conteúdo do site na gestão */
.import-callout { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.import-callout h2 { margin: 0 0 4px; font-size: 1.1rem; }
.import-callout p { margin: 0; max-width: 640px; }
.post-list { display: grid; gap: 10px; }
.post-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.post-item img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.post-item h2 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.post-item h2 a { color: inherit; }
.post-item p { margin: 0; }
.row-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.input-title { font-size: 1.2rem; font-weight: 700; }
.post-form .settings-grid { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.site-form > .button { margin-top: 16px; }
.item-list { display: grid; gap: 14px; }
.item-card { border: 1px solid var(--line); margin: 0; }
.item-card legend { padding: 0 6px; font-weight: 800; color: var(--ink); }
.item-card.is-new { border-style: dashed; background: #fbfdfe; }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.item-grid label:has(textarea), .item-grid .item-photo, .item-grid .checkbox { grid-column: 1 / -1; }
.item-photo { display: grid; gap: 6px; margin: 8px 0; }
.item-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.item-tools { display: flex; gap: 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
.item-order { display: flex; align-items: center; gap: 8px; margin: 0; }
.item-order input { width: 80px; min-height: 36px; }
@media (max-width: 760px) {
  .item-grid { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 64px 1fr; }
  .post-item img, .post-item .community-noimg { width: 64px; height: 48px; }
  .post-item .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Página de cada pastoral */
.pastoral-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 72px; }
.pastoral-page .eyebrow a { color: inherit; }
.pastoral-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 24px; }
.pastoral-contact { position: sticky; top: 20px; display: grid; justify-items: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pastoral-contact h2 { margin: 0; color: var(--ink); font-size: 1.2rem; }
.pastoral-about { margin-bottom: 32px; }
.pastoral-blog-title { color: var(--ink); margin: 0 0 16px; font-size: 1.4rem; }
.pastoral-more { display: inline-block; margin: 4px 0 10px; }
.post-ministry { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 860px) { .pastoral-layout { grid-template-columns: 1fr; } .pastoral-contact { position: static; } }
.form-grid .span-3 { grid-column: 1 / -1; }
.ministry-picker { margin: 10px 0; }
.ministry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.ministry-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); font-weight: 600; font-size: 0.9rem; }
.ministry-tag.is-coord { background: var(--gold); border-color: var(--gold); }
.ministry-tag select { min-height: 0; width: auto; max-width: 120px; padding: 2px 6px; border: 0; border-radius: 999px; background: rgba(255,255,255,0.7); font-size: 0.78rem; font-weight: 700; }
.ministry-remove { width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ministry-remove:hover { background: rgba(6,41,58,0.12); }
.ministry-tags .ministry-tag ~ .ministry-empty { display: none; }
.ministry-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ministry-add select { width: auto; min-width: 0; flex: 0 1 auto; }
.ministry-add select[data-ministry-new] { flex: 1 1 260px; }

/* Sala de imprensa */
.press-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 72px; }
.press-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.press-title { margin: 36px 0 14px; color: var(--ink); font-size: 1.4rem; }
.press-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.press-contact { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; background: #fff; }
.press-contact img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.press-contact h3 { margin: 0 0 2px; color: var(--ink); font-size: 1.05rem; }
.press-contact p { margin: 0 0 8px; }
.press-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; }
.press-contact a { color: var(--blue); font-weight: 700; word-break: break-all; }
.press-notes { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--mist); color: var(--text); }
.press-news { display: grid; gap: 10px; }
.press-news-item { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); text-decoration: none; }
.press-news-item:hover { border-color: var(--blue); }
.press-news-item time { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.press-news-item strong { color: var(--ink); }
.press-news-item span { color: var(--muted); font-size: 0.92rem; }
.press-aside { display: grid; gap: 16px; position: sticky; top: 20px; }
.press-aside h2 { margin: 0 0 10px; color: var(--ink); font-size: 1.1rem; }
.press-downloads { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.press-notice { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.press-notice:last-child { border-bottom: 0; }
.press-notice time { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 900px) { .press-layout { grid-template-columns: 1fr; } .press-aside { position: static; } }

/* ===== Cabeçalho do site (menu em grupos) ===== */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); backdrop-filter: none; }
.sh-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.sh-top { background: var(--ink); color: #fff; font-size: 0.82rem; transition: margin-top 0.2s; }
.sh-top .sh-wrap { min-height: 36px; justify-content: space-between; }
.sh-next { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.sh-next b { color: var(--gold); }
.sh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(240, 170, 28, 0.25); }
.sh-social { display: flex; gap: 14px; }
.sh-social .social-icon { width: 17px; height: 17px; filter: brightness(0) invert(1); opacity: 0.9; }
.sh-social .social-link span { display: none; }
.sh-main .sh-wrap { min-height: 78px; transition: min-height 0.2s; }
.sh-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); text-decoration: none; }
.sh-brand img { width: auto; height: 56px; transition: height 0.2s; }
.sh-brand strong { display: block; font-size: 1.02rem; }
.sh-brand small { color: var(--muted); font-size: 0.8rem; }
.sh-nav { display: flex; align-items: center; gap: 4px; }
.sh-group { position: relative; }
.sh-group-btn, .sh-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; }
.sh-group-btn::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; transition: transform 0.15s; }
.sh-group-btn:hover, .sh-link:hover, .sh-group.is-open .sh-group-btn { background: var(--mist); }
.sh-group.is-current > .sh-group-btn::before, .sh-link.is-current::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--gold); }
.sh-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 30; display: none; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 4px; width: max-content; max-width: 600px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 45px rgba(6, 41, 58, 0.18); }
.sh-group:nth-child(2) .sh-panel { grid-template-columns: minmax(240px, 1fr); }
.sh-group.is-open .sh-panel { display: grid; }
@media (hover: hover) and (min-width: 981px) {
  .sh-group:hover .sh-panel, .sh-group:focus-within .sh-panel { display: grid; }
  .sh-group:hover .sh-group-btn { background: var(--mist); }
  .sh-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* ponte para o mouse */
}
.sh-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sh-panel a:hover, .sh-panel a:focus-visible { background: var(--mist); }
.sh-panel a[aria-current="page"] { background: var(--mist); box-shadow: inset 3px 0 0 var(--gold); }
.sh-panel strong { font-size: 0.94rem; }
.sh-panel span { color: var(--muted); font-size: 0.8rem; }
.sh-actions { display: flex; gap: 10px; margin-left: 12px; }
.sh-btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.sh-btn-gold { background: var(--gold); color: var(--ink); }
.sh-btn-rose { background: var(--rose); color: #fff; }
.sh-btn:hover { filter: brightness(0.95); }
.sh-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 10px; background: var(--ink); cursor: pointer; }
.sh-toggle span { display: block; height: 2px; margin: 4px 0; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
/* Topo compacto ao rolar */
.site-header.is-compact .sh-top { margin-top: -36px; }
.site-header.is-compact .sh-main .sh-wrap { min-height: 58px; }
.site-header.is-compact .sh-brand img { height: 38px; }
.site-header.is-compact .sh-brand span { display: none; }
.site-header.is-compact { box-shadow: 0 6px 20px rgba(6, 41, 58, 0.08); }
/* Celular e tablet */
@media (max-width: 980px) {
  .sh-toggle { display: block; }
  .sh-brand img { height: 46px; }
  .sh-brand strong { font-size: 0.92rem; }
  .sh-brand small { display: none; }
  .sh-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 100px); overflow-y: auto; padding: 8px 16px 18px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(6, 41, 58, 0.15); }
  .site-header { position: sticky; }
  .site-header .sh-main { position: relative; }
  .site-header.is-menu-open .sh-nav { display: flex; }
  .site-header.is-menu-open .sh-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.is-menu-open .sh-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-menu-open .sh-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .sh-group { border-bottom: 1px solid var(--line); }
  .sh-group-btn, .sh-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.02rem; font-weight: 700; border-radius: 0; background: none !important; }
  .sh-link { border-bottom: 1px solid var(--line); }
  .sh-group.is-current > .sh-group-btn::before, .sh-link.is-current::before { display: none; }
  .sh-group.is-open .sh-group-btn::after { transform: rotate(-135deg) translateY(-2px); }
  .sh-panel { position: static; transform: none; width: auto; max-width: none; grid-template-columns: 1fr !important; padding: 0 0 10px 12px; border: 0; box-shadow: none; }
  .sh-panel a { border-radius: 0; border-left: 2px solid var(--line); padding: 9px 12px; }
  .sh-panel a span { display: none; }
  .sh-panel a[aria-current="page"] { border-left-color: var(--gold); box-shadow: none; background: none; }
  .sh-actions { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 0; }
  .sh-btn { justify-content: center; padding: 12px; }
}
@media (max-width: 520px) { .sh-social { gap: 10px; } .sh-top { font-size: 0.76rem; } }
.sh-next { white-space: nowrap; }
@media (max-width: 520px) { .sh-where { display: none; } }

/* Vídeo incorporado (YouTube) */
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 14px 0; border-radius: 12px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.homily-text { margin-top: 10px; }
.homily-box .video-embed { max-width: 860px; }
.visit-zone:has(.is-solo) .section-heading { text-align: center; margin-inline: auto; }
.visit-grid.is-solo { display: block; max-width: 640px; margin: 0 auto; }
.visit-zone .section-heading a { color: var(--blue); font-weight: 700; }
.ma-last-login { margin: 6px 0 0; color: var(--muted); font-size: 0.8rem; }
.ma-flash { grid-column: 1 / -1; }

/* ---------- Intenções de missa ---------- */
.intencoes .lead { color: var(--text); font-size: 1.08rem; max-width: 640px; }
.intencao-form fieldset { border: 0; border-top: 1px solid var(--line); padding: 18px 0 4px; margin: 0; min-width: 0; }
.intencao-form fieldset:first-child { border-top: 0; padding-top: 0; }
.intencao-form legend { padding: 0; color: var(--ink); font-size: 1.05rem; font-weight: 900; }
.intencao-tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.intencao-tipos .radio { display: grid; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.intencao-tipos .radio:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.intencao-form > .checkbox { margin-top: 16px; font-weight: 600; }
.intencao-form > .button { margin-top: 18px; }
.intencao-resumo dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.intencao-resumo dt { color: var(--muted); font-weight: 800; font-size: 0.86rem; }
.intencao-resumo dd { margin: 0; color: var(--ink); }
.intencao-pix { margin-top: 20px; }
.intencao-pix h2 { margin: 0 0 8px; color: var(--ink); }
.intencao-pix textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; word-break: break-all; }
.pix-qr { width: 220px; max-width: 100%; margin: 12px 0; }
.pix-qr.small { width: 150px; }
.pix-qr svg { display: block; width: 100%; height: auto; }
.status-pill.is-pendente, .status-pill.is-fechada { background: #fff3d6; color: #8a5a00; }
.status-pill.is-confirmada, .status-pill.is-aberta { background: #e2f4ea; color: var(--success); }
.status-pill.is-cancelada { background: #fde7ec; color: var(--danger); }
.status-pill.is-celebrada { background: var(--mist); color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.intencoes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 16px 0; }
.intencoes-grid h2 { margin: 0 0 6px; font-size: 1.1rem; color: var(--ink); }
.intencoes-grid h2 + p { margin-top: 0; }
.intencoes-grid .panel h2:not(:first-child) { margin-top: 22px; }
.section-gap { margin: 28px 0 12px; color: var(--ink); }
.gestao .row-actions:has(form + form) { flex-wrap: wrap; white-space: normal; justify-content: flex-start; gap: 4px 14px; }
.gestao .row-actions .link-button { padding: 4px 0; font-size: 0.8rem; }

/* Lista para leitura no ambão (tela própria, sem cabeçalho do site) */
.leitura-body { margin: 0; background: #fff; }
.leitura { --leitura-size: 1.35rem; width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 64px; color: #111; font-size: var(--leitura-size); line-height: 1.5; }
.leitura-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; font-size: 1rem; }
.leitura-head { text-align: center; border-bottom: 2px solid var(--gold); padding-bottom: 12px; margin-bottom: 20px; }
.leitura-head p { margin: 0; color: var(--muted); font-size: 0.75em; font-weight: 700; }
.leitura-head h1 { margin: 6px 0; color: var(--ink); font-size: 1.4em; line-height: 1.15; }
.leitura-abertura { font-style: italic; }
.leitura-grupo h2 { margin: 1.1em 0 0.3em; color: var(--ink); font-size: 1em; text-transform: uppercase; letter-spacing: 0.03em; }
.leitura-grupo ul { margin: 0; padding-left: 1.1em; }
.leitura-grupo li { margin: 0.25em 0; }
.leitura-vazia { text-align: center; color: var(--muted); }

@media print {
  .no-print, .site-header, .site-footer { display: none !important; }
  .leitura { width: 100%; padding: 0; color: #000; }
  .leitura-grupo { break-inside: avoid; }
  @page { size: A5; margin: 14mm; }
}
.intencao-pedido .intencao-resumo + p { margin-top: 20px; }
.gestao h2.section-gap { font-size: 1.3rem; }

/* ---------- Eventos e ingressos ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eventos-page, .evento { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 76px 0; }
.eventos-page h1 { margin: 0; color: var(--ink); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.eventos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.evento-card { display: grid; grid-template-rows: 190px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08); }
.evento-card-media img, .evento-card-fallback { width: 100%; height: 190px; object-fit: cover; }
.evento-card-fallback { display: grid; place-content: center; text-align: center; color: #fff; font-size: 3rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--blue), var(--green)); }
.evento-card-fallback small { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.evento-card > div { display: flex; flex-direction: column; padding: 18px; }
.evento-card h2 { margin: 0 0 4px; color: var(--ink); font-size: 1.3rem; }
.evento-card-date { margin-bottom: 6px; color: var(--sky); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.evento-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: auto 0 0; padding-top: 14px; color: var(--ink); }
.status-pill.is-encerrado, .status-pill.is-rascunho, .status-pill.is-expirado { background: var(--mist); color: var(--muted); }
.status-pill.is-publicado, .status-pill.is-pago { background: #e2f4ea; color: var(--success); }
.status-pill.is-cancelado, .status-pill.is-estornado { background: #fde7ec; color: var(--danger); }

.evento-hero { display: grid; gap: 28px; margin-bottom: 32px; }
.evento-hero.has-image { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.evento-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.evento-hero h1 { margin: 0 0 12px; color: var(--ink); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
.evento-info { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--ink); }
.evento-info li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.evento-info .g-icon { width: 22px; height: 22px; color: var(--blue); }
.evento-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
.evento-texto { line-height: 1.7; }
.evento-compra { position: sticky; top: 110px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.evento-compra h2 { margin: 0 0 14px; color: var(--ink); }
.evento-form fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.evento-form legend { margin-bottom: 10px; color: var(--ink); font-weight: 900; }
.evento-tipo, .evento-tipo-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.evento-tipo > div { display: grid; gap: 2px; }
.evento-preco { color: var(--blue); font-weight: 800; }
.evento-restam { color: var(--rose); font-weight: 700; }
.evento-qtd select { width: 76px; }
.evento-total { margin: 14px 0 4px; font-size: 1.1rem; color: var(--ink); }
.evento-pagamento-nota { margin-top: 10px; font-size: 0.86rem; }
.evento-form .button[type=submit] { width: 100%; }

.ingresso-resumo dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.ingresso-resumo dt { color: var(--muted); font-weight: 800; font-size: 0.86rem; }
.ingresso-resumo dd { margin: 0; color: var(--ink); }
.ingresso-page .callout { margin-top: 20px; }
.ingressos { display: grid; gap: 18px; margin-top: 18px; }
.ingresso { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: center; padding: 22px; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; break-inside: avoid; }
.ingresso h2 { margin: 0 0 8px; color: var(--ink); font-size: 1.25rem; }
.ingresso .pix-qr { margin: 0; }
.ingresso.is-usado { opacity: 0.6; }
.ingresso-codigo code { font-size: 1rem; letter-spacing: 0.08em; }

.evento-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.evento-numeros .panel { padding: 18px; }
.evento-numeros span { display: block; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.evento-numeros strong { color: var(--ink); font-size: 1.8rem; }
.evento-numeros small { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.evento-participantes { margin: 6px 0 0; padding-left: 18px; font-size: 0.88rem; }
.evento-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.evento-tipo-gestao { margin: 0 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.evento-tipo-gestao legend { padding: 0 6px; color: var(--ink); font-weight: 800; }
.evento-gestao-capa { max-height: 120px; border-radius: var(--radius); }

.portaria h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
.portaria-eventos { display: grid; gap: 12px; padding: 0; list-style: none; }
.portaria-eventos a { display: grid; gap: 4px; padding: 18px; color: var(--ink); }
.portaria-eventos span { color: var(--muted); }
.portaria-contagem { font-size: 1.2rem; color: var(--ink); }
.portaria-contagem strong { font-size: 2rem; }
.portaria-leitor { display: grid; gap: 10px; justify-items: start; margin-bottom: 14px; }
.portaria-camera { position: relative; width: min(100%, 420px); overflow: hidden; border-radius: var(--radius); background: #000; }
.portaria-camera video { display: block; width: 100%; height: auto; }
.portaria-mira { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, 0.85); border-radius: 12px; pointer-events: none; }
.portaria-resultado { margin: 0 0 14px; padding: 22px; border-radius: var(--radius); font-size: 1.25rem; font-weight: 800; text-align: center; }
.portaria-resultado.is-ok { color: #fff; background: var(--success); }
.portaria-resultado.is-erro { color: #fff; background: var(--danger); }
.portaria-manual input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .evento-hero.has-image, .evento-body { grid-template-columns: 1fr; }
  .evento-compra { position: static; }
}
@media (max-width: 560px) {
  .ingresso { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ingresso-resumo dl { grid-template-columns: 1fr; gap: 2px; }
  .ingresso-resumo dd { margin-bottom: 8px; }
}
@media print {
  .ingresso-page { padding: 0; }
  .ingresso { border-color: #999; margin-bottom: 12mm; }
}

/* ---------- Dízimo ---------- */
.dizimo .callout, .dizimo-form { margin-bottom: 24px; }
.dizimo-situacao h2, .dizimo-form h2, .dizimo-historico h2 { margin: 0 0 10px; color: var(--ink); }
.dizimo-sugestoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.dizimo-historico { margin-top: 36px; }

/* ---------- Módulos do sistema (super admin) ---------- */
.modulos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 18px 0; }
.modulo-card { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 0; padding: 18px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.modulo-card.is-on, .modulo-card:has(input[type=checkbox]:checked) { border-color: var(--blue); background: var(--mist); }
.modulo-card:has(input[type=checkbox]:not(:checked)) { border-color: var(--line); background: #fff; }
.modulo-card input[type=checkbox] { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; }
.modulo-card strong { display: block; color: var(--ink); }
.modulo-card small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }

/* ---------- Identidade da paróquia ---------- */
.hero { background: var(--ink); }
.identidade-imagens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.identidade-imagem { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.identidade-previa { max-width: 100%; max-height: 140px; margin: 10px 0 6px; border-radius: var(--radius); object-fit: cover; }
.identidade-previa.is-logo { padding: 8px; background: var(--mist); object-fit: contain; }
.identidade-cores input[type=color] { width: 100%; height: 48px; padding: 4px; cursor: pointer; }

/* ---------- Painel central (multi-paróquia) ---------- */
.central { background: var(--mist); }
.central-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; color: #fff; background: #06293a; }
.central-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.central-brand img { filter: brightness(0) invert(1); }
.central-brand span { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; }
.central-user { font-size: 0.88rem; }
.central-user a { color: #fff; text-decoration: underline; }
.central-main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 60px; }
.central-main .panel { margin-bottom: 18px; }
.central-main h1 { color: var(--ink); }
.central-login { max-width: 440px; margin: 8vh auto 0; }
.central-form h2 { margin-top: 22px; }
.central-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.central-nav a { padding: 6px 12px; border-radius: 6px; color: rgba(255, 255, 255, 0.8); font-weight: 700; }
.central-nav a[aria-current="page"], .central-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.assinatura-modulos { columns: 2 240px; margin: 0; padding-left: 20px; }

/* Aviso de cookies de estatística (só aparece quando a paróquia configurou Tag Manager/Analytics) */
.cookie-aviso {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(8, 52, 74, 0.22);
  color: var(--text);
  font-size: 0.94rem;
}
.cookie-aviso[hidden] { display: none; }
.cookie-aviso p { flex: 1 1 320px; margin: 0; line-height: 1.5; }
.cookie-aviso a { color: var(--blue); font-weight: 700; }
.cookie-aviso-botoes { display: flex; gap: 10px; margin-left: auto; }
.footer-cookies {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.footer-cookies:hover { color: var(--gold); }
.cookie-aviso { max-height: calc(100vh - 32px); overflow-y: auto; }
.cookie-aviso-botoes { flex-wrap: wrap; justify-content: flex-end; }
.cookie-painel { flex: 1 1 100%; }
.cookie-painel[hidden] { display: none; }
.cookie-opcoes fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.cookie-opcoes legend { margin-bottom: 8px; color: var(--ink); font-weight: 800; }
.cookie-opcao {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}
.cookie-opcao input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.cookie-opcao input:disabled { cursor: not-allowed; }
.cookie-opcao em { color: var(--blue); font-size: 0.8rem; font-style: normal; font-weight: 700; }
.cookie-opcoes-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 0; }
.legal .cookie-opcoes { max-width: 720px; margin: 18px 0 24px; }
@media (max-width: 560px) {
  .cookie-aviso-botoes { width: 100%; }
  .cookie-aviso-botoes .button { flex: 1 1 auto; }
}
.cookie-opcao { margin: 0; font-weight: 400; color: var(--text); }
.cookie-opcao strong { color: var(--ink); font-weight: 800; }
.legal .cookie-opcoes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Prévia da campanha por e-mail na Gestão */
.email-previa { max-width: 640px; margin: 14px 0 18px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.email-previa > :first-child { margin-top: 0; }
