/* ==========================================================================
   Hero Swiper Carousel Component Styles — Premium Version
   ========================================================================== */

#content {
  overflow-x: hidden;
}

.home #content,
.home #primary,
.home #main,
.home .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.swiper-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 650px !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  margin-top: 0 !important; /* Substituído pelas regras da .home acima */
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Imagem de Fundo com Efeito Zoom Lento (Ken Burns) ── */
.swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.01);
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-slide-active img {
  transform: scale(1.08); /* Suave zoom-in durante o slide */
}

/* ── Overlay com Gradiente Elegante ── */
.swiper-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(19,81,180,0.3) 100%);
  z-index: 2;
}

/* ── Animação de Entrada do Conteúdo ── */
body .swiper-hero .swiper-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
}

body .swiper-hero .swiper-content h2,
body .swiper-hero .swiper-content p,
body .swiper-hero .swiper-content div {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body .swiper-hero .swiper-slide-active .swiper-content h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

body .swiper-hero .swiper-slide-active .swiper-content p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

body .swiper-hero .swiper-slide-active .swiper-content div {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* ── Tipografia do Conteúdo ── */
body .swiper-hero .swiper-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body .swiper-hero .swiper-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
  line-height: 1.5;
}

/* ── Botões Premium ── */
body .swiper-hero .swiper-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  margin: 4px 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

/* Primário (Azul Institucional / Destaque) */
body .swiper-hero .swiper-content .btn-primary,
body .swiper-hero .swiper-content .btn:not([class*="btn-"]) {
  background: var(--portal-primary-hex, #1351B4);
  color: #ffffff !important;
  border-color: var(--portal-primary-hex, #1351B4);
  box-shadow: 0 6px 18px rgba(var(--portal-primary-rgb, 19, 81, 180), 0.45);
}
body .swiper-hero .swiper-content .btn-primary:hover,
body .swiper-hero .swiper-content .btn:not([class*="btn-"]):hover {
  background: #0c3d88;
  border-color: #0c3d88;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Transparente / Outline (Efeito Vidro / Glassmorphism) */
body .swiper-hero .swiper-content .btn-outline,
body .swiper-hero .swiper-content .btn-outline-light {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 2px solid rgba(255, 255, 255, 0.75) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
body .swiper-hero .swiper-content .btn-outline:hover,
body .swiper-hero .swiper-content .btn-outline-light:hover {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* Secundário (Grafite / Escuro Elegante) */
body .swiper-hero .swiper-content .btn-secondary {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.4);
}
body .swiper-hero .swiper-content .btn-secondary:hover {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Claro (Branco Sólido) */
body .swiper-hero .swiper-content .btn-light {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
body .swiper-hero .swiper-content .btn-light:hover {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: var(--portal-primary-hex, #1351B4) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Sucesso (Verde) */
body .swiper-hero .swiper-content .btn-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
body .swiper-hero .swiper-content .btn-success:hover {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.45);
}

/* Alerta / Perigo (Vermelho) */
body .swiper-hero .swiper-content .btn-danger {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
body .swiper-hero .swiper-content .btn-danger:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.45);
}

/* ── Setas Flutuantes Elegantes (Glassmorphism) ── */
.swiper-button-next,
.swiper-button-prev {
  background-color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 2px solid var(--portal-primary-hex, #1351B4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: var(--portal-primary-hex, #1351B4);
  font-size: 1.5rem;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--portal-primary-hex, #1351B4);
  transform: scale(1.1);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: #ffffff;
}
.swiper-button-prev { left: 20px; }
.swiper-button-next { right: 20px; }

/* ── Paginação Dinâmica (Dots tipo Pílula) ── */
.swiper-pagination {
  bottom: 25px;
}

.swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.5;
  width: 10px;
  height: 10px;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 6px;
}

.swiper-pagination-bullet-hover {
  opacity: 0.8;
}

.swiper-pagination-bullet-active {
  background: #ffffff;
  opacity: 1;
  width: 32px; /* Expande para virar pílula */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ── Responsivo ── */
@media (max-width: 768px) {
  .swiper-hero {
    height: 480px;
  }
  body .swiper-hero .swiper-content h2 {
    font-size: 2.2rem;
  }
  body .swiper-hero .swiper-content p {
    font-size: 1.1rem;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important; /* Remove setas no mobile, mantém drag */
  }
}
