
/* ── Animações de entrada das imagens ── */
img[data-slot] { opacity: 0; }

@keyframes siao-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes siao-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes siao-zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes siao-slideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Scroll Reveal ─────────────────────────────────── */
.sr-hidden {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.sr-hidden[data-reveal="fadeUp"]    { transform: translateY(40px); }
.sr-hidden[data-reveal="fadeLeft"]  { transform: translateX(-48px); }
.sr-hidden[data-reveal="fadeRight"] { transform: translateX(48px); }
.sr-hidden[data-reveal="zoomIn"]    { transform: scale(0.87); }
.sr-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
@media (prefers-reduced-motion: reduce) {
  .sr-hidden { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* ===========================================
   IGREJA SIÃO - SANTA CRUZ DO SUL
   Fonte: Montserrat
   Gradient: #003EA8 -> #000F60 -> #0A1C3000
=========================================== */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --azul-primary: #003EA8;
  --azul-secondary: #000F60;
  --azul-end: #0A1C30;
  --gradient-main: linear-gradient(135deg, #003EA8 0%, #000F60 60%, rgba(10, 28, 48, 0) 100%);
  --gradient-vertical: linear-gradient(180deg, #003EA8 0%, #000F60 100%);
  --black: #000000;
  --black-soft: #050505;
  --white: #ffffff;
  --gray-text: #cfcfd3;
  --footer-bg: #ffffff;
  --footer-text: #003EA8;
  --container: 1280px;
  --pad: clamp(20px, 5vw, 80px);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: 125px;             /* altura fixa — logo não vai expandir */
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 78px;
  transition: background 0.3s;
}
.header.scrolled { background: #000; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  height: 100%;             /* ocupa a altura do header */
}
.logo-img-slot {
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
}
.logo-img-slot img {
  height: 150px !important; /* ajuste aqui livremente — não expande o header */
  width: auto;
  object-fit: contain;
}
.logo svg { width: 40px; height: 40px; }
.logo-text { display: none; }

.nav-menu {
  display: flex;
  gap: 38px;
  list-style: none;
}
.nav-menu a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.2s;
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--white);
}
.nav-menu a:hover { opacity: 0.7; }

/* ==================== DESTAQUE REVEAL — banner ==================== */
.section-destaque {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
  line-height: 0;
}
/* Imagem principal flui natural — seção se adapta à altura da foto */
.destaque-base {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
/* Imagem hover cobre a mesma área com o efeito reveal */
.destaque-hover {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  max-width: none;
  opacity: 0;
  /* renderizado via canvas em main.js */
  filter: none;
}
.section-destaque.loaded .destaque-base  { opacity: 1; }
/* .destaque-hover fica sempre hidden — canvas desenha o efeito sobre a base */

/* Limita altura máxima para não ficar gigante em fotos muito altas */
@media (min-width: 701px) {
  .section-destaque { max-height: 480px; }
  .destaque-base    { max-height: 480px; object-fit: cover; }
}
@media (max-width: 700px) {
  .section-destaque { display: none; }
}

/* ==================== HERO VÍDEO ==================== */
.section-video-fullscreen {
  width: 100%;
  height: calc(100vh - 125px);
  margin-top: 125px;
  min-height: 500px;
  background: #000;
  position: relative;
  overflow: hidden;
}
.section-video-fullscreen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-placeholder-fullscreen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #001233 0%, #000814 100%);
  color: var(--white);
}
.video-placeholder-fullscreen .video-play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
@media (max-width: 700px) {
  .section-video-fullscreen { height: calc(60vh - 125px); min-height: 360px; }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ==================== VÍDEO INSTITUCIONAL ==================== */
.section-video {
  background: var(--black);
  padding: 140px var(--pad) 100px;
  text-align: center;
}
.section-video h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 60px;
}
.video-frame {
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
}
.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(135deg, #001233 0%, #000814 100%);
  color: var(--white);
}
.video-play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform 0.2s, background 0.2s;
}
.video-frame:hover .video-play-btn {
  background: var(--azul-primary);
  border-color: var(--azul-primary);
  transform: scale(1.05);
}
.video-placeholder span {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

/* ==================== FAÇA PARTE ==================== */

/* ==================== FAÇA PARTE ==================== */
.section-faca-parte {
  background: var(--black);
  padding: 80px var(--pad) 100px;
}
.faca-parte-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
}

/* 3 fotos no molde */
.faca-parte-fotos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.foto-card {
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  width: 220px;
  background: linear-gradient(160deg, #0d2e80 0%, #000d2e 100%);
  position: relative;
  align-self: center;
  min-height: 280px;
}
.foto-card-center {
  width: 260px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  z-index: 2;
  transform: scale(1.04);
}
.foto-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

.faca-parte-content h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 36px;
  white-space: pre-line;
}
.btn {
  display: block;
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding: 16px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
  margin-bottom: 14px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #2d74d6 0%, #003EA8 55%, #001040 100%); color: var(--white); }
.btn-primary:hover { background: linear-gradient(135deg, #3d84e6 0%, #0048c8 55%, #001a5a 100%); }
.btn-white { background: var(--white); color: var(--azul-primary); }
.btn-white:hover { background: #f0f0f0; }

/* ==================== UMA FAMÍLIA ==================== */
/* Fundo azul institucional fixo — sem slot no admin */
.section-familia {
  /* Imagem cobre todo o fundo — overlay leve só para legibilidade do texto */
  background:
    linear-gradient(90deg, rgba(0,10,40,0.35) 0%, rgba(0,5,20,0.15) 60%, rgba(0,5,20,0.05) 100%),
    url('../images/familia-bg.png') center/cover no-repeat;
  padding: 100px var(--pad);
  position: relative;
  overflow: hidden;
}
.familia-wrap {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.familia-content {
  max-width: 660px;
}
.familia-content h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  line-height: 1.1;
}
.familia-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  max-width: 600px;
  white-space: pre-line;
}
.btn-saiba-mais {
  display: inline-block;
  width: auto;
  min-width: 200px;
  padding: 14px 36px;
}

/* ==================== PROGRAMAÇÃO ==================== */
.section-programacao {
  background: #000000;
  padding: 100px var(--pad) 80px;
}
.programacao-wrap {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.programacao-wrap h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 60px;
}
.programacao-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 50px;
}
.prog-card {
  position: relative;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
  cursor: pointer;
  transition: transform 0.2s;
}
.prog-card:hover { transform: translateY(-4px); }
.prog-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.prog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
}
.prog-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  z-index: 3;
  text-align: left;
}
.prog-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.prog-card-info {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-line;
}
.prog-card-info em {
  font-style: italic;
  font-weight: 400;
  font-size: 0.92rem;
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.85);
}

/* ==================== VISITE-NOS ==================== */
.section-visite {
  background: url('../images/gradiente-siao.jpeg') center/cover no-repeat;
  padding: 100px var(--pad);
  position: relative;
  border-top: 2px solid rgba(255,255,255,0.06);
}
.visite-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.visite-content h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.visite-content p {
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin-bottom: 40px;
  max-width: 540px;
}
.visite-endereco {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.visite-endereco:hover { opacity: 0.85; }
.visite-pin {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.visite-pin svg { width: 22px; height: 22px; }
.visite-cidade {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.visite-rua {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* Foto inteira centralizada */
.visite-img {
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visite-img img {
  width: 70%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: contain;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--white);
  padding: 50px var(--pad) 30px;
  color: var(--azul-primary);
}
.footer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 50px;
  align-items: flex-start;
}
.footer-logo svg { width: 80px; height: 80px; }
.footer-logo-text { display: none; } /* texto removido — só logo */
.footer-menu h4,
.footer-contato h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.footer-menu ul { list-style: none; }
.footer-menu a {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}
.footer-menu a:hover { opacity: 0.7; }
.footer-social { display: flex; gap: 14px; margin-top: 8px; }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
.social-icon:hover { transform: scale(1.1); }
.social-icon.whatsapp { background: #25d366; }
.social-icon.facebook { background: #1877f2; }
.social-icon.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-icon.youtube { background: #ff0000; }
.social-icon svg { width: 18px; height: 18px; }

/* ==================== RESPONSIVE ==================== */

/* ── Notebook (≤1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  .header { gap: 40px; }
  .nav-menu { gap: 22px; }
  .nav-menu a { font-size: 0.8rem; }
  .visite-wrap { gap: 36px; }
  .footer-wrap { gap: 32px; }
  .section-video { padding: 110px var(--pad) 80px; }
}

@media (max-width: 980px) {
  /* Header: logo centralizado, hamburger absoluto à esquerda */
  .header { justify-content: center; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .hamburger {
    display: flex;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 102;
  }
  /* Hamburger → X quando menu aberto */
  .hamburger span { transition: transform 0.3s, opacity 0.3s; }
  .hamburger.open { z-index: 113; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

  /* Sidebar esquerda */
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: -100%;
    width: min(280px, 85vw);
    height: 100vh;
    background: rgba(0,0,0,0.97);
    padding: 100px 28px 40px;
    gap: 0;
    transition: left 0.3s ease;
    z-index: 110;
    overflow-y: auto;
  }
  .nav-menu.open { left: 0; }
  .nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a { font-size: 1rem; padding: 14px 0; display: block; }
  .nav-menu a.active::after { display: none; }
  .nav-menu a.active { opacity: 1; color: #7ab3ff; }

  /* Overlay que fecha o menu ao tocar fora */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 109;
  }
  .nav-overlay.active { display: block; }

  .faca-parte-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faca-parte-fotos .foto-unica {
    max-width: 460px;
  }
  .faca-parte-content {
    text-align: center;
  }
  .faca-parte-content h2 { margin-bottom: 24px; }
  .btn { margin-left: auto; margin-right: auto; }
  .btn-saiba-mais { margin-left: 0; margin-right: 0; }

  .programacao-cards {
    grid-template-columns: 1fr;
  }
  .prog-card { height: 220px; }

  .visite-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .visite-img { height: 280px; }

  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .section-video { padding: 110px 20px 60px; }
  .section-faca-parte,
  .section-familia,
  .section-programacao,
  .section-visite { padding: 60px 20px; }
  .faca-parte-fotos .foto-unica {
    max-width: 340px;
  }
  .programacao-wrap h2 { margin-bottom: 36px; }
  .prog-card-content { padding: 20px; }
  .prog-card-title, .prog-card-info { font-size: 0.92rem; }

  .familia-cross svg { width: 380px; height: 380px; }
}

/* ──────────────────────────────────────────────────────────
   MOBILE ENHANCEMENTS — responsividade aprimorada
────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  /* Header compacto */
  .header { height: 70px; gap: 12px; padding: 0 16px; }
  .logo-img-slot img { height: 85px !important; }

  /* Vídeo hero — ajusta ao header menor */
  .section-video-fullscreen {
    margin-top: 70px;
    height: calc(55vh - 70px);
    min-height: 280px;
  }

  /* Seções com padding excessivo */
  .section-video { padding: 90px 16px 60px; }

  /* Remove borda dos vídeos no mobile */
  .video-frame { border: none; border-radius: 0; }

  /* Foto cards — largura proporcional ao viewport */
  .faca-parte-fotos { gap: 8px; }
  .foto-card {
    width: clamp(85px, 27vw, 170px);
    min-height: clamp(115px, 34vw, 220px);
    border-radius: 12px;
    flex-shrink: 1;
    background: transparent; /* remove borda azul no mobile */
  }
  .foto-card-center {
    width: clamp(100px, 33vw, 200px);
    transform: none;
    box-shadow: none;
  }

  /* Visite */
  .visite-img { height: auto; }
  .visite-img img { width: 65%; max-width: 280px; margin: 0 auto; }
  .visite-cidade { font-size: 1.1rem; }

  /* Footer */
  .footer { padding: 40px 16px 24px; }
  .footer-wrap { gap: 24px; }

  /* Centraliza todos os títulos e textos */
  section h1, section h2, section h3, section h4, section p { text-align: center; }
  .prog-card-content { text-align: center; }
  .familia-content { text-align: center; }
  .visite-content p, .familia-content p { max-width: 100%; }
  .visite-endereco { justify-content: center; }

  /* Botões — todos centralizados (incluindo inline-block) */
  .btn, .btn-saiba-mais { display: block; margin-left: auto; margin-right: auto; }

  /* Footer centralizado */
  .footer-wrap { text-align: center; }
  .footer-logo { display: flex; justify-content: center; }
  .footer-logo-img-slot { justify-content: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 380px) {
  .faca-parte-fotos { gap: 6px; }
  .foto-card        { width: clamp(75px, 26vw, 120px); min-height: clamp(100px, 30vw, 160px); }
  .foto-card-center { width: clamp(88px, 32vw, 140px); }
}
