:root {
  --preto: #171111;
  --preto-profundo: #050505;
  --verde: #d6d000;
  --verde-vivo: #ccff00;
  --metal: #c9c9b7;
  --vidro: rgba(12, 12, 10, 0.72);
  --borda: rgba(214, 208, 0, 0.48);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--verde) #000000;
}

*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: #000000;
}

*::-webkit-scrollbar-thumb {
  background: var(--verde);
  border: 3px solid #000000;
  border-radius: 999px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 208, 0, 0.16), transparent 36rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.92)),
    url("img/fundo-eventos.webp") center top / cover fixed no-repeat,
    var(--preto-profundo);
  color: #f5f5f5;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(214, 208, 0, 0.08), transparent 18%, transparent 82%, rgba(214, 208, 0, 0.08)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.btn-voltar {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 100;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--verde-vivo);
  text-decoration: none;
  font-size: 26px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-voltar:hover {
  transform: translateX(-3px);
  border-color: var(--verde);
  background: rgba(214, 208, 0, 0.13);
}

.eventos-page-shell {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
  padding: 36px 0 90px;
}

.galeria-hero {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px 0 28px;
}

.galeria-kicker,
.album-kicker {
  font-family: "Barlow Condensed", Arial, sans-serif;
  color: var(--verde-vivo);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.galeria-hero h1 {
  position: relative;
  font-family: "Anton", Arial, sans-serif;
  font-size: 88px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--metal);
  text-shadow:
    0 3px 0 #000000,
    0 22px 44px rgba(0, 0, 0, 0.7);
}

.galeria-hero h1::before,
.galeria-hero h1::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(90px, 12vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--verde));
  box-shadow: 0 0 18px rgba(214, 208, 0, 0.45);
}

.galeria-hero h1::before {
  right: calc(100% + 24px);
}

.galeria-hero h1::after {
  left: calc(100% + 24px);
  transform: scaleX(-1);
}

.galeria-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.evento-card {
  min-width: 0;
  animation: subir 0.6s ease both;
  animation-delay: var(--delay);
}

.evento-card-button {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.74);
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.evento-card-button:hover,
.evento-card-button:focus-visible {
  transform: translateY(-8px);
  border-color: var(--verde);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.68),
    0 0 34px rgba(214, 208, 0, 0.14);
  outline: none;
}

.evento-cover {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: #000000;
}

.evento-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88)),
    linear-gradient(90deg, rgba(214, 208, 0, 0.14), transparent 36%, transparent 64%, rgba(214, 208, 0, 0.08));
}

.evento-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.evento-card-button:hover .evento-cover img,
.evento-card-button:focus-visible .evento-cover img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.12) brightness(1.08);
}

.evento-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.evento-card-body strong {
  min-height: 86px;
  font-family: "Anton", Arial, sans-serif;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--verde);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.75);
}

.evento-meta-list,
.album-meta {
  display: grid;
  gap: 9px;
}

.meta-item {
  font-family: "Barlow Condensed", Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.35;
}

.meta-item span {
  width: 20px;
  color: var(--verde);
  filter: grayscale(1) sepia(1) saturate(4);
}

.evento-action,
.album-back {
  width: fit-content;
  margin-top: auto;
  border: 1px solid var(--verde);
  border-radius: 6px;
  background: rgba(214, 208, 0, 0.08);
  color: var(--verde-vivo);
  padding: 12px 18px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.album-panel {
  position: relative;
  display: none;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 38px;
  margin: 26px auto 0;
  padding: 38px 44px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.74);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.64),
    0 0 80px rgba(214, 208, 0, 0.08) inset;
}

.album-panel.ativo {
  display: grid;
  animation: subir 0.38s ease both;
}

.album-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--verde-vivo);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.album-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
}

.album-info h2 {
  font-family: "Anton", Arial, sans-serif;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--verde);
  text-transform: uppercase;
}

.album-info p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.55;
}

.album-back {
  margin-top: 22px;
  cursor: pointer;
}

.album-content {
  min-width: 0;
}

.album-viewer {
  position: relative;
  display: none;
  overflow: hidden;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background: #000000;
}

.album-viewer.ativo {
  display: block;
}

.album-viewer img {
  width: 100%;
  height: min(52vw, 470px);
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

.album-nav,
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 56px;
  transform: translateY(-50%);
  border: 1px solid var(--verde);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--verde-vivo);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

.album-prev,
.lightbox-prev {
  left: 16px;
}

.album-next,
.lightbox-next {
  right: 16px;
}

.photo-counter,
.lightbox-counter {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  border: 1px solid rgba(214, 208, 0, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.album-thumbs {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.album-thumbs.ativo {
  display: grid;
}

.thumb-button {
  height: 82px;
  overflow: hidden;
  border: 1px solid rgba(214, 208, 0, 0.32);
  border-radius: 6px;
  background: #000000;
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.thumb-button:hover,
.thumb-button.ativo {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--verde);
}

.thumb-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.album-empty {
  display: none;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.86)),
    url("img/cartaz2026.webp") center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.album-empty.ativo {
  display: grid;
}

.album-empty span {
  font-family: "Anton", Arial, sans-serif;
  font-size: 56px;
  line-height: 1.04;
  color: var(--verde-vivo);
  text-transform: uppercase;
  text-shadow: 0 12px 30px #000000;
}

.album-empty p {
  max-width: 460px;
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.5;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox.ativo {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1280px);
  max-height: 86vh;
  border: 2px solid var(--borda);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 70px rgba(214, 208, 0, 0.16);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--verde-vivo);
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-counter {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .eventos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-panel {
    grid-template-columns: 1fr;
  }

  .album-info {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .btn-voltar {
    top: 14px;
    left: 14px;
  }

  .eventos-page-shell {
    width: min(100% - 28px, 1480px);
    padding-top: 70px;
  }

  .galeria-hero {
    min-height: 190px;
  }

  .galeria-hero h1::before,
  .galeria-hero h1::after {
    display: none;
  }

  .galeria-hero h1 {
    font-size: 56px;
  }

  .galeria-hero p {
    font-size: 16px;
  }

  .eventos-grid {
    grid-template-columns: 1fr;
  }

  .evento-card-button {
    min-height: 0;
  }

  .evento-cover {
    height: 220px;
  }

  .evento-card-body strong {
    min-height: auto;
    font-size: 30px;
  }

  .album-panel {
    padding: 58px 16px 18px;
  }

  .album-info h2 {
    font-size: 38px;
  }

  .album-viewer img {
    height: 62vw;
    min-height: 260px;
  }

  .album-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .thumb-button {
    height: 74px;
  }

  .album-nav {
    width: 38px;
    height: 48px;
    font-size: 36px;
  }

  .lightbox-nav {
    display: none;
  }

  .album-empty {
    min-height: 320px;
  }

  .album-empty span {
    font-size: 40px;
  }
}

/* Pente fino mobile */
@media (max-width: 820px) {
  body {
    min-height: 100svh;
    background-attachment: scroll;
    background-position: center top;
  }

  .btn-voltar {
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
  }

  .eventos-page-shell {
    width: calc(100% - 28px);
    padding: 74px 0 64px;
  }

  .galeria-hero {
    min-height: auto;
    gap: 8px;
    padding: 18px 0 26px;
  }

  .galeria-kicker,
  .album-kicker {
    font-size: 17px;
  }

  .galeria-hero h1 {
    max-width: 340px;
    font-size: 44px;
    line-height: 1.08;
  }

  .galeria-hero h1::before,
  .galeria-hero h1::after {
    display: none;
  }

  .galeria-hero p {
    max-width: 340px;
    font-size: 16px;
  }

  .eventos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .evento-card-button {
    min-height: 0;
    border-radius: 8px;
  }

  .evento-cover {
    height: 210px;
  }

  .evento-card-body {
    gap: 14px;
    padding: 18px;
  }

  .evento-card-body strong {
    min-height: 0;
    font-size: 28px;
    line-height: 1.1;
  }

  .meta-item {
    font-size: 18px;
  }

  .evento-action,
  .album-back {
    width: 100%;
    text-align: center;
  }

  .album-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 18px;
    padding: 56px 14px 16px;
    border-radius: 8px;
  }

  .album-close {
    top: 12px;
    right: 14px;
  }

  .album-info {
    gap: 14px;
    padding-top: 0;
  }

  .album-info h2 {
    font-size: 34px;
    line-height: 1.08;
  }

  .album-info p {
    font-size: 16px;
  }

  .album-viewer img {
    height: 64vw;
    min-height: 240px;
  }

  .album-prev {
    left: 10px;
  }

  .album-next {
    right: 10px;
  }

  .album-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .thumb-button {
    height: 68px;
  }

  .album-empty {
    min-height: 300px;
  }

  .album-empty span {
    font-size: 34px;
  }

  .album-empty p {
    font-size: 16px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 14px;
  }

  .lightbox-counter {
    bottom: 18px;
  }
}

@media (max-width: 430px) {
  .eventos-page-shell {
    width: calc(100% - 20px);
  }

  .galeria-hero h1 {
    font-size: 38px;
  }

  .evento-cover {
    height: 190px;
  }

  .album-viewer img {
    min-height: 220px;
  }
}
