:root {
  --env-green: #2f6e1c;
  --env-green-dark: #164c13;
  --env-green-deep: #0c4213;
  --env-green-light: #58a63c;
  --env-text: #202420;
  --env-muted: #50584f;
  --env-border: #e3e7e0;
  --env-container: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--env-text);
  background: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.env-container {
  width: min(calc(100% - 40px), var(--env-container));
  margin-inline: auto;
}

.env-header {
  height: 148px;
  background: #fff;
  position: relative;
  z-index: 40;
}
.env-header-inner { height: 100%; position: relative; }
.env-brand {
  position: absolute;
  left: 0;
  top: 16px;
  width: 360px;
}
.env-brand img { width: 100%; height: auto; }
.env-nav {
  position: absolute;
  right: 0;
  top: 56px;
  display: flex;
  align-items: center;
  gap: 27px;
}
.env-nav > a,
.env-nav-services {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease;
}
.env-nav > a:not(.env-whatsapp):hover,
.env-nav-services:hover { color: var(--env-green); }
.env-nav-dropdown { position: relative; }
.env-nav-services {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.env-nav-services svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--env-green);
  stroke-width: 2;
}
.env-dropdown-menu {
  position: absolute;
  top: 31px;
  left: -18px;
  width: 260px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s ease;
}
.env-nav-dropdown:hover .env-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.env-dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.env-dropdown-menu a:hover { background: #f1f7ef; color: var(--env-green); }
.env-whatsapp {
  min-width: 158px;
  height: 46px;
  padding: 0 20px;
  border-radius: 5px;
  background: #2f711d;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700 !important;
  box-shadow: 0 2px 5px rgba(22,76,19,.17);
}
.env-whatsapp svg { width: 21px; height: 21px; fill: #fff; }
.env-menu-toggle { display: none; }

.env-hero {
  height: 335px;
  position: relative;
  background:
    linear-gradient(90deg, rgba(13,66,18,.93) 0%, rgba(25,84,22,.77) 34%, rgba(31,89,23,.28) 58%, rgba(18,65,17,.24) 100%),
    url("../img/ambiental-hero-leaf.jpg") center 54% / cover no-repeat;
}
.env-hero-inner { height: 100%; display: flex; align-items: center; }
.env-hero-copy { color: #fff; padding-left: 0; }
.env-hero-copy h1 {
  margin: 0 0 17px;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: .2px;
  font-weight: 800;
  text-transform: uppercase;
}
.env-hero-copy p {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 400;
}

.env-intro {
  padding: 82px 0 86px;
  background: linear-gradient(180deg, #fbfcf8 0%, #f7faf4 100%);
  border-bottom: 1px solid #edf2e9;
}
.env-intro-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 76px;
  align-items: center;
}
.env-intro-copy { padding: 28px 0 28px 8px; }
.env-intro-copy h2 {
  margin: 0;
  color: var(--env-green);
  font-size: 31px;
  line-height: 1.18;
  font-weight: 700;
}
.env-title-line {
  display: block;
  width: 50px;
  height: 3px;
  background: #62ad40;
  margin: 22px 0 22px;
}
.env-intro-copy p {
  max-width: 470px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
}
.env-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 0 20px;
  border-radius: 4px;
  color: #fff;
  background: #32791f;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(30,94,18,.16);
}
.env-primary-btn svg { width: 20px; height: 20px; fill: #fff; }
.env-intro-image {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
}
.env-intro-image img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.env-areas {
  padding: 78px 0 88px;
  background: #fff;
  border-bottom: 1px solid #edf2e9;
}
.env-section-title {
  text-align: center;
  margin-bottom: 38px;
}
.env-section-title h2 {
  margin: 0;
  color: var(--env-green);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
}
.env-section-title > span {
  display: block;
  width: 52px;
  height: 3px;
  background: #67ad43;
  margin: 9px auto 0;
}
.env-area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
}
.env-area-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e4eae0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 77, 19, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.env-area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(24, 77, 19, .11);
}
.env-area-card > img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}
.env-area-icon {
  position: absolute;
  top: 132px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4d962d;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
}
.env-area-icon svg { width: 39px; height: 39px; }
.env-area-body {
  min-height: 175px;
  padding: 44px 24px 28px;
  text-align: center;
}
.env-area-body h3 {
  margin: 0 0 8px;
  color: var(--env-green);
  font-size: 19px;
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
}
.env-area-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.52;
}
.env-area-grid .env-area-card:nth-child(n+4) { margin-top: 0; }

.env-differentials {
  padding: 78px 0 82px;
  background: linear-gradient(180deg, #f8fbf6 0%, #f4f8f1 100%);
  border-bottom: 1px solid #e6eee2;
}
.env-section-title.compact { margin-bottom: 40px; }
.env-diff-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 0;
}
.env-diff-grid article {
  min-height: 205px;
  padding: 24px 28px 18px;
  text-align: center;
  position: relative;
}
.env-diff-grid article + article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: #d8ddd5;
}
.env-diff-grid svg {
  width: 62px;
  height: 62px;
  color: #4b922d;
  margin: 0 auto 16px;
}
.env-diff-grid h3 {
  margin: 0 0 11px;
  color: #266818;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 700;
}
.env-diff-grid p {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.5;
}

.env-cta {
  min-height: 158px;
  background:
    linear-gradient(90deg, rgba(18,74,18,.92) 0%, rgba(25,92,20,.90) 48%, rgba(31,103,27,.88) 100%),
    url("../img/ambiental-cta-bg.jpg") center center / cover no-repeat;
  color: #fff;
}
.env-cta-inner {
  min-height: 158px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.env-cta-message {
  display: flex;
  align-items: center;
  gap: 27px;
}
.env-cta-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 76px;
}
.env-cta-icon .cta-icon-image {
  width: 76px;
  height: 76px;
  display: block;
  object-fit: contain;
}
.env-cta-message strong {
  font-size: 25px;
  line-height: 1.15;
  font-weight: 700;
}
.env-cta-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 31px;
}
.env-cta-action p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}
.env-white-btn {
  min-height: 47px;
  min-width: 272px;
  padding: 0 20px;
  border-radius: 4px;
  background: #fff;
  color: #347a21;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}
.env-white-btn svg { width: 21px; height: 21px; fill: #3a982c; }

.env-footer {
  color: #fff;
  background: linear-gradient(90deg, #0b4513 0%, #12551a 55%, #0a4212 100%);
}
.env-footer-grid {
  min-height: 280px;
  padding: 52px 0 40px;
  display: grid;
  grid-template-columns: 1.45fr .72fr .84fr 1.15fr;
  gap: 45px;
}
.env-footer-brand img {
  width: 330px;
  height: auto;
}
.env-footer-brand p {
  max-width: 340px;
  margin: 16px 0 12px;
  font-size: 13px;
  line-height: 1.52;
}
.env-socials { display: flex; gap: 12px; }
.env-socials a {
  width: 27px; height: 27px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.env-footer-col h3 {
  margin: 9px 0 18px;
  font-size: 14px;
  font-weight: 700;
}
.env-footer-col > a {
  display: block;
  margin-bottom: 13px;
  font-size: 13px;
  color: rgba(255,255,255,.94);
}
.env-footer-contact { border-left: 1px solid rgba(255,255,255,.35); padding-left: 37px; }
.env-footer-contact p {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
}
.env-footer-contact svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: #fff;
}
.env-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.28);
  min-height: 45px;
}
.env-footer-bottom .env-container {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255,255,255,.85);
}
.env-footer-bottom div div { display: flex; gap: 40px; }

@media (max-width: 1180px) {
  .env-nav { gap: 18px; }
  .env-nav > a, .env-nav-services { font-size: 12px; }
  .env-whatsapp { min-width: 142px; }
}

@media (max-width: 980px) {
  .env-header { height: 104px; position: sticky; top: 0; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
  .env-brand { top: 13px; width: 220px; }
  .env-menu-toggle {
    position: absolute;
    right: 0; top: 28px;
    width: 39px; height: 39px;
    padding: 6px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .env-menu-toggle span { width: 25px; height: 2px; background: #235a17; transition: .2s ease; }
  .env-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .env-menu-toggle.open span:nth-child(2) { opacity: 0; }
  .env-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .env-nav {
    display: none;
    position: absolute;
    top: 104px; left: -20px; right: -20px;
    padding: 10px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
  }
  .env-nav.open { display: flex; }
  .env-nav > a, .env-nav-services { min-height: 43px; display: flex; align-items: center; font-size: 14px; }
  .env-nav-dropdown { width: 100%; }
  .env-dropdown-menu { display: none; }
  .env-whatsapp { margin-top: 8px; width: 100%; }
  .env-hero { height: 310px; }
  .env-hero-copy h1 { font-size: 41px; }
  .env-hero-copy p { font-size: 17px; }
  .env-intro-grid { grid-template-columns: 1fr; gap: 18px; }
  .env-intro-copy { padding: 24px 0 18px; }
  .env-intro-image img { height: 340px; }
  .env-area-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .env-diff-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .env-diff-grid article + article::before { display: none; }
  .env-cta-inner { grid-template-columns: 1fr; padding: 22px 0; gap: 20px; }
  .env-cta-action { justify-content: space-between; }
  .env-cta-action p { text-align: left; }
  .env-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .env-footer-contact { border-left: 0; padding-left: 0; }
}

@media (max-width: 620px) {
  .env-container { width: calc(100% - 28px); }
  .env-brand { width: 220px; top: 18px; }
  .env-hero { height: 285px; background-position: 58% center; }
  .env-hero-copy h1 { font-size: 34px; }
  .env-hero-copy p { font-size: 15px; }
  .env-intro-copy h2 { font-size: 27px; }
  .env-intro-image img { height: 245px; }
  .env-section-title h2 { font-size: 26px; }
  .env-area-grid { grid-template-columns: 1fr; }
  .env-area-card > img { height: 145px; }
  .env-area-icon { top: 112px; }
  .env-diff-grid { grid-template-columns: 1fr; }
  .env-diff-grid article { min-height: 165px; }
  .env-cta-message { gap: 15px; }
  .env-cta-message strong { font-size: 20px; }
  .env-cta-icon { width: 62px; height: 62px; }
  .env-cta-action { flex-direction: column; align-items: stretch; }
  .env-white-btn { width: 100%; min-width: 0; }
  .env-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .env-footer-bottom .env-container { flex-direction: column; justify-content: center; gap: 7px; padding: 10px 0; text-align: center; }
  .env-footer-bottom div div { gap: 20px; }
}


/* Refinamento de ritmo vertical entre as seções */
.env-intro,
.env-areas,
.env-differentials,
.env-cta,
.env-footer {
  scroll-margin-top: 110px;
}

.env-intro-grid {
  min-height: 455px;
}

.env-section-title h2 {
  letter-spacing: .1px;
}

.env-area-body p {
  max-width: 310px;
  margin-left: auto;
  margin-right: auto;
}

.env-diff-grid p {
  max-width: 195px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 981px) {
  .env-areas .env-container,
  .env-differentials .env-container {
    padding-left: 4px;
    padding-right: 4px;
  }
}


@media (max-width: 980px) {
  .env-intro { padding: 58px 0 62px; }
  .env-areas { padding: 60px 0 68px; }
  .env-differentials { padding: 60px 0 64px; }
  .env-section-title { margin-bottom: 32px; }
  .env-section-title.compact { margin-bottom: 32px; }
  .env-area-grid { gap: 22px; }
}

@media (max-width: 620px) {
  .env-intro { padding: 46px 0 50px; }
  .env-areas { padding: 48px 0 54px; }
  .env-differentials { padding: 48px 0 52px; }
  .env-section-title { margin-bottom: 28px; }
  .env-area-grid { gap: 20px; }
  .env-area-card > img { height: 160px; }
  .env-area-icon { top: 127px; }
  .env-area-body { min-height: 0; padding: 44px 22px 28px; }
}


/* =========================================================
   Serviços / modais
   ========================================================= */

.env-dropdown-menu button {
  width: 100%;
  display: block;
  padding: 10px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--env-text);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.env-dropdown-menu button:hover,
.env-dropdown-menu button:focus-visible {
  background: #f1f7ef;
  color: var(--env-green);
  outline: none;
}

.env-service-more {
  margin-top: 18px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--env-green);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.env-service-more:hover,
.env-service-more:focus-visible {
  color: #1b5610;
  outline: none;
}

.env-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 30, 10, .62);
  backdrop-filter: blur(4px);
}

.env-service-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.env-service-modal[hidden],
.env-modal-backdrop[hidden] {
  display: none !important;
}

.env-service-modal-dialog {
  width: min(100%, 650px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  padding: 42px 46px 40px;
}

.env-modal-close {
  position: absolute;
  right: 18px;
  top: 15px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eff6ec;
  color: #285f1b;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.env-modal-close:hover,
.env-modal-close:focus-visible {
  background: #dfeeda;
  outline: none;
}

.env-modal-badge {
  margin-bottom: 16px;
}
.env-modal-badge span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf6e9;
  color: #357623;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.env-service-modal h2 {
  margin: 0 0 14px;
  color: var(--env-green);
  font-size: 31px;
  line-height: 1.15;
}
.env-modal-intro {
  margin: 0 0 22px;
  color: #3f493d;
  font-size: 14.5px;
  line-height: 1.7;
}
.env-service-modal ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.env-service-modal li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid #eef2ec;
  font-size: 13.5px;
  line-height: 1.45;
}
.env-service-modal li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 10px;
  color: #4b992f;
  font-weight: 800;
}
.env-modal-actions {
  display: flex;
  justify-content: flex-start;
}
.env-modal-whatsapp {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 6px;
  background: #2f791e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}
.env-modal-whatsapp svg {
  width: 21px;
  height: 21px;
  fill: #fff;
}
.env-modal-whatsapp:hover {
  background: #246416;
}

body.env-modal-open {
  overflow: hidden;
}

.env-footer-whatsapp {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.env-footer-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

@media (max-width: 980px) {
  .env-dropdown-menu {
    position: static;
    width: 100%;
    padding: 2px 0 8px 15px;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
  }
  .env-dropdown-menu button {
    font-size: 13px;
    min-height: 38px;
  }
}

@media (max-width: 620px) {
  .env-service-modal {
    padding: 12px;
    align-items: flex-end;
  }
  .env-service-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 38px 24px 28px;
    border-radius: 18px 18px 10px 10px;
  }
  .env-service-modal h2 {
    font-size: 27px;
  }
  .env-modal-whatsapp {
    width: 100%;
    text-align: center;
  }
}


/* =========================================================
   HEADER AMBIENTAL SINCRONIZADO COM O PORTAL INICIAL
   Mesmas dimensões, tipografia, margens e comportamento.
   ========================================================= */

.env-container {
  width: min(calc(100% - 32px), var(--env-container));
  margin-inline: auto;
}

.env-header {
  width: 100%;
  height: 176px;
  background: #fff;
  position: relative;
  z-index: 30;
}

.env-header-inner {
  height: 100%;
  position: relative;
}

.env-brand {
  position: absolute;
  top: 18px;
  left: 0;
  width: 350px;
}

.env-brand img {
  width: 350px;
  height: auto;
}

.env-nav {
  position: absolute;
  right: 0;
  top: 69px;
  display: flex;
  align-items: center;
  gap: 36px;
  height: 36px;
}

.env-nav > a:not(.env-whatsapp),
.env-nav-services {
  position: relative;
  height: 34px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  color: #1c1c1c;
  transition: color .2s ease;
}

.env-nav > a:not(.env-whatsapp)::after,
.env-nav-services::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #52aa36;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.env-nav > a:not(.env-whatsapp):hover,
.env-nav > a:not(.env-whatsapp).active,
.env-nav-services:hover,
.env-nav-services.active {
  color: #3f8d2f;
}

.env-nav > a:not(.env-whatsapp):hover::after,
.env-nav > a:not(.env-whatsapp).active::after,
.env-nav-services:hover::after,
.env-nav-services.active::after {
  transform: scaleX(1);
}

.env-nav-dropdown {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

.env-nav-services {
  gap: 5px;
}

.env-nav-services svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #3f8d2f;
  stroke-width: 2;
}

.env-dropdown-menu {
  top: 39px;
}

.env-whatsapp {
  margin-left: 10px;
  min-width: 0;
  width: 94px;
  height: 34px;
  padding: 0;
  border-radius: 5px;
  background: #04366c;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600 !important;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(2, 43, 86, .16);
  transition: transform .2s ease, background .2s ease;
}

.env-whatsapp svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.env-whatsapp:hover {
  transform: translateY(-1px);
  background: #0a4c8f;
}

.env-menu-toggle {
  display: none;
}

/* Entre 821 e 980px o portal ainda usa o header desktop. */
@media (min-width: 821px) and (max-width: 980px) {
  .env-container {
    width: min(calc(100% - 28px), var(--env-container));
  }

  .env-header {
    height: 176px;
    position: relative;
    top: auto;
    box-shadow: none;
  }

  .env-header-inner {
    display: block;
  }

  .env-brand {
    position: absolute;
    top: 18px;
    left: 0;
    width: 350px;
  }

  .env-brand img {
    width: 350px;
  }

  .env-menu-toggle {
    display: none;
  }

  .env-nav {
    position: absolute;
    top: 69px;
    left: auto;
    right: 0;
    height: 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .env-nav > a:not(.env-whatsapp),
  .env-nav-services {
    min-height: 0;
    height: 34px;
    font-size: 12.5px;
  }

  .env-nav-dropdown {
    width: auto;
    height: 34px;
  }

  .env-dropdown-menu {
    position: absolute;
    top: 39px;
    left: -18px;
    width: 260px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
  }

  .env-nav-dropdown:hover .env-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .env-whatsapp {
    margin: 0 0 0 10px;
    width: 94px;
    height: 34px;
    font-size: 12px;
  }
}

/* Mobile idêntico ao header do portal inicial. */
@media (max-width: 820px) {
  .env-container {
    width: min(calc(100% - 28px), var(--env-container));
  }

  .env-header {
    height: 92px;
    position: sticky;
    top: 0;
    box-shadow: 0 1px 7px rgba(0, 0, 0, .08);
  }

  .env-header-inner {
    display: flex;
    align-items: center;
  }

  .env-brand {
    position: static;
    width: 230px;
  }

  .env-brand img {
    width: 230px;
  }

  .env-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: absolute;
    right: 0;
    top: 28px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    padding: 6px;
  }

  .env-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #073a72;
    transition: transform .2s ease, opacity .2s ease;
  }

  .env-menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .env-menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .env-menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .env-nav {
    position: absolute;
    top: 92px;
    left: -14px;
    right: -14px;
    height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  }

  .env-nav.open {
    display: flex;
  }

  .env-nav > a:not(.env-whatsapp),
  .env-nav-services {
    min-height: 0;
    height: 45px;
    font-size: 14px;
  }

  .env-nav > a:not(.env-whatsapp)::after,
  .env-nav-services::after {
    right: auto;
    width: 42px;
  }

  .env-nav-dropdown {
    width: 100%;
    height: auto;
    display: block;
  }

  .env-nav-services {
    width: 100%;
  }

  .env-dropdown-menu {
    position: static;
    width: 100%;
    padding: 2px 0 8px 15px;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
  }

  .env-dropdown-menu button {
    min-height: 38px;
    font-size: 13px;
  }

  .env-whatsapp {
    margin: 9px 0 0;
    width: 100%;
    height: 44px;
    font-size: 13.5px;
  }
}

@media (max-width: 520px) {
  .env-container {
    width: calc(100% - 24px);
  }

  .env-header {
    height: 82px;
  }

  .env-brand {
    width: 198px;
  }

  .env-brand img {
    width: 198px;
  }

  .env-menu-toggle {
    top: 23px;
  }

  .env-nav {
    top: 82px;
    left: -12px;
    right: -12px;
  }
}


/* Rodapé v29: removidos links sem destino real */
.env-footer-grid-clean {
  grid-template-columns: 1.25fr .75fr .85fr 1.15fr;
}
.env-footer-contact > a:not(.env-footer-whatsapp) {
  display: block;
  margin-bottom: 11px;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.env-footer-contact > p {
  margin-top: 2px;
}
@media (max-width: 980px) {
  .env-footer-grid-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .env-footer-grid-clean {
    grid-template-columns: 1fr;
  }
}


/* v32 - Ícones ambientais em PNG individual com transparência */
.env-area-icon {
  width: 72px;
  height: 72px;
  top: 129px;
  border: 1px solid #edf3e8;
  box-shadow: 0 8px 20px rgba(37, 86, 30, .16);
}
.env-area-icon-img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.env-diff-icon-img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.env-diff-grid article {
  min-height: 210px;
}
@media (max-width: 620px) {
  .env-area-icon { top: 130px; }
}

@media (max-width: 820px) {
  .env-cta-icon {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }
  .env-cta-icon .cta-icon-image {
    width: 68px;
    height: 68px;
  }
}


/* v38 - ícone de Equipe refinado, sem corte e com proporção original */
.env-diff-icon-img,
.portal-feature-icon-img {
  object-fit: contain;
  object-position: center;
}


/* =========================================================
   V9 - Modal Ambiental alinhado ao markup Smarty
   ========================================================= */
.env-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99998 !important;
}

.env-service-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
}

.env-service-modal[hidden],
.env-modal-backdrop[hidden] {
  display: none !important;
}

.env-service-modal-dialog {
  width: min(650px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
  margin: auto !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.env-service-modal-dialog > * {
  box-sizing: border-box;
}
