/* Galeria de fotos dos eventos — Essência Audiovisual (fotto.essenciaag.com.br) */
:root {
  --fundo: #0b0614;
  --fundo-2: #140a24;
  --cartao: #1a0f2e;
  --borda: rgba(196, 160, 255, .16);
  --texto: #f3eefb;
  --suave: #b9aed1;
  --roxo: #8b5cf6;
  --roxo-claro: #a78bfa;
  --degrade: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
  --verde: #22c55e;
  --raio: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; background: var(--fundo); color: var(--texto);
  font: 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
input { font: inherit; }

.conteiner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sobretitulo { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--roxo-claro); }
.suave { color: var(--suave); }
.vazio { padding: 48px 16px; text-align: center; color: var(--suave); }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  background: none; color: var(--texto); font: inherit; font-weight: 700; font-size: .92rem;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .2s;
}
.botao:active { transform: scale(.98); }
.botao svg { width: 18px; height: 18px; }
.botao-primario { background: var(--degrade); color: #fff; box-shadow: 0 12px 30px -14px rgba(124, 58, 237, .9); }
.botao-contorno { border-color: rgba(167, 139, 250, .5); }
.botao-contorno:hover { background: rgba(167, 139, 250, .12); }
.botao-verde { background: var(--verde); color: #04210f; }
.botao-bloco { width: 100%; }
.botao[disabled] { opacity: .5; pointer-events: none; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 20; background: rgba(11, 6, 20, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--borda); }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { width: 34px; height: 34px; }
.marca strong { display: block; font-size: 1rem; line-height: 1.1; }
.marca small { display: block; color: var(--suave); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.topo a.link-topo { color: var(--suave); font-size: .86rem; font-weight: 600; text-decoration: none; }

/* Início */
.hero { padding: 44px 0 28px; text-align: center; background: radial-gradient(ellipse at top, rgba(124, 58, 237, .28), transparent 70%); }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.hero p { max-width: 520px; margin: 12px auto 22px; color: var(--suave); }
.busca { display: flex; align-items: center; gap: 8px; max-width: 460px; margin: 0 auto; padding: 0 16px; border-radius: 999px; background: var(--cartao); border: 1px solid var(--borda); }
.busca input { flex: 1; min-width: 0; height: 50px; border: 0; background: none; color: var(--texto); outline: none; }
.grade-eventos { display: grid; gap: 14px; padding: 20px 0 56px; }
@media (min-width: 620px) { .grade-eventos { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); } }
.cartao-evento { display: block; overflow: hidden; border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--borda); text-decoration: none; transition: transform .2s, border-color .2s; }
.cartao-evento:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, .45); }
.cartao-capa { aspect-ratio: 16 / 10; background: var(--fundo-2) center / cover no-repeat; }
.cartao-evento div { padding: 12px 14px 14px; }
.cartao-evento strong { display: block; font-size: 1.02rem; }
.cartao-evento span { color: var(--suave); font-size: .84rem; }

/* Evento */
.evento-topo { padding: 22px 0 14px; }
.evento-topo h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.precos { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.precos span { padding: 6px 12px; border-radius: 999px; background: var(--cartao); border: 1px solid var(--borda); font-size: .8rem; color: var(--suave); }
.precos strong { color: var(--texto); }
.barra-ferramentas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 12px; }

.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding-bottom: 120px; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; } }
.foto {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--fundo-2); cursor: zoom-in;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.foto img, .visor img { pointer-events: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto::after { content: ""; position: absolute; inset: 0; }   /* camada por cima da imagem (dificulta salvar) */
.marcar {
  position: absolute; z-index: 2; top: 6px; right: 6px; display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #fff;
  background: rgba(11, 6, 20, .45); color: transparent; cursor: pointer;
}
.marcar svg { width: 18px; height: 18px; stroke-width: 3; }
.foto.marcada { outline: 3px solid var(--roxo); outline-offset: -3px; }
.foto.marcada .marcar { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.carregar-mais { display: flex; justify-content: center; padding: 10px 0 140px; }

/* Barra do carrinho */
.carrinho {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  background: rgba(20, 10, 36, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--borda); transform: translateY(110%); transition: transform .25s;
}
.carrinho.visivel { transform: none; }
.carrinho-linha { display: flex; align-items: center; gap: 12px; }
.carrinho-total { flex: 1; min-width: 0; line-height: 1.2; }
.carrinho-total strong { display: block; font-size: 1.3rem; }
.carrinho-total span { color: var(--suave); font-size: .8rem; }
.carrinho-dica { color: var(--roxo-claro); font-size: .76rem; font-weight: 700; }

/* Visualizador */
.visor { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: rgba(5, 2, 10, .96); }
.visor-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.visor-foto { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px; }
.visor-foto img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.visor-foto::after { content: ""; position: absolute; inset: 0; }
.visor-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.visor-nav.ant { left: 10px; } .visor-nav.prox { right: 10px; }
.visor-rodape { display: flex; justify-content: center; gap: 10px; padding: 12px 12px max(14px, env(safe-area-inset-bottom)); }
.icone-botao { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }

/* Formulários e diálogos */
.dialogo { width: min(460px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 22px; border: 1px solid var(--borda); border-radius: 20px; background: var(--cartao); color: var(--texto); }
.dialogo::backdrop { background: rgba(5, 2, 10, .7); backdrop-filter: blur(3px); }
.dialogo h2 { margin-bottom: 6px; }
label { display: block; margin: 12px 0 0; font-size: .84rem; font-weight: 700; color: var(--suave); }
label input { display: block; width: 100%; height: 48px; margin-top: 6px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--borda); background: var(--fundo); color: var(--texto); }
label input:focus { outline: 2px solid var(--roxo); outline-offset: 1px; }
.acoes { display: flex; gap: 10px; margin-top: 18px; }
.acoes .botao { flex: 1; }
.erro { color: #fca5a5; font-size: .86rem; }
.mini { font-size: .78rem; color: var(--suave); }

/* Pedido */
.pedido { max-width: 560px; margin: 0 auto; padding-top: 28px; padding-bottom: 60px; }
.caixa { padding: 20px; margin-top: 16px; border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--borda); }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.status-aguardando { background: #3b2a06; color: #fcd34d; }
.status-pago { background: #2a1856; color: #c4b5fd; }
.status-liberado { background: #0f3320; color: #86efac; }
.status-cancelado { background: #3b0d0d; color: #fca5a5; }
.linha-valor { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--borda); }
.linha-valor:first-child { border-top: 0; }
.pix-qr { display: grid; place-items: center; margin: 14px auto; padding: 12px; width: max-content; border-radius: 14px; background: #fff; }
.copia-cola { display: block; width: 100%; padding: 10px; margin: 8px 0; border-radius: 10px; border: 1px dashed var(--borda); background: var(--fundo); color: var(--suave); font: .74rem/1.4 ui-monospace, monospace; word-break: break-all; }
.miniaturas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; }
.miniaturas img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; pointer-events: none; }

.rodape { padding: 26px 0 40px; text-align: center; color: var(--suave); font-size: .8rem; border-top: 1px solid var(--borda); }
.rodape a { color: var(--roxo-claro); }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: #fff; color: #1d1530; font-weight: 700; font-size: .88rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
