/* galeria — ported from html-v2 (.g-* absolute layout). */
: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: 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);
  /* PSD-matched: padding-bottom trimmed so menu bar lands at y372 (was ~85px) */
  padding: clamp(36px,4.7vw,85px) var(--container-px) clamp(24px,3.22vw,58px);
  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 (PSD-matched: white italic + teal bold-italic, y636) */
.page-title-block {
  padding: 0;
  margin-top: 9.5vw;
}
.page-title-block .line1 {
  display: flex; align-items: center; gap: .78vw; height: 3.72vw;
  font-size: 3.44vw; font-weight: 300; font-style: italic;
  letter-spacing: .02em; text-transform: uppercase;
  color: #fff; line-height: 1;
}
.page-title-block .line1::before {
  content: '';
  display: block; width: 13.89vw; height: 1px;
  background: #dbefea; flex-shrink: 0;
}
.page-title-block .line2 {
  display: flex; align-items: center; gap: .78vw; height: 3.72vw;
  font-size: 3.44vw; font-weight: 700; font-style: italic;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--capi-teal-accent); line-height: 1;
  padding-left: 18vw;
}
.page-title-block .line2::after {
  content: '';
  display: block; flex: 1; height: 1px; background: #dbefea;
}

/* ── 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; }
}


/* ── GALLERY — slider (PSD layout): one contained featured image + arrows,
   caption, and a thumbnail strip. The featured image is height-capped and
   object-fit:contain so it never blows out, whatever the source aspect ratio. */
.galeria-section {
  padding: clamp(28px,4vw,80px) var(--container-px) clamp(48px,6vw,120px);
}
.galeria-stage {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px,1.5vw,32px);
}
.galeria-featured {
  position: relative;
  flex: 0 1 auto; min-width: 0; max-width: min(72vw, 900px);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
}
.galeria-featured__img {
  display: block; max-width: 100%;
  max-height: clamp(340px, 50vw, 820px);
  width: auto; height: auto; margin: 0 auto;
  object-fit: contain;
}
/* zoom hint on hover */
.galeria-featured__zoom {
  position: absolute; right: clamp(10px,1vw,20px); bottom: clamp(10px,1vw,20px);
  width: clamp(32px,2.6vw,48px); height: clamp(32px,2.6vw,48px);
  border-radius: 50%; background: rgba(3,32,37,.7);
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3M11 8v6M8 11h6'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 55%;
}
.galeria-featured:hover .galeria-featured__zoom { opacity: 1; }
.galeria-arrow {
  flex: 0 0 auto;
  background: transparent; border: 0; cursor: pointer;
  color: var(--capi-teal-accent);
  font-size: clamp(32px,3.5vw,64px); line-height: 1;
  padding: .2em .3em; transition: opacity .15s ease;
}
.galeria-arrow:hover { opacity: .65; }
.galeria-caption {
  margin: clamp(16px,2vw,36px) auto 0; max-width: 70ch;
  text-align: center;
  font-size: clamp(12px,.95vw,17px); font-weight: 300; font-style: italic;
  line-height: 1.5; color: var(--capi-teal-accent);
}
.galeria-caption__author { color: #fff; }
/* PSD: single edge-to-edge strip of square thumbs (v2 .g-thumb bleeds both
   viewport edges) — full-bleed out of the section padding, one row, thumbs
   share the width equally. */
.galeria-thumbs {
  display: flex; flex-wrap: nowrap;
  gap: clamp(4px,.5vw,10px);
  margin-top: clamp(24px,3vw,56px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.galeria-thumb {
  flex: 1 1 0; min-width: 0;
  aspect-ratio: 1;
  padding: 0; border: 0; cursor: pointer;
  overflow: hidden; background: #0b1a1a;
  outline-offset: -3px;
}
.galeria-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease, opacity .2s ease; opacity: .7;
}
.galeria-thumb:hover img { transform: scale(1.05); opacity: 1; }
.galeria-thumb.is-active img { opacity: 1; }
.galeria-thumb.is-active { outline: 3px solid var(--capi-teal-accent); }
@media (max-width: 768px) {
  /* narrow screens: give up the single row, wrap centered inside the container */
  .galeria-thumbs { flex-wrap: wrap; justify-content: center; width: auto; margin-left: 0; }
  .galeria-thumb { flex: 0 0 auto; width: clamp(70px,26vw,120px); }
}
