/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY BASE */
body.without-banner {
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* HERO */
.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: 40px;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 0 20px;
}

.hero h1,
.hero p {
  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;
  margin-top: 20px;
  animation-delay: 0.6s;
}

/* HISTÓRIA CONTAINER - grid para altura igual */
.historia-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  box-sizing: border-box;
}

/* HISTÓRIA TEXTO */
.historia {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  border-left: 6px solid #f1c40f;
  padding: 30px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* HISTÓRIA IMAGENS */
.historia-img,
.historia-img2 {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.historia-img img,
.historia-img2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

/* Máscara para imagem à esquerda */
.historia-img img {
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 1) 100%);
}

/* Máscara para imagem à direita */
.historia-img2 img {
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 1) 100%);
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.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;
}

/* RESPONSIVIDADE */

/* Até 1024px - ajusta HERO */
@media (max-width: 1024px) {
  .hero {
    top: -50px !important;
  }
}

/* Até 768px - layout 1 coluna na história e ajustes em serviços e hero */
@media (max-width: 768px) {
  .historia-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .historia {
    font-size: 1rem;
    padding: 20px;
  }

  .services-section {
    padding: 60px 20px;
    background-color: #f2f2f2;
  }

  .services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .service-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 220px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .service-card i {
    font-size: 2rem;
    color: #f1c40f;
    margin-bottom: 10px;
  }

  .service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
  }

  .service-card p {
    font-size: 0.9rem;
    color: #666;
  }

  .hero {
    top: -50px !important;
  }
}

/* Até 450px - ajustes de fontes na história e hero */
@media (max-width: 450px) {
  .historia-container h2,
  .historia-container p {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 16px;
  }

  .hero p {
    font-size: 12px;
  }

  .hero {
    top: -50px !important;
  }
}

/* Até 425px - ajustes similares ao 450px, hero menor e margin menor */
@media (max-width: 425px) {
  .historia-container h2,
  .historia-container p {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 16px;
  }

  .hero p {
    font-size: 12px;
  }

  .hero {
    top: -100px !important;
    margin-bottom: 0;
  }
}

/* Até 375px - fontes menores na história */


/* Até 320px - fontes ainda menores e padding reduzido */

