* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a,
p,
span,
h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-style: normal;
}

body {
  margin-top: 70px;
  overflow-x: hidden;
  color: #1f2937;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  width: 100%;
  z-index: 99999;
}

main {
  width: 100%;
}

/* ===== HERO / CARROSSEL ===== */
.carrossel {
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrossel img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== SECTION 2 ===== */
#section2 {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
  padding: 40px 30px;
}

#sobre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  gap: 24px;
}

#sobre > img {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
}

#sobre-content {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

#sobre-content > img:first-child {
  width: 150px;
  max-width: 100%;
  height: auto;
}

#sobre-content span {
  line-height: 1.7;
}

#sobre-content span img {
  width: 60px;
  height: auto;
  vertical-align: middle;
}

#sobre-content p {
  font-weight: 600;
  letter-spacing: 1px;
}

#sobre-content img:last-of-type {
  width: 100px;
  max-width: 100%;
  height: auto;
}

#sobre-content button {
  width: 250px;
  max-width: 100%;
  background-color: #008871;
  height: 42px;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

#video {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

#video iframe {
  width: 100%;
  max-width: 656px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

/* ===== SECTION 4 ===== */
#section4 {
  background-color: #dedede;
  background-image: url("../img/maquinas.avif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 24px;
  gap: 50px;
  width: 100%;
  min-height: 100vh;
}

#title {
  font-size: clamp(28px, 5vw, 40px);
  text-align: center;
}

.metricas {
  display: flex;
  width: 90%;
  max-width: 1200px;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

.metricas-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-bottom: 4px solid rgb(50, 50, 50);
  border-radius: 2px;
  gap: 10px;
}

.metricas-content h1 {
  font-size: clamp(24px, 4vw, 50px);
  color: #008871;
}

.metricas-content span {
  font-size: clamp(12px, 1.5vw, 16px);
  color: #828282;
}

/* ===== MÁQUINA ===== */
#maquinas {
  width: 100%;
}

.maquina {
  padding: 50px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, #fff 40%, #dedede7d 40%);
  gap: 16px;
}

.maquina-title {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.maquina-title h2 {
  font-size: clamp(28px, 5vw, 40px);
}

.maquina-title a {
  color: #008871;
  text-decoration: none;
  font-weight: 500;
}

.maquina-content {
  width: 100%;
  font-size: 15px;
  min-height: 125px;
  line-height: 1.7;
}

.maquina-image {
  align-self: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maquina-image img {
  max-width: 100%;
  height: auto;
}

.maquinas-nav {
  align-self: center;
}

.maquinas-nav nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.maquinas-nav a {
  cursor: pointer;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}

.maquinas-nav a.active {
  color: #008871;
}

.maquina-title,
.maquina-content,
.maquina-image {
  transition: opacity 0.4s ease;
}

.fade {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.fade.hide {
  opacity: 0;
}

/* ===== CLIENTES ===== */
#section5 {
  background-color: black;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

#section5 h1 {
  color: white;
  font-size: clamp(28px, 4vw, 40px);
  padding: 50px 20px 20px;
  text-align: center;
}

#clientes {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.clientes-content {
  background-color: #3c3935;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.clientes-content img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

/* ===== SECTION DE FORM (se existir inline) ===== */
#section6 {
  width: 100%;
  display: flex;
  padding: 50px;
  gap: 75px;
}

#contato {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
}

.contato {
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 300px;
  gap: 5px;
}

.contato a {
  color: black;
}

.contato h2 {
  margin-bottom: 10px;
}

#orcamento {
  display: flex;
  flex-direction: column;
  justify-content: top;
  width: 100%;
  gap: 15px;
}

#orcamento form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

form input {
  margin-bottom: 15px;
  border: none;
  border-bottom: 1px solid #3c3935;
  height: 30px;
}

textarea {
  border: 1px solid #3c3935;
  height: 75px;
}

form button {
  height: 30px;
  background-color: #008871;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 15px;
}

/* ===== MAPA ===== */
main > iframe {
  display: block;
  width: 100%;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1200px) {
  #section2 {
    flex-direction: column;
    align-items: center;
    padding: 30px 24px;
  }

  #sobre,
  #video {
    width: 100%;
  }

  #sobre-content {
    width: 78%;
    top: 50px;
  }
}

@media (max-width: 1024px) {
  body {
    margin-top: 64px;
  }

  #section4 {
    min-height: auto;
    padding: 40px 20px;
  }

  .maquina {
    padding: 40px 30px;
  }

  .maquina-content {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  body {
    margin-top: 58px;
  }

  #section2 {
    padding: 20px 16px;
    gap: 24px;
  }

  #sobre-content {
    position: static;
    width: 100%;
    padding: 24px 10px 0;
  }

  #sobre {
    flex-direction: column;
    align-items: center;
  }

  #sobre > img {
    width: 100%;
    max-width: 100%;
  }

  #section4 {
    gap: 30px;
    padding: 32px 16px;
    background-size: cover;
  }

  .metricas {
    width: 100%;
    gap: 10px;
    background-color: #ffffff98;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;

  }

  .metricas-content {
    padding: 5px;
  }

  .metricas-content h1 {
    font-size: 22px;
  }

  .metricas-content span {
    font-size: 12px;
    color: black;
  }

  .maquina {
    padding: 30px 16px;
  }

  .maquina-title {
    gap: 12px;
  }

  .maquina-image {
    min-height: auto;
  }

  .maquinas-nav nav {
    gap: 14px;
  }

  #section5 {
    padding: 20px 16px 30px;
  }

  #section5 h1 {
    padding: 20px 0 10px;
  }
}

@media (max-width: 480px) {
  body {
    margin-top: 54px;
  }

  .carrossel {
    max-height: none;
  }

  #sobre-content {
    gap: 16px;
  }

  #sobre-content button {
    height: 40px;
    font-size: 0.95rem;
  }

  .metricas-content {
    /* min-width: 50%; */
    flex: 1 1 100%;
  }

  .maquina-content {
    font-size: 14px;
  }

  .maquinas-nav nav {
    flex-direction: column;
    align-items: center;
  }

  .clientes-content {
    max-width: 100%;
  }
}