/* ==========================================================
   PÁGINA: EVENTOS
   Salvar como /assets/css/eventos.css (junto de pagina.css)
   ========================================================== */

/* Foto em fundo: se o arquivo não existir, aparece só o bege (sem imagem quebrada) */
.evt-foto {
  background: var(--foto) center / cover no-repeat, linear-gradient(135deg, #ead7bf, #f4e8d8);
  aspect-ratio: 4 / 3;
}

.evt-corpo h3 {
  margin: 0 0 8px;
  color: var(--pg-title);
  font-size: 24px;
  line-height: 1.1;
}
.evt-corpo p { margin: 0; font-size: 15px; line-height: 1.55; }

/* Carrinhos: dois cartões grandes */
.evt-carrinhos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.evt-carrinhos .evt-foto { aspect-ratio: 16 / 10; }
.evt-carrinhos .evt-corpo { padding: 22px 24px 26px; }
.evt-carrinhos .evt-corpo h3 { font-size: 28px; }

/* O que servimos: quatro cartões */
.evt-servicos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.evt-servicos .evt-corpo { padding: 16px 18px 22px; }
.evt-servicos .evt-corpo p { font-size: 14px; }

/* Fotos de eventos */
.evt-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.evt-fotos figure { position: relative; margin: 0; overflow: hidden; border-radius: 12px; }
.evt-fotos .evt-foto { aspect-ratio: 4 / 5; }
.evt-fotos figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #2b140c99 0%, transparent 45%); pointer-events: none; }

.evt-fotos figcaption {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  font: 600 28px/1 "Caveat", cursive;
  text-shadow: 0 2px 8px #0008;
}


.evt-fotos .evt-ver-fotos {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  color: #571b0c;
  font-family: var(--fonte-corpo, "Roboto"), sans-serif;
  font-size: 14px;
  text-shadow: none;
  backdrop-filter: blur(4px);
  transition: background .2s ease, color .2s ease;
}

.evt-fotos .evt-ver-fotos:hover {
  background: #aa814c;
  color: #ffffff;
}



@media (max-width: 1000px) {
  .evt-servicos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .evt-carrinhos, .evt-fotos { grid-template-columns: 1fr; }
  .evt-fotos .evt-foto { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .evt-servicos { grid-template-columns: 1fr; }
}

/* ==========================================================
   IDENTIDADE TIPOGRÁFICA - PADRÃO A CHUCRÊ
   ========================================================== */

.pg {
  font-family: var(--fonte-corpo, "Roboto"), sans-serif;
}

/* Títulos principais das seções */
.pg-secao > h2 {
  font-family: var(--fonte-titulo, "Cafe Brewery"), serif;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: normal;
  line-height: 1.15;
}

/* Subtítulos */
.pg-secao > .pg-sub {
  font-family: var(--fonte-corpo, "Roboto"), sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

/* Títulos dos cartões */
.evt-corpo h3 {
  font-family: var(--fonte-titulo, "Cafe Brewery"), serif;
  font-weight: normal;
}

/* Textos dos cartões */
.evt-corpo p {
  font-family: var(--fonte-corpo, "Roboto"), sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

/* CTA final */
.pg-cta {
  padding: 56px 22px 72px;
  text-align: center;
  background: #f1e3d1;
  border-top: 1px solid var(--pg-line);
}

.pg-cta h2 {
  margin: 0 0 8px;
  color: var(--pg-title);
  font-family: var(--fonte-titulo, "Cafe Brewery"), serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: normal;
  line-height: 1.2;
}

.pg-cta p {
  font-family: var(--fonte-corpo, "Roboto"), sans-serif;
  font-size: 16px;
  font-weight: normal;
}

.evt-banner {
  --q-bg: var(--pg-bg, #f8f0e6);
  --q-title: var(--pg-title, #571b0c);
}

/* Banner de Eventos */
.evt-banner h1 {
  max-width: 540px;
}
.evt-banner {
  position: relative;
  isolation: isolate;
  background: var(--pg-bg);
}

.evt-banner::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  right: 0;
  width: 68%;
  height: 540px;

  background:
    url('/assets/images/banner-orcamento.jpg')
    center 42% / cover no-repeat;
}

.evt-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 351px,
      var(--pg-bg) 540px
    ),
    linear-gradient(
      90deg,
      rgba(248, 240, 230, 0.98) 0%,
      rgba(248, 240, 230, 0.94) 30%,
      rgba(248, 240, 230, 0.68) 48%,
      rgba(248, 240, 230, 0.24) 72%,
      rgba(248, 240, 230, 0.08) 100%
    );
}

@media (max-width: 900px) {
  .evt-banner::before {
    width: 82%;
  }
}

@media (max-width: 620px) {
  .evt-banner::before {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    width: 100%;
    height: min(100%, 72vw);
    background-position: center bottom;
  }

  .evt-banner::after {
    background:
      linear-gradient(
        180deg,
        transparent 65%,
        var(--pg-bg) 100%
      ),
      linear-gradient(
        90deg,
        rgba(248, 240, 230, 0.98) 0%,
        rgba(248, 240, 230, 0.94) 30%,
        rgba(248, 240, 230, 0.68) 48%,
        rgba(248, 240, 230, 0.24) 72%,
        rgba(248, 240, 230, 0.08) 100%
      );
  }
}


/* ==========================================================
   GALERIA DE FOTOS - EVENTOS
   ========================================================== */

.evt-ver-fotos {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a3c20;
  font: 600 14px/1.4 var(--fonte-corpo, "Roboto"), sans-serif;
  cursor: pointer;
  transition: color .2s ease, gap .2s ease;
}

.evt-ver-fotos:hover {
  color: #571b0c;
  gap: 13px;
}

.evt-ver-fotos i {
  font-size: 11px;
}


/* Alinha os botões Ver fotos na base dos cartões */
.evt-carrinhos .pg-card,
.evt-servicos .pg-card {
  display: flex;
  flex-direction: column;
}

.evt-carrinhos .evt-corpo,
.evt-servicos .evt-corpo {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.evt-ver-fotos {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
}



/* ==========================================================
   MODAL - GALERIA DE FOTOS
   ========================================================== */

.evt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.evt-modal.is-aberto {
  display: flex;
}

.evt-modal__fundo {
  position: absolute;
  inset: 0;
  background: rgba(35, 18, 11, .88);
  backdrop-filter: blur(4px);
}

.evt-modal__conteudo {
  position: relative;
  z-index: 1;
  width: min(100%, 850px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 16px;
  background: #f8f0e6;
  text-align: center;
  box-shadow: 0 15px 50px #0005;
}

.evt-modal__conteudo h2 {
  margin: 0 45px 22px;
  color: #571b0c;
  font-family: var(--fonte-titulo, "Cafe Brewery"), serif;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: normal;
}

.evt-modal__fechar {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #571b0c;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.evt-modal__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #ead7bf;
  border-radius: 10px;
  overflow: hidden;
}

.evt-modal__visual img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

.evt-modal__seta {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(87, 27, 12, .88);
  color: #fff;
  cursor: pointer;
}

.evt-modal__anterior {
  left: 12px;
}

.evt-modal__proxima {
  right: 12px;
}

.evt-modal__seta:hover {
  background: #a34c27;
}

.evt-modal__contador {
  margin: 14px 0 0;
  color: #765b4b;
  font-size: 14px;
}

.evt-modal__instagram {
  padding: 30px 15px 15px;
  color: #571b0c;
}

.evt-modal__instagram[hidden] {
  display: none;
}

.evt-modal__instagram > i {
  font-size: 34px;
  color: #7b260f;
}

.evt-modal__instagram h3 {
  margin: 12px 0 8px;
  font-family: var(--fonte-titulo, "Cafe Brewery"), serif;
  font-size: 27px;
  font-weight: normal;
}

.evt-modal__instagram p {
  margin: 0 0 18px;
  line-height: 1.6;
}

.evt-modal__instagram a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 30px;
  background: #8a3c20;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.evt-modal__instagram a:hover {
  background: #571b0c;
}

@media (max-width: 600px) {
  .evt-modal {
    padding: 10px;
  }

  .evt-modal__conteudo {
    padding: 22px 14px;
  }

  .evt-modal__visual {
    min-height: 180px;
  }

  .evt-modal__visual img {
    max-height: 55vh;
  }

  .evt-modal__seta {
    width: 36px;
    height: 36px;
  }
}
