@import url('https://fonts.googleapis.com/css2?family=Anton&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --teal: #17c2ad;
  --teal-dark: #0d8f80;
  --black: #0a0a0a;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--black);
  color: var(--white);
}

img { max-width: 100%; display: block; }

a { text-decoration: none; }

/* Fundo do vídeo: fixo (tipo Elementor "background attachment: fixed"),
   sempre atrás de tudo, sem cortar o vídeo — a altura é sempre calculada
   automaticamente a partir da largura, respeitando a proporção real do vídeo. */
.hero-fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #0a0a0a;
  display: flex;
  align-items: flex-start; /* vídeo colado no topo; se sobrar altura, fica só embaixo, "neutralizada" pelo fundo preto */
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  display: block;
  width: 100%;   /* Mobile: vídeo completo, na largura total da tela */
  height: auto;  /* altura sempre calculada a partir da largura (sem cortes) */
  pointer-events: none;
}

/* Desktop/tablet: vídeo maior e mais largo, ainda sem cortar —
   a altura continua sendo calculada automaticamente pela proporção do vídeo */
@media (min-width: 769px) {
  .hero-video {
    width: clamp(380px, 82vw, 1440px);
    height: auto;
  }
}

.hero-fixed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 100%);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
  min-height: 100svh;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 160px;
  margin: 0 auto 24px;
}

.btn-topo {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  letter-spacing: .5px;
  padding: 12px 28px;
  border-radius: 4px;
  margin-top: 30px;
  transition: transform .15s ease, background .15s ease;
}

.btn-topo:hover {
  transform: translateY(-2px);
  background: var(--teal);
  color: var(--white);
}

/* Título menor, acima do título de destaque (ex: "Bem-vindo(a) ao") */
.hero-title-small {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.3;
}

/* Título grande de destaque (ex: "Mundo Imersivo") */
.hero-title-big {
  font-family: 'Anton', 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 2px;
  margin: 0 0 14px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 18px;
  line-height: 1.35;
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .85rem;
  color: #d8d8d8;
  margin: 0;
}

.eventos {
  padding: 150px 20px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.evento-card {
  display: block;
  max-width: 320px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  transition: transform .18s ease;
}

.evento-card:hover {
  transform: scale(1.03);
}

.evento-card img {
  width: 100%;
}

footer {
  background: var(--teal);
  text-align: center;
  padding: 40px 20px 26px;
}

.footer-logo {
  max-width: 140px;
  margin: 0 auto 18px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: background .15s ease;
}

.footer-socials a:hover {
  background: var(--teal-dark);
}

.footer-copy {
  color: var(--black);
  font-weight: 500;
  font-size: .9rem;
  margin: 0 0 4px;
}

.footer-credit {
  color: rgba(0,0,0,.65);
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.footer-credit a {
  color: inherit;
}

/* ---------- Painel admin ---------- */
.admin-body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #f4f5f7;
  color: #222;
  margin: 0;
}

.admin-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: 1.4rem;
  margin: 0;
}

.admin-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.admin-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 6px;
  color: #444;
}

.field input[type=text],
.field input[type=url],
.field input[type=password],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
}

.field small {
  display: block;
  color: #888;
  margin-top: 4px;
  font-size: .78rem;
}

.current-img {
  max-width: 140px;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid #eee;
}

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: .95rem;
}

.btn:hover { background: var(--teal-dark); }

.btn-secondary {
  background: #e2e4e8;
  color: #333;
}

.btn-secondary:hover { background: #d0d3d9; }

.btn-danger {
  background: #e34d4d;
}
.btn-danger:hover { background: #c53a3a; }

.evento-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
}

.evento-status {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.status-ativo { background: #e3f8ec; color: #1a7a45; }
.status-agendado { background: #fff4dc; color: #9a6b00; }
.status-expirado { background: #f1f1f3; color: #777; }

.evento-item .remove-row {
  position: absolute;
  top: 12px;
  right: 12px;
}

.login-box {
  max-width: 360px;
  margin: 90px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: .9rem;
}

.alert-success { background: #e3f8ec; color: #1a7a45; }
.alert-error { background: #fdeaea; color: #b23b3b; }

.top-actions {
  display: flex;
  gap: 10px;
}

.preview-link {
  font-size: .85rem;
  color: var(--teal-dark);
  font-weight: 600;
}