
/* Centraliza o header no meio da tela */
.site {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centraliza verticalmente */
  min-height: 100vh;
  padding: 20px;
  text-align: center;
}

/* Logo */
header .logo {
  width: 500px; /* ajuste conforme necessário */
  height: auto;
  margin-bottom: 20px;
}





:root{
  --bg-1: #0c1f18;        /* verde escuro */
  --bg-2: #2a0b3f;        /* roxo profundo */
  --accent-green: #32c48d; /* verde mais quente */
  --accent-gold: #e0d9cb;  /* dourado suave */
  --card-border: rgba(50,196,140,0.25);
  --text: var(--accent-gold);
}

/* reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }

/* corpo principal */
body {
  font-family: "Trebuchet MS", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* conteúdo */
.site {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 36px 20px 80px;
}

/* título */
h1 {
  margin: 18px 0 6px;
  font-size: 42px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-gold);
}

/* galeria */
.gallery {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 28px;
  z-index: 2;
}

.item {
  width: 220px;
  text-align: center;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  z-index: 2;
}

.item img{
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: block;
  transition: transform .3s ease, box-shadow .3s ease;
}

.item:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* legenda */
figcaption {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-gold);
}

/* footer */
footer{
  width: 100%;
  text-align: center;
  padding: 14px 12px;
  background: rgba(10,10,15,0.15);
  color: var(--accent-gold);
  font-size: 14px;
  margin-top: 28px;
  z-index: 2;
}

/* overlays VHS estilo folclore */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0px,
    rgba(0,0,0,0.1) 2px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
  animation: vhsFlicker 3s infinite;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: url('noise.png') repeat;
  background-size: cover;
  opacity: 0.1;
  mix-blend-mode: screen;
  animation: grainShift 1.5s steps(4, end) infinite;
  filter: contrast(0.95);
}

/* animações */
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-0.5px,0); }
  50%  { transform: translate(0,-0.5px); }
  75%  { transform: translate(0.5px,0); }
  100% { transform: translate(0,0.5px); }
}

@keyframes vhsFlicker {
  0%, 20%, 40%, 60%, 80%, 100% { opacity: 1.8; }
  10%, 30%, 50%, 70%, 90% { opacity: 1.75; }
}

/* responsivo */
@media(max-width:680px){
  .item{width:46%;}
  .item img{width:100%;height:auto;aspect-ratio:1/1;}
  .gallery{gap:18px;padding:18px;}
  h1{font-size:28px;}
}
