@import url(style.css);

.historia-section {
  position: relative;
  background-color: #f2f2f2;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.historia-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
  min-height: 80vh;
  padding: 2rem 1rem;
}

/* Imagem responsiva */
.historia-img {
  width: 100%;
  height: 40vh;
  background-image: url('../assets/image/rapeedo/IMGL94382.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Container de vídeo responsivo */
.historia-video {
  position: relative;
  width: 60%;              
  padding-top: 33.75%;    
  margin: 1rem auto;       
  border-radius: 8px;
  overflow: hidden;
}

.historia-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.historia-texto {
  flex: 1;
  width: 100%;
}

.historia-texto h2 {
  color: #0077cc;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 600;
  font-family: var(--font-poppins);
}

.historia-texto p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  font-family: var(--font-montserrat);
}

.site-footer {
  background-color: #f4f4f4;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* -------- MEDIA QUERIES ---------- */

@media (max-width: 1024px) {
  .historia-container {
    padding: 2rem;
  }

  .historia-texto {
    padding: 1rem;
  }

  .historia-texto h2 {
    font-size: 1.75rem;
  }

  .historia-texto p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .historia-container {
    flex-direction: column;
    gap: 2rem;
  }

  .historia-texto {
    padding: 0 1rem;
  }

  .historia-img {
    height: auto;
    min-height: 200px;
  }

  .historia-video {
    width: 100%;
    padding-top: 56.25%; 
  }

  .historia-texto h2 {
    font-size: 1.5rem;
  }

  .historia-texto p {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .historia-img {
    height: 25vh;
  }

  .historia-texto {
    padding: 0.5rem;
  }

  .historia-texto h2 {
    font-size: 1.25rem;
  }

  .historia-texto p {
    font-size: 0.9rem;
  }
}
