/* =============================================== */
/* SLIDER / BANNER PRINCIPAL */
/* =============================================== */

/* Slider com fundo escuro tecnológico */
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 630px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d0d 0%, #000000 100%);
  margin-top: 80px; /* Compensa o header fixo */
}

.slider::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Grade animada */
.slider::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 140, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 140, 0, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 100px 100px, 100px 100px;
  }
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 2;
  padding: 0 10%;
  box-sizing: border-box;
}

.slide.active {
  opacity: 1;
}

.content {
  color: #fff;
  text-align: left;
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.content h1 {
  font-size: 3.5rem;
  margin: 0;
  line-height: 1.2;
}

.content p {
  font-size: 1.7rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.image {
  flex: 0 0 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}

.image img {
  width: 450px;
  height: auto;
  transition: transform 1s ease, opacity 0.8s ease;
  transform-origin: center;
  opacity: 1;
}

/* Navegação */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(240, 125, 0, 0.8);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  background: rgba(240, 125, 0, 1);
}

/* RESPONSIVO SLIDER */
@media (max-width: 768px) {
  .slider {
    height: 500px;
    margin-top: 70px;
  }
  
  .slide {
    flex-direction: column-reverse;
    text-align: center;
    padding: 0 5%;
  }

  .content {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
    margin-top: 20px;
  }

  .content h1 {
    font-size: 2.2rem;
  }

  .content p {
    font-size: 1.2rem;
  }

  .image {
    flex: 0 0 auto;
    margin-top: 20px;
  }

  .image img {
    width: 80%;
    max-width: 300px;
  }
  
  .prev, .next {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
  
  .prev { left: 10px; }
  .next { right: 10px; }
}

@media (max-width: 480px) {
  .slider {
    height: 450px;
  }
  
  .content h1 {
    font-size: 1.8rem;
  }

  .content p {
    font-size: 1rem;
  }
  
  .image img {
    width: 90%;
    max-width: 250px;
  }
}
