:root {
  --bege: #f5ede1;
  --bege-escuro: #e8dcc8;
  --amarelo: #f2c500;
  --dourado: #c9a227;
  --dourado-claro: #f0c75e;
  --vinho: #7b2d26;
  --vermelho: #b41d1d;
  --madeira: #6b4a2e;
  --madeira-escura: #3d2817;
  --texto: #3a2e2a;
  --papel: #fffaf2;
}

* { box-sizing: border-box; }

body.pagina-mural {
  background: var(--bege);
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  margin: 0;
  background-image:
    radial-gradient(rgba(201,162,39,.06) 1px, transparent 1px),
    radial-gradient(rgba(123,45,38,.04) 1px, transparent 1px);
  background-size: 24px 24px, 36px 36px;
  background-position: 0 0, 12px 12px;
}

/* ============ LAYOUT ============ */
.layout-mural {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ============ TIMELINE LATERAL ============ */
.timeline {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: linear-gradient(180deg, var(--bege) 0%, #fbf5e8 100%);
  border-right: 1px solid rgba(107, 74, 46, .15);
  position: relative;
}

/* textura sutil de papel na timeline */
.timeline::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.logo-timeline {
  display: block;
  position: relative;
  z-index: 2;
}
.logo-timeline img {
  max-width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}

.seta-timeline {
  width: 60px;
  height: 120px;
  opacity: .9;
  position: relative;
  z-index: 2;
}

.lista-anos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.ano-link {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  color: #b8a99a;
  text-decoration: none;
  letter-spacing: 3px;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all .3s cubic-bezier(.2,.8,.3,1);
  position: relative;
  line-height: 1;
}

.ano-link:hover {
  color: var(--dourado);
  transform: translateX(6px);
}

.ano-link.ativo {
  color: var(--vermelho);
  font-size: 2.8rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(180, 29, 29, .25);
}
.ano-link.ativo::before {
  content: '→';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dourado);
  font-size: 1.4rem;
  animation: apontar 1.4s ease-in-out infinite alternate;
}
@keyframes apontar {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(4px); }
}

.link-admin {
  margin-top: auto;
  font-size: 1.4rem;
  color: #c9b8a0;
  text-decoration: none;
  opacity: .5;
  transition: opacity .25s, transform .25s;
  position: relative;
  z-index: 2;
}
.link-admin:hover {
  opacity: 1;
  transform: rotate(45deg) scale(1.2);
}

/* ============ CONTEÚDO ============ */
.conteudo-mural {
  padding: 60px 48px 40px;
  max-width: 1100px;
}

.mural-header {
  text-align: center;
  margin-bottom: 50px;
}
.mural-header .ornamento {
  color: var(--dourado);
  letter-spacing: 12px;
  font-size: 1rem;
}
.mural-header h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--vinho);
  margin: 8px 0;
  letter-spacing: 1px;
}
.mural-header p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #7a6a60;
  margin: 0;
}

/* ============ SEÇÃO DE ANO ============ */
.ano-secao {
  position: relative;
  margin-bottom: 70px;
  padding-top: 20px;
}

.ano-marca-dagua {
  position: absolute;
  top: -20px;
  left: -20px;
  font-family: 'Caveat', cursive;
  font-size: 8rem;
  color: var(--dourado);
  opacity: .08;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

/* ============ GRID ============ */
.grid-eventos {
  columns: 3 240px;
  column-gap: 22px;
  position: relative;
  z-index: 1;
}

/* ============ CARD ============ */
.card-evento {
  display: block;
  break-inside: avoid;
  background: #fff;
  padding: 14px 14px 18px;
  margin-bottom: 26px;
  border-radius: 3px;
  box-shadow:
    0 2px 4px rgba(0,0,0,.08),
    0 10px 24px rgba(0,0,0,.12);
  text-decoration: none;
  color: inherit;
  transform: rotate(-1.5deg);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s;
  position: relative;
}
.card-evento:nth-child(even) { transform: rotate(1.8deg); }
.card-evento:nth-child(3n)   { transform: rotate(-0.6deg); }
.card-evento:nth-child(5n)   { transform: rotate(2.2deg); }

.card-evento:hover {
  transform: rotate(0) translateY(-8px) scale(1.02);
  box-shadow:
    0 6px 12px rgba(0,0,0,.1),
    0 22px 42px rgba(0,0,0,.2);
  z-index: 2;
}

.card-foto {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  background: #eee;
}
.card-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.card-evento:hover .card-foto img { transform: scale(1.04); }

.sem-capa {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: #bbb;
  font-family: 'Caveat', cursive; font-size: 1.4rem;
}

.fita {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 90px; height: 26px;
  background: rgba(240, 220, 180, .85);
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
  border-left: 1px dashed rgba(0,0,0,.08);
  border-right: 1px dashed rgba(0,0,0,.08);
  z-index: 3;
}

.card-info { text-align: center; padding-top: 14px; }
.card-info h3 {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--vinho);
  margin: 6px 0 4px;
  line-height: 1.1;
}
.card-info small {
  font-size: .72rem;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tag-tipo {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
}
.tag-confraternizacao { background: #b8860b; }
.tag-aniversario     { background: var(--vinho); }
.tag-reuniao         { background: #6b7c53; }
.tag-making_of       { background: #8b6f47; }
.tag-outro           { background: #999; }

/* ============ FOOTER ============ */
.mural-footer {
  text-align: center;
  padding: 40px 0 20px;
}
.frase-decorativa {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: var(--dourado);
  opacity: .8;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
  .layout-mural { grid-template-columns: 1fr; }
  .timeline {
    position: relative;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(107, 74, 46, .15);
  }
  .seta-timeline { display: none; }
  .logo-timeline img { max-width: 100px; }
  .lista-anos { flex-direction: row; gap: 14px; }
  .ano-link { font-size: 1.6rem; }
  .ano-link.ativo { font-size: 1.8rem; }
  .ano-link.ativo::before { display: none; }
  .link-admin { margin-top: 0; }

  .conteudo-mural { padding: 30px 20px; }
  .grid-eventos { columns: 1; }
  .card-evento { transform: rotate(0) !important; }
}