@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body {
  background-color: #fff;
}

body * {
  max-width: 100%;
  box-sizing: border-box;
}


.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* =====a HEADER ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding-top: 10px; /* desce os itens do menu */
  background: rgba(216, 24, 23, 1); /* 100% opacidade ao iniciar */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease; /* suaviza a transição */
}

header.scrolled {
  background: rgba(216, 24, 23, 0.9); /* 90% opacidade ao rolar */
}



.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;      /* limite de largura */
  margin: 0 auto;         /* centraliza horizontalmente */
  padding: 12px 25px;     /* espaço interno */
  width: 100%;
}

@media (max-width: 900px) {
  .header-container {
    padding: 12px 18px;   /* menos espaço lateral no mobile */
  }
}


.logo img {
  height: 70px;
  transition: height 0.3s ease;
}

/* ===== MENU ===== */
.nav {
  display: flex;
  
}

/* Importa a fonte Poppins do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.menu {
  display: flex;
  list-style: none;
  gap: 20px;

  
}

.menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  font-family: "Poppins", sans-serif; /* Aplica a fonte */
  transition: color 0.3s ease;
 
  
}

.menu li a:hover {
  color: #ffbd15;
}


/* ===== TOGGLE BUTTON ===== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
  
}

.menu-toggle i {
  transition: opacity 0.3s ease;
}

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


/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #d81817;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centraliza verticalmente */
    align-items: center;     /* centraliza horizontalmente */
    text-align: center;      /* centraliza textos e links */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
  }

.nav.active {
  opacity: 1; /* mantém os textos 100% visíveis */
  visibility: visible;
  transform: translateY(0);
  background: rgba(216, 24, 23, 0.9); /* 🔹 90% de opacidade apenas no fundo */
}


  /* 🔹 Corrige o alinhamento dos itens do menu */
.menu {
    list-style: none;
    margin: 40px 0 0 0; /* desce todo o menu 40px */
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
}


  .menu li {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
    margin-top: 5px; /* desce o texto */
  }

.menu li a {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    display: inline-block;
    width: 100%;
    text-align: center;
    transform: translateY(5px); /* DESCE o texto 5px */
}


  .menu li a:hover {
    color: #ffbd15;
  }

  .logo img {
    height: 30px;
  }
}

/* LOGO DENTRO DO MENU MOBILE */
.mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 40px;
  margin-top: -60px;
}

.mobile-logo img {
  width: 120px;
}

/* Exibir o logo apenas no menu aberto em mobile */
@media (max-width: 900px) {
  .nav.active .mobile-logo {
    display: block;
  }
}

/* BOTÃO WHATSAPP */
.whatsapp-btn {
  background-color: #25D366;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s;
  margin-top: 0;
  line-height: normal;
  position: relative;
  top: -7px;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .whatsapp-btn {
    display: flex !important;       /* força o comportamento de bloco flexível */
    justify-content: center;        /* centraliza o conteúdo */
    align-items: center;            /* alinha verticalmente */
    width: 250px !important;        /* 🔹 trava a largura */
    height: 44px;                   /* 🔹 altura padrão visual */
    padding: 0 !important;          /* 🔹 evita que padding altere largura */
    font-size: 0.85rem;             /* texto legível */
    border-radius: 6px;
    gap: 6px;
    margin: 10px auto 0 auto;       /* 🔹 centraliza horizontalmente */
  }
}




/* =========================================================
   BANNER
   ========================================================= */
.banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 800px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .banner {
    height: 250px;
    top: 60px;
  }
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-item.active {
  opacity: 1;
  z-index: 1;
}

.banner-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  padding: 20px;
}

.banner-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 2;
}

.banner-control.prev { left: 20px; }
.banner-control.next { right: 20px; }


.banner-faixa-container {
  width: 100%;
  display: flex;
  justify-content: center;
  
  padding: 20px 0;
}

.banner-faixa {
  width: 70%; /* 🔹 Ocupa 70% da tela */
  overflow: hidden;
  border-radius: 10px; /* opcional: cantos arredondados */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* opcional: leve sombra */
}

.banner-faixa img {
  width: 100%;
  height: 120px; /* 🔹 altura ajustada */
  object-fit: cover;
  display: block;
}

/* Responsivo */
@media (max-width: 768px) {
  .banner-faixa-container {
    margin-top: 60px; /* 🔹 empurra a faixa pra baixo */
  }

  .banner-faixa {
    width: 90%; /* 🔹 mais larga no mobile */
  }

  .banner-faixa img {
    height: 45px; /* 🔹 menor no mobile */
  }
}


.banner-fixo {
  width: 100%;
  max-width: 1920px; /* largura máxima */
  height: 400px; /* altura padrão no desktop */
  margin: 50px auto 0; /* 🔹 desce o banner 50px */
  overflow: hidden;
  position: relative;
  border-radius: 10px; /* opcional */
  box-shadow: 0 2px 10px rgba(0,0,0,0.15); /* opcional */
}

.banner-fixo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantém proporção sem distorcer */
  display: block;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .banner-fixo {
    height: 250px; /* altura em tablets */
    margin-top: 40px; /* levemente menor */
  }
}

@media (max-width: 600px) {
  .banner-fixo {
    height: 180px; /* altura em celulares */
    margin-top: 30px; /* ajusta distância */
    border-radius: 0; /* opcional: ocupa toda a largura */
  }
}




/* =========================================================
   GRID DE PRODUTOS
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 120px auto 40px;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #222;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 360px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 15px;
  flex: 1;
  overflow: hidden;
}

.card-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #2e7d32;
}

.card-content p {
  margin: 0;
  font-size: 1rem;
  color: #555;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
    margin-top: 100px;
  }
}

/* =========================================================
   INSTITUCIONAL / FOOTER
   ========================================================= */
.institucional {
  padding: 60px 0;
  background: #fff;
  text-align: center;
}

.institucional h2 {
  font-size: 2.5rem;
  color: #e63946;
  margin-bottom: 20px;
}

.institucional p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}


.footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #2e7d32;
  color: #fff;
  padding: 60px 20px 30px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  text-align: left; /* 🔹 textos à esquerda no desktop */
}

.footer-column {
  flex: 1 1 30%;
  min-width: 260px;
}

.footer h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

.footer a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 1rem;
}

.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  color: white;
  font-size: 22px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ff4444;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* 🔹 MOBILE */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center; /* Centraliza textos e ícones no mobile */
  }

  .footer-column {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }
}
