/* Reset e Estilos Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: linear-gradient(to bottom, #006400, #256109, #006400);
  color: white;
}

/* Navbar */
nav {
  position: fixed;
  z-index: 99;
  width: 100%;
  background: linear-gradient(to top, #006400, #fcff3a);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tamanho da logo*/
.logo img {
  height: auto;
  width: 250px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
  position: relative;
}

.nav-links li a {
  color: rgb(219, 255, 12);
  text-decoration: none;
  font-size: 18px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

 .nav-links li a:hover{
    background: linear-gradient(yellow, rgb(2, 44, 27));
  }

/* Mega Menu */
.mega-box {
  position: absolute;
  left: 0;
  width: 100%; /* Ocupa 100% da largura */
  min-width: 700px; /* Largura mínima para o submenu */
  background: linear-gradient(to right, #035003, #035003, #035003);
  padding: 20px;
  position: fixed;
  top:80px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px; /* Bordas arredondadas */
}

.nav-links li:hover .mega-box {
  opacity: 1;
  visibility: visible;
}

.mega-box .content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px; /* Espaçamento interno */
}

.mega-box .row {
  width: 23%;
  padding: 10px; /* Espaçamento interno para cada linha */
}

.mega-box .row header {
  color: yellow;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.mega-box .row .mega-links {
  border-left: 2px solid yellow;
  padding-left: 10px;
}

.mega-box .row .mega-links li {
  margin: 10px 0;
}

.mega-box .row .mega-links li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.mega-box .row .mega-links li a:hover {
  color: yellow;
}

.mega-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* Slider */
.back {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding-top: 80px;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.fachada-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
}

.slider:hover .fachada-overlay {
  display: flex;
}

.fachada-overlay img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

/* Footer */
footer {
  background: linear-gradient(to right, #006400, #256109, #006400);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 970px) {
  .wrapper .btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 100%;
    max-width: 350px;
    background: linear-gradient(to right, #006400, #256109, #006400);
    flex-direction: column;
    padding: 50px 10px;
    transition: left 0.3s ease;
  }

  #menu-btn:checked ~ .nav-links {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-links li a {
    font-size: 20px;
  }

  .mega-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 1;
    visibility: visible;
    padding: 20px;
    background: linear-gradient(to right, #006400, #256109, #006400);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  #showMega:checked ~ .mega-box {
    transform: translateX(0);
  }

  .mega-box .content {
    flex-direction: column;
    padding: 20px;
  }

  .mega-box .row {
    width: 100%;
    margin-bottom: 20px;
  }

  .close-mega {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }
}

/* Esconder botões de menu e close em desktop */
@media (min-width: 971px) {
  .btn.menu-btn,
  .btn.close-btn {
    display: none;
  }
}

/* Rodapé */
footer {
    background-color: #333; /* Cor de fundo escura */
    color: #fff; /* Texto branco */
    text-align: center; /* Centraliza o texto */
    padding: 20px; /* Adiciona um espaçamento interno */
    font-family: Arial, sans-serif; /* Define a fonte */
    font-size: 14px; /* Tamanho da fonte */
}

footer p {
    margin: 5px 0; /* Espaço entre os parágrafos */
}


a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease; /* Transição suave de 0.3 segundos */
}

a:hover {
    color: orange;
}