* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

body > *:first-child,
.principal,
.titulo,
.historia,
.equipamentos {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.equipamentos {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.equipamentos-texto h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #f1c40f;
}

.equipamentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: stretch;
}

.hero {
  top: 50px;
  position: relative;
  color: #f9f9f9;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.hero img {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.hero h1,
.hero p {
  top: 30px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.hero h1 {
  font-size: 2.5em;
  animation-delay: 0.3s;
}

.hero p {
  font-size: 1.2em;
  padding-top: 2rem;
  animation-delay: 0.6s;
}

.historia {
  padding: 40px 20px;
  max-width: 900px;
  margin: 90px auto !important;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.7;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  border-left: 6px solid #f1c40f;
}

.historia p {
  margin-top: 10px;
  padding: 10px;
  padding-top: 1rem;
}

.equipamento {
  background-color: #fff;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  max-width: 300px;
  margin: 0 auto;
}

.equipamento:hover {
  transform: translateY(-5px);
}

.equipamento img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.equipamento h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.equipamento p {
  font-size: 0.95rem;
  color: #555;
  flex-grow: 1;
}

.principal .titulo {
  margin-top: 3rem;
}

.principal .titulo h1 {
  margin-top: 3rem;
}

#ultimo {
  grid-column: 2 / 3;
  justify-self: center;
  max-width: 300px;
}

.fale-conosco-btn {
  margin-top: 20px;
  max-width: 500px;
  justify-self: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.3s;
}

.fade-in-delay-2 {
  animation-delay: 0.6s;
}

.fade-in-delay-3 {
  animation-delay: 0.9s;
}

@media (max-width: 1024px) {
  .equipamentos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero {
    top: -100px !important;
  }
}

@media (max-width: 768px) {
  .equipamentos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero {
    top: -100px !important;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  .historia {
    padding: 30px 15px;
    font-size: 1rem;
    margin: 60px auto !important;
  }

  .equipamento {
    padding: 12px;
    min-height: 160px;
    max-width: none;
  }

  .equipamento img {
    width: 70px;
    height: 70px;
  }

  .equipamento h3 {
    font-size: 1.1rem;
  }

  .equipamento p {
    font-size: 0.85rem;
  }

  #ultimo {
    grid-column: auto;
    justify-self: auto;
  }

  .fale-conosco-btn {
    width: 80%;
  }
}

@media (max-width: 425px) {
  .equipamentos-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    top: -100px !important;
  }

  .hero h1 {
    font-size: 2.5em;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1.3em;
    margin-top: 25px;
  }

  .equipamentos-texto h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .historia {
    padding: 35px 25px;
    font-size: 1.2rem;
    margin: 50px auto !important;
  }

  .equipamento {
    padding: 30px;
    min-height: 250px;
    max-width: 320px;
    margin: 0 auto;
  }

  .equipamento img {
    width: 110px;
    height: 110px;
    margin-bottom: 25px;
  }

  .equipamento h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .equipamento p {
    font-size: 1.2rem;
  }

  .fale-conosco-btn {
    font-size: 1.3rem;
    padding: 18px 35px;
    width: 90%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  #ultimo {
    grid-column: auto;
    justify-self: auto;
  }
}

@media (max-width: 375px) {
  .hero {
    top: -100px !important;
  }

  .hero h1 {
    font-size: 2.1em;
  }

  .hero p {
    font-size: 1.1em;
  }

  .equipamentos-texto h2 {
    font-size: 2rem;
  }

  .historia {
    font-size: 1.1rem;
    padding: 25px 15px;
  }

  .equipamento {
    padding: 20px;
    min-height: 200px;
    max-width: 280px;
  }

  .equipamento img {
    width: 90px;
    height: 90px;
  }

  .equipamento h3 {
    font-size: 1.3rem;
  }

  .equipamento p {
    font-size: 1rem;
  }

  .fale-conosco-btn {
    font-size: 1.1rem;
    padding: 12px 25px;
    width: 95%;
  }
}

@media (max-width: 320px) {
  .hero {
    top: -100px !important;
  }
}
