.brand-logo {
  display: block;
  width: 230px;
  height: 63px;
  object-fit: contain;
}

.site-header .brand {
  overflow: hidden;
}

.hero-image {
  background-image: url('assets/hero-cidade-interior-invertido.webp');
  background-position: center;
}

.interior-focus {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  background: #fff;
}

.interior-copy .section-label {
  margin-bottom: 42px;
}

.interior-copy > p:last-child {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.interior-image {
  margin: 0;
  position: relative;
}

.interior-image::before {
  content: "";
  position: absolute;
  inset: -15px 15px 15px -15px;
  border: 1px solid var(--green);
}

.interior-image img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.interior-image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 12px 17px;
  background: rgba(7, 29, 57, .94);
  color: #fff;
  font: 700 10px/1.2 'Manrope', sans-serif;
  letter-spacing: 1.5px;
}

.service-process-grid .service-step {
  display: flex;
  min-height: 590px;
  padding: 0;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s ease, background-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.service-process-grid .service-step:nth-child(3) {
  background: var(--green);
  color: #fff;
}

.service-process-grid .service-step:nth-child(3) .service-kicker,
.service-process-grid .service-step:nth-child(3) h3 {
  color: #fff;
}

.service-process-grid .service-step:nth-child(3) .service-body > p {
  color: rgba(255, 255, 255, .9);
}

.service-process-grid .service-step:hover,
.service-process-grid .service-step:focus-within {
  z-index: 3;
  background: #0c4f7f;
  color: #fff;
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(7, 29, 57, .22), 0 0 0 2px rgba(77, 165, 224, .3);
}

.service-process-grid .service-step:hover .service-body > p,
.service-process-grid .service-step:focus-within .service-body > p {
  color: #d9e9f3;
}

.service-process-grid .service-step:hover .service-kicker,
.service-process-grid .service-step:focus-within .service-kicker {
  color: #b9eb91;
}

.service-step > span {
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 7px 9px;
  background: rgba(4, 21, 43, .86);
  color: #fff;
}

.service-media {
  height: 245px;
  overflow: hidden;
  background: #071d39;
}

.service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.service-step:hover .service-media img {
  transform: scale(1.035);
}

.service-body {
  display: flex;
  flex: 1;
  padding: 30px 32px 34px;
  flex-direction: column;
}

.service-step .service-kicker {
  margin: 0;
  color: var(--green);
  font: 800 11px/1.2 'Manrope', sans-serif;
  letter-spacing: 1.5px;
}

.service-step h3 {
  margin: 18px 0 15px;
}

.service-step .service-body > p:last-child,
.service-step .service-body > a:last-child {
  margin-top: auto;
}

.service-step.featured .service-kicker {
  color: #9edb72;
}

.post.has-image {
  display: flex;
  flex-direction: column;
}

.post.has-image .post-image {
  width: calc(100% + 48px);
  height: 210px;
  margin: -24px -24px 25px;
  object-fit: cover;
}

.post-date {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  color: #8a98a2;
  font-size: 12px;
}

.post-read {
  align-self: flex-start;
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: 700 13px/1.4 'DM Sans', sans-serif;
  cursor: pointer;
}

.post-read:hover {
  color: var(--green);
}

.news-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(4, 21, 43, .35);
}

.news-dialog::backdrop {
  background: rgba(4, 21, 43, .72);
  backdrop-filter: blur(3px);
}

.news-dialog-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 14px 14px -56px 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 29, 57, .88);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.news-dialog-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.news-dialog-body {
  padding: clamp(28px, 5vw, 56px);
}

.news-dialog-category {
  margin: 0 0 12px;
  color: var(--green);
  font: 800 11px/1.3 'Manrope', sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.news-dialog h2 {
  margin: 0;
  color: var(--navy);
  font: 800 clamp(28px, 4vw, 44px)/1.12 'Manrope', sans-serif;
  letter-spacing: -1.5px;
}

.news-dialog-date {
  margin: 14px 0 30px;
  color: #7d8b96;
  font-size: 13px;
}

.news-dialog-content {
  color: #4f6070;
  font-size: 17px;
  white-space: pre-line;
}

.diagnostic-art img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.instagram-showcase {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  align-items: center;
  gap: clamp(45px, 7vw, 100px);
  background: #fff;
}

.instagram-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 35px;
}

.instagram-heading .eyebrow {
  margin-bottom: 3px;
}

.instagram-heading strong {
  color: var(--navy);
  font: 800 20px/1.2 'Manrope', sans-serif;
}

.instagram-glyph {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0c3c69, #61b947);
}

.instagram-glyph svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.instagram-glyph .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.instagram-copy > p {
  max-width: 560px;
  margin: 25px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.instagram-button {
  color: #fff;
  background: var(--blue);
}

.instagram-button:hover {
  background: #105382;
}

.instagram-preview {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 22px 65px rgba(7, 29, 57, .13);
  transition: transform .3s ease, box-shadow .3s ease;
}

.instagram-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 75px rgba(7, 29, 57, .19);
}

.instagram-profile {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
}

.instagram-profile img {
  width: 48px;
  height: 48px;
  padding: 5px;
  object-fit: contain;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.instagram-profile div {
  display: flex;
  flex-direction: column;
}

.instagram-profile b {
  color: var(--navy);
  font: 800 15px/1.3 'Manrope', sans-serif;
}

.instagram-profile small {
  color: var(--muted);
  font-size: 12px;
}

.instagram-profile > span {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: #fff;
}

.instagram-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--navy);
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.instagram-preview:hover .instagram-grid img {
  transform: scale(1.035);
}

.instagram-grid figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 8px 9px;
  color: #fff;
  background: rgba(4, 21, 43, .82);
  font: 800 9px/1.2 'Manrope', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.transformation-safe {
  height: min(54vw, 620px);
  min-height: 470px;
  background:
    radial-gradient(circle at 78% 50%, rgba(120, 216, 92, .18), transparent 24%),
    linear-gradient(135deg, #061a34 0%, #0d3558 64%, #0b2947 100%);
}

.transformation-safe > img {
  object-position: center;
  filter: saturate(.85) contrast(1.03);
}

.transformation-safe::after {
  background: linear-gradient(90deg, rgba(3, 16, 34, .54), transparent 70%);
}

.pem-logo-official {
  display: block;
  align-self: center;
  padding: 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(7, 29, 57, .08);
}

.pem-logo-official img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer-brand .brand-logo {
  width: 190px;
  height: 54px;
}

.whatsapp {
  padding: 7px 17px 7px 8px;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--green);
}

.whatsapp img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 9px;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .site-header nav {
    gap: 16px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .brand-logo {
    width: 188px;
    height: 53px;
  }

  .interior-focus {
    grid-template-columns: 1fr;
  }

  .instagram-showcase {
    grid-template-columns: 1fr;
  }

  .pem-logo-official {
    width: min(250px, 70vw);
  }
}

@media (max-width: 620px) {
  .brand-logo {
    width: 168px;
    height: 48px;
  }

  .hero-image {
    background-position: 58% center;
  }

  .interior-focus {
    gap: 46px;
  }

  .interior-image::before {
    inset: -9px 9px 9px -9px;
  }

  .transformation-safe {
    height: 570px;
  }

  .service-process-grid .service-step {
    min-height: 0;
  }

  .service-media {
    height: 230px;
  }

  .instagram-profile {
    grid-template-columns: 44px 1fr;
  }

  .instagram-profile > span {
    display: none;
  }

  .instagram-grid figcaption {
    right: 6px;
    bottom: 6px;
    left: 6px;
    padding: 6px;
    font-size: 8px;
  }

  .whatsapp {
    width: 60px;
    height: 60px;
    padding: 5px;
  }

  .whatsapp img {
    width: 46px;
    height: 46px;
  }
}
