/* 3IPB Conteúdo — homepage visual (aligned to the approved mockup).
   Design is scoped to .ipb3-home / .ipb3-topbar / footer.ipb3-footer so it still
   applies if the theme template wins. Theme chrome is neutralized on
   body.ipb3-home-page and body:has(.ipb3-home). */

/* -------------------------------------------------------------------------- */
/* Theme neutralization on the designed homepage                              */
/* -------------------------------------------------------------------------- */
body.ipb3-home-page, body:has(.ipb3-home) {
  background: #ffffff;
}
body.ipb3-home-page, body:has(.ipb3-home) {
  overflow-x: hidden;
}

body.ipb3-home-page .page-header, body:has(.ipb3-home) .page-header,
body.ipb3-home-page .notice-bar, body:has(.ipb3-home) .notice-bar,
body.ipb3-home-page .entry-header, body:has(.ipb3-home) .entry-header,
body.ipb3-home-page .wp-block-post-title, body:has(.ipb3-home) .wp-block-post-title,
body.ipb3-home-page .entry-title, body:has(.ipb3-home) .entry-title,
body.ipb3-home-page #sidebar, body:has(.ipb3-home) #sidebar,
body.ipb3-home-page #sidebar-col, body:has(.ipb3-home) #sidebar-col,
body.ipb3-home-page #sidebar-col2, body:has(.ipb3-home) #sidebar-col2,
body.ipb3-home-page .sidebar, body:has(.ipb3-home) .sidebar,
body.ipb3-home-page aside.sidebar, body:has(.ipb3-home) aside.sidebar,
body.ipb3-home-page .widget-area, body:has(.ipb3-home) .widget-area,
body.ipb3-home-page .secondary, body:has(.ipb3-home) .secondary,
body.ipb3-home-page .content-area > .page-title, body:has(.ipb3-home) .content-area > .page-title {
  display: none !important;
}
body.ipb3-home-page .page-heading,
body:has(.ipb3-home) .page-heading,
body.ipb3-home-page .title-row,
body:has(.ipb3-home) .title-row,
body.ipb3-home-page .page-title-block,
body:has(.ipb3-home) .page-title-block,
body.ipb3-home-page .breadcrumb,
body:has(.ipb3-home) .breadcrumb,
body.ipb3-home-page .breadcrumbs,
body:has(.ipb3-home) .breadcrumbs,
body.ipb3-home-page #sidebar-1,
body:has(.ipb3-home) #sidebar-1,
body.ipb3-home-page .sidebar-wrapper,
body:has(.ipb3-home) .sidebar-wrapper,
body.ipb3-home-page aside#sidebar,
body:has(.ipb3-home) aside#sidebar,
body.ipb3-home-page .page-banner,
body:has(.ipb3-home) .page-banner {
  display: none !important;
}

/* Hide the theme footer; the plugin prints footer.ipb3-footer instead. */
body.ipb3-home-page .site-footer, body:has(.ipb3-home) .site-footer,
body.ipb3-home-page footer.wp-block-template-part, body:has(.ipb3-home) footer.wp-block-template-part,
body.ipb3-home-page #footer, body:has(.ipb3-home) #footer,
body.ipb3-home-page .footer-wrapper, body:has(.ipb3-home) .footer-wrapper,
body.ipb3-home-page .site-footer-bottom, body:has(.ipb3-home) .site-footer-bottom,
body.ipb3-home-page .footer-widget, body:has(.ipb3-home) .footer-widget,
body.ipb3-home-page .footer-widgets, body:has(.ipb3-home) .footer-widgets,
body.ipb3-home-page footer.site:not(.ipb3-footer), body:has(.ipb3-home) footer.site:not(.ipb3-footer) {
  display: none !important;
}

/* Break out of theme/Bootstrap/.container and FSE constrained layouts. */
.ipb3-home {
  --green: #005B40;
  --green-dark: #004632;
  --green-soft: #F0FBF6;
  --white: #FFFFFF;
  --black: #111111;
  --ink: #1A1A1A;
  --muted: #5E5E5E;
  --line: #E2E2E2;
  --paper: #FFFFFF;
  --alt: #F0FBF6;
  --accent-black: #383838;
  --shadow: 0 16px 40px rgba(17, 17, 17, 0.10);
  --radius: 16px;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  float: none;
  clear: both;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.ipb3-home *,
.ipb3-home *::before,
.ipb3-home *::after,
.ipb3-topbar *,
footer.ipb3-footer * {
  box-sizing: border-box;
}
body.ipb3-home-page .entry-content, body:has(.ipb3-home) .entry-content,
body.ipb3-home-page .page-content, body:has(.ipb3-home) .page-content,
body.ipb3-home-page .post-content, body:has(.ipb3-home) .post-content,
body.ipb3-home-page .wp-block-post-content, body:has(.ipb3-home) .wp-block-post-content,
body.ipb3-home-page .wp-block-post-content.is-layout-constrained, body:has(.ipb3-home) .wp-block-post-content.is-layout-constrained,
body.ipb3-home-page .is-layout-constrained, body:has(.ipb3-home) .is-layout-constrained,
body.ipb3-home-page .has-global-padding, body:has(.ipb3-home) .has-global-padding,
body.ipb3-home-page .alignfull, body:has(.ipb3-home) .alignfull {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Flatten theme content columns (Bootstrap / NativeChurch) so .ipb3-home
   can full-bleed when the theme template wraps the page in .container. */
body.ipb3-home-page #content,
body:has(.ipb3-home) #content,
body.ipb3-home-page #content-container,
body:has(.ipb3-home) #content-container,
body.ipb3-home-page #main-content,
body:has(.ipb3-home) #main-content,
body.ipb3-home-page #content .container,
body:has(.ipb3-home) #content .container,
body.ipb3-home-page #content .row,
body:has(.ipb3-home) #content .row,
body.ipb3-home-page #content [class*="col-"],
body:has(.ipb3-home) #content [class*="col-"],
body.ipb3-home-page #content-container .container,
body:has(.ipb3-home) #content-container .container,
body.ipb3-home-page #content-container .row,
body:has(.ipb3-home) #content-container .row,
body.ipb3-home-page #content-container [class*="col-"],
body:has(.ipb3-home) #content-container [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  overflow: visible !important;
}
body.ipb3-home-page .entry-content > *, body:has(.ipb3-home) .entry-content > *,
body.ipb3-home-page .page-content > *, body:has(.ipb3-home) .page-content > *,
body.ipb3-home-page .wp-block-post-content > *, body:has(.ipb3-home) .wp-block-post-content > *,
.ipb3-home > *,
.ipb3-home .wp-block-group,
.ipb3-home .wp-block-html,
.ipb3-home .wp-block-columns {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.ipb3-home p { margin: 0; }
.ipb3-home a { color: inherit; text-decoration: none; }
.ipb3-home img { max-width: 100%; height: auto; display: block; border: 0; }
.ipb3-home ul { margin: 0; padding: 0; }
.ipb3-home h1,
.ipb3-home h2,
.ipb3-home h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0;
}
.ipb3-home h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}
.ipb3-home h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.ipb3-home .wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.ipb3-home .kicker {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  margin: 0;
}
.ipb3-home .section { padding: 88px 0; }
.ipb3-home .section.alt { background: var(--alt); }
.ipb3-home .section-head { max-width: 640px; margin-bottom: 40px; }
.ipb3-home .section-head p { color: var(--muted); margin-top: 10px; }

/* -------------------------------------------------------------------------- */
/* Top bar (above the theme header)                                           */
/* -------------------------------------------------------------------------- */
.ipb3-topbar {
  --green: #005B40;
  --green-dark: #004632;
  background: var(--green);
  color: #E8F3EE;
  font-size: 0.86rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.4;
}
.ipb3-topbar .wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.ipb3-topbar a { color: #E8F3EE; text-decoration: none; }
.ipb3-topbar a:hover { color: #ffffff; }
.ipb3-topbar .topbar-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.ipb3-topbar .topbar-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ipb3-topbar .social { display: flex; gap: 10px; align-items: center; }
.ipb3-topbar .social a {
  width: 30px; height: 30px; border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%; display: grid; place-items: center; color: #fff;
}
.ipb3-topbar .social a:hover { background: #004632; border-color: #004632; }

/* Soft typography polish on the kept theme header (do not replace it). */
body.ipb3-home-page .ipb3-theme-header, body:has(.ipb3-home) .ipb3-theme-header,
body.ipb3-home-page .site-header, body:has(.ipb3-home) .site-header{
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.ipb3-home .hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
  overflow: visible;
}
.ipb3-home .hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-color: #111;
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(2px);
  clip-path: inset(0);
}
.ipb3-home .hero-inner { padding: 120px 0 170px; overflow: visible; }
.ipb3-home .hero .kicker { color: #C8E6DA; margin-bottom: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.ipb3-home .hero h1, .ipb3-home .hero-lead { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.ipb3-home .hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 18px;
  overflow: visible;
  padding-bottom: 0.1em;
  color: var(--white);
}
.ipb3-home .hero-lead {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #F2F2F2;
  max-width: 34ch;
  margin-bottom: 28px;
}
.ipb3-home .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ipb3-home .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 600; border-radius: 999px;
  padding: 13px 22px; border: 1px solid transparent; transition: 0.2s ease;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
}
.ipb3-home .btn-primary,
.ipb3-home .btn-navy { background: var(--green); color: var(--white); }
.ipb3-home .btn-primary:hover,
.ipb3-home .btn-navy:hover { background: var(--green-dark); color: var(--white); }
.ipb3-home .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.ipb3-home .btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.ipb3-home .btn-line { background: transparent; color: var(--green); border-color: #B7C9C2; }
.ipb3-home .btn-line:hover { border-color: var(--green); color: var(--green-dark); }

.ipb3-home .next-service {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 14px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 14px 18px;
  color: var(--white);
}
.ipb3-home .next-service strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--white); font-family: "Source Sans 3", "Segoe UI", sans-serif; letter-spacing: 0; }
.ipb3-home .next-service small { color: #D9D9D9; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; font-family: "Source Sans 3", "Segoe UI", sans-serif; }

/* -------------------------------------------------------------------------- */
/* Horários                                                                   */
/* -------------------------------------------------------------------------- */
.ipb3-home .schedule-shift { margin-top: -100px !important; position: relative; z-index: 2; padding-bottom: 20px; }
.ipb3-home .schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ipb3-home .sched-card {
  background: var(--white); border-radius: 0; box-shadow: var(--shadow);
  padding: 26px 24px; border-top: 4px solid var(--green);
}
.ipb3-home .sched-card .day { font-weight: 700; color: var(--green); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; font-family: "Source Sans 3", "Segoe UI", sans-serif; }
.ipb3-home .sched-card h3 { margin: 8px 0 6px; }
.ipb3-home .sched-card .time { font-size: 1.7rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; color: var(--black); }
.ipb3-home .sched-card p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* -------------------------------------------------------------------------- */
/* Pregações                                                                  */
/* -------------------------------------------------------------------------- */
.ipb3-home .sermon-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 36px; align-items: start; }
.ipb3-home .video-card { background: var(--black); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ipb3-home .video-link { position: relative; display: block; color: var(--white); text-decoration: none; }
.ipb3-home .video-link img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: 0.92; }
.ipb3-home .play { position: absolute; inset: 0; display: grid; place-items: center; }
.ipb3-home .play span {
  width: 74px; height: 74px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.ipb3-home .play span svg { margin-left: 4px; }
.ipb3-home .video-meta { padding: 22px 22px 24px; background: var(--accent-black); color: #F2F2F2; }
.ipb3-home .video-meta .tag { color: #C8E6DA; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; font-family: "Source Sans 3", "Segoe UI", sans-serif; }
.ipb3-home .video-meta h3 { color: var(--white); margin: 8px 0 8px; font-size: 1.7rem; }
.ipb3-home .video-meta p { color: #C8C8C8; font-size: 0.95rem; }
.ipb3-home .video-list { display: flex; flex-direction: column; gap: 14px; }
.ipb3-home .v-item {
  display: grid; grid-template-columns: 148px 1fr; gap: 14px;
  text-decoration: none; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; color: inherit;
}
.ipb3-home .v-item img { width: 148px; height: 100%; object-fit: cover; min-height: 92px; }
.ipb3-home .v-item div { padding: 12px 12px 12px 0; }
.ipb3-home .v-item .tag,
.ipb3-home .series-card .tag {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); font-weight: 700;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}
.ipb3-home .v-item h3 { font-size: 1.12rem; margin: 4px 0; }
.ipb3-home .v-item p { color: var(--muted); font-size: 0.88rem; }
.ipb3-home .v-item .v-date { white-space: nowrap; }
.ipb3-home .series-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.ipb3-home .series-card {
  text-decoration: none; border-radius: 14px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
}
.ipb3-home .series-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ipb3-home .series-card div { padding: 16px; }
.ipb3-home .series-card h3 { margin: 6px 0 0; font-size: 1.25rem; }
.ipb3-home .series-card p { color: var(--muted); }
.ipb3-home .ipb3-more { margin: 28px 0 0; }
.ipb3-home .ipb3-more a { color: var(--green); font-weight: 600; text-decoration: none; }
.ipb3-home .ipb3-more a:hover { color: var(--green-dark); }

/* -------------------------------------------------------------------------- */
/* Sobre + pastor                                                             */
/* -------------------------------------------------------------------------- */
.ipb3-home .about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.ipb3-home .about-copy p { margin-bottom: 14px; color: #333333; }
.ipb3-home .pastor-card {
  background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.ipb3-home .pastor-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.ipb3-home .pastor-card div { padding: 22px; }
.ipb3-home .pastor-card .role { color: var(--green); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; font-family: "Source Sans 3", "Segoe UI", sans-serif; }
.ipb3-home .pastor-card h3 { margin: 6px 0 8px; }
.ipb3-home .pastor-card p { color: var(--muted); font-size: 0.95rem; }

/* -------------------------------------------------------------------------- */
/* Ministérios, galeria, agenda                                               */
/* -------------------------------------------------------------------------- */
.ipb3-home .min-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ipb3-home .min-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
}
a.min-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.min-card-link:hover,
a.min-card-link:focus-visible {
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(0, 91, 64, 0.10);
  transform: translateY(-2px);
  color: inherit;
}
a.min-card-link:hover h3,
a.min-card-link:focus-visible h3 { color: var(--green); }
.ipb3-home .min-card h3 { margin: 10px 0 8px; }
.ipb3-home .min-card p { color: var(--muted); }
.ipb3-home .min-card .leader { color: var(--ink); font-weight: 600; margin-top: 10px; font-size: 0.95rem; }
.ipb3-home .min-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--green-soft);
  color: var(--green); display: grid; place-items: center;
}

.ipb3-home .gallery-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.ipb3-home .gallery-strip a {
  display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 1; background: #111;
}
.ipb3-home .gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.ipb3-home .gallery-strip a:hover img { transform: scale(1.04); }
.ipb3-home .gallery-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.ipb3-home .gallery-note a { color: var(--green); text-decoration: underline; }

.ipb3-home .agenda-empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
.ipb3-home .agenda-empty h3 { margin-bottom: 8px; color: var(--green); }
.ipb3-home .agenda-empty p { color: var(--muted); max-width: 540px; margin: 0 auto; }

.ipb3-home .ipb3-event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ipb3-home .ipb3-event-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ipb3-home .ipb3-event-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ipb3-home .ipb3-event-body { padding: 18px 20px 22px; }
.ipb3-home .ipb3-aviso-list { list-style: none; display: grid; gap: 12px; }
.ipb3-home .ipb3-aviso-list li { background: var(--green-soft); border-radius: 12px; padding: 16px 18px; }

/* -------------------------------------------------------------------------- */
/* Mapa, PIX, contato                                                         */
/* -------------------------------------------------------------------------- */
.ipb3-home .split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
.ipb3-home .panel { background: var(--white); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.ipb3-home .panel .pad { padding: 26px; }
.ipb3-home .map-embed { position: relative; background: #111; min-height: 320px; }
.ipb3-home .map-embed iframe { width: 100%; height: 320px; border: 0; display: block; position: relative; z-index: 2; background: transparent; }
.ipb3-home .map-fallback { position: absolute; inset: 0; z-index: 1; display: block; }
.ipb3-home .map-fallback img { width: 100%; height: 320px; object-fit: cover; object-position: center 30%; border: 0; display: block; }
.ipb3-home .addr p { margin: 4px 0; }
.ipb3-home .addr h3 { margin: 6px 0 10px; }
.ipb3-home .pix {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--green-soft); padding: 12px 14px; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: 12px 0 18px; font-size: 1.05rem; color: var(--ink);
}
.ipb3-home .copy-btn {
  border: 0; background: var(--green); color: var(--white); border-radius: 999px;
  padding: 7px 12px; font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.ipb3-home .copy-btn:hover { background: var(--green-dark); }
.ipb3-home .bank { color: var(--muted); font-size: 0.95rem; }
.ipb3-home .bank li { list-style: none; margin: 2px 0; }

.ipb3-home .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ipb3-home .contact-list { display: grid; gap: 16px; margin-top: 24px; }
.ipb3-home .contact-item strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 2px; font-family: "Source Sans 3", "Segoe UI", sans-serif; }
.ipb3-home .contact-item a { color: var(--ink); text-decoration: none; }
.ipb3-home .contact-item a:hover { color: var(--green); }
.ipb3-home .contact-social { margin-top: 22px; color: var(--muted); }
.ipb3-home .contact-social a { color: var(--green); text-decoration: underline; }
.ipb3-home .contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
}
.ipb3-home .contact-card p { color: var(--muted); margin: 10px 0 18px; }

.ipb3-home .ipb3-empty { color: var(--muted); padding: 12px 0; }


/* -------------------------------------------------------------------------- */
/* Platforms logo wall                                                        */
/* -------------------------------------------------------------------------- */
.ipb3-home .ipb3-plataformas { padding-top: 24px; }
.ipb3-home .ipb3-plataformas-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 48px 40px 44px;
}
.ipb3-home .ipb3-plataformas-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  margin: 0 0 36px;
  line-height: 1.25;
}
.ipb3-home .ipb3-plataformas-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px 28px;
}
.ipb3-home .ipb3-plat-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
  flex: 1 1 140px;
  max-width: 220px;
  opacity: 0.82;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ipb3-home .ipb3-plat-logo:hover,
.ipb3-home .ipb3-plat-logo:focus-visible {
  opacity: 1;
  color: #111111;
  transform: translateY(-1px);
}
.ipb3-home .ipb3-plat-logo svg {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  fill: currentColor;
  overflow: visible;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
footer.ipb3-footer {
  --black: #111111;
  background: var(--black); color: #C8C8C8; padding: 56px 0 24px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.65;
  width: 100%;
  clear: both;
}
footer.ipb3-footer .wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
footer.ipb3-footer .foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
footer.ipb3-footer h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #ffffff; font-size: 1.35rem; margin: 0 0 12px; font-weight: 600;
}
footer.ipb3-footer p { margin: 0; }
footer.ipb3-footer a { color: #E8E8E8; text-decoration: none; }
footer.ipb3-footer a:hover { color: #C8E6DA; }
footer.ipb3-footer ul { list-style: none; margin: 0; padding: 0; }
footer.ipb3-footer li { margin: 6px 0; }
footer.ipb3-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 0.88rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .ipb3-home .schedule-grid,
  .ipb3-home .sermon-layout,
  .ipb3-home .series-row,
  .ipb3-home .about-grid,
  .ipb3-home .split,
  .ipb3-home .contact-grid,
  footer.ipb3-footer .foot-grid,
  .ipb3-home .ipb3-event-grid {
    grid-template-columns: 1fr;
  }
  .ipb3-home .min-grid { grid-template-columns: 1fr 1fr; }
  .ipb3-home .gallery-strip { grid-template-columns: 1fr 1fr; }
  .ipb3-home .hero-inner { padding: 80px 0 150px; }
  .ipb3-home .schedule-shift { margin-top: -70px !important; }
  .ipb3-home .v-item { grid-template-columns: 120px 1fr; }
  .ipb3-home .v-item img { width: 120px; }
  .ipb3-home .section { padding: 64px 0; }
  .ipb3-home .ipb3-plataformas-card { padding: 36px 24px 32px; }
  .ipb3-home .ipb3-plataformas-card h2 { font-size: 1.7rem; margin-bottom: 28px; }
  .ipb3-home .ipb3-plataformas-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 12px;
    justify-items: center;
  }
  .ipb3-home .ipb3-plat-logo {
    flex: none;
    max-width: none;
    width: 100%;
    padding: 8px 4px;
  }
  .ipb3-home .ipb3-plat-logo svg { height: 28px; }
}
@media (max-width: 640px) {
  .ipb3-topbar .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0 12px;
  }
  .ipb3-topbar .topbar-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px 12px;
  }
  .ipb3-topbar .topbar-meta span:nth-child(2),
  .ipb3-topbar .topbar-meta span:nth-child(3) { display: inline-flex; }
  .ipb3-home .wrap,
  .ipb3-topbar .wrap,
  footer.ipb3-footer .wrap { width: min(1160px, calc(100% - 28px)); }
  .ipb3-home .next-service { width: 100%; }
  .ipb3-home .min-grid { grid-template-columns: 1fr; }
  .ipb3-home .ipb3-plataformas { padding-top: 8px; }
  .ipb3-home .ipb3-plataformas-card { padding: 28px 16px 24px; }
  .ipb3-home .ipb3-plataformas-card h2 { font-size: 1.5rem; margin-bottom: 22px; }
  .ipb3-home .ipb3-plataformas-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
  }
  .ipb3-home .ipb3-plat-logo { min-height: 44px; }
  .ipb3-home .ipb3-plat-logo svg { height: 24px; }
}
