/* ===================================================================
   Agriaço Metalúrgica — design system
   Prefixo de classes: .ag-
   =================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Marca */
  --ag-green: #1a9b39; /* verde vibrante (logo AGRI) */
  --ag-green-dark: #124d38; /* verde floresta (caixa / faixas) */
  --ag-green-deep: #0e5a2f;
  --ag-yellow: #f4c20d; /* amarelo (sublinhado / botões) */
  --ag-yellow-soft: #fff6d6; /* marca-texto suave */
  --ag-black: #111111;
  --ag-nav: #15563f; /* verde escuro dos links */
  --ag-ink: #3a3a3a;
  --ag-muted: #6d6e70;
  --ag-line: #e6e6e6;
  --ag-bg: #ffffff;

  --ag-header-h: 88px;
  --ag-container: 1320px;

  --ag-radius: 14px;
  --ag-radius-pill: 999px;
  --ag-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.35);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ag-bg);
  color: var(--ag-ink);
  font-family:
    "Barlow",
    "Segoe UI",
    system-ui,
    -apple-system,
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.ag-container {
  width: 100%;
  max-width: var(--ag-container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Faixa amarela + verde (divisor de marca) --------------------------- */
.ag-stripe {
  height: 12px;
  background: var(--ag-green-dark);
  border-top: 6px solid var(--ag-yellow);
}

/* ===================================================================
   Header
   =================================================================== */
.ag-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

.ag-header__inner {
  min-height: var(--ag-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ag-header__logo img {
  height: 58px;
  width: auto;
}

.ag-nav__list {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ag-nav__list a {
  color: var(--ag-nav);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.2px;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s ease;
}

.ag-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--ag-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.ag-nav__list a:hover,
.ag-nav__list a.is-active {
  color: var(--ag-green);
}
.ag-nav__list a:hover::after,
.ag-nav__list a.is-active::after {
  transform: scaleX(1);
}

/* Botão hambúrguer */
.ag-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ag-header__toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--ag-nav);
  margin: 0 auto;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.ag-header__toggle[aria-expanded="true"] .ag-header__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.ag-header__toggle[aria-expanded="true"] .ag-header__toggle-bar:nth-child(2) {
  opacity: 0;
}
.ag-header__toggle[aria-expanded="true"] .ag-header__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menu mobile (dropdown) */
.ag-mobile {
  display: none;
  border-top: 1px solid var(--ag-line);
  background: #fff;
}
.ag-mobile.is-open {
  display: block;
}
.ag-mobile__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.ag-mobile__list a {
  display: block;
  padding: 14px 24px;
  color: var(--ag-nav);
  font-weight: 600;
  border-bottom: 1px solid var(--ag-line);
}
.ag-mobile__list li:last-child a {
  border-bottom: 0;
}
.ag-mobile__list a.is-active {
  color: var(--ag-green);
}

/* ===================================================================
   Hero — carrossel (imagens completas)
   =================================================================== */
.ag-hero {
  padding: 0;
}
.ag-hero__carousel {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.ag-hero__track {
  position: relative;
}

.ag-slide {
  display: none;
}
.ag-slide.is-active {
  display: block;
  animation: ag-fade 0.6s ease;
}
.ag-slide img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

@keyframes ag-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ag-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 3;
}
.ag-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--ag-green-dark);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ag-dot.is-active {
  background: var(--ag-green-dark);
}
/* Um único slide: esconde os controles */
.ag-hero__dots[data-count="1"] {
  display: none;
}

/* ===================================================================
   Showcase — imagem sec2 + caixa verde em código
   =================================================================== */
.ag-showcase {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.ag-showcase__img {
  width: 100%;
  height: auto;
}
.ag-showcase__badge {
  position: absolute;
  top: 24%;
  right: 4%;
  max-width: 340px;
  background: rgba(18, 77, 56, 0.85); /* --ag-green-dark translúcido */
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  color: #fff;
  padding: 20px 24px;
  border-radius: 24px 0 24px 0; /* só superior-esquerdo e inferior-direito */
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  font-size: clamp(0.85rem, 1.55vw, 1.42rem);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.ag-showcase__badge b {
  font-weight: 800;
}

/* ===================================================================
   Produtos e serviços — chamada sobre imagem
   =================================================================== */
.ag-prodintro {
  max-width: 100%;
  /* Recua a borda direita do banner até alinhar com o container (1320px),
     mantendo o banner encostado à esquerda. */
  margin: 22px calc((100% - min(1320px, 100%)) / 2) 0 0;
  padding: 0;
}
.ag-prodintro__frame {
  position: relative;
}
.ag-prodintro__bg {
  width: 100%;
  height: auto;
  border-radius: 0;
}
.ag-prodintro__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 10% 0 46%;
}
.ag-prodintro__title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 6.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}
.ag-prodintro__badge {
  margin: clamp(14px, 2.4vw, 26px) 0 0;
  max-width: 100%;
  background: rgba(18, 77, 56, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: clamp(12px, 1.6vw, 18px) clamp(14px, 1.8vw, 22px);
  border-radius: 18px 0 18px 0; /* só superior-esquerdo e inferior-direito */
  font-size: clamp(0.8rem, 1.4vw, 1.15rem);
  line-height: 1.38;
  font-weight: 400;
}
.ag-prodintro__badge strong {
  color: var(--ag-yellow);
  font-weight: 800;
}

/* Botão de marca (pill com cantos superior-esquerdo / inferior-direito) */
.ag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 26px;
  border: 0;
  border-radius: 10px 0 10px 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.ag-btn--green {
  background: var(--ag-green-dark);
  color: #fff;
}
.ag-btn--green:hover {
  background: var(--ag-green-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(14, 90, 47, 0.7);
}

/* ===================================================================
   Bloco de solução — texto + imagem lado a lado
   =================================================================== */
.ag-solution {
  padding: clamp(44px, 6vw, 84px) 0;
  overflow-x: clip; /* apara a leve sobra da sangria (largura da barra de rolagem) */
}
.ag-solution__inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.ag-solution__eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ag-muted);
}
.ag-solution__title {
  margin: 0 0 24px;
  line-height: 1.02;
}
.ag-solution__title-lead {
  display: block;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  color: var(--ag-green);
}
.ag-solution__title strong {
  display: block;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  color: var(--ag-green-dark);
}
.ag-solution__desc {
  margin: 0 0 30px;
  max-width: 46ch;
  font-style: italic;
  color: var(--ag-muted);
  line-height: 1.6;
}
.ag-solution__media {
  /* Sangra a imagem até a borda direita da tela (full-bleed à direita),
     mantendo o texto alinhado ao container. 636px = metade do container
     (660px) menos o padding lateral (24px). */
  margin-right: min(-24px, calc(636px - 50vw));
}
.ag-solution__media img {
  width: 100%;
  height: auto;
}

/* ===================================================================
   Portfólio — grade de máquinas com ficha técnica
   =================================================================== */
.ag-portfolio {
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
}
.ag-portfolio__title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--ag-green-dark);
  white-space: nowrap;
}
.ag-portfolio__title::after {
  content: "";
  flex: 1 1 auto;
  height: 3px;
  border-radius: 2px;
  background: var(--ag-green-dark);
}
.ag-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 52px) clamp(24px, 3vw, 40px);
}
.ag-port-card {
  display: flex;
  flex-direction: column;
}
.ag-port-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
}
.ag-port-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.ag-port-card__name {
  margin: 0 0 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ag-line);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ag-black);
}
.ag-port-card__specs {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ag-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
/* Card de acessório (só nome, sem ficha): mantém o filete abaixo do nome */
.ag-port-card__name--plain {
  margin-bottom: 0;
}

/* ===================================================================
   Conectividade — Indústria 4.0 (card verde com imagem de fundo)
   =================================================================== */
.ag-conect {
  padding: 0 0 clamp(56px, 7vw, 96px);
}
.ag-conect__card {
  position: relative;
  overflow: hidden;
  /* Sem border-radius no desktop (o verde preenche os cantos transparentes
     da imagem, deixando o card retangular). O radius volta só no mobile. */
  /*background: var(--ag-green-dark);*/
}
.ag-conect__bg {
  display: block;
  width: 100%;
  height: auto;
}
.ag-conect__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 56%;
  padding: 4% 4% 4% 6%;
  color: #fff;
}
.ag-conect__eyebrow {
  margin: 0 0 clamp(10px, 1.6vw, 18px);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(0.68rem, 1.2vw, 1rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.ag-conect__title {
  margin: 0;
  line-height: 0.98;
}
.ag-conect__title-lead {
  display: block;
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
}
.ag-conect__title strong {
  display: block;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
}
.ag-conect__title::after {
  content: "";
  display: block;
  width: clamp(170px, 22vw, 330px);
  height: 3px;
  margin-top: clamp(12px, 1.8vw, 22px);
  border-radius: 2px;
  background: var(--ag-yellow);
}
.ag-conect__desc {
  margin: clamp(16px, 2.2vw, 28px) 0 clamp(14px, 1.8vw, 22px);
  max-width: 44ch;
  font-style: italic;
  font-size: clamp(0.78rem, 1.35vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.ag-conect__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-style: italic;
  font-size: clamp(0.78rem, 1.35vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}
.ag-conect__list li::before {
  content: "-";
  margin-right: 8px;
}

/* ===================================================================
   Segmentos de atuação — badges circulares + imagem
   =================================================================== */
.ag-segments {
  padding: clamp(40px, 5vw, 84px) 0;
}
.ag-segments__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.ag-segments__title {
  margin: 0 0 clamp(28px, 3.5vw, 48px);
  line-height: 1.02;
}
.ag-segments__title-lead {
  display: block;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--ag-green-dark);
}
.ag-segments__title strong {
  display: inline-block;
  position: relative;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  color: var(--ag-green-dark);
}
.ag-segments__title strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 4px;
  border-radius: 2px;
  background: var(--ag-yellow);
}
.ag-segments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 3vw, 40px) clamp(16px, 2vw, 30px);
  max-width: 460px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-seg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 1.2vw, 14px);
}
.ag-seg-item__circle {
  position: relative;
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--ag-yellow);
}
.ag-seg-item__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  height: 46%;
  object-fit: contain;
}
.ag-seg-item__label {
  font-weight: 700;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.2;
  color: var(--ag-green-dark);
}
.ag-segments__media img {
  width: 100%;
  height: auto;
  border-radius: var(--ag-radius);
}

/* ===================================================================
   Processos internos — cartões-foto com etiqueta amarela
   =================================================================== */
.ag-process {
  padding: clamp(16px, 2vw, 32px) 0 clamp(56px, 7vw, 96px);
}
.ag-process__title {
  margin: 0 0 clamp(30px, 3.5vw, 52px);
  line-height: 1.02;
}
.ag-process__title-wrap {
  display: inline-block;
  position: relative;
}
.ag-process__title-lead {
  margin-right: 0.28em;
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--ag-green);
}
.ag-process__title strong {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--ag-green-dark);
}
.ag-process__title-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 4px;
  border-radius: 2px;
  background: var(--ag-yellow);
}
.ag-process__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.ag-proc-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--ag-radius);
  overflow: hidden;
}
.ag-proc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ag-proc-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(28px, 4vw, 40px) 14px clamp(12px, 1.5vw, 16px);
  background: linear-gradient(
    to top,
    rgba(18, 77, 56, 0.95) 0%,
    rgba(18, 77, 56, 0.7) 55%,
    rgba(18, 77, 56, 0) 100%
  );
  color: #fff;
  font-size: clamp(0.85rem, 1vw, 0.98rem);
  font-weight: 700;
  text-align: center;
}

/* ===================================================================
   Faixa tecnologia — "Unimos tecnologia..." (card verde com imagem)
   =================================================================== */
.ag-tech {
  padding: clamp(20px, 3vw, 40px) 0 clamp(44px, 6vw, 84px);
}
.ag-tech__card {
  position: relative;
  /*background: var(--ag-green-dark);
  border-radius: clamp(18px, 2.4vw, 28px);*/
  overflow: hidden;
}
.ag-tech__bg {
  display: block;
  width: 100%;
  height: auto;
}
.ag-tech__content {
  position: absolute;
  inset: 0;
  left: 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 4vw, 64px) 0 0;
  color: #fff;
}
.ag-tech__title {
  margin: 0 0 clamp(14px, 2vw, 26px);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.15vw, 1.95rem);
  line-height: 1.22;
}
.ag-tech__sub {
  margin: 0;
  font-style: italic;
  font-size: clamp(0.85rem, 1.4vw, 1.2rem);
  line-height: 1.4;
  color: var(--ag-yellow);
}

/* ===================================================================
   Centro de Pesquisa, Desenvolvimento e Inovação
   =================================================================== */
.ag-research {
  padding: clamp(40px, 5vw, 80px) 0 clamp(56px, 7vw, 96px);
}
.ag-research__inner {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.ag-research__eyebrow {
  margin: 0 0 clamp(10px, 1.4vw, 16px);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ag-green-dark);
}
.ag-research__title {
  margin: 0;
  line-height: 1.04;
}
.ag-research__title-lead {
  display: block;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--ag-green);
}
.ag-research__title strong {
  display: inline-block;
  position: relative;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--ag-green-dark);
}
.ag-research__title strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 4px;
  border-radius: 2px;
  background: var(--ag-yellow);
}
.ag-research__desc {
  margin: clamp(24px, 3vw, 38px) 0 clamp(16px, 2vw, 24px);
  font-style: italic;
  color: var(--ag-muted);
}
.ag-research__partners {
  margin: 0 0 8px;
  font-style: italic;
  color: var(--ag-muted);
}
.ag-research__list {
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
  font-style: italic;
  color: var(--ag-muted);
  line-height: 1.75;
}
.ag-research__list li::before {
  content: "-";
  margin-right: 8px;
}
.ag-research__media img {
  width: 100%;
  height: auto;
  border-radius: var(--ag-radius);
}

/* ===================================================================
   Suporte técnico e assistência — faixa verde full-bleed
   =================================================================== */
.ag-support {
  background: var(--ag-green-dark);
  color: #fff;
  padding: clamp(40px, 5vw, 76px) 0;
}
.ag-support__inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.ag-support__media img {
  width: 100%;
  height: auto;
  border-radius: var(--ag-radius);
}
.ag-support__eyebrow {
  margin: 0 0 clamp(10px, 1.4vw, 16px);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(0.72rem, 1.2vw, 1rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.ag-support__title {
  margin: 0 0 clamp(24px, 3vw, 40px);
  line-height: 1;
}
.ag-support__title-lead {
  display: block;
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}
.ag-support__title strong {
  display: inline-block;
  position: relative;
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}
.ag-support__title strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 3px;
  border-radius: 2px;
  background: var(--ag-yellow);
}
.ag-support__desc {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  max-width: 62ch;
  font-style: italic;
  font-size: clamp(0.85rem, 1.15vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.ag-support__points {
  margin: clamp(6px, 1vw, 14px) 0 6px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}
.ag-support__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-style: italic;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}
.ag-support__list li::before {
  content: "-";
  margin-right: 8px;
}

/* ===================================================================
   Sobre — hero com faixas + Presença nacional (Onde atuamos)
   =================================================================== */
/* Faixa amarela em cima (.ag-stripe) e variação com amarelo embaixo. */
.ag-stripe--flip {
  border-top: 0;
  border-bottom: 6px solid var(--ag-yellow);
}

.ag-presence {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 92px) 0;
}
/* Lavoura só na metade direita da tela (atrás do mapa); a esquerda fica branca. */
.ag-presence__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  /*height: 100%;*/
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.ag-presence__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.ag-presence__eyebrow {
  margin: 0 0 clamp(10px, 1.4vw, 16px);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  font-weight: 600;
  color: var(--ag-muted);
}
.ag-presence__title {
  margin: 0 0 clamp(22px, 2.8vw, 36px);
  line-height: 0.96;
}
.ag-presence__title-lead {
  display: block;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  color: var(--ag-green);
}
.ag-presence__title strong {
  display: inline-block;
  position: relative;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  color: var(--ag-green-dark);
}
.ag-presence__title strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 4px;
  border-radius: 2px;
  background: var(--ag-yellow);
}
.ag-presence__desc {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  max-width: 46ch;
  font-style: italic;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: var(--ag-muted);
}
.ag-presence__desc strong {
  font-weight: 700;
  color: var(--ag-ink);
}
.ag-presence__map {
  position: relative;
}
.ag-presence__map img {
  width: 100%;
  height: auto;
}

/* Quem somos? — imagem à esquerda, apresentação à direita */
.ag-quem {
  padding: clamp(40px, 5vw, 84px) 0;
}
.ag-quem__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.ag-quem__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.8vw, 22px);
}
.ag-quem__eyebrow {
  margin: 0 0 clamp(10px, 1.4vw, 16px);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  font-weight: 600;
  color: var(--ag-muted);
}
.ag-quem__title {
  margin: 0 0 clamp(22px, 2.8vw, 36px);
  line-height: 0.92;
}
.ag-quem__title-lead {
  display: block;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--ag-green);
}
.ag-quem__title strong {
  display: inline-block;
  position: relative;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--ag-green-dark);
}
.ag-quem__title strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 4px;
  border-radius: 2px;
  background: var(--ag-yellow);
}
.ag-quem__desc {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  max-width: 52ch;
  font-style: italic;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: var(--ag-muted);
}
.ag-quem__desc:last-child {
  margin-bottom: 0;
}
.ag-quem__desc strong {
  font-weight: 700;
  color: var(--ag-ink);
}

/* Clientes — grade de logos em cartões brancos */
.ag-clients {
  padding: clamp(40px, 5vw, 84px) 0;
}
.ag-clients__title {
  display: inline-block;
  position: relative;
  margin: 0 0 clamp(24px, 3vw, 44px);
  padding-bottom: clamp(8px, 1vw, 12px);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--ag-green-dark);
}
.ag-clients__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--ag-yellow);
}
.ag-clients__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.ag-client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 16 / 9;
  padding: clamp(20px, 2.6vw, 38px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: clamp(12px, 1.4vw, 18px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.28);
}
.ag-client-card img {
  max-width: 72%;
  max-height: 58%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Pilares — imagem + três blocos (ícone quadrado + título + texto) */
.ag-pillars {
  padding: clamp(40px, 5vw, 84px) 0;
}
.ag-pillars__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.ag-pillars__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.8vw, 22px);
}
.ag-pillars__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 40px);
}
.ag-pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 1.6vw, 24px);
  align-items: start;
}
.ag-pillar__icon {
  display: grid;
  place-items: center;
  width: clamp(64px, 6vw, 90px);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}
.ag-pillar__icon--yellow {
  background: var(--ag-yellow);
}
.ag-pillar__icon--green {
  background: var(--ag-green-dark);
}
.ag-pillar__icon img {
  width: 56%;
  height: 56%;
  object-fit: contain;
}
.ag-pillar__title {
  margin: 0 0 clamp(6px, 0.8vw, 10px);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--ag-green-dark);
}
.ag-pillar__title span {
  font-weight: 500;
}
.ag-pillar__text {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  line-height: 1.55;
  color: var(--ag-muted);
}

/* Evolução Agriaço — linha do tempo (arte embutida na imagem) */
.ag-evo {
  padding: clamp(40px, 5vw, 84px) 0;
}
.ag-evo__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: clamp(28px, 3.5vw, 52px);
}
.ag-evo__title {
  display: inline-block;
  position: relative;
  margin: 0 0 clamp(16px, 2vw, 22px);
  padding-bottom: clamp(8px, 1vw, 12px);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ag-green-dark);
}
.ag-evo__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--ag-yellow);
}
.ag-evo__lead {
  display: inline-block;
  margin: 0;
  padding: clamp(9px, 1.1vw, 13px) clamp(14px, 1.6vw, 22px);
  border-radius: 3px;
  background: var(--ag-green-dark);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.25vw, 1.05rem);
}
.ag-evo__timeline {
  overflow-x: auto;
}
.ag-evo__timeline img {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

/* Missão, Visão e Valores — três cartões coloridos */
.ag-mvv {
  padding: clamp(40px, 5vw, 80px) 0;
}
.ag-mvv__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.ag-mvv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 3vw, 46px) clamp(22px, 2.4vw, 40px) clamp(34px, 3.4vw, 52px);
  border-radius: clamp(18px, 2vw, 26px);
}
.ag-mvv-card--mission {
  color: #fff;
  background: linear-gradient(155deg, #1c6b4a 0%, var(--ag-green-dark) 58%, #0c3a2a 100%);
}
.ag-mvv-card--vision {
  color: var(--ag-green-dark);
  background: linear-gradient(155deg, #f9d02e 0%, var(--ag-yellow) 58%, #e2ac00 100%);
}
.ag-mvv-card--values {
  color: #fff;
  background: linear-gradient(155deg, #8c8e90 0%, #6f7173 55%, #54565a 100%);
}
.ag-mvv-card__badge {
  display: grid;
  place-items: center;
  width: clamp(108px, 11vw, 152px);
  aspect-ratio: 1 / 1;
  margin-bottom: clamp(18px, 2vw, 28px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #ffffff 58%, #dde1e3 100%);
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.5);
}
.ag-mvv-card__badge img {
  width: 54%;
  height: 54%;
  object-fit: contain;
}
.ag-mvv-card__title {
  margin: 0 0 clamp(12px, 1.4vw, 18px);
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 800;
}
.ag-mvv-card__text {
  margin: 0;
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  line-height: 1.55;
}
.ag-mvv-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-block;
  text-align: left;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.85;
}
.ag-mvv-card__list li::before {
  content: "•";
  margin-right: 0.55em;
}

/* ===================================================================
   Footer (baseado no footer da Farótti, adaptado à marca Agriaço)
   =================================================================== */
.ag-footer {
  position: relative;
  background: var(--ag-green-dark);
  color: #fff;
  overflow: hidden;
}

.ag-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--ag-container);
  margin: 0 auto;
  padding: 64px 24px 56px;
}

.ag-footer__top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

/* ---- Coluna de informações ---- */
.ag-footer__cta-title {
  margin: 0 0 28px;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
  max-width: 16ch;
}
.ag-footer__cta-title strong {
  font-weight: 800;
  color: var(--ag-yellow);
}

.ag-footer__contacts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.ag-footer__contacts li {
  margin-bottom: 14px;
}
.ag-footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.45;
  transition: color 0.2s ease;
}
a.ag-footer__contact:hover {
  color: var(--ag-yellow);
}
.ag-footer__contact i {
  flex: 0 0 auto;
  width: 20px;
  margin-top: 3px;
  color: var(--ag-yellow);
  font-size: 1.1rem;
  text-align: center;
}
.ag-footer__contact--static {
  cursor: default;
}

/* social + trabalhe conosco */
.ag-footer__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ag-footer__social {
  display: flex;
  gap: 10px;
}
.ag-footer__social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.ag-footer__social-link:hover {
  background: var(--ag-yellow);
  color: var(--ag-green-dark);
  transform: translateY(-2px);
}
.ag-footer__work {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ag-yellow);
  border: 1.5px solid rgba(244, 194, 13, 0.55);
  border-radius: 999px;
  padding: 9px 18px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.ag-footer__work span {
  transition: transform 0.2s ease;
}
.ag-footer__work:hover {
  background: var(--ag-yellow);
  color: var(--ag-green-dark);
  border-color: var(--ag-yellow);
}
.ag-footer__work:hover span {
  transform: translateX(3px);
}

/* ---- Formulário (card) ---- */
.ag-footer__form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ag-footer__form-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}
.ag-footer__field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.ag-footer__field {
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--ag-ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.ag-footer__field::placeholder {
  color: #9a9a9a;
}
.ag-footer__field:focus {
  outline: none;
  border-color: var(--ag-yellow);
  box-shadow: 0 0 0 3px rgba(244, 194, 13, 0.35);
}
.ag-footer__submit {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--ag-yellow);
  color: var(--ag-green-dark);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 22px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.ag-footer__submit span {
  transition: transform 0.2s ease;
}
.ag-footer__submit:hover {
  background: #ffd23b;
}
.ag-footer__submit:hover span {
  transform: translateX(4px);
}
.ag-footer__submit:active {
  transform: scale(0.98);
}
.ag-footer__submit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---- Barra inferior ---- */
.ag-footer__bar {
  position: relative;
  z-index: 1;
  background: #fff;
}
.ag-footer__bar-inner {
  max-width: var(--ag-container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ag-footer__copy {
  margin: 0;
  color: var(--ag-muted);
  font-size: 0.9rem;
}
.ag-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ag-muted);
  font-size: 0.9rem;
}
.ag-footer__credit img {
  height: 16px;
  width: auto;
  display: block;
}

/* ===================================================================
   Responsivo
   =================================================================== */
@media (max-width: 900px) {
  .ag-nav {
    display: none;
  }
  .ag-header__toggle {
    display: flex;
  }
  .ag-footer__inner {
    padding: 48px 20px 40px;
  }
  .ag-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ag-solution__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ag-solution__media {
    margin-right: 0; /* sem sangria quando empilha no mobile */
  }
  .ag-portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ag-segments__inner {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 48px);
  }
  .ag-segments__grid {
    max-width: 520px;
  }
  .ag-segments__media {
    order: -1; /* imagem acima dos badges quando empilha */
  }
  .ag-process__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 28px) clamp(14px, 2.4vw, 22px);
  }
  /* Faixa tecnologia: imagem recortada no topo, texto no fluxo sobre branco
     (o card perdeu o fundo verde no desktop, então aqui reescrevemos as cores). */
  .ag-tech__bg {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: left center;
  }
  .ag-tech__content {
    position: relative;
    inset: auto;
    left: 0;
    padding: clamp(20px, 5vw, 36px) clamp(16px, 4vw, 28px) 0;
    color: inherit;
  }
  .ag-tech__title {
    color: var(--ag-green-dark);
  }
  .ag-tech__sub {
    color: var(--ag-green);
  }
  .ag-research__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
  }
  .ag-research__media {
    order: -1; /* imagem acima do texto quando empilha */
  }
  .ag-support__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
  }
  /* Presença nacional: empilha (mapa acima do texto) e a lavoura vira topo. */
  .ag-presence {
    padding: 0 0 clamp(32px, 6vw, 56px);
  }
  .ag-presence__bg {
    width: 100%;
    height: 60%;
    object-position: center top;
  }
  .ag-presence__inner {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 32px);
  }
  .ag-presence__map {
    order: -1;
  }
  .ag-presence__text {
    text-align: center;
  }
  .ag-presence__desc {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
  }
  /* Quem somos: empilha (imagem acima do texto), centralizado. */
  .ag-quem__inner {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 40px);
  }
  .ag-quem__text {
    text-align: center;
  }
  .ag-quem__desc {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
  }
  /* Missão/Visão/Valores: empilha em uma coluna. */
  .ag-mvv__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  /* Pilares: imagem acima, blocos abaixo. */
  .ag-pillars__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
  }
  /* Clientes: 2 colunas no mobile/tablet. */
  .ag-clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Conectividade: imagem vira fundo cover e o texto entra no fluxo.
     Cantos arredondados só no mobile. */
  .ag-conect__card {
    border-radius: clamp(32px, 4vw, 28px);
  }
  .ag-conect__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
  }
  .ag-conect__content {
    position: relative;
    max-width: 100%;
    padding: clamp(30px, 6vw, 48px);
  }
}

@media (max-width: 600px) {
  :root {
    --ag-header-h: 72px;
  }
  .ag-header__logo img {
    height: 46px;
  }
  .ag-hero {
    padding: 0;
  }
  .ag-hero__carousel {
    padding: 0;
  }
  .ag-slide img {
    border-radius: 0;
  }
  .ag-showcase__badge {
    top: 9%;
    right: 3%;
    max-width: 46%;
    padding: 9px 11px;
    font-size: 3vw;
    line-height: 1.22;
  }
  .ag-prodintro {
    margin: 14px 0 0;
    padding: 0;
  }
  .ag-prodintro__content {
    padding: 0 4% 0 40%;
  }
  .ag-prodintro__title {
    line-height: 0.95;
  }
  .ag-portfolio__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .ag-process__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ag-prodintro__badge {
    line-height: 1.28;
  }
  .ag-footer__form {
    padding: 22px;
  }
  .ag-footer__bar-inner {
    justify-content: center;
    gap: 8px;
  }
}
