/* ================================================
   03-hero.css
   Seção inicial com vídeo de fundo
   ================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Fundo fallback (quando não há vídeo) --- */
.hero-bg-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(178,34,34,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 75%, rgba(85,107,47,0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C5A46D' fill-opacity='0.035'%3E%3Ccircle cx='40' cy='40' r='1.5'/%3E%3Ccircle cx='0' cy='0' r='1.5'/%3E%3Ccircle cx='80' cy='0' r='1.5'/%3E%3Ccircle cx='0' cy='80' r='1.5'/%3E%3Ccircle cx='80' cy='80' r='1.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(145deg, #120604 0%, #2a1208 45%, #3E2723 100%);
}

/* --- Wrapper do vídeo de fundo --- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Para vídeo local em fullscreen */
.hero-video-wrap video,
.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border: none;
}

/* --- Overlay de escurecimento --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(18,6,4,0.50) 0%,
    rgba(18,6,4,0.38) 50%,
    rgba(18,6,4,0.72) 100%
  );
}

/* --- Padrão decorativo italiano (azulejo) --- */
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect width='80' height='80' fill='none'/%3E%3Ccircle cx='40' cy='40' r='34' stroke='%23C5A46D' stroke-width='0.8' fill='none'/%3E%3Ccircle cx='40' cy='40' r='18' stroke='%23C5A46D' stroke-width='0.4' fill='none'/%3E%3Cline x1='6' y1='40' x2='74' y2='40' stroke='%23C5A46D' stroke-width='0.4'/%3E%3Cline x1='40' y1='6' x2='40' y2='74' stroke='%23C5A46D' stroke-width='0.4'/%3E%3C/svg%3E");
}

/* --- Conteúdo central --- */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 840px;
  animation: heroFadeUp 1.3s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 1.2rem;
  font-weight: 400;
  font-family: var(--font-corpo);
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-titulo);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  color: var(--creme);
  line-height: 1.12;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.hero-title em {
  font-style: italic;
  color: var(--dourado);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(245,230,204,0.7);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 2.8rem;
  line-height: 1.7;
}

/* --- Botões CTA do hero --- */
.hero-cta-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vermelho);
  color: var(--creme);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--vermelho);
  transition: background var(--transition-base), color var(--transition-base);
}

.btn-primary:hover {
  background: transparent;
  color: var(--creme);
  border-color: var(--creme);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(245,230,204,0.85);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(245,230,204,0.35);
  transition: border-color var(--transition-base), color var(--transition-base);
}

.btn-outline:hover {
  border-color: var(--dourado);
  color: var(--dourado);
}

/* --- Indicador de scroll --- */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: heroBounce 2.2s ease-in-out infinite;
}

.hero-scroll span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(245,230,204,0.45);
  text-transform: uppercase;
}

.hero-scroll i {
  color: var(--dourado);
  font-size: 1.1rem;
  opacity: 0.7;
}

@keyframes heroBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ================================================
   RESPONSIVIDADE — Hero
   ================================================ */
@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .hero-cta-wrap { flex-direction: column; align-items: center; }
  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}