/* =====================================================================
   Thiago & Gabi — estilos
   Paleta e tipografia tiradas do convite: papel off-white, verde-oliva,
   filetes dourados, serifas clássicas e caixa-alta espaçada.
   ===================================================================== */

:root {
  --paper: #f8f5ef;
  --paper-2: #f1ece1;
  --white: #fffdf9;
  --olive: #5b6136;
  --olive-dark: #434927;
  --olive-soft: #8b916a;
  --gold: #b58e46;
  --gold-soft: #d9c08e;
  --ink: #37352d;
  --muted: #625f52;
  --line: #e2dccd;
  --danger: #9b3b2e;

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "EB Garamond", Georgia, serif;
  --f-caps: "Marcellus", "Cormorant Garamond", serif;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(67, 73, 39, .25);
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--olive-dark); }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--olive); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 8px; }

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  font-family: var(--f-caps);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  color: var(--gold);
  margin: 0 0 .5rem;
}
.title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 8vw, 3.4rem);
  line-height: 1.05;
  color: var(--olive);
  margin: 0;
}
.rule {
  display: block; width: 64px; height: 1px; background: var(--gold);
  margin: 1.2rem auto;
}
.lead {
  font-family: var(--f-caps);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .95rem;
  color: var(--ink);
  margin: 0 0 2rem;
}
.lead--body {
  font-family: var(--f-display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.3rem;
  max-width: 34rem; margin-inline: auto;
}
.small { font-size: .95rem; color: var(--muted); }

/* ---------- layout ---------- */
.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; text-align: center; }
.narrow { width: min(640px, 100% - 2.5rem); }
.section { position: relative; padding: 4.5rem 0; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section--paper { background: var(--paper); }

.corner {
  position: absolute; width: 220px; height: 170px; color: var(--olive-soft);
  opacity: .55; pointer-events: none;
}
.corner--tl { top: -6px; left: -6px; }
.corner--br { bottom: -6px; right: -6px; transform: rotate(180deg); }

/* ---------- botões ---------- */
.btn {
  --bg: transparent; --fg: var(--olive-dark); --bd: var(--olive);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font-family: var(--f-caps); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .15s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { --bg: var(--olive); --fg: #fff; --bd: var(--olive); }
.btn--primary:hover { --bg: var(--olive-dark); }
.btn--ghost:hover { --bg: var(--olive); --fg: #fff; }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .75rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.linkish {
  background: none; border: 0; padding: .5rem; margin-top: .5rem;
  font: inherit; font-size: .95rem; color: var(--muted); text-decoration: underline; cursor: pointer;
}

/* ---------- menu fixo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; padding-top: env(safe-area-inset-top);
  background: rgba(248, 245, 239, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.topbar.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px -14px rgba(0,0,0,.4); }
.topbar__logo {
  font-family: var(--f-display); font-size: 1.6rem; color: var(--olive);
  text-decoration: none; letter-spacing: .04em;
}
.topbar__logo span { color: var(--gold); font-style: italic; margin: 0 .1em; }
.topbar__toggle {
  width: 48px; height: 48px; display: grid; place-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
}
.topbar__toggle span { display: block; width: 24px; height: 1.5px; background: var(--olive-dark); transition: transform .25s, opacity .25s; }
.topbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.topbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.topbar__nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column;
  background: var(--paper); border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.topbar__nav.is-open { max-height: 320px; }
.topbar__nav a {
  padding: 1rem 1.25rem; text-decoration: none; color: var(--ink);
  font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem;
  border-top: 1px solid var(--line);
}
.topbar__nav a.is-active { color: var(--gold); }

@media (min-width: 860px) {
  .topbar { padding: 0 2rem; }
  .topbar__toggle { display: none; }
  .topbar__nav {
    position: static; flex-direction: row; gap: .25rem; max-height: none;
    background: none; border: 0; overflow: visible;
  }
  .topbar__nav a { border: 0; padding: .6rem .9rem; font-size: .75rem; }
  .topbar__nav a:hover { color: var(--gold); }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--paper); }
.hero__photo { margin: 0; height: 64svh; min-height: 380px; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__card {
  position: relative; z-index: 2;
  width: min(560px, 100% - 1.5rem);
  margin: -4.5rem auto 0;
  padding: .6rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.frame {
  border: 1px solid var(--olive-soft);
  padding: 2rem 1.25rem 1.75rem;
  text-align: center;
}
.monogram {
  display: flex; align-items: center; justify-content: center; gap: .15rem;
  font-family: var(--f-display); font-size: 4.2rem; line-height: 1; color: var(--olive);
}
.monogram__sprig { width: 28px; height: 70px; color: var(--olive-soft); }
.names {
  font-family: var(--f-caps); font-weight: 400;
  text-transform: uppercase; letter-spacing: .24em;
  font-size: clamp(1rem, 4.4vw, 1.5rem);
  color: var(--ink); margin: .9rem 0 0;
  padding-left: .3em; /* compensa o letter-spacing para centralizar */
}
.names .amp { font-family: var(--f-display); font-style: italic; color: var(--gold); letter-spacing: 0; margin: 0 .2em; }
.date {
  font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .14em;
  font-size: .95rem; margin: 0;
}
@media (max-width: 420px) { .date { letter-spacing: .06em; font-size: .88rem; } }
.date-sub { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; margin: .2rem 0 0; color: var(--muted); }

.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  margin: 1.6rem 0 1.5rem;
}
.countdown div {
  display: flex; flex-direction: column; align-items: center;
  padding: .6rem 0 .5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.countdown strong { font-family: var(--f-display); font-weight: 500; font-size: 2rem; line-height: 1; color: var(--olive); font-variant-numeric: tabular-nums; }
.countdown small { font-family: var(--f-caps); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.countdown.is-done { display: block; font-family: var(--f-display); font-style: italic; font-size: 1.5rem; color: var(--olive); border: 0; }

.cta { display: grid; gap: .7rem; }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100svh; }
  .hero__photo { height: auto; min-height: 100svh; }
  .hero__card { align-self: center; margin: 0 auto; width: min(500px, 100% - 4rem); margin-top: var(--header-h); }
  .monogram { font-size: 5rem; }
}

/* ---------- história + galeria ---------- */
.story p {
  font-family: var(--f-display); font-style: italic;
  font-size: 1.3rem; line-height: 1.6; margin: 0 0 1.1rem;
}
.story p:last-child { font-family: var(--f-caps); font-style: normal; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--olive); margin-top: 1.6rem; }
.gallery {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem;
}
.gallery li { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; }
.gallery li.wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.04); }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: .8rem; }
  .gallery li { aspect-ratio: auto; }
  .gallery li:nth-child(1) { grid-row: span 2; }
  .gallery li:nth-child(2) { grid-row: span 2; }
  .gallery li.wide { grid-column: span 2; aspect-ratio: auto; }
}

/* ---------- locais ---------- */
.places { display: grid; gap: 1.5rem; text-align: left; }
@media (min-width: 860px) { .places { grid-template-columns: 1fr 1fr; } }
.place {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.place__body { padding: 1.5rem 1.4rem 1.2rem; }
.place__type { display: flex; align-items: center; gap: .6rem; }
.place__type svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.place h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.65rem; line-height: 1.15; color: var(--olive); margin: .6rem 0 .4rem; }
.place__meta { margin: 0; color: var(--muted); }
.place__time { font-family: var(--f-caps); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--ink); margin: .7rem 0 0; }
.place__map { aspect-ratio: 16 / 10; background: var(--paper-2); border-top: 1px solid var(--line); }
.place__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.place__map .map-load {
  width: 100%; height: 100%; border: 0; background: var(--paper-2); cursor: pointer;
  font-family: var(--f-caps); letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; color: var(--olive-dark);
}
.place__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: 1rem 1.4rem 1.4rem; }

.dress {
  display: inline-flex; align-items: center; gap: 1rem;
  margin: 2.5rem auto 0; padding: 1rem 1.75rem;
  border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft);
}
.dress__sprig { width: 22px; height: 52px; color: var(--olive-soft); }
.dress .eyebrow { margin: 0; text-align: left; }
.dress__value { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 1.5rem; color: var(--olive); text-align: left; }
.calendar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.8rem; }

/* ---------- RSVP ---------- */
.deadline {
  display: inline-block; margin: 0 0 1.5rem; padding: .5rem 1.1rem;
  background: var(--white); border: 1px solid var(--gold-soft); border-radius: 999px;
}
.deadline strong { color: var(--olive-dark); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: left;
}
.form-card { padding: 1.6rem 1.25rem; }
@media (min-width: 600px) { .form-card { padding: 2.2rem; } }

.field { margin: 0 0 1.2rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend {
  display: block; margin-bottom: .4rem; padding: 0;
  font-family: var(--f-caps); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-dark);
}
.req { color: var(--gold); }
.opt { text-transform: none; letter-spacing: 0; font-family: var(--f-body); color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--paper); border: 1px solid #cfc8b6; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6136' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(91, 97, 54, .18); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error { margin: .3rem 0 0; font-size: .95rem; color: var(--danger); min-height: 0; }
.error:empty { display: none; }

.choice { display: grid; gap: .6rem; }
@media (min-width: 520px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice label {
  position: relative; display: flex; align-items: center; min-height: 52px; margin: 0;
  padding: .7rem 1rem .7rem 2.8rem; border: 1px solid #cfc8b6; border-radius: 10px; background: var(--paper);
  font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: var(--ink); cursor: pointer;
}
.choice input { position: absolute; left: 1rem; width: 20px; height: 20px; accent-color: var(--olive); margin: 0; }
.choice label:has(input:checked) { border-color: var(--olive); background: #eef0e2; }

.companions { padding: 1rem; margin: 0 0 1.2rem; background: var(--paper); border-radius: 10px; border: 1px dashed var(--gold-soft); }
.companions .field:last-child { margin-bottom: 0; }
.companions input, .companions select { background: var(--white); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { text-align: center; margin: .7rem 0 0; }
.thanks .btn + .btn { margin-left: .4rem; }
.form-status { margin: .8rem 0 0; text-align: center; font-size: 1rem; }
.form-status.is-error { color: var(--danger); }

.thanks, .closed { text-align: center; padding: 1rem .5rem; }
.thanks:focus { outline: none; }
.thanks h3, .closed h3 { font-family: var(--f-display); font-weight: 500; font-size: 2rem; color: var(--olive); margin: .5rem 0; }
.thanks__sprig { width: 26px; height: 60px; color: var(--olive-soft); margin: 0 auto; display: block; }
.thanks .btn { margin-top: .6rem; }

/* ---------- presentes ---------- */
.gifts {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.2rem; text-align: left;
}
@media (min-width: 680px) { .gifts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gifts { grid-template-columns: repeat(3, 1fr); } }
.gift {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: transform .2s, box-shadow .2s;
}
.gift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gift__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--gold-soft); color: var(--olive);
}
.gift__icon svg { width: 26px; height: 26px; }
.gift__art {
  margin: -1.5rem -1.4rem 0; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.gift__art svg { width: 100%; height: 100%; display: block; }
.gift.is-soldout .gift__art { filter: grayscale(.8); }
.gift h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; color: var(--olive); margin: 1rem 0 .4rem; }
.gift p { margin: 0 0 1.2rem; color: var(--ink); flex: 1; }
.gift__price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.gift__value { font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; color: var(--olive-dark); line-height: 1; }
.gift__value small { font-family: var(--f-caps); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-left: .3rem; }
.gift__left { font-size: .95rem; color: var(--muted); text-align: right; }
.gift__bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 1.1rem; }
.gift__bar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.gift__badge {
  position: absolute; top: .8rem; right: .8rem; z-index: 1;
  font-family: var(--f-caps); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: var(--olive); color: #fff;
}
.gift.is-soldout { opacity: .7; }
.gift.is-soldout .gift__badge { background: var(--muted); }
.gift.is-soldout:hover { transform: none; box-shadow: none; }

.pix {
  display: grid; gap: 1.5rem; align-items: center;
  margin-top: 2.5rem; padding: 1.6rem 1.4rem;
}
@media (min-width: 720px) { .pix { grid-template-columns: 220px 1fr; padding: 2rem 2.2rem; } }
.pix__qr {
  width: 200px; aspect-ratio: 1; margin: 0 auto; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center;
}
.pix__qr svg, .pix__qr img { width: 100%; height: 100%; }
.pix__qr--modal { width: 220px; margin: 1rem auto; }
.pix h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; color: var(--olive); margin: 0 0 .8rem; }
.pix__intro { margin: 0 0 1.1rem; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; line-height: 1.5; }
.pix dl { margin: 0 0 1rem; display: grid; gap: .5rem; }
.pix dl div { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; align-items: baseline; }
.pix dt { font-family: var(--f-caps); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pix dd { margin: 0; word-break: break-all; font-size: 1.05rem; }
.pix__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.pix__actions--center { justify-content: center; }
.pix .small { margin: .8rem 0 0; }
.pix__steps { margin: 1.1rem 0 0; padding-left: 1.2rem; font-size: 1rem; color: var(--muted); }
.pix__steps li { margin-bottom: .4rem; }
.pix__steps strong { color: var(--ink); font-weight: 500; }

/* ---------- rodapé ---------- */
.footer {
  background: var(--olive-dark); color: #f1eedf; text-align: center;
  padding: 3.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom));
}
.footer__sprig { width: 26px; height: 60px; color: var(--gold-soft); margin: 0 auto 1rem; display: block; }
.footer__love { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; margin: 0; }
.footer__names { font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .22em; font-size: clamp(1rem, 4.6vw, 1.3rem); margin: .3rem 0; padding-left: .3em; }
.footer__date { font-family: var(--f-caps); letter-spacing: .3em; color: var(--gold-soft); margin: 0 0 1.5rem; }
.footer__contact { margin: 0; font-size: 1rem; }
.footer a { color: #fff; }

/* ---------- modais ---------- */
dialog { border: 0; padding: 0; }
.modal {
  width: min(440px, 100% - 1.5rem); max-height: calc(100svh - 2rem); overflow: auto;
  padding: 2rem 1.4rem 1.5rem; border-radius: var(--radius);
  background: var(--white); color: var(--ink); text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.modal::backdrop { background: rgba(43, 45, 30, .55); backdrop-filter: blur(3px); }
.modal h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.8rem; color: var(--olive); margin: .2rem 0 .3rem; line-height: 1.15; }
.modal__value { font-family: var(--f-display); font-size: 2.2rem; color: var(--olive-dark); margin: 0; }
.modal__close {
  position: absolute; top: .4rem; right: .5rem; width: 44px; height: 44px;
  background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal form { text-align: left; margin-top: 1rem; }
.gm-done { margin-top: 1.2rem; }

.lightbox {
  width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0;
  background: rgba(20, 21, 14, .94); display: none; place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(20, 21, 14, .94); }
.lightbox img { max-width: 94vw; max-height: 86svh; object-fit: contain; border-radius: 4px; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: .75rem; top: 50%; transform: translateY(-50%); }

.toast {
  position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 150%); opacity: 0;
  background: var(--olive-dark); color: #fff; padding: .8rem 1.3rem; border-radius: 999px;
  font-size: 1rem; box-shadow: var(--shadow); transition: transform .3s, opacity .3s; pointer-events: none;
  max-width: calc(100% - 2rem); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- animação suave de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
