/* espaco.css - Seção Nosso Espaço com Carrossel */

.espaco {
  padding: 80px 0;
  background: #0a0a0a;
  position: relative;
}

/* ===== BORDA DIVISÓRIA ENTRE SEÇÕES ===== */
.section-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ff000d 20%, #ff000d 80%, transparent 100%);
  opacity: 0.3;
}

/* Container */
.espaco .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 50px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #e50914;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* FORÇAR CENTRALIZAÇÃO */
.espaco .section-title {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

.espaco .section-title::after {
  margin: 15px auto 0 !important;
}

/* ===== CARROSSEL ===== */
.espaco-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.espaco-carousel {
  flex: 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); */
  aspect-ratio: 16 / 9;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.carousel-item.active {
  opacity: 1;
  visibility: visible;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legenda da imagem */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.carousel-item.active .carousel-caption {
  transform: translateY(0);
}

.carousel-caption span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-left: 15px;
}

.carousel-caption span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background: #e50914;
  border-radius: 3px;
}

/* Setas do carrossel */
.carousel-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #111111;
  border: 2px solid #e50914;
  color: #e50914;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-arrow i {
  color: #ffffff;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: #e50914;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

.carousel-arrow:hover i {
  color: #ffffff;
}

.carousel-arrow-left:hover i {
  transform: translateX(-3px);
}

.carousel-arrow-right:hover i {
  transform: translateX(3px);
}

/* ===== ESTATÍSTICAS COM BORDAS PERMANENTES ===== */
.espaco-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 75px;
}

.stat-item {
  background: #111111;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(229, 9, 20, 0.1);
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
}

/* Efeito de brilho no fundo */
.stat-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(229, 9, 20, 0.03) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.stat-item:hover::before {
  opacity: 1;
}

/* Cantos decorativos */
.stat-item::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-top: 2px solid rgba(229, 9, 20, 0.2);
  border-right: 2px solid rgba(229, 9, 20, 0.2);
  border-radius: 0 8px 0 0;
  transition: all 0.3s ease;
}

.stat-item:hover::after {
  border-color: #e50914;
  width: 25px;
  height: 25px;
}

/* Bordas decorativas vermelhas */
.stat-border {
  position: absolute;
  background: #e50914;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-border-top {
  top: 0;
  left: 50%;
  width: 80%;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
      transparent 0%,
      #e50914 20%,
      #e50914 80%,
      transparent 100%);
  opacity: 0.6;
}

.stat-border-left {
  left: 0;
  top: 50%;
  width: 3px;
  height: 80%;
  transform: translateY(-50%);
  background: linear-gradient(180deg,
      transparent 0%,
      #e50914 20%,
      #e50914 80%,
      transparent 100%);
  opacity: 0.6;
}

.stat-item:hover .stat-border-top {
  width: 90%;
  opacity: 1;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.stat-item:hover .stat-border-left {
  height: 90%;
  opacity: 1;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  font-weight: 500;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablet */
@media (max-width: 992px) {
  .espaco-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* Mobile - REMOVER SETAS */
@media (max-width: 768px) {
  .espaco {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .espaco-carousel-container {
    gap: 0;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-caption {
    padding: 30px 20px 20px;
  }

  .carousel-caption span {
    font-size: 1rem;
  }

  .espaco-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-item {
    padding: 20px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-border-top {
    width: 70%;
    opacity: 0.5;
  }

  .stat-border-left {
    height: 70%;
    opacity: 0.5;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .espaco {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .espaco-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 20px;
  }

  .stat-border-top {
    width: 60%;
  }

  .stat-border-left {
    height: 60%;
  }
}

