@media (max-width: 1100px) {
  .header__nav { gap: 16px; }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .container { width: min(100% - 28px, var(--container-width)); }
  .section { padding: 78px 0; }
  .split-grid, .split-grid--reverse, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .section-header-grid { grid-template-columns: 1fr; gap: 22px; }
  .cards-grid--3, .team-grid, .testimonial-slider, .product-grid, .timeline, .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .header__toggle { display: inline-flex; }
  .header__nav { position: fixed; top: 74px; left: 14px; right: 14px; display: grid; gap: 0; padding: 12px; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-strong); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
  .header__nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .header__nav a { padding: 14px; border-radius: 12px; color: var(--color-green-ink); }
  .header__nav a:hover { background: var(--color-green-soft); }
  .header__cta { display: none; }
  .hero__runner { top: 52%; opacity: .72; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero { min-height: 760px; padding-top: 130px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .cards-grid--3, .cards-grid--4, .team-grid, .testimonial-slider, .product-grid, .timeline, .footer__grid, .region-grid { grid-template-columns: 1fr; }
  .photo-stack, .stats-grid, .form-row--split { grid-template-columns: 1fr; }
  .photo-card--two { margin-top: 0; }
  .step-item { grid-template-columns: 1fr; gap: 10px; }
  .footer__bottom { flex-direction: column; }
  .page-hero { padding: 140px 0 76px; }
  .field-cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 991px) {
  .hero-carousel { min-height: 680px; padding-top: 70px; }
  .hero-carousel__track { inset: 70px 0 0; }
  .hero-slide { background-position: 58% center; }
  .hero-slide__content { max-width: 680px; padding-top: 90px; }
  .hero-slide h1, .hero-slide h2 { max-width: 680px; }
  .hero-slide::after { width: 70vw; height: 40vw; opacity: .08; }
}
@media (max-width: 640px) {
  .hero-carousel { min-height: 720px; }
  .hero-carousel__track { inset: 68px 0 0; }
  .hero-slide { align-items: end; padding-bottom: 86px; background-position: 64% center; }
  .hero-slide::before { height: 62%; background: linear-gradient(0deg, rgba(6,43,24,.82), rgba(6,43,24,.08)); }
  .hero-slide__content { padding: 0; }
  .hero-slide__tag { font-size: .76rem; }
  .hero-slide h1 { font-size: clamp(3.35rem, 19vw, 4.7rem); }
  .hero-slide h2 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .hero-slide p { font-size: 1rem; }
  .hero-slide__actions { flex-direction: column; align-items: stretch; }
  .hero-carousel__nav { bottom: 18px; }
  .hero-carousel__button { width: 34px; height: 34px; }
  .intro-split::after { display: none; }
  .diagnostic-card { min-height: 330px; }
}

/* Ajustes finais de responsividade mobile/tablet - v5
   Corrige sobreposição do header/hero, reduz títulos no mobile e garante grids fluídos. */
@media (max-width: 991px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .site-header { padding: 10px 0; background: rgba(6,43,24,.96); }
  .site-header.is-scrolled { padding: 8px 0; }
  .header__inner { min-height: 50px; gap: 12px; }
  .header__logo { width: clamp(118px, 32vw, 150px); height: 42px; }
  .header__logo-img { max-height: 42px; object-fit: contain; }
  .header__toggle { width: 46px; height: 46px; flex: 0 0 auto; z-index: 1002; }
  .header__nav { top: 72px; max-height: calc(100svh - 92px); overflow-y: auto; }
  .container { width: min(100% - 32px, var(--container-width)); }
  h1 { font-size: clamp(2.8rem, 9vw, 4.2rem); line-height: .92; }
  h2 { font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1; }
  h3 { font-size: clamp(1.05rem, 3vw, 1.2rem); }
  p { font-size: 1rem; line-height: 1.62; }
  .btn { min-height: 50px; padding-inline: 18px; }
  .section-title, .section-title p { max-width: 100%; }
  .split-grid__content { max-width: 100%; }
}

@media (max-width: 767px) {
  .section { padding: 68px 0; }
  .section-header-grid { margin-bottom: 30px; }
  .cards-grid--3,
  .cards-grid--4,
  .team-grid,
  .testimonial-slider,
  .product-grid,
  .timeline,
  .footer__grid,
  .region-grid,
  .stats-grid,
  .photo-stack,
  .form-row--split { grid-template-columns: 1fr; }
  .solution-card,
  .product-card,
  .testimonial-card,
  .unit-card { padding: 22px; }
  .section--dark::after,
  .choice-section::after { display: none; }
}

@media (max-width: 640px) {
  .site-header { padding: 8px 0; }
  .header__inner { min-height: 48px; }
  .header__logo { width: 124px; height: 40px; }
  .header__logo-img { max-height: 40px; }
  .header__nav { left: 12px; right: 12px; top: 68px; border-radius: 18px; }

  h1 { font-size: clamp(2.65rem, 13vw, 3.45rem); line-height: .9; letter-spacing: -.055em; }
  h2 { font-size: clamp(2rem, 9vw, 2.85rem); line-height: .98; letter-spacing: -.045em; }

  .hero-carousel {
    min-height: max(620px, 100svh);
    padding-top: 64px;
  }
  .hero-carousel__track { inset: 64px 0 0; }
  .hero-slide {
    align-items: center;
    padding: 74px 0 92px;
    background-position: 62% center;
  }
  .hero-slide::before {
    height: 100%;
    background: linear-gradient(180deg, rgba(6,43,24,.82) 0%, rgba(6,43,24,.5) 38%, rgba(6,43,24,.86) 100%);
  }
  .hero-slide::after { width: 95vw; height: 55vw; right: -35vw; bottom: 4vw; opacity: .08; }
  .hero-slide__content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .hero-slide__tag {
    margin-bottom: 12px;
    max-width: 100%;
    font-size: .74rem;
    line-height: 1.18;
    white-space: normal;
  }
  .hero-slide h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(2.75rem, 15vw, 3.65rem);
    line-height: .86;
    letter-spacing: -.065em;
    overflow-wrap: normal;
  }
  .hero-slide h2 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: .94;
    letter-spacing: -.055em;
  }
  .hero-slide p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.58;
  }
  .hero-slide__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .hero-slide__actions .btn,
  .inline-actions .btn,
  .section-header-grid__cta .btn,
  .cta-block .btn { width: 100%; min-width: 0; }
  .hero-carousel__nav {
    bottom: 16px;
    max-width: calc(100% - 32px);
    gap: 10px;
    transform: translateX(-50%);
  }
  .hero-carousel__button { width: 34px; height: 34px; }
  .hero-carousel__dot.is-active { width: 24px; }

  .intro-split { padding-top: 70px; }
  .diagnostic-card { min-height: 300px; }
  .stats-grid { gap: 12px; }
  .stats-grid div { padding: 16px; }
  .step-item { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .region-card { min-height: 190px; }
  .team-card__photo { height: 220px; }
  .cta-block { padding: 74px 0; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 58px; height: 58px; }
}

@media (max-width: 430px) {
  .container { width: min(100% - 28px, var(--container-width)); }
  .header__logo { width: 112px; }
  .hero-carousel { min-height: max(620px, 100svh); }
  .hero-slide { padding-top: 62px; padding-bottom: 88px; }
  .hero-slide h1 { font-size: clamp(2.55rem, 14vw, 3.25rem); }
  .hero-slide h2 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .hero-slide p { font-size: .96rem; }
  .btn { min-height: 48px; font-size: .95rem; }
  .section { padding: 58px 0; }
}

/* Responsividade geral revisada para todas as páginas - v7
   Mantém a arquitetura original e corrige grids, tipografia, header, heros internos,
   formulários, cards, rodapé e áreas de CTA em desktop, tablet e mobile. */

@media (max-width: 1200px) {
  :root { --container-width: 1040px; }
  .header__nav { gap: 18px; font-size: .74rem; }
  .split-grid,
  .split-grid--reverse,
  .contact-grid { gap: 52px; }
  .hero-slide__content { max-width: 720px; }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .container { width: min(100% - 36px, var(--container-width)); }
  .section { padding: 86px 0; }
  .split-grid,
  .split-grid--reverse,
  .contact-grid,
  .product-intro .split-grid,
  .social-message .split-grid,
  .process-section .split-grid { grid-template-columns: 1fr; gap: 44px; }
  .split-grid__content,
  .intro-split .split-grid__content { max-width: 720px; }
  .section-header-grid { grid-template-columns: 1fr; align-items: start; gap: 20px; margin-bottom: 34px; }
  .section-header-grid__cta { justify-self: start; }
  .cards-grid--4,
  .cards-grid--3,
  .team-grid,
  .testimonial-slider,
  .product-grid,
  .timeline,
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-pillar-card { padding: 28px; }
  .social-card { min-height: 300px; }
  .page-hero { padding: 145px 0 78px; }
  .page-hero h1 { max-width: 760px; }
  .page-hero p { max-width: 700px; }
}

@media (max-width: 991px) {
  body.menu-open { overflow: hidden; }
  .site-header { padding: 8px 0; background: rgba(6,43,24,.96); }
  .site-header.is-scrolled { padding: 8px 0; }
  .header__inner { min-height: 50px; }
  .header__logo { width: clamp(118px, 28vw, 145px); height: 44px; }
  .header__logo-img { height: 100%; max-height: 44px; object-fit: contain; object-position: left center; }
  .header__toggle { display: inline-flex; width: 44px; height: 44px; border-radius: 13px; z-index: 1002; }
  .header__nav {
    position: fixed;
    top: 68px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 14px;
    max-height: calc(100svh - 88px);
    overflow-y: auto;
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-strong);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .header__nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .header__nav a,
  .site-header:not(.is-scrolled) .header__nav a,
  .site-header.is-scrolled .header__nav a {
    color: var(--color-green-ink);
    padding: 14px 16px;
    border-radius: 13px;
    font-size: .88rem;
  }
  .header__nav a:hover,
  .header__nav a:focus-visible { background: var(--color-green-soft); }
  .header__nav a::after { display: none; }
  .header__cta { display: none; }

  h1 { font-size: clamp(3rem, 9vw, 4.35rem); line-height: .92; }
  h2 { font-size: clamp(2.2rem, 6.6vw, 3.35rem); line-height: .98; }
  h3 { font-size: clamp(1.08rem, 2.8vw, 1.3rem); }
  .section-title { max-width: 720px; }
  .section-title p,
  .page-hero p,
  .hero-slide p { font-size: 1rem; line-height: 1.62; }

  .hero-carousel { min-height: max(640px, 82svh); padding-top: 60px; }
  .hero-carousel__track { inset: 60px 0 0; }
  .hero-slide { background-position: 62% center; }
  .hero-slide__content { max-width: 660px; padding: 72px 0 110px; }
  .hero-slide h1 { font-size: clamp(3.3rem, 12vw, 5rem); }
  .hero-slide h2 { font-size: clamp(2.45rem, 8vw, 4.5rem); }
  .hero-slide::after { width: 74vw; height: 44vw; right: -30vw; opacity: .08; }

  .intro-split { padding-top: 82px; }
  .intro-split::after { width: 420px; height: 420px; right: -220px; top: 24px; opacity: .45; }
  .diagnostic-card { max-width: 620px; width: 100%; }
  .photo-stack { min-height: initial; }
  .green-panel { width: 100%; max-width: 360px; height: 190px; }
  .step-item { grid-template-columns: 70px 1fr; }
  .step-item strong { font-size: 2.2rem; }
  .product-card__top { align-items: flex-start; }
  .centered-section { max-width: 720px; }
  .cta-block { padding: 82px 0; }
  .footer__grid { gap: 34px; }
}

@media (max-width: 767px) {
  .container { width: min(100% - 32px, var(--container-width)); }
  .section { padding: 66px 0; }
  .page-hero { padding: 120px 0 66px; }
  .page-hero::after { width: 84vw; height: 55vw; right: -35vw; bottom: -14vw; opacity: .07; }
  .breadcrumb { flex-wrap: wrap; margin-bottom: 18px; }
  .eyebrow { max-width: 100%; }

  .cards-grid--4,
  .cards-grid--3,
  .team-grid,
  .testimonial-slider,
  .product-grid,
  .timeline,
  .footer__grid,
  .region-grid,
  .stats-grid,
  .photo-stack,
  .form-row--split { grid-template-columns: 1fr; }

  .section-header-grid__cta,
  .section-header-grid__cta .btn,
  .inline-actions .btn,
  .hero-slide__actions .btn,
  .cta-block .btn,
  .contact-form .btn { width: 100%; }
  .inline-actions,
  .hero-slide__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }

  .solution-card,
  .product-card,
  .testimonial-card,
  .unit-card,
  .timeline__item,
  .contact-form-card,
  .stats-panel,
  .social-card { padding: 22px; border-radius: 20px; }
  .solution-card { min-height: 210px; }
  .solution-card__marker { margin-bottom: 28px; }
  .product-pillar-card { padding: 22px; border-radius: 22px; }
  .product-pillar-card span { width: 100%; text-align: center; }

  .diagnostic-card { min-height: 300px; padding: 14px; border-radius: 22px; }
  .diagnostic-card__image { height: 190px; border-radius: 18px; }
  .play-button { left: 26px; top: 158px; width: 50px; height: 50px; }
  .root-system { left: 12%; right: 12%; bottom: 26px; height: 112px; }
  .photo-card { min-height: 230px; }
  .photo-card--two { margin-top: 0; }
  .green-panel { height: 170px; max-width: 100%; }

  .step-item { grid-template-columns: 1fr; gap: 8px; padding-bottom: 18px; }
  .step-item strong { font-size: 2.15rem; }
  .region-card { min-height: 210px; }
  .team-card__photo { height: 235px; }
  .stats-panel strong,
  .timeline__item strong,
  .social-card strong { font-size: 2rem; }
  .contact-form-card { box-shadow: var(--shadow-soft); }
  .units-list { gap: 14px; }

  .site-footer { padding: 62px 0 24px; }
  .footer__brand img { width: 155px; }
  .footer__bottom { margin-top: 34px; flex-direction: column; align-items: flex-start; }
  .floating-whatsapp { right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 17px; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.55rem, 12vw, 3.45rem); line-height: .9; letter-spacing: -.055em; }
  h2 { font-size: clamp(2rem, 9vw, 2.85rem); line-height: .98; letter-spacing: -.045em; }
  h3 { font-size: 1.08rem; line-height: 1.18; }
  p { font-size: .98rem; line-height: 1.62; }
  .btn { width: 100%; min-height: 50px; padding-inline: 18px; }

  .header__logo { width: 118px; height: 40px; }
  .header__logo-img { max-height: 40px; }
  .header__toggle { width: 42px; height: 42px; }
  .header__nav { top: 64px; left: 14px; right: 14px; }

  .hero-carousel { min-height: max(620px, 100svh); padding-top: 58px; }
  .hero-carousel__track { inset: 58px 0 0; }
  .hero-slide {
    align-items: center;
    padding: 68px 0 94px;
    background-position: 66% center;
  }
  .hero-slide::before { height: 100%; background: linear-gradient(180deg, rgba(6,43,24,.76) 0%, rgba(6,43,24,.55) 42%, rgba(6,43,24,.9) 100%); }
  .hero-slide__content { width: 100%; max-width: 100%; padding: 0; }
  .hero-slide__tag { white-space: normal; font-size: .74rem; line-height: 1.16; padding: 7px 9px; }
  .hero-slide h1 { max-width: 100%; font-size: clamp(2.8rem, 15vw, 3.7rem); line-height: .84; overflow-wrap: normal; }
  .hero-slide h2 { max-width: 100%; font-size: clamp(2.1rem, 11vw, 3rem); line-height: .92; }
  .hero-slide p { max-width: 100%; font-size: .98rem; }
  .hero-carousel__nav { bottom: 18px; max-width: calc(100% - 32px); gap: 10px; padding: 7px 9px; }
  .hero-carousel__button { width: 34px; height: 34px; }
  .hero-carousel__dot.is-active { width: 24px; }

  .page-hero { padding: 108px 0 58px; }
  .page-hero h1 { font-size: clamp(2.45rem, 11vw, 3.35rem); }
  .page-hero p { font-size: .98rem; }
  .section-title p { font-size: .98rem; }
  .section--dark::after,
  .choice-section::after,
  .intro-split::after { display: none; }
  .map-section::before,
  .testimonials-section::before { background-size: 130vw auto; opacity: .08; }

  .product-card__top { display: grid; gap: 8px; }
  .product-card h3 { font-size: 1.32rem; }
  .timeline__item strong { font-size: 1.85rem; }
  .contact-form { gap: 15px; }
  .form-row input,
  .form-row textarea,
  .form-row select { min-height: 48px; padding: 13px 14px; }
}

@media (max-width: 430px) {
  .container { width: min(100% - 28px, var(--container-width)); }
  .section { padding: 56px 0; }
  h1 { font-size: clamp(2.32rem, 11vw, 3.05rem); }
  h2 { font-size: clamp(1.85rem, 8.8vw, 2.45rem); }
  .site-header { padding: 7px 0; }
  .header__inner { min-height: 46px; }
  .header__logo { width: 108px; height: 38px; }
  .header__logo-img { max-height: 38px; }
  .header__toggle { width: 40px; height: 40px; }
  .hero-carousel { min-height: max(600px, 100svh); }
  .hero-slide { padding-top: 56px; padding-bottom: 86px; }
  .hero-slide h1 { font-size: clamp(2.55rem, 14vw, 3.18rem); }
  .hero-slide h2 { font-size: clamp(1.9rem, 10vw, 2.45rem); }
  .hero-slide p { font-size: .94rem; }
  .hero-carousel__button { width: 32px; height: 32px; }
  .page-hero { padding-top: 100px; }
  .solution-card,
  .product-card,
  .testimonial-card,
  .unit-card,
  .timeline__item,
  .contact-form-card,
  .stats-panel,
  .social-card { padding: 18px; }
  .team-card__photo { height: 210px; }
  .floating-whatsapp { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* Revisão mobile final: conteúdo adaptado, cards novos e prevenção de quebra horizontal. */
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: 1fr; }
  .brand-card { min-height: 250px; }
  .value-section { padding: 34px 0 68px; }
  .stats-grid--inside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .value-section { padding: 28px 0 56px; }
  .value-section .solution-card { min-height: 210px; }
  .brand-grid { gap: 14px; }
  .brand-card { min-height: 220px; padding: 22px; border-radius: 22px; }
  .brand-card::before { inset: 12px; border-radius: 18px; }
  .center-actions, .center-actions .btn { width: 100%; }
  .stats-grid--inside { grid-template-columns: 1fr; }
  .social-call-section .green-panel { justify-self: stretch; min-height: 180px; }
  .header__nav { overscroll-behavior: contain; }
}

@media (max-width: 430px) {
  .brand-card h3 { font-size: 1.45rem; }
  .hero-slide__tag { max-width: 100%; }
}

/* Correção de botões e ícones - mantém texto e seta alinhados em qualquer breakpoint. */
@media (max-width: 640px) {
  .btn { justify-content: center; gap: 9px; white-space: nowrap; }
  .btn__label, .btn__icon { line-height: 1; }
  .btn__icon { margin-top: 0; }
  .text-link { white-space: nowrap; }
}

@media (max-width: 360px) {
  .btn { font-size: .94rem; padding-inline: 14px; }
}

/* Banner typography mobile/tablet refinements */
@media (max-width: 991px) {
  .hero-slide__title {
    max-width: 720px;
    letter-spacing: -.04em;
    line-height: .88;
  }
  .hero-slide h1.hero-slide__title {
    font-size: clamp(3rem, 12vw, 5rem);
  }
  .hero-slide h2.hero-slide__title {
    font-size: clamp(2.55rem, 10vw, 4.25rem);
  }
  .hero-slide p {
    max-width: 620px;
    line-height: 1.34;
  }
}

@media (max-width: 575px) {
  .hero-slide__tag {
    padding: 8px 12px;
    border-radius: 9px;
    font-size: .76rem;
  }
  .hero-slide__title {
    max-width: 100%;
    letter-spacing: -.035em;
    line-height: .9;
  }
  .hero-slide h1.hero-slide__title {
    font-size: clamp(2.8rem, 15vw, 3.75rem);
  }
  .hero-slide h2.hero-slide__title {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }
  .hero-slide p {
    font-size: .98rem;
    line-height: 1.42;
  }
  .hero-slide__actions .btn {
    min-height: 54px;
    border-radius: 10px;
    padding-inline: 18px;
  }
}

@media (max-width: 991px) {
  .hero-slide__insert--top {
    max-width: min(240px, 52vw);
    margin-bottom: 14px;
  }

  .hero-slide__insert--middle {
    max-width: min(520px, 86vw);
    margin-top: 18px;
  }
}

@media (max-width: 575px) {
  .hero-slide__insert--top {
    max-width: min(190px, 72vw);
    margin-bottom: 12px;
  }

  .hero-slide__insert--middle {
    max-width: 100%;
    margin-top: 16px;
  }
}
