/* Keep the header in normal flow so it cannot cover the top of the banner. */
body.header-horizontal #header.a13-horizontal {
  position: sticky;
  top: 0;
  z-index: 11;
}

#mid [id="home"],
#mid [id="sobre"],
#mid [id="servicos"],
#mid [id="sistemas"],
#mid [id="contato"] {
  scroll-margin-top: 112px;
}

/* Full-width sections are laid out without the original builder script. */
#mid #content > .content-limiter {
  width: 100%;
  max-width: none;
}

.notari-hero {
  background: #d8e6f0 url("original/wp-content/uploads/2026/03/bg_35.jpg") center top / cover no-repeat;
}

.notari-hero-inner {
  display: grid;
  min-height: clamp(530px, 45vw, 630px);
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: end;
  column-gap: clamp(12px, 3vw, 52px);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(24px, 3vw, 52px);
}

.notari-hero-copy {
  align-self: start;
  padding-block: clamp(72px, 10vw, 142px) 28px;
  color: #193f74;
}

#home .notari-hero-copy h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 800;
  line-height: 1.17;
  text-transform: uppercase;
}

#home .notari-hero-copy p {
  margin: 12px 0 0;
  color: inherit;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.35;
}

.notari-hero-portrait {
  display: block;
  width: min(100%, 545px);
  height: auto;
  justify-self: center;
  align-self: end;
  margin-top: clamp(26px, 3vw, 42px);
}

@media (max-width: 767px) {
  #mid [id="home"],
  #mid [id="sobre"],
  #mid [id="servicos"],
  #mid [id="sistemas"],
  #mid [id="contato"] {
    scroll-margin-top: 84px;
  }

  .notari-hero {
    background-image:
      linear-gradient(180deg, #e9f3fa 0%, #e9f3fac7 32%, transparent 73%),
      url("original/wp-content/uploads/2026/03/BG_07.jpg");
    background-position: center;
  }

  .notari-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    row-gap: 8px;
    padding-inline: 18px;
    text-align: center;
  }

  .notari-hero-copy {
    padding-block: 32px 0;
  }

  #home .notari-hero-copy h1 {
    max-width: 24ch;
    margin-inline: auto;
  }

  #home .notari-hero-copy p {
    margin-top: 8px;
  }

  .notari-hero-portrait {
    width: min(82vw, 350px);
    margin-top: 0;
  }
}

@media (min-width: 1025px) {
  .notari-hero {
    background-attachment: fixed;
  }

  .notari-hero-portrait {
    position: relative;
    left: -30px;
  }
}
