:root {
  --ouro: #d6b25e;
  --verde-mata: #1f3d2b;
  --verde-folha: #3e6b4f;
  --texto: #f5f5f0;
}

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

/* FUNDO – MATA + CACHOEIRA */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--texto);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(10,25,18,0.82), rgba(10,25,18,0.92)),
    url("https://images.unsplash.com/photo-1502082553048-f009c37129b9")
      center / cover fixed no-repeat;
}

/* TEXTURA TERREIRO */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("https://www.transparenttextures.com/patterns/wood-pattern.png");
  opacity: 0.15;
  z-index: 0;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 5;
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(20,45,32,0.85);
  backdrop-filter: blur(4px);
}

header h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.6rem;
  color: var(--ouro);
  letter-spacing: 0.15rem;
}

header p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* LOGO */
.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 2.2rem;
  position: relative;
  z-index: 3;
}

/* SOL DE AXÉ */
.logo-terreiro {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;

  background-image: url("img/logo.png");
  background-repeat: no-repeat;
  background-position: center 57%;
  background-size: 121%;
  background-color: rgba(31,61,43,0.85);

  box-shadow: 
    0 0 30px rgba(214,178,94,0.8),
    0 0 60px rgba(235,170,20,0.6),
    0 0 90px rgba(214,178,94,0.4),
    inset 0 0 30px rgba(214,178,94,0.3);
  animation: brilho-intenso 1.5s ease-in-out infinite;
}

/* HALO */
.logo-terreiro::before {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(235,170,20,0.8),
    rgba(214,178,94,0.5),
    rgba(214,178,94,0.2),
    transparent 65%
  );
  animation: pulsar-axe 1.2s ease-in-out infinite;
  z-index: -15;
  filter: drop-shadow(0 0 20px rgba(214,178,94,0.6));
}
}

/* RAIOS */
.logo-terreiro::after {
  content: "";
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: conic-gradient(
    rgba(214,178,94,0.0),
    rgba(235,170,20,0.55),
    rgba(214,178,94,0.0),
    rgba(235,170,20,0.45),
    rgba(214,178,94,0.0),
    rgba(235,170,20,0.35),
    rgba(235,170,20,0)
  );
  animation: girar-sol 18s linear infinite;
  z-index: -2;
  filter: drop-shadow(0 0 15px rgba(235,170,20,0.5));
}

@keyframes pulsar-axe {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes girar-sol {
  100% { transform: rotate(360deg); }
}

@keyframes brilho-intenso {
  0%, 100% { box-shadow: 
    0 0 30px rgba(214,178,94,0.7),
    0 0 60px rgba(235,170,20,0.5),
    0 0 90px rgba(214,178,94,0.3),
    inset 0 0 30px rgba(214,178,94,0.2);
  }
  50% { box-shadow: 
    0 0 40px rgba(214,178,94,1),
    0 0 80px rgba(235,170,20,0.8),
    0 0 120px rgba(214,178,94,0.6),
    inset 0 0 40px rgba(214,178,94,0.5);
  }
}

/* CONTEÚDO */
section {
  padding: 2.5rem 1.5rem 4rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.titulo {
  text-align: center;
  margin-bottom: 2rem;
}

.titulo h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: var(--verde-folha);
}

/* GRID */
.agenda {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

/* CARD */
.evento {
  position: relative;
  text-decoration: none;
  color: var(--texto);
  padding: 2rem;
  border-radius: 1.4rem;
  background: linear-gradient(
    160deg,
    rgba(31,61,43,0.9),
    rgba(15,30,22,0.95)
  );
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  transition: all 0.4s ease;
}

.evento::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: 70%;
  background-repeat: no-repeat;
  opacity: 0.22;
  z-index: 1;
}

.evento::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    transparent,
    rgba(255,255,255,0.12),
    transparent
  );
  animation: gira 14s linear infinite;
  z-index: 2;
}

@keyframes gira {
  100% { transform: rotate(360deg); }
}

.evento span {
  position: relative;
  z-index: 3;
  font-size: 1.4rem;
  font-weight: 600;
}

.evento:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 35px rgba(62,107,79,0.6);
}

/* ORIXÁS */
.oxossi::before { background-image: url("img/oxossi.png"); }
.ogum::before { background-image: url("img/ogun.png"); }
.oxum::before { background-image: url("img/oxum.png"); }
.iansa::before { background-image: url("img/iansa.png"); }
.xango::before { background-image: url("img/xango.png"); }
.iemanja::before { background-image: url("img/iemanja.png"); }
.omulu::before { background-image: url("img/omolu.png"); }
.oxala::before { background-image: url("img/oxala.png"); }
.pretovelho::before { background-image: url("img/pretovelho.png"); }
.caboclo::before { background-image: url("img/caboclo.png"); }
.ibejis::before { background-image: url("img/ibejis.png"); }
.nana::before { background-image: url("img/nana.png"); }

/* FOOTER */
footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .logo-terreiro {
    width: 130px;
    height: 130px;
    background-size: 135%;
  }

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

  .evento {
    padding: 1.2rem 1.4rem;
  }

  .evento span {
    font-size: 1.15rem;
  }
}

/* ===============================
   PÁGINA DE MÊS
=============================== */

.pagina-mes {
  max-width: 900px;
  margin: auto;
}

/* SUBTÍTULO */
.subtitulo-mes {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* BLOCOS */
.bloco {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: 1.4rem;
  background: linear-gradient(
    160deg,
    rgba(31,61,43,0.88),
    rgba(15,30,22,0.95)
  );
  box-shadow: 0 0 22px rgba(0,0,0,0.35);
}

/* TÍTULO DO BLOCO */
.bloco h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--ouro);
  margin-bottom: 1.4rem;
}

/* ITEM */
.item {
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(214,178,94,0.5);
}

.data {
  display: block;
  font-size: 0.85rem;
  color: var(--verde-folha);
  margin-bottom: 0.3rem;
}

/* TEXTO LIVRE */
.texto-livre {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* VOLTAR */
.voltar {
  margin-top: 3rem;
  text-align: center;
}

.voltar a {
  text-decoration: none;
  color: var(--ouro);
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.voltar a:hover {
  opacity: 0.7;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .bloco {
    padding: 1.4rem;
  }

  .bloco h3 {
    font-size: 1.2rem;
  }
}

