/* Reset básico */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

/* Estilos do Header */
header {
  background-image: linear-gradient(rgba(47, 118, 194, 0.5), rgba(47, 118, 194, 0.1)), url('/public/assets/bg-agronegocios.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  color: rgb(255, 255, 255);
  font-weight: bold;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.width-limit {
  max-width: 1200px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

.display-flex-column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title {
  font-size: 2.5rem;
  margin: 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.cta a, .cta button {
  display: inline-block;
  background-color: #2f76c2;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.cta a:hover, .cta button:hover {
  background-color: #1f5a9c;
}

.scroll-button-a img {
  margin-top: 20px;
  transition: transform 0.3s;
}

.scroll-button-a:hover img {
  transform: translateY(5px);
}

/* Estilos da Seção */
section#first {
  padding: 50px 0;
  background-color: #f8f9fa;
}

.margin-content {
  padding: 20px 0;
}

.subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

.blue-subtitle {
  color: #2f76c2;
}

.paragraf {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
  max-width: 800px;
}

/* Estilos do Slider */
.slider-container {
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  position: relative;
}

.slider {
  position: relative;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.prev, .next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev:focus, .next:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Estilos da Seção de Contato */
.contact-section {
  padding: 50px 0;
  background-color: #fff;
}

.contact-form {
  max-width: 600px;
  width: 100%;
  margin: 20px auto;
}

.contact-form .form-label {
  font-weight: 500;
  color: #333;
}

.contact-form .form-control {
  border-radius: 5px;
  border: 1px solid #ced4da;
}

.contact-form .form-control:focus {
  border-color: #2f76c2;
  box-shadow: 0 0 5px rgba(47, 118, 194, 0.5);
}

.form-message {
  text-align: center;
  font-size: 1.1rem;
}

.form-message.success {
  color: #28a745;
}

.form-message.error {
  color: #dc3545;
}

/* Estilos do Footer */
footer {
  background-color: #2f76c2;
  color: white;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-elements {
  flex: 1;
  min-width: 250px;
  padding: 0 20px;
  margin-bottom: 20px;
}

.footer-elements img {
  max-width: 150px;
}

.footer-elements ul {
  list-style: none;
  padding: 0;
}

.footer-elements ul li {
  margin-bottom: 10px;
}

.footer-elements ul li h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-elements ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-elements ul li a:hover {
  color: #d1e3ff;
}

/* Media Queries */
@media (max-width: 768px) {
  .title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1.4rem;
  }

  .paragraf {
    font-size: 1rem;
  }

  .cta a, .cta button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .prev, .next {
    padding: 8px 12px;
    font-size: 16px;
  }

  .footer-elements {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-elements img {
    margin: 0 auto;
    display: block;
  }

  .contact-form {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .cta a, .cta button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}