/* =========================================================
   HOME — layout "Natal Premiado" (carregado só no index.php)
   ========================================================= */
:root {
  --home-red: #8c1014;
  --home-red-dark: #7a0d10;
  --home-header: #7d0d0f;
  --home-orange: #ffb35c;
  --home-orange-hover: #ffc27a;
  --home-orange-line: #f6a23a;
  --home-ink: #7a0d10;
  --home-green: #0b5226;
  --home-green-dark: #053219;
  --home-footer: #03200f;
}

/* Fundo verde da página inteira (inclusive atrás do rodapé) */
body:has(.home-page) {
  background: var(--home-green-dark);
}

/* ---------- Cabeçalho (só na home) ---------- */
body:has(.home-page) .header-content,
body:has(.home-page) .background-header {
  background-color: var(--home-header) !important;
}

@media (min-width: 992px) {
  body:has(.home-page) .navbar > .container {
    max-width: 880px;
  }
}

body:has(.home-page) .navbar .nav-link {
  font-size: 0.85rem;
  font-weight: 400;
}

body:has(.home-page) .navbar .padding-left {
  padding-left: 1.5rem;
}

body:has(.home-page) .navbar .button {
  background-color: var(--home-orange);
  color: var(--home-ink);
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 0.45rem 1.1rem;
}

body:has(.home-page) .navbar .button:hover {
  background-color: var(--home-orange-hover);
  color: var(--home-ink);
}

/* ---------- Estrutura ---------- */
.home-page {
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(20, 110, 52, 0.55), transparent 70%),
    linear-gradient(180deg, var(--home-green) 0%, #084420 55%, var(--home-green-dark) 100%);
  color: #fff;
}

.home-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.home-title {
  margin: 0 0 1rem;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
}

.home-title--sm {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

/* ---------- Hero (banner do topo) ---------- */
.home-hero {
  position: relative;
  line-height: 0;
  text-align: center;
}

.home-hero__banner {
  display: block;
  width: 100%;
  height: auto;
  animation: home-banner-in 0.8s ease-out both;
}

@keyframes home-banner-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Chamada (botões) ---------- */
.home-cta {
  padding-top: 2.5rem;
}

.home-cta__buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.home-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.home-btn--primary {
  background: var(--home-orange);
  color: var(--home-ink);
  border: 2px solid var(--home-orange);
}

.home-btn--primary:hover {
  background: var(--home-orange-hover);
  color: var(--home-ink);
}

.home-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.home-btn--outline:hover {
  background: #fff;
  color: var(--home-green);
}

/* ---------- Como participar ---------- */
.home-steps {
  padding-top: 5rem;
  scroll-margin-top: 90px;
}

.home-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-height: 176px;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  background: var(--home-orange);
  color: var(--home-ink);
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.home-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--home-ink);
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.home-step__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.home-step__text span {
  font-weight: 700;
}

/* ---------- Prêmios ---------- */
.home-prizes {
  padding: 4.5rem 16px 0;
  text-align: center;
  scroll-margin-top: 80px;
}

.home-prizes img {
  width: 100%;
  max-width: 760px;
  height: auto;
  /* esfuma as bordas para a arte se fundir com o fundo */
  -webkit-mask-image: radial-gradient(ellipse 66% 62% at 50% 48%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 66% 62% at 50% 48%, #000 55%, transparent 100%);
}

.home-disclaimer {
  max-width: 860px;
  margin: 2.5rem auto 0;
  font-size: 0.7rem;
  color: #fff;
  opacity: 0.9;
}

/* ---------- Realização / Apoio ---------- */
.home-partners {
  padding: 1.75rem 16px 0;
  text-align: center;
}

.home-partners img {
  width: 100%;
  max-width: 900px;
  height: auto;
}

/* ---------- Rodapé (só na home) ---------- */
body:has(.home-page) .footer-container {
  flex-direction: row;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0;
  padding: 2.2rem 16px;
  background: var(--home-footer);
  font-size: 0.95rem;
}

body:has(.home-page) .footer-container img {
  width: 76px;
}

.footer-sep {
  opacity: 0.8;
  margin: 0 0.2rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 576px) {
  /* no celular o banner fica estreito: amplia e corta as laterais (guirlanda) */
  .home-hero__banner {
    width: 165%;
    max-width: none;
    margin-left: -32.5%;
  }

.home-cta__buttons,
  .home-steps__grid {
    grid-template-columns: 1fr;
  }

  .home-steps {
    padding-top: 3.5rem;
  }

  .home-step {
    min-height: 140px;
  }

  .home-prizes {
    padding-top: 2rem;
  }

  /* a arte tem bastante respiro: amplia para os textos ficarem legíveis */
  .home-prizes img {
    width: 135%;
    max-width: none;
    margin: 0 -17.5%;
  }

  body:has(.home-page) .footer-container {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__banner { animation: none; }
  .home-btn:hover { transform: none; }
}
