:root {
  --bg: #f7f3ec;
  --bg-alt: #efe8dc;
  --text: #29241f;
  --muted: #6f655a;
  --accent: #1f3d63;
  --accent-soft: rgba(31, 61, 99, .08);
  --line: rgba(60, 45, 30, .12);
  --card: #fffdf9;
  --shadow-sm: 0 1px 2px rgba(60, 45, 30, .06), 0 2px 8px rgba(60, 45, 30, .06);
  --shadow: 0 2px 4px rgba(60, 45, 30, .06), 0 12px 32px rgba(60, 45, 30, .12);
  --overlay: rgba(18, 15, 12, .95);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131417;
    --bg-alt: #1a1b1f;
    --text: #ede6db;
    --muted: #a49b8f;
    --accent: #a8c6ea;
    --accent-soft: rgba(168, 198, 234, .08);
    --line: rgba(255, 255, 255, .08);
    --card: #1d1e23;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .45);
    --overlay: rgba(6, 6, 8, .97);
    --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131417;
  --bg-alt: #1a1b1f;
  --text: #ede6db;
  --muted: #a49b8f;
  --accent: #a8c6ea;
  --accent-soft: rgba(168, 198, 234, .08);
  --line: rgba(255, 255, 255, .08);
  --card: #1d1e23;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .45);
  --overlay: rgba(6, 6, 8, .97);
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--grao);
  color: var(--text);
  font: 400 1.0625rem/1.75 "Source Serif 4", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 10;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topo.rolou {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.marca { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.assinatura {
  display: inline-block; width: 92px; height: 33px; background: currentColor;
  -webkit-mask: url(assinatura.png) center / contain no-repeat; mask: url(assinatura.png) center / contain no-repeat;
}
.marca-nome { font: 500 .8rem/1.2 var(--sans); letter-spacing: .04em; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 900px) { .marca-nome { display: none; } }
.assinatura-rodape { display: block; width: 160px; height: 57px; margin: 4px auto 28px; color: var(--accent); }
.acoes { display: flex; gap: 8px; align-items: center; }
.acoes nav { display: flex; gap: 4px; margin-right: 8px; }
.acoes nav a {
  color: var(--muted); text-decoration: none; font: 500 .875rem/1 var(--sans);
  padding: 10px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.acoes nav a:hover { color: var(--text); background: var(--accent-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--text);
  font: 500 .85rem/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s, background .2s;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.icone-sol { display: none; }
:root[data-theme="dark"] .icone-sol { display: block; }
:root[data-theme="dark"] .icone-lua { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icone-sol { display: block; }
  :root:not([data-theme="light"]) .icone-lua { display: none; }
}
@media (max-width: 680px) { .acoes nav { display: none; } }

/* ---------- abertura ---------- */
.abertura {
  position: relative;
  padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 50% at 85% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(196, 160, 110, .10), transparent 70%);
}
.abertura .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.arco { margin: 0; position: relative; max-width: 440px; }
/* arco no topo: lembra janela de igreja, sem ser literal */
.arco img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%;
  border-radius: 999px 999px 10px 10px;
  background: var(--cor);
  box-shadow: var(--shadow);
}
.arco::after {
  content: ""; position: absolute; inset: -14px; z-index: -1;
  border: 1px solid var(--line); border-radius: 999px 999px 18px 18px;
}
.sobretitulo {
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 20px;
}
h1 {
  font: 500 clamp(2.8rem, 7vw, 5rem)/.98 var(--display);
  margin: 0 0 14px; letter-spacing: -.015em;
}
.sobrenome { display: block; color: color-mix(in srgb, var(--text) 78%, var(--accent)); }
.memoriam { font: italic 400 1.35rem/1.4 var(--display); color: var(--muted); margin: 0 0 36px; }
blockquote {
  margin: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent);
  font: italic 400 clamp(1.3rem, 2.3vw, 1.6rem)/1.5 var(--display);
}
blockquote p { margin: 0; }
blockquote footer { margin-top: 14px; font: normal 500 .85rem/1.4 var(--sans); color: var(--muted); }
.rolar {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 40px;
  font: 500 .85rem/1 var(--sans); color: var(--muted); text-decoration: none;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.rolar:hover { color: var(--text); border-color: var(--muted); }
.rolar span { transition: transform .2s; }
.rolar:hover span { transform: translateY(3px); }
@media (max-width: 760px) {
  .abertura .wrap { grid-template-columns: 1fr; gap: 36px; }
  .arco { max-width: 300px; margin-inline: auto; }
  .abertura-texto { text-align: center; }
  blockquote { border-left: 0; padding: 0; }
  blockquote::before { content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin: 0 auto 18px; }
}

/* ---------- faixa panorâmica ---------- */
.panorama { height: clamp(180px, 32vw, 380px); overflow: hidden; background: var(--cor); }
.panorama img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* ---------- seções ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
h2 {
  font: 500 clamp(2.2rem, 4.6vw, 3.2rem)/1.05 var(--display);
  margin: 0 0 28px; letter-spacing: -.01em;
}
.sobre { background: var(--grao), var(--bg-alt); }
.sobre .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.texto p { margin: 0 0 1.25em; max-width: 62ch; }
.texto p:first-of-type::first-letter {
  float: left; font: 500 4em/.78 var(--display);
  padding: .06em .1em 0 0; color: var(--accent);
}
.destaque { margin: 0; position: sticky; top: 96px; }
.destaque a { display: block; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.destaque img { cursor: zoom-in; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.destaque a:hover img { transform: scale(1.03); }
.destaque figcaption {
  margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--line);
  font-size: .95rem; color: var(--muted); line-height: 1.55; font-style: italic;
}
@media (max-width: 900px) {
  .sobre .wrap { grid-template-columns: 1fr; }
  .destaque { position: static; max-width: 520px; }
}

/* ---------- galeria (linhas justificadas) ---------- */
.galeria-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 36px; }
.galeria-topo h2 { margin-bottom: 8px; }
.dica { color: var(--muted); margin: 0; font: 400 .9rem/1.5 var(--sans); }
.btn-apresentacao { height: 44px; padding: 0 20px; background: var(--text); color: var(--bg); border-color: transparent; }
.btn-apresentacao:hover { border-color: transparent; background: var(--accent); }
.btn-apresentacao svg { width: 14px; height: 14px; }

.grade { --h: 230px; display: flex; flex-wrap: wrap; gap: 14px; }
.grade::after { content: ""; flex-grow: 1000; }
.obra {
  position: relative; flex: var(--r) 1 calc(var(--r) * var(--h));
  aspect-ratio: var(--r);
  padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: zoom-in;
  background: var(--cor); box-shadow: var(--shadow-sm);
  transition: box-shadow .35s, transform .35s;
}
.obra img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.obra:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.obra:hover img { transform: scale(1.04); }
.obra .num {
  position: absolute; left: 10px; bottom: 10px;
  font: 500 .7rem/1 var(--sans); letter-spacing: .08em; color: #fff;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 5px 8px; border-radius: 999px;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.obra:hover .num, .obra:focus-visible .num { opacity: 1; transform: none; }
.obra:focus-visible, .btn:focus-visible, .rolar:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) { .grade { --h: 180px; gap: 10px; } }
@media (max-width: 480px) { .grade { --h: 120px; gap: 6px; } .obra { border-radius: 3px; } }

/* ---------- álbum ---------- */
.grade-album { --h: 210px; }
.foto img { object-position: 50% 20%; filter: saturate(.94); }
@media (max-width: 900px) { .grade-album { --h: 170px; } }
@media (max-width: 480px) { .grade-album { --h: 130px; } }

/* ---------- rodapé ---------- */
.rodape { padding: clamp(64px, 9vw, 104px) 0; text-align: center; background: var(--grao), var(--bg-alt); }
.pai-filho { margin: 0 auto 40px; max-width: 520px; }
.pai-filho button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--cor);
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow);
  outline: 1px solid var(--line); outline-offset: 10px;
}
.pai-filho img { width: 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.pai-filho button:hover img { transform: scale(1.03); }
.ancora { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent); margin-bottom: 28px; }
.ancora svg { width: 26px; height: 26px; }
.rodape .dedicatoria { font: italic 400 clamp(1.35rem, 2.6vw, 1.7rem)/1.5 var(--display); margin: 0 auto 24px; max-width: 34ch; }
.rodape .credito { color: var(--muted); font: 400 .85rem/1.5 var(--sans); margin: 0; }

.topo-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 9;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.topo-btn svg { width: 20px; height: 20px; }
.topo-btn.visivel { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- prévia desfocada enquanto carrega ---------- */
.obra img, .pai-filho img, .arco img, .panorama img { background: var(--lqip, none) center / cover no-repeat, var(--cor, transparent); }

/* ---------- surgir ao rolar (só com JS) ---------- */
.js .revelar { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .revelar.visto { opacity: 1; transform: none; }
.js .obra { opacity: 0; }
.js .obra.visto { opacity: 1; transition: opacity .6s ease, box-shadow .35s, transform .35s; }

/* ---------- ampliação ---------- */
dialog.amplia {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; color: #f3eee6;
  background: color-mix(in srgb, var(--tom, #000) 30%, #08080a);
  transition: background-color .6s ease;
}
dialog.amplia[open] { animation: abrir .3s ease; }
@keyframes abrir { from { opacity: 0; } to { opacity: 1; } }
dialog.amplia::backdrop { background: transparent; }
.amplia figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 64px 16px 72px; }
.amplia img {
  max-width: 100%; max-height: calc(100dvh - 136px); object-fit: contain; border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .25s ease;
}
.amplia img.trocando { opacity: 0; }
.amplia .fechar, .amplia .ant, .amplia .prox {
  position: absolute; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .08); color: inherit;
  width: 48px; height: 48px; border-radius: 999px; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s;
}
.amplia button:hover { background: rgba(255, 255, 255, .18); }
.amplia svg { width: 22px; height: 22px; }
.amplia .fechar { top: 14px; right: 14px; }
.amplia .ant { left: 16px; top: 50%; transform: translateY(-50%); }
.amplia .prox { right: 16px; top: 50%; transform: translateY(-50%); }
.amplia .contador {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font: 500 .8rem/1 var(--sans); letter-spacing: .06em; opacity: .75;
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08);
}
.amplia .contador:empty { display: none; }
@media (max-width: 640px) {
  .amplia .ant, .amplia .prox { top: auto; bottom: 12px; transform: none; }
}
/* zoom */
.amplia figure { touch-action: none; overflow: hidden; }
.amplia img { transform-origin: center; will-change: transform; cursor: zoom-in; }
.amplia.ampliado img { cursor: grab; transition: none; }
.amplia.ampliado .ant, .amplia.ampliado .prox, .amplia.ampliado .acoes-obra, .amplia.ampliado .zoom-dica { opacity: 0; pointer-events: none; }
.zoom-dica {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%); margin: 0;
  font: 400 .78rem/1 var(--sans); opacity: .55; white-space: nowrap; transition: opacity .3s;
}
/* ações da obra: WhatsApp e fundo de tela */
.acoes-obra { position: absolute; left: 16px; bottom: 16px; display: none; gap: 8px; transition: opacity .3s; }
.amplia.com-acoes .acoes-obra { display: flex; }
.acao {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08);
  color: inherit; text-decoration: none; font: 500 .8rem/1 var(--sans);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s;
}
.acao:hover { background: rgba(255, 255, 255, .18); }
.acao svg { width: 18px; height: 18px; }
.acao[data-whatsapp]:hover { background: #25d366; border-color: #25d366; color: #fff; }
@media (max-width: 640px) {
  .acoes-obra { left: 50%; transform: translateX(-50%); bottom: 70px; }
  .amplia .contador { bottom: 24px; }
  .amplia figure { padding-bottom: 120px; }
}
@media (hover: none) { .zoom-dica { top: 22px; } }
@media (hover: hover) { .zoom-dica { display: none; } }

/* apresentação: fundo preto e controles que somem */
.amplia.apresentando { background: #000; }
.amplia.apresentando img { max-height: calc(100dvh - 40px); box-shadow: none; animation: surgir 1.2s ease; }
.amplia.apresentando figure { padding: 20px; }
.amplia.apresentando .acoes-obra, .amplia.apresentando .zoom-dica { display: none; }
.amplia.apresentando button, .amplia.apresentando .contador { opacity: 0; transition: opacity .4s; }
.amplia.apresentando:hover button, .amplia.apresentando:hover .contador { opacity: 1; }
@keyframes surgir { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

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

.amplia [hidden] { display: none !important; }

::view-transition-group(obra-ativa) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(obra-ativa), ::view-transition-new(obra-ativa) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*) { animation: none !important; } }

/* contato da família */
.contato {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font: 500 .85rem/1 var(--sans); color: var(--muted); text-decoration: none;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); transition: color .2s, border-color .2s;
}
.contato:hover { color: var(--accent); border-color: var(--accent); }
.contato svg { width: 17px; height: 17px; }

/* ---------- abertura: obras alternando ao fundo, sob um véu ---------- */
.abertura { overflow: hidden; isolation: isolate; }
.abertura .wrap { position: relative; z-index: 1; }
.fundo-obras { position: absolute; inset: 0; z-index: -1; }
.fundo-obras i {
  position: absolute; inset: -4%; background: center / cover no-repeat;
  opacity: 0; transition: opacity 2.4s ease; filter: blur(2px) saturate(.9);
}
.fundo-obras i.ativa { opacity: 1; animation: deriva 14s linear both; }
@keyframes deriva { from { transform: scale(1.06); } to { transform: scale(1); } }
.fundo-obras::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--bg) 62%, transparent) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 48%, var(--bg) 100%);
}

/* ---------- pintura do dia ---------- */
.dia { padding: clamp(48px, 7vw, 88px) 0 0; }
.dia-cartao {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
}
.dia-img { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--cor); box-shadow: var(--shadow); }
.dia-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.dia-img:hover img { transform: scale(1.03); }
.dia-texto h2 { margin-bottom: 10px; }
.dia-texto .dica { margin-bottom: 24px; }
@media (max-width: 700px) { .dia-cartao { grid-template-columns: 1fr; } }

/* ---------- em detalhe: faixa que rola de lado ---------- */
.detalhes { padding-bottom: clamp(48px, 7vw, 88px); }
.detalhes h2 { margin-bottom: 8px; }
.detalhes .dica { margin-bottom: 28px; }
.faixa-detalhes {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(16px, (100vw - 1180px) / 2) 20px;
  scroll-padding-inline: max(16px, (100vw - 1180px) / 2);
}
.faixa-detalhes::-webkit-scrollbar { display: none; }
.detalhe {
  position: relative; flex: 0 0 clamp(200px, 26vw, 300px); aspect-ratio: 1; scroll-snap-align: start;
  border-radius: 999px; overflow: hidden; background: var(--cor); box-shadow: var(--shadow);
  transition: border-radius .5s ease, transform .5s ease;
}
.detalhe:hover { border-radius: 18px; transform: translateY(-3px); }
.detalhe img { width: 100%; height: 100%; object-fit: cover; }
.detalhe span {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font: 500 .7rem/1 var(--sans); letter-spacing: .08em; color: #fff; white-space: nowrap;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px; border-radius: 999px; opacity: 0; transition: opacity .3s;
}
.detalhe:hover span, .detalhe:focus-visible span { opacity: 1; }
@media (hover: none) { .detalhe span { opacity: 1; } }

/* ---------- faixas panorâmicas com profundidade ao rolar ---------- */
@supports (animation-timeline: view()) {
  .panorama img { height: 130%; animation: paralaxe linear both; animation-timeline: view(); }
  @keyframes paralaxe { from { transform: translateY(-18%); } to { transform: translateY(0); } }
}
.album { padding-top: clamp(32px, 5vw, 64px); }

/* ---------- paleta na ampliação ---------- */
.paleta { position: absolute; top: 18px; left: 18px; display: none; gap: 6px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .3s; }
.amplia.com-acoes .paleta { display: flex; }
.paleta i { width: 18px; height: 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.amplia.apresentando .paleta, .amplia.ampliado .paleta { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fundo-obras i.ativa { animation: none; }
  .panorama img { animation: none !important; height: 100%; }
}
