/**
 * Site-wide black footer (plugin) and clean page titles.
 * Palette: green #005B40 / #004632, soft #F0FBF6, white, black #111 / #383838.
 */

/* -------------------------------------------------------------------------- */
/* Hide the theme footer on the public site (front end only; this file is not */
/* enqueued in wp-admin). The plugin prints footer.ipb3-footer instead.       */
/* -------------------------------------------------------------------------- */
body.ipb3-site footer.site-footer,
body.ipb3-site footer.site-footer-bottom,
body.ipb3-site #footer:not(.ipb3-footer),
body.ipb3-site .footer-wrapper,
body.ipb3-site footer.wp-block-template-part,
body.ipb3-site .site-footer-bottom,
body.ipb3-site footer.site:not(.ipb3-footer) {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Plugin footer (same as the homepage)                                       */
/* -------------------------------------------------------------------------- */
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 * {
  box-sizing: border-box;
}
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;
}

@media (max-width: 900px) {
  footer.ipb3-footer .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  footer.ipb3-footer .wrap { width: min(1160px, calc(100% - 28px)); }
}

/* -------------------------------------------------------------------------- */
/* Clean page title (same typography as Blog / Conselho)                      */
/* -------------------------------------------------------------------------- */
body.ipb3-clean-title .slider-revolution-new,
body.ipb3-clean-title .nav-backed-header,
body.ipb3-clean-title .hero-slider,
body.ipb3-clean-title ol.breadcrumb,
body.ipb3-clean-title .breadcrumb {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: none !important;
}

body.ipb3-clean-title .page-header {
  background: #ffffff !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 48px 0 0 !important;
  min-height: 0 !important;
}

body.ipb3-clean-title .page-header,
body.ipb3-clean-title .page-header .container,
body.ipb3-clean-title .page-header .row,
body.ipb3-clean-title .page-header .detail-page-title-bar,
body.ipb3-clean-title .page-header [class*="col-"],
body.ipb3-clean-title .page-header h1,
body.ipb3-clean-title .page-header h1.cpt-page-title {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
body.ipb3-clean-title .page-header .container,
body.ipb3-clean-title .page-header .row,
body.ipb3-clean-title .page-header .detail-page-title-bar {
  width: min(1160px, calc(100% - 40px)) !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  padding: 0 !important;
  background: transparent !important;
}
/* Exactly one divider, like the Blog title, spanning the content column. */
body.ipb3-clean-title .page-header .container {
  padding: 0 0 20px !important;
  border-bottom: 1px solid #D5E6DC !important;
}

body.ipb3-clean-title .page-header .col-md-12,
body.ipb3-clean-title .page-header .col-sm-12,
body.ipb3-clean-title .page-header .col-md-8,
body.ipb3-clean-title .page-header .col-sm-8 {
  width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.ipb3-clean-title .page-header h1,
body.ipb3-clean-title .page-header h1.cpt-page-title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 2.55rem !important;
  letter-spacing: -0.02em !important;
  color: #111111 !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

body.ipb3-clean-title #content,
body.ipb3-clean-title #content-col,
body.ipb3-clean-title .content,
body.ipb3-clean-title .page-content,
body.ipb3-clean-title .entry-content,
body.ipb3-clean-title .post-content,
body.ipb3-clean-title .page-section {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: #111111;
}

body.ipb3-clean-title #content h1,
body.ipb3-clean-title #content h2,
body.ipb3-clean-title #content h3,
body.ipb3-clean-title .page-content h1,
body.ipb3-clean-title .page-content h2,
body.ipb3-clean-title .page-content h3,
body.ipb3-clean-title .entry-content h1,
body.ipb3-clean-title .entry-content h2,
body.ipb3-clean-title .entry-content h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* Leave Tainacan’s own UI (search, grid, items) intact. */
body.ipb3-clean-title .wp-block-tainacan-faceted-search,
body.ipb3-clean-title #tainacan-items-page,
body.ipb3-clean-title [class*="tainacan-"] {
  font-family: inherit;
}

@media (max-width: 640px) {
  body.ipb3-clean-title .page-header {
    padding-top: 32px !important;
  }
  body.ipb3-clean-title .page-header h1,
  body.ipb3-clean-title .page-header h1.cpt-page-title {
    font-size: 2.05rem !important;
  }
  body.ipb3-clean-title .page-header .container,
  body.ipb3-clean-title .page-header .row,
  body.ipb3-clean-title .page-header .detail-page-title-bar {
    width: min(1160px, calc(100% - 28px)) !important;
  }
}
