/* =====================================================
   autismo-guaratiba.css — VERSÃO ATUALIZADA
   Fonte: Fraunces (display) + DM Sans (corpo)
   ===================================================== */

:root {
  --bg: #f4f8fe;
  --surface: #ffffff;
  --text: #0f2742;
  --muted: rgba(15, 39, 66, 0.65);
  --line: rgba(15, 39, 66, 0.1);

  --primary: #2b66c7;
  --primary-2: #1f54b2;
  --primary-light: rgba(43, 102, 199, 0.1);
  --accent: #e8f0fd;
  --shadow: 0 14px 40px rgba(15, 39, 66, 0.1);
  --shadow-md: 0 4px 20px rgba(15, 39, 66, 0.08);

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --container: 1120px;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* =====================================================
   TOPBAR
   ===================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.brand__name img { width: 120px; height: 55px; object-fit: contain; }

/* Nav */
.nav { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px;
  margin: 5px auto; background: var(--text); border-radius: 3px;
}
.nav__list {
  list-style: none; display: flex; align-items: center;
  gap: 22px; margin: 0; padding: 0;
}
.nav__link {
  text-decoration: none; color: var(--muted);
  font-weight: 500; font-size: 14px; padding: 8px 2px;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); border-bottom-color: var(--primary); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; border-radius: var(--radius-md);
  padding: 11px 20px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  cursor: pointer; user-select: none; transition: all .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(43,102,199,.28);
}
.btn--primary:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn--outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--accent); }
.btn--ghost {
  background: transparent; color: var(--primary);
  border-color: rgba(43,102,199,.3); margin: 8px;
}
.btn--ghost:hover { border-color: var(--primary); background: var(--accent); }
.btn--lg { padding: 14px 26px; font-size: 15px; border-radius: var(--radius-lg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0));
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute;
  inset: -60px -40px auto -40px; height: 360px;
  background: radial-gradient(closest-side, rgba(43,102,199,.12), transparent 70%);
  filter: blur(40px); pointer-events: none;
}

.hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; padding: 80px 0 75px; align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--primary);
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  padding: 6px 14px; border-radius: 99px;
  margin-bottom: 20px; text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px); line-height: 1.05;
  letter-spacing: -.5px; margin: 0 0 20px; color: #163a5f;
  font-weight: 600;
}

.hero__subtitle {
  margin: 0 0 28px; font-size: 16px; color: var(--muted);
  max-width: 44ch; line-height: 1.7;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

/* Stats */
.hero__stats {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px; background: var(--surface);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); width: fit-content;
}
.stat { text-align: center; }
.stat__num {
  display: block; font-family: var(--font-display);
  font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1;
}
.stat__label { font-size: 11px; color: var(--muted); margin-top: 4px; display: block; }
.stat__divider { width: 1px; height: 36px; background: var(--line); }

/* Hero photo */
.photo {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(43,102,199,.15), rgba(43,102,199,.05)), #f0f6ff;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.photo__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1s ease;
}
.photo__img.active { opacity: 1; }
.photo__dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.photo__dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s;
}
.photo__dots span.active { background: white; transform: scale(1.2); }

/* A11y */
.a11y {
  position: fixed; right: 18px; top: 50%;
  transform: translateY(-50%); display: flex;
  flex-direction: column; gap: 8px; z-index: 40;
}
.a11y__btn {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.9);
  cursor: pointer; font-weight: 900; color: #2a4c7a;
  box-shadow: var(--shadow-md); transition: all .2s;
}
.a11y__btn:hover { background: #fff; transform: scale(1.05); }

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; background: var(--accent); color: var(--primary);
  font-size: 25px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 36px; border-radius: 40px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px);
  color: #1c3f66; margin: 0 0 12px; font-weight: 600;
}
.section-desc { color: var(--muted); font-size: 16px; max-width: 52ch; margin: 0 auto; }

/* =====================================================
   PILARES / CARDS
   ===================================================== */
.pilares {
  padding: 100px 0 80px;
  background:
    radial-gradient(1200px 420px at 50% 0%, rgba(43,102,199,.1), transparent 60%),
    linear-gradient(180deg, rgba(43,102,199,.06), rgba(43,102,199,0));
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--surface); border: 1px solid rgba(15,39,66,.07);
  border-radius: var(--radius-xl); padding: 32px 26px 24px;
  box-shadow: var(--shadow-md); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15,39,66,.13); }

.card--featured {
  background: linear-gradient(135deg, #1a4fa8, #2b66c7);
  border-color: transparent; color: #fff;
}
.card--featured .card__title,
.card--featured .card__text { color: #fff; }
.card--featured .card__icon { background: rgba(255,255,255,.2); color: #fff; }
.card--featured .card__tag { background: rgba(255,255,255,.2); color: #fff; }

.card__icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary);
  margin: 0 auto 18px;
}
.card__icon svg { width: 30px; height: 30px; }
.card__title {
  text-align: center; margin: 0 0 10px; font-size: 18px;
  color: #173a60; font-weight: 600; font-family: var(--font-display);
}
.card__text { text-align: center; margin: 0 0 20px; color: var(--muted); font-size: 14px; flex: 1; }
.card__footer { margin-top: auto; display: flex; justify-content: center; }
.card__tag {
  background: var(--accent); color: var(--primary); font-size: 11px;
  font-weight: 600; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: .5px;
}

.pilares__cta {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin-top: 56px; flex-wrap: wrap;
}

/* =====================================================
   STRIP / CONTATO
   ===================================================== */
.strip {
  padding: 100px 0 60px;
  background: #fff;
  border-top: 1px solid rgba(15,39,66,.06);
}
.strip__inner {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.strip__title {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px);
  font-weight: 600; color: #173a60; margin: 0; text-align: center;
}

/* Contato grid */
.contato-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 48px; align-items: start; width: 100%; max-width: 900px;
}
.contato-info { display: flex; flex-direction: column; gap: 16px; }
.contato-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; background: var(--bg);
  border-radius: var(--radius-md); border: 1px solid var(--line);
}
.contato-icon { font-size: 22px; line-height: 1; }
.contato-card strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.contato-card span, .contato-card a {
  font-size: 13px; color: var(--muted); text-decoration: none;
}
.contato-card a:hover { color: var(--primary); text-decoration: underline; }

/* Form */
.form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; width: 100%;
}
.form__group {
  position: relative; display: flex; flex-direction: column;
}
.form__group--full { grid-column: span 2; }
.form__group label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  color: var(--muted); letter-spacing: .8px; margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.form__group input,
.form__group textarea {
  padding: 12px 14px; font-size: 14px; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--bg); outline: none; transition: border-color .2s;
  color: var(--text); resize: vertical;
}
.form__group input:focus,
.form__group textarea:focus { border-color: var(--primary); background: #fff; }
.form__msg { margin: 0; font-size: 13px; }

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10, 25, 50, 0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.is-open {
  opacity: 1; pointer-events: auto;
}

.modal {
  background: var(--surface); border-radius: 24px;
  width: 100%; max-width: 600px; max-height: 92vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 80px rgba(10,25,50,.3);
  padding: 36px 40px 28px;
  transform: translateY(24px) scale(.97);
  transition: transform .3s;
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute; top: 18px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; font-size: 20px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; line-height: 1;
}
.modal__close:hover { background: #fee; color: #c00; border-color: #fcc; }

.modal__header {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px;
}
.modal__icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--accent); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.modal__icon svg { width: 26px; height: 26px; }
.modal__title {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 600; color: #163a5f; margin: 0 0 6px;
}
.modal__subtitle { font-size: 13px; color: var(--muted); margin: 0; }

/* Progress steps */
.modal__progress { margin-bottom: 28px; }
.progress__steps {
  display: flex; align-items: center; gap: 0;
}
.progress__step {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex: 1;
}
.step__num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: all .3s;
}
.progress__step.active .step__num,
.progress__step.done .step__num {
  background: var(--primary); color: #fff;
}
.step__label { font-size: 11px; font-weight: 500; color: var(--muted); }
.progress__step.active .step__label { color: var(--primary); font-weight: 600; }
.progress__line {
  flex: 2; height: 2px; background: var(--line);
  margin-bottom: 22px; transition: background .3s;
}
.progress__line.done { background: var(--primary); }

/* Form steps */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeSlideUp .3s ease; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step__title {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 600; color: var(--text); margin: 0 0 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: span 2; }

.field__label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
}
.field__input {
  padding: 11px 14px; font-size: 14px; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--bg); outline: none; transition: border-color .2s, background .2s;
  color: var(--text); width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field__input:focus { border-color: var(--primary); background: #fff; }
.field__input.is-invalid { border-color: #e53935; }
.field__error { font-size: 11px; color: #e53935; min-height: 16px; }

.field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f2742' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}

.step-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
}
.btn--step { min-width: 120px; }

/* Success */
.success-screen {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 20px 0;
}
.success-icon {
  width: 80px; height: 80px; color: #22c55e;
  margin-bottom: 20px;
}
.success-icon svg { width: 100%; height: 100%; }
.success-title {
  font-family: var(--font-display); font-size: 24px;
  font-weight: 600; color: var(--text); margin: 0 0 12px;
}
.success-text {
  font-size: 15px; color: var(--muted); max-width: 38ch;
  margin: 0 0 28px; line-height: 1.7;
}

.modal__privacy {
  font-size: 11px; color: var(--muted); text-align: center;
  margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  padding: 24px 0; border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; color: var(--muted); font-size: 13px;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  flex-wrap: wrap;
}
.footer__logo { height: 36px; width: auto; object-fit: contain; }
.footer__links { display: flex; gap: 16px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer__links a:hover { color: var(--primary); }

/* =====================================================
   ACCESSIBILITY STATES
   ===================================================== */
body.is-contrast {
  --bg: #0a0f18; --surface: #101a2b;
  --text: #f6fbff; --muted: rgba(246,251,255,.78);
  --line: rgba(246,251,255,.18); --primary: #4a8dff;
  --primary-2: #2f73ea; --shadow: 0 16px 44px rgba(0,0,0,.55);
  --accent: rgba(74,141,255,.15);
}
body.is-bigfont { font-size: 112%; }

/* =====================================================
   LOADING STATE
   ===================================================== */
.btn--submit[disabled] {
  opacity: .7; pointer-events: none; cursor: not-allowed;
}
/* =====================================================
   MODAL — largura ampliada para o formulário extenso
   ===================================================== */
.modal { max-width: 680px; }

/* =====================================================
   RADIO GROUPS
   ===================================================== */
.radio-group {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px;
}
.radio-group--col { flex-direction: column; gap: 8px; }

.radio-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--line); background: var(--bg);
  cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text); transition: all .18s; user-select: none;
}
.radio-opt:hover { border-color: var(--primary); background: var(--accent); }
.radio-opt input[type="radio"] { accent-color: var(--primary); width: 15px; height: 15px; }
.radio-opt:has(input:checked) {
  border-color: var(--primary); background: var(--accent);
  color: var(--primary); font-weight: 600;
}

/* =====================================================
   CHECKBOX GROUPS
   ===================================================== */
.check-group {
  display: flex; flex-direction: column; gap: 8px; margin-top: 6px;
}
.check-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--line); background: var(--bg);
  cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text); transition: all .18s; user-select: none;
}
.check-opt:hover { border-color: var(--primary); background: var(--accent); }
.check-opt input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; flex-shrink: 0; }
.check-opt:has(input:checked) {
  border-color: var(--primary); background: var(--accent);
  color: var(--primary); font-weight: 600;
}
.check-opt--other { flex-wrap: wrap; align-items: center; }
.field__input--inline {
  border: none; border-bottom: 1.5px solid var(--line);
  border-radius: 0; background: transparent; padding: 2px 6px;
  font-size: 13px; width: 160px; outline: none;
  font-family: var(--font-body); color: var(--text);
}
.field__input--inline:focus { border-bottom-color: var(--primary); }

/* Checkbox inline (ex: "É WhatsApp") */
.check-inline {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.check-inline input { accent-color: var(--primary); width: 15px; height: 15px; }

/* =====================================================
   LGPD BOX
   ===================================================== */
.lgpd-box {
  background: #f0f5ff; border: 1.5px solid rgba(43,102,199,.25);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-top: 4px;
}
.lgpd-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #163a5f;
  margin-bottom: 12px;
}
.lgpd-header svg { color: var(--primary); flex-shrink: 0; }
.lgpd-intro { font-size: 13px; color: var(--text); margin: 0 0 10px; line-height: 1.6; }
.lgpd-list {
  font-size: 13px; color: var(--text); margin: 0 0 12px;
  padding-left: 20px; line-height: 1.8;
}
.lgpd-footer-text {
  font-size: 12px; color: var(--muted); margin: 0 0 16px; line-height: 1.6;
}
.lgpd-footer-text a { color: var(--primary); text-decoration: underline; }
.lgpd-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--text);
  cursor: pointer; line-height: 1.5;
}
.lgpd-check input { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.lgpd-check.is-invalid-lgpd { outline: 2px solid #e53935; border-radius: 4px; padding: 4px; }

/* Campos condicionais */
.cond-field { animation: fadeSlideUp .25s ease; }
/* =====================================================
   GALERIA DE EVENTOS
   ===================================================== */
.galeria {
  padding: 80px 0 90px;
  background: var(--bg);
}

/* Filtros */
.galeria__filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.galeria__filtro {
  padding: 9px 22px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.galeria__filtro:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent);
}

.galeria__filtro.ativo {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 102, 199, .28);
}

/* Grid */
.galeria__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.galeria__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s;
}

.galeria__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.galeria__item:hover img {
  transform: scale(1.06);
}

/* Placeholder quando imagem não carrega */
.galeria__item img[src=""],
.galeria__item img:not([src]) {
  background: linear-gradient(135deg, var(--accent), rgba(43,102,199,.08));
}

.galeria__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 58, 95, .72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.galeria__item:hover .galeria__overlay {
  opacity: 1;
}

.galeria__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #fff;
  background: var(--primary);
  padding: 4px 10px;
  border-radius: 99px;
}

/* Item oculto pelo filtro */
.galeria__item.is-hidden {
  display: none;
}

/* Lightbox */
.galeria__lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 20, 40, .96);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  animation: fadeIn .2s ease;
}

.galeria__lightbox.is-open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__img-wrap {
  max-width: min(900px, 90vw);
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 36px;
  line-height: 1;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s, transform .2s;
  z-index: 201;
}

.lightbox__close:hover { opacity: 1; transform: scale(1.15); }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 52px;
  line-height: 1;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 201;
}

.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

.lightbox__caption {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-align: center;
  margin: 0;
  max-width: 500px;
}