/* ==========================
   CSS completo - Vital Reciclagem (corrigido)
   ========================== */
:root {
  --green: #6dbb6d;
  --green-dark: #43a047;
  --orange: #ffa726;
  --bg: #f7faf7;
  --text: #333;
  --white: #fff;
  --shadow: rgba(2,6,23,0.08);
  --header-height: 72px;
}

/* Reset / base */
* { box-sizing: border-box; margin:0; padding:0; } /* corrigido */
html, body { height: 100%; }
body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 20px;
  background: linear-gradient(90deg, var(--green) 0%, #f5b946 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  position: sticky;
  top:0;
  z-index:1000;
  height: var(--header-height);
}

header .logo img {
  max-width:190px;
  height:auto;
}

/* Main nav */
header nav {
  display:flex;
  gap:18px;
  align-items:center;
}

header nav a {
  color:#1b5e20;
  text-decoration:none;
  font-weight:600;
  padding:6px 8px;
  position:relative;
  transition: color .22s ease, background .22s ease;
}

header nav a::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:-6px;
  height:3px; width:0;
  background: var(--orange);
  border-radius:2px;
  transition: width .22s ease;
}

header nav a:hover::after,
header nav a.active::after { width:100%; }
header nav a:hover { color:#081; }

/* ===== MENU HAMBÚRGUER (mobile) ===== */
.hamburger {
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  width:36px;
  height:36px;
  cursor:pointer;
  z-index:1100;
}
.hamburger span {
  width:24px;
  height:3px;
  background:#1b5e20;
  margin:4px 0;
  border-radius:2px;
  transition:0.3s;
}

/* Estado ativo (X) */
.hamburger.open span:nth-child(1) {
  transform:rotate(45deg) translate(5px,5px);
}
.hamburger.open span:nth-child(2) {
  opacity:0;
}
.hamburger.open span:nth-child(3) {
  transform:rotate(-45deg) translate(6px,-6px);
}

/* Overlay do menu mobile */
.menu-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:1000;
}
.menu-overlay.active {
  display:flex;
  animation:fadeIn 0.3s ease;
}

.menu-mobile {
  background:var(--white);
  border-radius:12px;
  padding:30px 20px;
  display:flex;
  flex-direction:column;
  gap:18px;
  text-align:center;
}
.menu-mobile a {
  color:var(--green-dark);
  text-decoration:none;
  font-weight:600;
  font-size:1.1rem;
}

/* ===== ANIMAÇÃO ===== */
@keyframes fadeIn {
  from{ opacity:0; }
  to{ opacity:1; }
}

/* ===== MAIN LAYOUT ===== */
.main-wrapper {
  max-width:1200px;
  margin:22px auto;
  padding:0 20px;
}
.container {
  display:flex;
  align-items:flex-start;
  gap:24px;
  flex-wrap:wrap;
}

/* ===== BANNER ===== */
.banner-container {
  position:relative;
  overflow: hidden;
  flex:0 0 30%;
  max-width:390px;
  min-width:240px;
  margin:20px 0 20px 5px;
  height:400px; /* padrão desktop */
  border-radius:12px;
  box-shadow: 0 6px 20px var(--shadow);
  background:#e6e6e6;
  align-self:flex-start;
}

/* each slide is absolutely positioned on desktop for overlap effect */
.banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity .6s ease;
}
.banner-slide.show { opacity:1; z-index:2; }
.banner-slide img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:12px;
}
.banner-caption {
  position:absolute;
  left:16px;
  bottom:12px;
  background: rgba(0,0,0,0.45);
  color:var(--white);
  padding:8px 12px;
  border-radius:8px;
  font-weight:600;
  z-index:4;
  max-width:85%;
  backdrop-filter: blur(2px);
  font-size:0.95rem;
}

/* prev / next */
.prev, .next {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background: rgba(0,0,0,0.32);
  color:var(--white);
  border:0;
  width:42px; height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
  transition: background .18s;
}
.prev:hover, .next:hover { background: rgba(0,0,0,0.6); }
.prev{ left:12px; } .next{ right:12px; }

/* dots */
.dots {
  position:absolute;
  left:0; right:0; bottom:10px;
  display:flex;
  justify-content:center;
  gap:8px;
  z-index:6;
}
.dot {
  width:10px; height:10px;
  border-radius:50%;
  background: var(--green);
  cursor:pointer;
  transition: transform .12s, background .18s;
  
}
.dot.active { background: var(--orange); transform:scale(1.05); }



/* ===== TEXTO ===== */
.text-content {
  flex:1 1 60%;
  min-width:260px;
  background:#fff;
  border-radius:12px;
  padding:20px;
  box-shadow:0 6px 20px rgba(2,6,23,0.04);
}
.text-content h2 { color: var(--green-dark); margin-top:0; }
.text-content h1 { text-align: center;color: var(--green-dark);}
.text-content p {
  line-height:1.6;
  margin:8px 0 14px 0;
  color:#2f3b2f;
  font-size:14px;
  text-align:justify;
}

/* ===== FOOTER ===== */
footer {
  margin-top:28px;
  padding:18px 20px;
  background: linear-gradient(90deg, var(--green) 0%, #f5b946 100%);
  text-align:center;
  box-shadow:0 -2px 6px rgba(0,0,0,0.04);
}
.social-icons {
  margin-top:8px;
  display:flex;
  justify-content:center;
  gap:12px;
}
.social-icons img {
  width:26px; height:26px;
  transition: transform .12s;
}
.social-icons img:hover { transform:scale(1.1); }

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position:fixed;
  right:18px;
  bottom:18px;
  width:60px; height:60px;
  background:var(--green-dark);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 20px rgba(0,0,0,0.18);
  z-index:1200;
}
.whatsapp-float img { width:60px; height:60px; }

/* ===== RESPONSIVO ===== */
@media (max-width:768px){
  header nav { display:none; }
  .hamburger { display:flex; }
  .container { flex-direction:column; gap:16px; }

  /* make banner fluid on mobile:
     - container becomes full width with auto height
     - slides become relative so images expand container height */
  .banner-container{
    flex:1 1 100%;
    max-width:100%;
    max-height: 500px;
    height:auto; /* altura fluida em mobile */
    min-width:0;
    min-height:220px; /* fallback caso a imagem demore a carregar */
    border-radius:12px;
  }
  .banner-slide, .banner-slide.show { position:relative; inset: auto; width:100%; opacity:1; }
  .banner-slide { display:block; opacity:0; }
  .banner-slide.show { opacity:1; }
  .banner-slide img{ height:auto; object-fit:cover; border-radius:12px; display:block; width:100%; }
  .text-content{ width:100%; padding:16px; }
  .prev, .next{ width:36px; height:36px; }

  /* ensure prev/next sit above slides but not out of visible area */
  .prev { left:10px; }
  .next { right:10px; }
}

/* Mantido conforme estrutura original */
.text-content { width:100%; }

/* ===== FAQ COM ANIMAÇÃO ===== */
.faq-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.faq-item {
  background: white;
  margin-bottom: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  background: var(--green);
  color: #fff;
  position: relative;
  transition: background 0.3s;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: "–";
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #fafafa;
  color: #333;
  transition: all 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* altura máxima do conteúdo */
  opacity: 1;
  padding: 15px 20px;
}

/* Efeito hover */
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===============================
   Seção - Processo de Coleta (3x2)
   =============================== */

.processo-coleta {
  text-align: center;
  padding: 70px 20px;
  background: var(--bg);
}

.processo-coleta h2 {
  color: var(--green-dark);
  font-size: 1.8rem;
  margin-bottom: 50px;
}

/* Grade fixa 3 colunas */
.passos-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.passo {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.passo:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.passo img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.passo:hover img {
  transform: rotate(5deg) scale(1.1);
}

.passo h3 {
  color: var(--green-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

/* ===============================
   Responsivo
   =============================== */
@media (max-width: 900px) {
  .passos-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .passos-container {
    grid-template-columns: 1fr;
  }

  .passo {
    padding: 25px 15px;
  }

  .passo img {
    width: 70px;
    height: 70px;
  }
}
/* ==========================
   MENU DROPDOWN
   ========================== */

nav.menu-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  color: #1b5e20;
  text-decoration: none;
  padding: 10px 15px;
  display: inline-block;
  transition: background 0.3s;
}

.dropbtn:hover {
  background-color: #2e7d32;
  border-radius: 4px;
}

/* Submenu escondido inicialmente */
.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(90deg, var(--green) 0%, #f5b946 100%);
  min-width: 240px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 4px;
}

.dropdown-content a {
  color: #1b5e20;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: #ffc;
}

/* Mostra o submenu ao passar o mouse */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Responsividade – no mobile o submenu aparece em bloco */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: transparent;
  }

  .dropdown-content a {
    padding-left: 25px;
    background: linear-gradient(90deg, var(--green) 0%, #f5b946 100%);
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}
/* ===== Banner de Cookies ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(34, 85, 34, 0.95); /* verde escuro semi-transparente */
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-banner p {
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.cookie-banner a {
  color: #ffd54f;
  text-decoration: underline;
}

.cookie-banner button {
  background: #ffa726;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cookie-banner button:hover {
  background: #ff9800;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
  .cookie-banner p {
    margin: 0;
  }
}

/* ==== Correção do banner no mobile ==== */
@media (max-width:768px) {
  .banner-container {
    width: 100%;
    height: auto;
    min-height: 260px; /* garante altura mesmo enquanto carrega */
  }

  .banner-slide {
    position: absolute !important;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
  }

  .banner-slide.show {
    opacity: 1;
    z-index: 2;
  }

  .banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff; /* evita corte e deixa visual limpo */
  border-radius: 12px;
  display: block;
}
}

/* ==== Correção definitiva do banner no mobile (sem cortar nem sumir) ==== */
@media (max-width:768px) {
  .banner-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: block;
    max-width: 100%;
    height: auto !important;
    background: #fff;
    border-radius: 12px;
  }

  /* Cada slide ocupa a área completa do container */
  .banner-slide {
    position: relative !important;
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity .6s ease;
  }

  /* Apenas o slide ativo aparece */
  .banner-slide.show {
    display: block;
    opacity: 1;
  }

  .banner-slide img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important; /* mostra a imagem inteira */
    border-radius: 12px;
    display: block;
    margin: 0 auto;
  }

  /* Ajuste dos botões pra não sumirem */
  .prev, .next {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    z-index: 10;
    top: 45%;
  }
  .prev { left: 10px; }
  .next { right: 10px; }
}