html, body {
  overflow-x: hidden;
}

/* =========================================================
   VARIÁVEIS DE CORES
   ========================================================= */
:root {
  --vermelho: #d90429;
  --preto: #000;
  --branco: #fff;
  --cinza: #f5f5f5;
}

/* =========================================================
   ESTILOS GLOBAIS
   ========================================================= */
.main { flex:1; padding:20px; }
.products { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.product-card { border:1px solid #ddd; padding:10px; text-align:center; background:#fff; transition:transform 0.2s; }
.product-card:hover { transform:scale(1.05); border-color:#c00; }
.product-card img { max-width:100%; height:160px; object-fit:cover; margin-bottom:10px; }
.product-info p { margin:5px 0; }
.product-desc { font-size:14px; color:#555; margin-bottom:8px; }

   
   
   
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--cinza);
  color: var(--preto);
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0 0 1rem 0;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

/* =========================================================
   HEADER (logo + menu)
   ========================================================= */
header {
  background: var(--preto);
  color: var(--branco);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: center;   /* centraliza logo + menu */
  align-items: center;
  gap: 40px;                 /* espaço entre logo e menu */
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5); /* sombra do header */
}

.logo img {
  max-width: 360px; /* tamanho da logo no desktop */
  height: auto;
}

nav {
  display: flex;
  gap: 20px; /* espaçamento entre links */
  align-items: center;
}

nav a {
  color: var(--branco);
  font-weight: bold;
}

nav a:hover {
  color: var(--vermelho);
}

/* Ícone Instagram */
.icon-instagram {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

/* =========================================================
   CONTAINER CENTRALIZADO
   ========================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem; /* margem lateral */
}

/* =========================================================
   HERO COM PARALLAX
   ========================================================= */
.hero.parallax {
  position: relative;
  background-image: url("../img/Fundoparallax.png"); /* imagem de fundo */
  background-attachment: fixed;   /* efeito parallax */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 600px;                  /* altura da seção */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--branco);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-text {
  background: rgba(0,0,0,0.5); /* fundo semitransparente para destacar texto */
  padding: 2rem;
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero .btn {
  background: var(--vermelho);
  color: var(--branco);
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
}

.hero .btn:hover {
  background: var(--branco);
  color: var(--vermelho);
}

/* =========================================================
   SEÇÕES PADRÃO
   ========================================================= */
section {
  padding: 3rem 0;
}

section h2 {
  color: var(--vermelho);
  margin-bottom: 1rem;
}

/* Sombras em cada seção para dar profundidade */
.sobre-preview, .portfolio-preview, .regioes-preview, .marcas {
  background: var(--branco);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  border-radius: 8px;
}

/* =========================================================
   CARDS
   ========================================================= */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: var(--branco);
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =========================================================
   BOTÕES SECUNDÁRIOS
   ========================================================= */
.btn-secondary {
  background: var(--preto);
  color: var(--branco);
  padding: 10px 20px;
  border-radius: 5px;
}

.btn-secondary:hover {
  background: var(--vermelho);
}

/* =========================================================
   SEÇÃO DE MARCAS (carrossel)
   ========================================================= */
.marcas {
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.marcas h2 {
  color: var(--vermelho);
  margin-bottom: 2rem;
}

.slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slide-track {
  display: flex;
  width: calc(250px * 14);
  animation: scroll 30s linear infinite;
  z-index: 0;
}

.slide {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
  margin: 0 20px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   PORTFOLIO 
   ========================================================= */
.portfolio {
  padding: 3rem 0;
}
.portfolio h2 {
  text-align: center;
  color: var(--vermelho);
  margin-bottom: 1rem;
}
.portfolio p {
  text-align: center;
  margin-bottom: 2rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.portfolio-item {
  background: var(--branco);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
}
.portfolio-item img {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 1rem;
  border-radius: 6px;
}
.portfolio-item h3 {
  color: var(--preto);
  margin-bottom: 0.5rem;
}
.portfolio-item p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.portfolio-item .btn {
  display: inline-block;
  background: var(--vermelho);
  color: var(--branco);
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.portfolio-item .btn:hover {
  background: var(--preto);
}
/* =========================================================
        QUEM SOMOS
   ========================================================= */
.historia {
  padding: 3rem 0;
}
.historia h2 {
  color: var(--vermelho);
  margin-bottom: 1rem;
}
.historia p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.mvv {
  padding: 3rem 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.mvv .card {
  background: var(--branco);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
  text-align: center;
}
.mvv .card h3 {
  color: var(--vermelho);
  margin-bottom: 0.5rem;
}

.diferenciais {
  padding: 3rem 0;
}
.diferenciais h2 {
  color: var(--vermelho);
  margin-bottom: 1rem;
}
.diferenciais ul {
  list-style: none;
  padding: 0;
}
.diferenciais li {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.cta {
  background: var(--vermelho);
  color: var(--branco);
  text-align: center;
  padding: 3rem 1rem;
}
.cta h2 {
  margin-bottom: 1rem;
}
.cta p {
  margin-bottom: 1.5rem;
}
.cta .btn {
  background: var(--branco);
  color: var(--vermelho);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 0.5rem;
}
.cta .btn-alt {
  background: var(--preto);
  color: var(--branco);
}

/* =========================================================
   FORMULÁRIOS (Fale Conosco)
   ========================================================= */
.contato-form {
  padding: 3rem 0;
}
.contato-form h2 {
  color: var(--vermelho);
  margin-bottom: 1rem;
}
.contato-form form {
  display: grid;
  gap: 1rem;
}
.contato-form input, .contato-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.contato-form textarea {
  min-height: 120px;
}
.contato-form button {
  background: var(--vermelho);
  color: var(--branco);
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.contato-info {
  padding: 3rem 0;
}
.contato-info h2 {
  color: var(--vermelho);
  margin-bottom: 1rem;
}
.contato-info .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.contato-info #map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== DEPOIMENTOS ===== */
.depoimentos {
  background: var(--branco);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 3rem 0;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.depoimentos h2 {
  text-align: center;
  color: var(--vermelho);
  margin-bottom: 2rem;
}

.depoimentos-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.depoimento {
  background: var(--cinza);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.depoimento img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.depoimento a {
  display: block;
  font-weight: bold;
  color: var(--vermelho);
  margin-bottom: 0.5rem;
}

.depoimento p {
  font-style: italic;
  font-size: 0.95rem;
}

.ver-mais {
  text-align: center;
  margin-top: 2rem;
}

.ver-mais button {
  background: var(--vermelho);
  color: var(--branco);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.ver-mais button:hover {
  background: var(--preto);
}

/* ===== POPUP ===== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  overflow-y: auto;
}

.popup-content {
  background: var(--branco);
  margin: 5% auto;
  padding: 2rem;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
}

.popup-content h2 {
  color: var(--vermelho);
  margin-bottom: 1rem;
  text-align: center;
}

.fechar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

.depoimentos-list .depoimento {
  margin-bottom: 2rem;
}


/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  background: #000; /* fundo preto */
  color: var(--branco);
  padding: 2rem 0;
  text-align: center;
  overflow: hidden; /* garante que a imagem não ultrapasse */
}

/* Imagem de fundo com transparência */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/footer-bg.png") center/cover no-repeat;
  opacity: 0.25; /* ajuste aqui: 0.1 bem transparente, 1 totalmente visível */
  z-index: 0;
}

/* Conteúdo do footer acima da imagem */
.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--vermelho);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--branco);
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--vermelho);
}

.footer-logo {
  max-width: 240px;
  margin-bottom: 1rem;
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
}

.footer-social img {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ===== Página de Regiões e Representantes ===== */
.filtros {
  padding: 2rem 0;
}
.filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  align-items: end;
}
.filtro-box label {
  display: block;
  margin-bottom: 0.3rem;
}
.filtro-box input, .filtro-box select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  max-width: 250px; /* largura máxima do campo */
  background: #fff;
}

/* Botões alinhados e responsivos */
.filtro-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filtro-actions button {
  background: var(--vermelho);
  color: var(--branco);
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.filtro-actions #btnLimpar {
  background: var(--preto);
}
.filtro-actions #btnGeo {
  background: #277da1;
}

.lista-section {
  padding: 1rem 0 1rem;
}
.lista-section h2 {
  color: var(--vermelho);
  margin-bottom: 1rem;
}
.lista-resultados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem; /* espaço antes do mapa */
}
.card-rep {
  background: var(--branco);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem;
}
.card-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.card-head strong {
  color: var(--preto);
}
.card-body p {
  margin: 0.2rem 0;
}
.card-body .btn-ir {
  margin-top: 0.8rem;
  background: var(--vermelho);
  color: var(--branco);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.mapa-section #map {
  width: 100%;
  height: 520px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.lista-section {
  padding: 1rem 0 3rem;
}
.lista-section h2 {
  color: var(--vermelho);
  margin-bottom: 1rem;
}
.lista-resultados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.card-rep {
  background: var(--branco);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem;
}
.card-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.card-head strong {
  color: var(--preto);
}
.card-body p {
  margin: 0.2rem 0;
}
.card-body .btn-ir {
  margin-top: 0.8rem;
  background: var(--vermelho);
  color: var(--branco);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}


/* =========================================================
   RESPONSIVIDADE (mobile first)
   ========================================================= */
@media (max-width: 768px) {
  /* Header em coluna no mobile */
  header {
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
  }

  .logo img {
    max-width: 90px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    font-size: 14px;
  }

  .hero.parallax {
    height: 300px; /* menor altura no celular */
    background-attachment: scroll; /* parallax fix pode dar bug em mobile */
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .slide {
    width: 180px;
  }

  .slide img {
    max-width: 140px;
    max-height: 80px;
  }

 
  .filtro-actions {
    justify-content: center; /* centraliza os botões no mobile */
  }

}