/* eventos — ported from html-v2. */
:root {
  --capi-green:       #2D9773;
  --capi-dark-bar:    #032025;
  --capi-bg:          #000000;
  --capi-teal-accent: #4FBAAD;
  --capi-divider:     rgba(255,255,255,.45);
  --container-px:     14.4%;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: url(../../images/eventos/eventos.jpg) top center / 100% auto no-repeat var(--capi-bg);
  color: #fff;
  font-family: 'DIN Next LT Pro', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ── LOGIN BAR */
.login-bar {
  background: var(--capi-dark-bar);
  height: clamp(60px,5vw,90px);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: var(--container-px);
  position: relative; z-index: 2;
}
.login-btn {
  display: inline-flex; align-items: center; gap: clamp(10px,.9vw,18px);
  background: transparent; border: 0; color: #fff; cursor: pointer;
  font-family: inherit; font-size: clamp(14px,1.05vw,19px); font-weight: 400;
}
.login-btn__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(36px,2.78vw,50px); aspect-ratio: 1;
  background: var(--capi-green); border-radius: 4px;
}
.login-btn__icon img { width: 40%; height: auto; }

/* ── SITE HEADER */
.site-header {
  background: var(--capi-bg);
  padding: clamp(30px,3.98vw,72px) var(--container-px);
  display: flex; align-items: center;
}
.site-header .logo { width: clamp(200px,26.7vw,480px); height: auto; display: block; }

/* ── MENU */
.header-menu {
  background: var(--capi-green);
  padding: 0 var(--container-px);
  height: clamp(52px,5.22vw,94px);
  display: flex; align-items: center;
  position: relative; z-index: 2;
}
.header-menu ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(18px,3vw,56px);
}
.header-menu a {
  color: #fff; text-decoration: none; font-weight: 400;
  font-size: clamp(13px,1.06vw,19px); letter-spacing: .02em;
  transition: opacity .15s ease;
}
.header-menu a:hover { opacity: .75; }
.header-menu a.is-active { font-weight: 700; }

/* ── PAGE TITLE (pattern: white bold line + teal italic line) */
.page-title-block {
  padding: 9.227vw var(--container-px) 0;
}
.page-title-block .line1 {
  position: relative; display: block;
  font-size: 3.472vw; font-weight: 300; font-style: italic;
  color: #fff; line-height: 3.722vw; text-transform: uppercase;
}
.page-title-block .line1::before {
  content: ''; position: absolute; left: -14.4vw;
  top: calc(50% - 0.33vw); transform: translateY(-50%);
  width: 13.9vw; height: 0.167vw; background: #DBEEEA;
}
.page-title-block .line2 {
  display: flex; align-items: center;
  font-size: 3.472vw; font-weight: 400; font-style: italic;
  color: var(--capi-teal-accent); line-height: 3.722vw;
  padding-left: 3.389vw; text-transform: uppercase;
}
.page-title-block .line2::after {
  content: ''; display: block; flex: 1; height: 0.167vw;
  background: #DBEEEA; margin-left: 1.27vw; margin-top: -0.05vw;
  margin-right: calc(-1 * var(--container-px));
}

/* ── FOOTER */
.footer-capi {
  background: var(--capi-green); color: #fff;
  padding-top: clamp(36px,3.28vw,64px);
  padding-bottom: clamp(48px,4.22vw,80px);
  padding-left: 14.39%; padding-right: 11.28%;
}
.footer-capi .endereco-title {
  font-weight: 700; font-size: clamp(15px,1.37vw,22px); line-height: 1.25; margin-bottom: .35em;
}
.footer-capi .endereco-text {
  font-weight: 300; font-size: clamp(14px,1.18vw,19px); line-height: 1.45;
}
.footer-capi hr.endereco-divider {
  border: 0; border-top: 1px solid var(--capi-divider); margin: clamp(14px,1.4vw,24px) 0; opacity: 1;
}
.footer-capi .social-row { gap: clamp(10px,1.22vw,22px); }
.footer-capi .social-row a {
  display: inline-flex; width: clamp(30px,2.61vw,47px); aspect-ratio: 1; transition: transform .15s ease;
}
.footer-capi .social-row a:hover { transform: translateY(-2px); }
.footer-capi .social-row img { width: 100%; height: 100%; display: block; }
.footer-capi .logo-capi { max-width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
  :root { --container-px: 24px; }
  .header-menu ul { gap: 14px; }
  .header-menu a { font-size: 13px; }
  .footer-capi { padding: 32px 24px; }
}


/* ── EVENTOS — flow layout (image + text column). No absolute for content, so
   nothing overlaps however long the excerpt/title runs. */
.eventos-section {
  margin: 9.278vw var(--container-px) 0; padding-bottom: 5.056vw;
}
.evento-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 3vw;
  margin-bottom: clamp(40px,6vw,120px);
}
.evento-card__img { flex: 0 0 49%; display: block; }
.evento-card__img img { width: 100%; height: auto; display: block; }
.evento-card__body {
  flex: 1 1 42%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.evento-card__chip {
  align-self: flex-start;
  margin-left: -6vw;                 /* teal band kisses the image edge (design accent) */
  background: var(--capi-teal-accent);
  padding: clamp(12px, 1.6vw, 30px) clamp(14px, 2vw, 38px);
  color: #fff; font-weight: 700;
  font-size: clamp(15px, 1.756vw, 32px); line-height: 1.3;
  border-radius: 0 0 3.333vw 0;
  text-decoration: none;
}
.evento-card__chip:hover { color: #fff; text-decoration: underline; }
.evento-card__text { margin-top: clamp(12px, 1.8vw, 34px); }
.evento-card__excerpt,
.evento-card__date {
  font-size: clamp(13px, 1.55vw, 28px); line-height: 1.4;
  font-weight: 300; font-style: italic; color: #fff; margin: 0;
}
.evento-card__date { margin-top: clamp(8px, 1.4vw, 24px); }
.evento-card__divider {
  flex: 0 0 100%;
  height: 2px; border: 0; background: var(--capi-teal-accent);
  margin-top: 3vw;
}
/* Stack on narrow screens so the image + text don't get squeezed. */
@media (max-width: 768px) {
  .evento-card { flex-direction: column; }
  .evento-card__img { flex-basis: auto; width: 100%; }
  .evento-card__body { flex-basis: auto; width: 100%; }
  .evento-card__chip { margin-left: 0; }
}
.eventos-nav {
  display: flex; justify-content: center; gap: 4.222vw; margin-top: 3.611vw;
}
.eventos-nav button {
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.eventos-nav button img { width: 1.889vw; height: auto; display: block; }
