* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* ---------------------- HEADER ---------------------- */
header {
  background: linear-gradient(90deg, #2f855a, #3cb371);
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 24px;
}

.menu-logo, .logo {
  height: 60px;
  object-fit: contain;
}

/* ---------------------- NAV ---------------------- */
.menu-toggle {
  display: none;
  background: none;
  font-size: 28px;
  color: white;
  border: none;
}

.navbar-menu {
  background-color: #2f6e5a;
  border-bottom: 4px solid #f8cc00;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav ul li a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #c4fcd2;
}

.menu-links .nav-link {
  color: white !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  margin-left: 25px;
  transition: color 0.3s ease;
  position: relative;
  left: 8%;
}

.menu-links .nav-link:hover {
  color: #f8cc00 !important;
}

.navbar-toggler {
  background-color: white;
  border-radius: 4px;
  margin-left: 50%;
}

.border-bottom-custom {
  border-bottom: 4px solid #f8cc00;
}

/* ---------------------- HERO ---------------------- */
.hero {
  background-image: url('../maquina_campo.png');
  background-size: cover;
  background-position: center;
  height: 60vh;
  min-height: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 900px;
  width: 100%;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.btn-saiba-mais {
  background: #218c1e;
  color: white;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-saiba-mais:hover {
  background: #176a15;
}

/* ---------------------- MAIN / SECTION ---------------------- */
main {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

main h2 {
  margin-bottom: 20px;
  color: #2f855a;
}

main p {
  font-size: 18px;
}

section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

section:nth-of-type(2) {
  background-color: #ffffff;
  text-align: center;
  padding: 50px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #2f855a;
  margin-bottom: 40px;
}

/* ---------------------- CULTIVOS ---------------------- */
.cultivos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.cultivo {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 430px;
}

.cultivo:hover {
  transform: translateY(-5px);
}

.cultivo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.cultivo h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2f855a;
}

.cultivo p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* ---------------------- INFRA ---------------------- */
#infra {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 30px 20px;
  max-width: 1000px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.infra-item, .infra-item_2 {
  display: flex;
  align-items: center;
  gap: 30px;
}

.infra-item img, .infra-item_2 img {
  width: 300px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.infra-item .descricao, .infra-item_2 .descricao {
  flex: 1;
}

.descricao h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: bold;
}

.descricao p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px){
  .infra-item{
    flex-direction: column !important;   /* anula row/row-reverse */
    align-items: center;
    gap: 16px;
  }

  /* garanta que a imagem venha primeiro */
  .infra-item > img{
    order: 1;
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0;
  }

  .infra-item > .descricao{
    order: 2;
    width: 100%;
  }

  /* se tiver usado nth-child(even) acima, força a mesma ordem no mobile */
  .infra-item:nth-child(even){
    flex-direction: column !important;
  }
}
/* ---------------------- FOOTER ---------------------- */
/* FOOTER */
.footer-gms{
  background:#2f855a;
  color:#fff;
  border-top:4px solid #f8cc00;   /* sua identidade */
  padding:24px 0 28px;
  margin-top:32px;
}
.footer-gms .container{
  max-width:1100px;               /* opcional: limita largura pra ficar mais elegante */
  margin:0 auto;
  padding:0 16px;
}

/* linha amarela interna (opcional) */
.footer-divider{
  height:2px;
  background:#f8cc00;
  opacity:.6;
  width:100%;
  margin:0 0 18px;
  display:none;                   /* desativada pra não duplicar com a borda superior */
}

/* grid dos selos */
.footer-logos{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:36px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.footer-cert{
  height:44px;                    /* 40–56px, ajuste se quiser maior/menor */
  max-width:180px;
  width:auto;
  object-fit:contain;
  filter:grayscale(12%);
  opacity:.95;
  transition:.2s ease;
}
.footer-logos a:hover .footer-cert{
  filter:none;
  opacity:1;
  transform:translateY(-2px);
}

/* copyright centralizado */
.footer-bottom{
  text-align:center;
  font-size:.95rem;
  opacity:.95;
}
.footer-bottom p{ margin:8px 0 0; }

@media (max-width: 640px){
  .footer-logos{ gap:20px; }
  .footer-cert{ height:38px; }
  .footer-bottom{ font-size:.9rem; }
}


/* ---------------------- CAROUSEL ---------------------- */
.carousel,
.carousel-inner {
  width: 100%;
  max-width: 100%;
}

.carousel-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

/* ---------------------- MEDIA QUERY ---------------------- */
@media (max-width: 768px) {
  .infra-item {
    flex-direction: column;
    text-align: center;
  }

  .infra-item img {
    width: 100%;
    max-width: 400px;
  }

  .menu-links {
    flex-direction: column;
    gap: 10px;
  }

  .collapse.navbar-collapse {
    margin-left: 0%;
    flex-direction: column;
    text-align: center;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    display: none;
  }

  .mobile-nav.open ul {
    display: flex;
  }

  nav ul li a {
    font-size: 16px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .btn-saiba-mais {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .cultivo {
    min-height: auto;
  }
}

.timeline-container {
  margin-top: 40px;
  position: relative;
}

.timeline-title {
  text-align: center;
  font-size: 1.8rem;
  color: #2f855a;
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #2f855a;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  right: -10px;
  width: 20px;
  height: 20px;
  background-color: #f8cc00;
  border: 3px solid #2f855a;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(248, 204, 0, 0.3);
}

.timeline-item.right::before {
  left: -10px;
  right: auto;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.timeline-content h4 {
  color: #2f855a;
  margin-bottom: 8px;
}

.timeline-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

/* Responsivo */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item.right {
    left: 0%;
  }

  .timeline-item::before {
    left: 15px;
    right: auto;
  }
}

/* ===== Missão | Visão | Valores (cards interativos) ===== */
.mvv-section{
  padding:64px 0;
}
.mvv-card{
  background:#ffffff;
  border:1px solid #e8ece8;
  border-radius:20px;
  padding:26px 22px;
  height:100%;
  text-align:center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  position:relative;
  overflow:hidden;
}
.mvv-card::after{
  /* barra decorativa sutil no topo esquerdo */
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:6px; height:100%;
  background: linear-gradient(180deg, #2f855a, #f8cc00);
  opacity:.65;
  border-radius: 20px 0 0 20px;
  transition: opacity .25s ease, filter .25s ease;
}
.mvv-icon{
  width:72px; height:72px;
  margin: 4px auto 10px;
  display:grid; place-items:center;
  border-radius:16px;
  color:#2f855a;
  background: rgba(47,133,90,.08);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.mvv-title{
  text-transform: uppercase;
  letter-spacing:.04em;
  font-weight:800;
  color:#2f855a;
  margin:10px 0 8px;
}
.mvv-text{
  color:#2a2a2a;
  font-size:0.98rem;
  line-height:1.55;
  margin:0;
}

/* Hover interativo */
.mvv-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  border-color:#2f855a22;
}
.mvv-card:hover .mvv-icon{
  transform: scale(1.06);
  background: rgba(248,204,0,.16);
  color:#2f855a;
}
.mvv-card:hover::after{
  opacity:1; filter: saturate(120%);
}

/* Responsivo */
@media (max-width: 768px){
  .mvv-section{ padding:48px 0; }
}

.mvv-section {
  margin-top: 80px; /* espaçamento externo */
  padding: 80px 0;  /* espaçamento interno */
}

/* ===== Contato ===== */
.contact-section{ padding:72px 0; background:#f7f9f9; }
.contact-title{ color:#2f855a; margin-bottom:12px; }

.contact-card{
  background:#fff; border:1px solid #e9efef; border-radius:20px;
  padding:24px; box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.contact-list{ list-style:none; margin:12px 0 0; padding:0; display:grid; gap:14px; }
.contact-list li{ display:flex; gap:12px; align-items:flex-start; }
.contact-list strong{ display:block; color:#2f855a; }
.contact-list p{ margin:2px 0 0; color:#3a3a3a; }
.contact-list a{ color:#2f855a; text-decoration:none; }
.contact-list a:hover{ text-decoration:underline; }

.icon{
  width:38px; height:38px; border-radius:10px; display:grid; place-items:center;
  color:#2f855a; background:rgba(47,133,90,.1);
}

.contact-social{ margin-top:16px; display:flex; gap:10px; }
.social-link{
  display:inline-grid; place-items:center; width:36px; height:36px; border-radius:8px;
  background:#f0f5f3; color:#2f855a; font-weight:700; text-decoration:none;
  transition:transform .2s ease, background .2s ease;
}
.social-link img{ width:22px; height:22px; } 
.social-link:hover{ transform:translateY(-2px); background:#e6f2ec; }   

.map-wrap iframe{ border-radius:16px; box-shadow:0 6px 18px rgba(0,0,0,.08); height:360px; }

/* responsivo */
@media (max-width: 992px){
  .contact-section{ padding:60px 0; }
}
@media (max-width: 576px){
  .contact-card{ padding:18px; }
}
#contato{ scroll-margin-top: 90px; } /* ajuste se seu header for mais alto/baixo */

.midia {
  text-align: center;
  padding: 60px 20px 10px;
  margin-bottom: 0;
}

.midia h2 {
  font-size: 2rem;
  color: #2f855a;
  margin-bottom: 10px;
}

.midia p {
  color: #555;
  margin-bottom: 40px;
}

.midia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.midia-card iframe {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.midia-card h3 {
  margin-top: 12px;
  font-size: 1rem;
  color: #333;
}

