/* ════════════════════════════════════════════════════════
   HECT HERO BANNER V2 — Front-end CSS
   Animações de título/subtítulo/botão são controladas
   por JS — o CSS apenas define os estados base.
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── Wrapper ──────────────────────────────────────── */
.hect-hero-outer {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}
#top .hect-hero-outer,
#wrap_all .hect-hero-outer {
  margin-top: 0 !important;
}

/* ── Seção principal ──────────────────────────────── */
/* Fundo monocromático estático — sem elementos animados */
.hect-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 440px;
  overflow: hidden;
  color: #edf2f7;
  font-family: 'DM Sans', sans-serif;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(54,169,225,.28), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(54,169,225,.14), transparent 65%),
    #0E2841;
}

/* ── Slides container ─────────────────────────────── */
.hect-hero .hh-slides {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* ── Slide ────────────────────────────────────────── */
.hect-hero .hh-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 8vw;
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform 900ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity   450ms ease;
  pointer-events: none;
}
.hect-hero .hh-slide.is-active {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: all;
}
.hect-hero .hh-slide.is-past {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ── Imagem do slide — PNG transparente, ocupa o banner inteiro ── */
.hect-hero .hh-slide-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hect-hero .hh-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}

/* ── Conteúdo ─────────────────────────────────────── */
.hect-hero .hh-content {
  position: relative;
  z-index: 11;
  max-width: min(660px, 88vw);
  margin-left: 30px;
}

/* ── Título ───────────────────────────────────────── */
.hect-hero .hh-title {
  font-family: 'config', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: #edf2f7;
  text-shadow: none;
  margin-bottom: 20px;
  opacity: 0; /* estado inicial — JS anima */
}

/* Linhas do título (usadas pelo reveal) */
.hect-hero .hh-title .hh-line {
  display: block;
  overflow: hidden; /* impede que linhas "apareçam" antes da animação */
}

/* ── Subtítulo ────────────────────────────────────── */
.hect-hero .hh-subtitle {
  font-size: clamp(0.82rem, 1.25vw, 0.93rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(237, 242, 247, 0.65);
  max-width: 430px;
  margin-bottom: 32px;
  text-shadow: none;
  opacity: 0; /* estado inicial — JS anima */
}

/* ── Botão ────────────────────────────────────────── */
.hect-hero .hh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.65rem, 1vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #36A9E1;
  text-decoration: none;
  border-bottom: 1px solid rgba(54, 169, 225, 0.35);
  padding-bottom: 3px;
  opacity: 0; /* estado inicial — JS anima */
  transition: color 0.3s ease, border-color 0.3s ease;
}
.hect-hero .hh-btn:hover {
  color: #edf2f7;
  border-color: rgba(237, 242, 247, 0.4);
}
.hect-hero .hh-arr {
  display: inline-block;
  transition: transform 0.3s;
}
.hect-hero .hh-btn:hover .hh-arr {
  transform: translateX(5px);
}

/* ── Setas de navegação laterais ──────────────────── */
.hect-hero .hh-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(1, 14, 32, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease;
}
.hect-hero .hh-arrow:hover {
  border-color: #36A9E1;
  background: rgba(54, 169, 225, 0.15);
}
.hect-hero .hh-arrow:active {
  transform: translateY(-50%) scale(0.92);
}
.hect-hero .hh-arrow-prev { left: clamp(14px, 3vw, 40px); }
.hect-hero .hh-arrow-next { right: clamp(14px, 3vw, 40px); }

.hect-hero .hh-chevron {
  width: 10px;
  height: 10px;
  border-top: 2px solid #edf2f7;
  border-right: 2px solid #edf2f7;
}
.hect-hero .hh-chevron-left  { transform: rotate(-135deg); margin-left: 3px; }
.hect-hero .hh-chevron-right { transform: rotate(45deg);   margin-right: 3px; }

/* ── Setas: reposiciona para a base no mobile ─────── */
@media (max-width: 768px) {
  .hect-hero .hh-arrow {
    top: auto;
    bottom: 24px;
    transform: none;
    width: 40px;
    height: 40px;
  }
  .hect-hero .hh-arrow:active { transform: scale(0.92); }
  .hect-hero .hh-arrow-prev { left: 20px; }
  .hect-hero .hh-arrow-next { right: 20px; }
}

/* ── Texto no mobile ──────────────────────────────────
   padding 8vw + margin 30px + max-width 88vw passava de 100% da tela
   e cortava o título/subtítulo à direita. */
@media (max-width: 768px) {
  .hect-hero .hh-slide {
    padding: 0 20px 72px; /* espaço embaixo para as setas */
  }
  .hect-hero .hh-content {
    margin-left: 0;
    max-width: 100%;
  }
  /* #hectHero: mais específico que o "CSS personalizado" do painel (font-size: 3.5em !important),
     que continua valendo no desktop */
  #hectHero.hect-hero .hh-title {
    font-size: clamp(26px, 7.6vw, 46px) !important;
    overflow-wrap: break-word;
  }
  #hectHero.hect-hero .hh-subtitle {
    font-size: 16px !important;
    max-width: 100%;
  }
}
