/* ============================================================
   Página Home (Tela 1) — listagem pública de desafios
   ============================================================ */

/* Hero com vídeo da fachada do Senac em loop */
.hero {
  position: relative;
  min-height: 560px;
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.78), rgba(0, 74, 141, 0.55));
  z-index: 1;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.hero__title {
  font-size: 4rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  max-width: 1100px;
  line-height: 1.05;
}
.hero__title .accent {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--font-size-md);
  max-width: 720px;
  opacity: 0.95;
  margin-bottom: var(--space-5);
}

.hero__search {
  display: block;
  max-width: 920px;
  position: relative;
  margin: var(--space-8) auto 0;
}
.hero__search input {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  padding: 0 var(--space-5) 0 var(--space-8);
  font-size: var(--font-size-base);
}
.hero__search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.hero__search input:focus {
  outline: none;
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.18);
}
.hero__search svg {
  position: absolute;
  left: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--color-white);
  pointer-events: none;
  z-index: 1;
}

/* Pitch (texto motivacional sobre fundo gradiente azul → cinza claro) */
.pitch {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #4a6a8c 60%, #d9d9d9 100%);
  color: var(--color-white);
  padding: var(--space-8) var(--space-5);
  position: relative;
  overflow: hidden;
}

.pitch__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.pitch__text {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  max-width: 820px;
  text-align: left;
}
.pitch__text .accent {
  color: var(--color-accent);
}

.pitch__cta {
  font-size: 3.25rem;
  font-weight: var(--font-weight-bold);
  text-align: center;
  width: 100%;
  margin-top: var(--space-3);
  white-space: nowrap;
}
.pitch__cta .accent {
  color: var(--color-accent);
}

.pitch__woman {
  position: absolute;
  right: -40px;
  bottom: 0;
  max-width: 340px;
  opacity: 0.85;
  pointer-events: none;
}

/* Seção "Desafios disponíveis" — busca + chips */
.desafios {
  background: #d9d9d9;
  color: var(--color-white);
  padding-top: var(--space-8);
  padding-bottom: var(--space-9);
  position: relative;
  overflow: hidden;
}

.desafios__container {
  position: relative;
  z-index: 1;
}

.desafios__title {
  text-align: center;
  font-size: var(--font-size-2xl);
  color: #004a8d;
  margin-bottom: var(--space-7);
}

.desafios__search {
  position: relative;
  max-width: 920px;
  margin: 0 auto var(--space-8);
}
.desafios__search input {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  padding: 0 var(--space-5) 0 var(--space-7);
  font-size: var(--font-size-sm);
}
.desafios .chips {
  margin: var(--space-7) 0;
}

.desafios__search svg {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}
