/* ==================================================
   BASE
================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800;900&display=swap');

@font-face {
  font-family: 'Amsipro';
  src: url('https://cdn.prod.website-files.com/649e284b495329acb459d6b4/649e284b495329acb459d6c6_AmsiPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #f8f9fa;
  font-family: 'Open Sans', Arial, sans-serif;
}
.logo { max-height: 80px; }

.eventos-tags-filtro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
}

.eventos-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(215, 25, 32, .32);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #343434;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 3px 9px rgba(0,0,0,.05);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.eventos-tag-pill:hover,
.eventos-tag-pill:focus {
  border-color: #d71920;
  color: #b4161c;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  text-decoration: none;
}

.eventos-tag-pill.active {
  border-color: #d71920;
  background: #d71920;
  color: #fff;
}

/* ==================================================
   HEADER INSTITUCIONAL (STICKY)
================================================== */

.header-institucional {
  position: sticky;
  top: 0;
  z-index: 1050;

  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);

  padding: 14px 0 16px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Barra vermelha sofisticada */
.header-institucional::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;

  background: linear-gradient(
    90deg,
    #d71920 0%,
    #c4161c 40%,
    #d71920 100%
  );

  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-brand .logo {
  max-height: 54px;
  max-width: min(280px, 58vw);
  height: auto;
  width: auto;
  display: block;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-content {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding-left: 20px;
  border-left: 1px solid rgba(63,63,63,.35);
}

.header-section {
  font-family: 'Amsipro', 'Open Sans', Arial, sans-serif;
  font-size: clamp(.88rem, 1.75vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #3f3f3f;
  line-height: .92;
}

/* Responsivo */
@media (max-width: 768px) {
  .header-inner {
    align-items: center;
    gap: 14px;
  }

  .header-brand .logo {
    max-height: 44px;
    max-width: 132px;
  }

}

@media (max-width: 480px) {
  .header-institucional {
    padding: 12px 0 14px 0;
  }

  .header-inner {
    align-items: center;
    gap: 12px;
  }

  .header-content {
    min-height: 38px;
    padding-left: 12px;
  }

  .header-brand .logo {
    max-height: 38px;
    max-width: 116px;
  }

  .header-section {
    font-size: .72rem;
  }
}


/* ==================================================
   SECTION TITLE (Escolha Evento)
================================================== */

.section-title {
  position: relative;
  padding-left: 14px;
  font-weight: 800;
  font-size: 1.55rem;
  color: #222;
  line-height: 1.2;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  height: 26px;
  width: 4px;
  background-color: #d71920;
  border-radius: 2px;
}

.list-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #222;
}

.list-count {
  color: #666;
  font-size: 0.95rem;
  font-weight: 600;
}


/* ==================================================
   DESTAQUE
================================================== */

.evento-destaque {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(215,25,32,0.12), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #fff7f7 100%);
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.evento-destaque-overlay {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  --destaque-bg-y: 50%;
}

.evento-destaque-overlay::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: -28px;
  width: 100vw;
  height: calc(100% + 56px);
  transform: translateX(-50%);
  background-image: url('/public/uploads/logo/2d92f7de-1252-4754-847a-8c1c4e6a93232.png');
  background-position: center var(--destaque-bg-y);
  background-size: cover;
  background-repeat: no-repeat;
}

.evento-destaque-thumb {
  position: relative;
  z-index: 1;
  width: 68%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  max-height: 360px;
  background-color: #111;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  box-shadow: none;
}

.evento-destaque-thumb::before,
.evento-thumb::before {
  display: none;
}

.evento-destaque-thumb .fundo-blur,
.evento-thumb .fundo-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: .9;
}

.evento-destaque-thumb::after,
.evento-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.01)),
    linear-gradient(0deg, rgba(215,25,32,.02), rgba(215,25,32,.02));
  pointer-events: none;
}

.evento-destaque-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 360px;
  object-fit: fill;
  object-position: center;
  filter: saturate(.9) contrast(.98) brightness(.99);
  opacity: .98;
  display: block;
}

.evento-link-thumb {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.evento-destaque-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1rem 1.2rem;
}

.evento-destaque-panel {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 520px;
  min-height: 260px;
  margin: 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  padding: 28px 26px;
  box-shadow: 0 16px 32px rgba(0,0,0,.10);
}

.evento-destaque-date {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(0,0,0,.10);
  color: #d71920;
  line-height: 1;
}

.evento-destaque-day {
  font-size: 2rem;
  font-weight: 800;
}

.evento-destaque-month {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.evento-destaque-summary {
  min-width: 0;
}

.evento-destaque-panel .evento-destaque-titulo {
  font-size: 1.18rem;
  line-height: 1.22;
  margin: 0 0 .45rem;
  min-height: 0;
  display: block;
  overflow: visible;
}

.evento-destaque-panel .evento-destaque-info {
  margin-bottom: .65rem;
  color: #626b75;
  font-size: .74rem;
}

.evento-destaque-panel .evento-destaque-info i {
  color: #d71920;
}

.evento-destaque-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.evento-destaque-action-link,
.evento-destaque-share-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: .92rem;
  font-weight: 800;
  color: #d71920;
  text-decoration: none;
  cursor: pointer;
}

.evento-destaque-share-link {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  border-radius: 999px;
}

.evento-destaque-share-link i {
  font-size: 1rem;
  line-height: 1;
}

.evento-destaque-action-link:hover,
.evento-destaque-share-link:hover {
  color: #a81218;
  text-decoration: underline;
}

.evento-closed-link,
.evento-closed-link:hover,
.evento-closed-link:focus {
  color: #3f3f3f;
}

.evento-destaque-closed {
  font-size: .92rem;
  font-weight: 800;
  color: #6c757d;
}

.evento-destaque-titulo {
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  line-height: 1.22;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 0.55rem;
}

.evento-destaque-info {
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.evento-destaque-descricao {
  margin: 0.55rem 0 0;
  color: #474747;
  font-size: 0.9rem;
  line-height: 1.42;
  max-height: 4.9rem;
  overflow: hidden;
}

.evento-destaque-acoes {
  margin-top: 0.9rem;
}

.evento-destaque .btn-primary {
  background-color: #d71920;
  border-color: #d71920;
  border-radius: 12px;
  font-weight: 800;
  padding: 0.68rem 1rem;
  font-size: 0.95rem;
}

.evento-destaque .btn-primary:hover {
  background-color: #b4161c;
  border-color: #b4161c;
}

.btn-destaque-visualizar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  min-height: 42px;
  border-width: 1px;
  box-shadow: 0 14px 24px rgba(215,25,32,0.18);
}

.btn-destaque-visualizar i {
  font-size: 1rem;
}

.evento-destaque-acoes .btn-share-event {
  min-height: 42px;
  padding: 0.68rem 0.95rem;
  font-size: 0.92rem;
}

.evento-link-thumb {
  display: block;
  width: 100%;
  height: 100%;
}

.evento-link-thumb img {
  transition: transform .25s ease;
}

.evento-link-thumb:hover img {
  transform: none;
}

.evento-link-titulo {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.evento-link-titulo:hover {
  color: #b4161c;
}

.btn-share-card {
  width: 46px;
  min-width: 46px;
  border-radius: 0.375rem;
}

.share-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.16);
}

.share-kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d71920;
  margin-bottom: 4px;
}

.share-copy {
  color: #555;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.share-network {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.share-network:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.share-network i,
.share-x-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 1rem;
  font-weight: 900;
}

.share-facebook {
  background: #1877f2;
  color: #fff;
}

.share-x {
  background: #111;
  color: #fff;
}

.share-whatsapp {
  background: #25d366;
  color: #fff;
}

.badge-destaque {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: #d71920;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  text-transform: uppercase;
}

.destaque-encerrado {
  right: 16px;
  top: 16px;
}


/* ==================================================
   EVENTOS (CARDS)
================================================== */

.mais-eventos-section {
  position: relative;
  padding-top: 0px;
  padding-bottom: 42px;
}

.mais-eventos-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: url('/public/uploads/logo/b58bc8d3-e9ce-47dc-96c6-ce29ad1557fa.png') center / 100% 100% no-repeat;
  opacity: .22;
}

.mais-eventos-section > * {
  position: relative;
  z-index: 1;
}

.eventos-grid {
  row-gap: 2.25rem;
}

.evento-card {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: visible;
}

.evento-card:hover {
  transform: translateY(-4px);
}

/* Imagem com proporção fixa */
.evento-thumb {
  position: relative;
  overflow: hidden;
  background-color: #111;
  background-position: center;
  background-size: cover;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 0;
  max-height: 240px;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.evento-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  filter: saturate(.9) contrast(.98) brightness(.99);
  opacity: .98;
  display: block;
}

.evento-card .evento-link-thumb {
  height: 100%;
}

.evento-card .evento-link-thumb img,
.evento-card > .evento-thumb > img {
  height: 100%;
  max-height: 240px;
}

.evento-card-panel {
  position: relative;
  z-index: 4;
  width: calc(100% - 28px);
  margin: -34px auto 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
  height: 148px;
  min-height: 148px;
}

.evento-card-date {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(0,0,0,.10);
  color: #d71920;
  line-height: 1;
}

.evento-card-day {
  font-size: 1.55rem;
  font-weight: 800;
}

.evento-card-month {
  margin-top: 5px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.evento-card-summary {
  min-width: 0;
}

.evento-card-info {
  margin-top: .45rem;
  font-size: .68rem;
  color: #626b75;
  min-height: 1.9rem;
  overflow: hidden;
}

.evento-card-info i {
  color: #d71920;
}

.evento-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: .65rem;
}

/* Badge "Encerrado" */
.badge-encerrado {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-block;
  background-color: #dc3545;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Imagem em preto e branco quando encerrado */
.evento-card.encerrado .evento-thumb .fundo-blur {
  filter: grayscale(100%) brightness(75%) blur(18px);
  opacity: .9;
}

.evento-card.encerrado .evento-thumb::after {
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(0deg, rgba(0,0,0,.08), rgba(0,0,0,.08));
}

.evento-card.encerrado .evento-thumb img {
  filter: grayscale(100%) brightness(85%);
  opacity: .98;
}

/* Título em até 2 linhas */
.text-truncate-2{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Corpo */
.evento-card .card-body { padding: 1.4rem; }

/* Título do evento (melhorado) */
.evento-titulo {
  font-size: .9rem;
  font-weight: 900;
  color: #1f1f1f;
  line-height: 1.25;
  margin: 0;
}

/* Infos (data/local) */
.evento-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #555;
  line-height: 1.4;
}

.evento-info i {
  color: #d71920;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.evento-info span {
  display: block;
}

/* Botão */
.evento-card .btn-primary {
  background-color: #d71920;
  border-color: #d71920;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 0.375rem;
}

.evento-card .btn-primary:hover {
  background-color: #b4161c;
  border-color: #b4161c;
}


/* ==================================================
   PAGINACAO
================================================== */

.eventos-pagination .page-link {
  border: 0;
  color: #5b5b5b;
  font-weight: 700;
  border-radius: 10px;
  margin: 0 4px;
  min-width: 42px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.eventos-pagination .page-item.active .page-link {
  background-color: #d71920;
  color: #fff;
}

.eventos-pagination .page-item.disabled .page-link {
  color: #9b9b9b;
  box-shadow: none;
}


/* ==================================================
   FOOTER
================================================== */

.site-footer {
  background: #d8d8d8;
  color: #000;
  font-size: 14px;
  line-height: 21px;
  margin-top: 60px;
}

.site-footer a {
  color: #514a4a;
  text-decoration: none;
}

.site-footer a:hover {
  color: #b5151a;
  text-decoration: underline;
}

.footer-main {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 52px;
  padding: 40px 12px 26px;
}

.footer-side {
  max-width: 245px;
}

.footer-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0 0 18px;
  display: block;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.footer-social a {
  color: #514a4a;
  font-size: 1.35rem;
  line-height: 1;
}

.footer-buttons {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 225px;
  max-width: 100%;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 4px;
  color: #fff !important;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-pill:hover {
  color: #fff !important;
  text-decoration: none !important;
  filter: brightness(.95);
}

.footer-pill-whatsapp {
  background: #477656;
}

.footer-pill-email {
  background: #6a6a6a;
}

.footer-contact-block {
  margin-top: 24px;
}

.footer-contact-block h2,
.footer-menu h2 {
  color: #000;
  font-size: 18px;
  line-height: 21px;
  font-weight: 700;
  margin: 0 0 10px;
}

.footer-contact-block p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 21px;
}

.footer-phone {
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
}

.footer-contact-icons {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}

.footer-contact-icons a {
  color: #514a4a;
  font-size: 1.35rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 26px;
  padding-top: 2px;
}

.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-menu li {
  display: inline-block;
}

.footer-menu a {
  font-size: 14px;
  line-height: 21px;
}

.footer-copy {
  background: #d8d8d8;
  padding: 0 0 24px;
}

.footer-copy p {
  margin: 0;
  color: #000;
  font-size: 14px;
  line-height: 21px;
}

.footer-copy a {
  color: #b5151a;
}

@media (max-width: 991px) {
  .evento-destaque-overlay::before {
    top: -28px;
    height: calc(100% + 56px);
    transform: translateX(-50%);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-side {
    max-width: none;
  }

  .footer-logo {
    width: 180px;
  }

  .evento-destaque-body {
    padding: 1rem 1.15rem;
  }

  .evento-destaque-thumb,
  .evento-destaque-thumb img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 300px;
  }

  .evento-destaque-panel {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: calc(100% - 32px);
    max-width: 720px;
    min-height: 0;
    margin: -42px auto 0;
    padding: 20px 22px;
    grid-template-columns: 78px 1fr;
    gap: 18px;
  }
}

@media (max-width: 576px) {
  .footer-main {
    padding-top: 32px;
  }

  .footer-menu ul {
    flex-direction: column;
    gap: 6px;
  }

  .footer-copy p {
    font-size: .8rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .evento-destaque {
    border-radius: 0;
  }

  .evento-destaque-body {
    padding: 1rem;
  }

  .evento-destaque-thumb,
  .evento-destaque-thumb img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 240px;
  }

  .evento-destaque-panel {
    width: calc(100% - 24px);
    margin: -30px auto 0;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .evento-destaque-date {
    min-height: 62px;
  }

  .evento-destaque-day {
    font-size: 1.45rem;
  }

  .evento-destaque-month {
    font-size: .82rem;
  }

  .evento-destaque-panel .evento-destaque-titulo {
    font-size: .96rem;
  }

  .evento-destaque-actions {
    gap: 12px;
  }

  .evento-destaque-descricao {
    max-height: 4rem;
  }

  .badge-destaque,
  .badge-encerrado {
    font-size: 0.72rem;
  }
}
