/* =========================================================
   SELLO GRIFFE RESIDENCIAL - design system
   Tokens: ink #1C1A17, stone #F2ECE1, paper #FBF8F2,
           seal #7A1F2B, gold #B08D57, line #D8CFBE
   Display: Manrope / Body: Inter / Utility: IBM Plex Mono
   ========================================================= */

:root {
  --ink: #1c1a17;
  --ink-soft: #322d27;
  --stone: #f2ece1;
  --paper: #fbf8f2;
  --seal: #7a1f2b;
  --seal-dark: #5c1720;
  --gold: #b08d57;
  --moss: #5c7355;
  --line: #d8cfbe;
  --line-dark: rgba(242, 236, 225, 0.18);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--seal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: top;
}
.eyebrow--light { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-seal {
  color: var(--paper);
  background: var(--seal);
  border-color: var(--seal);
}
.btn-seal:hover { background: var(--seal-dark); border-color: var(--seal-dark); }
.btn-ghost-dark { color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { color: var(--paper); border-color: var(--line-dark); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- brand logo (wordmark) ---------- */
.brand-logo { height: 22px; width: auto; flex-shrink: 0; }
.footer-brand .brand-logo { height: 40px; margin-bottom: 6px; }
.brand-logo-dark { display: none; }
.brand-logo-light { display: block; }
.site-header.is-solid .brand-logo-dark,
.site-header.is-light .brand-logo-dark { display: none; }
.site-header.is-solid .brand-logo-light,
.site-header.is-light .brand-logo-light { display: block; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: calc(22px + env(safe-area-inset-top)) 0 22px;
  color: var(--paper);
  transition: background 0.35s ease, padding 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.is-light {
  background: var(--ink);
  color: var(--stone);
  padding: calc(14px + env(safe-area-inset-top)) 0 14px;
  border-bottom-color: var(--line-dark);
}
.site-header:has(.main-nav.is-open) {
  background: var(--ink);
  color: var(--stone);
  border-bottom-color: transparent;
}
.site-header:has(.main-nav.is-open) .brand-logo-dark { display: none; }
.site-header:has(.main-nav.is-open) .brand-logo-light { display: block; }
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: relative;
  z-index: 101;
}
.site-header .brand-logo { height: 40px; }

.main-nav a {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { right: 0; }

.main-nav {
  position: fixed;
  inset: 0;
  top: 0;
  color: var(--stone);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--gutter);
  gap: 22px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.main-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.1s ease;
}
.nav-curtain {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: -1;
}
.nav-curtain span {
  flex: 1;
  height: 100%;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: center top;
  margin-left: -1px;
}
.main-nav.is-open .nav-curtain span {
  animation: nav-curtain-reveal 0.6s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}
.main-nav.is-open .nav-curtain span:nth-child(2) { animation-delay: 0.08s; }
.main-nav.is-open .nav-curtain span:nth-child(3) { animation-delay: 0.16s; }
.main-nav.is-open .nav-curtain span:nth-child(4) { animation-delay: 0.24s; }
.main-nav.is-open .nav-curtain span:nth-child(5) { animation-delay: 0.32s; }
.main-nav.is-open .nav-curtain span:nth-child(6) { animation-delay: 0.4s; }
@keyframes nav-curtain-reveal { to { transform: scaleY(1); } }
.main-nav a {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.main-nav.is-open a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.site-header.logo-right .wrap { grid-template-columns: auto 1fr auto; }
.site-header.logo-right .brand { grid-column: 1; justify-self: start; }

.nav-toggle {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  width: 32px; height: 24px;
  position: relative;
  padding: 0;
  z-index: 101;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.nav-toggle span { top: 11px; background: transparent; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 761px) {
  .nav-toggle { width: 42px; height: 30px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { height: 2px; }
  .nav-toggle span { top: 14px; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,26,23,0.55) 0%, rgba(28,26,23,0.15) 32%, rgba(28,26,23,0.35) 62%, rgba(28,26,23,0.92) 100%);
}
.hero-media.is-rotating { opacity: 0; transition: opacity 1.2s ease; }
.hero-media.is-rotating.is-active { opacity: 1; }
.hero-media-notter { background-image: url('../assets/imagens-produtos/hero-living-completo.jpg?v=3'); }
.hero-media-living { background-image: url('../assets/imagens-produtos/hero-adega-detalhe.jpg'); }
.hero-dots { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 1; }
.hero-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
  background: rgba(251,248,242,0.4); cursor: pointer; transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dots button.is-active { background: var(--paper); transform: scale(1.3); }
.hero-content {
  position: relative;
  width: 100%;
  padding-top: 160px;
  padding-bottom: 64px;
}
.hero-title {
  font-size: clamp(32px, 7vw, 88px);
  max-width: none;
  font-weight: 400;
}
.hero-title em {
  font-style: normal;
  font-weight: 700;
  font-size: 1.3em;
}
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; }
.hero-title .line span {
  display: block;
  transform: translateY(110%);
  animation: rise 1s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-title .line:nth-child(2) span { animation-delay: 0.1s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-slogan {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--gold);
  max-width: 46ch;
  margin-top: 20px;
  line-height: 1.4;
}


/* ---------- sections ---------- */
section { position: relative; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 80px 0; }
.bg-ink { background: var(--ink); color: var(--stone); }
.bg-stone { background: var(--stone); }
.bg-paper { background: var(--paper); }

.section-head {
  margin-bottom: 64px;
}
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 14ch; }
.section-head .lede {
  margin-top: 12px;
  max-width: none;
  font-size: 15px;
  opacity: 0.75;
}

/* ---------- manifesto / intro ---------- */
.manifesto blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.32;
}
.manifesto blockquote em { font-style: normal; font-weight: 500; color: var(--seal); }

.reason-list { margin-top: 32px; }
.reason-item { display: flex; align-items: center; gap: 16px; padding: 13px 0; }
.reason-item .num-badge {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--seal); color: var(--paper);
  font-size: 14px;
}
.reason-item p { margin: 0; font-size: 14.5px; opacity: 0.72; flex: 1; }

.not-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.not-list li { font-size: 15.5px; opacity: 0.8; padding: 16px 0; border-top: 1px solid var(--line); }
.not-list li::before { content: "- "; opacity: 0.5; }

/* ---------- differentials ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.diff-3col { grid-template-columns: repeat(3, 1fr); }
/* a foto dos fundadores já preenche a seção visualmente; sem conteúdo abaixo
   dela, o padding-bottom padrão sobra como espaço em branco */
section:has(.fundadores-img), section:has(.marcela-img) { padding-bottom: 0; }
.diff-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 32px;
}
.diff-card .num { font-family: var(--font-body); font-size: 12px; color: var(--seal); letter-spacing: 0.1em; }
.diff-card h3 { font-size: 21px; margin: 22px 0 12px; }
.diff-card .num-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.diff-card .num-row h3 { margin: 0; }
.diff-card .num-badge {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--seal); color: var(--paper);
  font-size: 14px;
}
.diff-card p { font-size: 14.5px; opacity: 0.72; }

/* ---------- process (numbered, sobre.html) ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
}
.process-divider { grid-column: 1 / -1; height: 1px; background: var(--line-dark); }
/* sem linha divisória antes do primeiro item nem depois do último */
.process-list > .process-divider:first-child,
.process-list > .process-divider:last-child { display: none; }
.process-row {
  padding: 32px 0;
}
.process-row .num { font-family: var(--font-body); color: var(--gold); font-size: 14px; }
.process-row .num-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.process-row .num-row h3 { margin: 0; }
.process-row .num-badge {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--gold); color: var(--paper);
  font-size: 14px;
}
.process-row h3 { font-size: 24px; }
.process-row p { font-size: 15px; opacity: 0.72; }
.process-list.is-seal .num-badge { background: var(--seal); color: var(--paper); }
.reason-item .num-badge, .diff-card .num-badge, .process-row .num-badge { font-weight: 700; }
@media (min-width: 761px) {
  .process-list.diff-3col { grid-template-columns: repeat(3, 1fr); }
}
.process-list.is-seal .process-divider { background: var(--line); }
/* a 1ª linha visual não deve herdar o padding-top de respiro entre linhas,
   senão o espaço acima do card real é maior que o definido no wrap.
   No mobile (1 coluna) só o 1º item conta como "1ª linha"; a versão
   multi-coluna (2º/3º item também na 1ª linha) fica só a partir do
   breakpoint em que o grid vira 2-3 colunas de verdade, senão zera o
   padding de itens do meio da lista empilhada no mobile por engano */
.process-list > .process-divider:first-child + .process-row,
.process-list > .process-row:first-child { padding-top: 0; }
/* mesma lógica para a última linha visual */
.process-list > .process-row:has(+ .process-divider:last-child),
.process-list > .process-row:last-child { padding-bottom: 0; }
@media (min-width: 761px) {
  .process-list > .process-divider:first-child + .process-row + .process-row,
  .process-list > .process-divider:first-child + .process-row + .process-row + .process-row,
  .process-list > .process-row:first-child + .process-row,
  .process-list > .process-row:first-child + .process-row + .process-row { padding-top: 0; }
  .process-list > .process-row:has(+ .process-row + .process-divider:last-child),
  .process-list > .process-row:has(+ .process-row + .process-row + .process-divider:last-child),
  .process-list > .process-row:has(+ .process-row:last-child),
  .process-list > .process-row:has(+ .process-row + .process-row:last-child) { padding-bottom: 0; }
}

/* ---------- collection / house cards ---------- */
.collection-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.collection-filter button {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line); background: transparent; color: var(--ink); opacity: 0.6;
  cursor: pointer; transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.collection-filter button:hover { opacity: 0.85; }
.collection-filter button.is-active { opacity: 1; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
.collection-grid.is-wide { grid-template-columns: repeat(2, 1fr); }
.piece-card.is-mobile-only { display: none; }
.piece-card { background: var(--paper); position: relative; display: block; }
.piece-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.piece-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.22,1,.36,1); }
.piece-card:hover .piece-media img { transform: scale(1.06); }
.piece-media img.piece-media-alt { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease, transform 0.7s cubic-bezier(.22,1,.36,1); }
.piece-media.is-swapped img.piece-media-alt { opacity: 1; }
.stamp {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--seal);
  background: var(--paper);
  border: 1px solid var(--seal);
  border-radius: 999px;
  padding: 6px 14px;
  transform: rotate(-4deg);
}
.stamp.is-sold { color: var(--seal); border-color: var(--seal); }
.stamp.is-building { color: var(--moss); border-color: var(--moss); }
.stamp.stamp-inline {
  position: static;
  display: inline-block;
  transform: none;
}
.stamp.is-soon { color: var(--gold); border-color: var(--gold); }
.piece-body { padding: 17.2px 24px 26px; border-top: 1px solid var(--line); text-align: center; }
.piece-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--seal); }
.piece-name { font-size: 26px; margin: 12px 0 26px; }
.piece-desc { font-size: 14px; opacity: 0.68; margin-bottom: 13.3px; min-height: 42px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.piece-specs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5.92px 10px;
  font-family: var(--font-mono);
  font-size: 8.4px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 10.7px;
}
.piece-specs span { display: flex; flex-direction: column; gap: 0; text-align: center; }
.piece-specs b { font-size: 11px; font-family: var(--font-body); font-weight: 600; white-space: nowrap; }
.piece-specs b + small { margin-top: 3.33px; }
.piece-specs .piece-icon + small { margin-top: 5.83px; }
.piece-specs small { white-space: nowrap; }
.piece-specs .piece-icon { display: flex; align-items: center; justify-content: center; height: 24px; color: var(--seal); }
.piece-specs .specs-break { flex-basis: 100%; grid-column: 1 / -1; height: 0; padding: 0; margin: 0; }
.unit-tight { display: inline !important; margin-left: 2px; }

/* ---------- product mosaic (imagem com nome sobreposto) ---------- */
.mosaic-section { padding-top: 80px; }
.mosaic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--paper); }
.mosaic-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(.22,1,.36,1); }
.mosaic-tile:hover img { transform: scale(1.06); }
.mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0) 55%, rgba(28,26,23,0.85) 100%);
}
.mosaic-tile span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* ---------- product detail page ---------- */
.product-hero-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5.92px 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(242,236,225,0.3);
}
.product-hero-specs span { display: flex; flex-direction: column; align-items: center; gap: 0; }
.product-hero-specs b { font-family: var(--font-body); font-size: 18px; font-weight: 600; white-space: nowrap; }
.product-hero-specs b + small { margin-top: 1.7px; }
.product-hero-specs .piece-icon + small { margin-top: 5.6px; }
.product-hero-specs small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; }
.product-hero-specs .specs-break { flex-basis: 100%; grid-column: 1 / -1; height: 0; padding: 0; margin: 0; }
.product-hero-specs .piece-icon { height: 24px; }
.tour-360-wrap { position: relative; }
.tour-360-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; border-radius: 4px; }
.tour-360-expand {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(28, 26, 23, 0.75); color: var(--paper); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.tour-360-expand:hover { background: rgba(28, 26, 23, 0.9); }
/* CSS-driven fullscreen fallback: the native Fullscreen API isn't supported for
   iframes on iOS Safari, so this makes the frame cover the viewport via layout
   instead, which works on every browser including iPhone. */
.tour-360-wrap.is-fullscreen {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.tour-360-wrap.is-fullscreen .tour-360-frame {
  width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0;
}
body.tour-360-locked { overflow: hidden; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid .is-tall { grid-row: span 2; aspect-ratio: auto; }
.floorplan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.floorplan-card {
  background: var(--stone);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.floorplan-card svg { opacity: 0.35; }
.floorplan-card span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.floorplan-figure { margin: 0; border: 1px solid var(--line); }
.floorplan-figure img { width: 100%; display: block; }
/* plantas humanizadas são naturalmente altas (retrato); o carrossel de
   plantas mostra a imagem inteira, sem cortar, ao contrário do 16:8 padrão
   usado nas galerias de fotos do moment-carousel */
.floorplan-carousel .moment-track img { aspect-ratio: auto; height: auto; object-fit: contain; }
.floorplan-carousel .carousel-dots button { width: 40px; height: 56px; }
.floorplan-carousel .carousel-dots button img { object-fit: cover; }
@media (max-width: 760px) {
  .floorplan-carousel .carousel-dots button { width: 32px; height: 45px; }
}
.floorplan-figure figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; text-align: center; padding: 16px 0; border-top: 1px solid var(--line); }
.product-seal {
  width: 136px; height: 136px;
  margin: 0 auto 28px;
  position: relative;
  background-image: url('../assets/logo/selo-peca.png?v=2');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.product-seal .seal-num {
  position: absolute;
  top: 41%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.02em;
}
.moment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.moment-grid figure { margin: 0; }
.moment-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.moment-grid figcaption { font-size: 14px; opacity: 0.7; margin-top: 14px; line-height: 1.5; max-width: 38ch; }

.craft-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.craft-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
/* carrossel com setas em texto (abaixo da imagem) + miniaturas reais como
   navegação, no lugar de setas sobrepostas à imagem + bolinhas */
.moment-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "track track track"
    "prev  gap   next"
    "thumbs thumbs thumbs";
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}
.moment-carousel .moment-track { grid-area: track; }
.moment-carousel .carousel-btn.prev { grid-area: prev; justify-self: start; }
.moment-carousel .carousel-btn.next { grid-area: next; justify-self: end; }
.moment-carousel .carousel-dots { grid-area: thumbs; }
.moment-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.moment-track::-webkit-scrollbar { display: none; }
.moment-track figure { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.moment-track img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; cursor: zoom-in; }
.moment-track figcaption { font-size: 13px; opacity: 0.75; margin-top: 10px; line-height: 1.5; max-width: 52ch; }

/* altura padronizada do carrossel de momentos no mobile */
@media (max-width: 760px) {
  .moment-carousel:not(.floorplan-carousel) .moment-track img { aspect-ratio: auto; height: 250px; }
}

/* image lightbox: click a moment-carousel photo to view it enlarged */
.image-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 13, 11, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: 60px 80px;
}
.image-lightbox.is-active { display: flex; }
.image-lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.image-lightbox-close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(251,248,242,0.12); color: var(--paper); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.image-lightbox-close:hover { background: rgba(251,248,242,0.22); }
.image-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(251,248,242,0.12); color: var(--paper); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 24px;
}
.image-lightbox-nav:hover { background: rgba(251,248,242,0.22); }
.image-lightbox-nav.prev { left: 20px; }
.image-lightbox-nav.next { right: 20px; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 760px) {
  .image-lightbox { padding: 70px 16px; }
  .image-lightbox-nav { width: 40px; height: 40px; }
  .image-lightbox-nav.prev { left: 8px; }
  .image-lightbox-nav.next { right: 8px; }
}
.carousel-btn {
  position: static;
  width: auto; height: auto;
  margin: 0;
  background: none; border: none; border-radius: 0;
  font-size: 20px; line-height: 1; color: var(--ink);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover { background: none; border: none; color: var(--seal); opacity: 1; }
.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
}
.carousel-dots button {
  all: unset;
  flex-shrink: 0;
  width: 72px; height: 48px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.carousel-dots button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-dots button:hover { opacity: 0.75; }
.carousel-dots button.is-active { opacity: 1; }
.spec-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.spec-columns h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-bottom: 20px; }
.spec-columns .num-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.spec-columns .num-row h4 { margin: 0; }
.spec-columns .num-row h3 { font-size: 24px; }
.spec-columns .num-badge {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--seal); color: var(--paper);
  font-size: 14px; font-weight: 700;
}
.spec-columns ul { list-style: none; padding: 0; margin: 0; }
.spec-columns li { font-size: 14px; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); position: relative; }
.spec-columns li::before { content: ""; position: absolute; left: 1px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--seal); }
.spec-columns li:first-child { border-top: none; }
.spec-columns li:last-child { border-bottom: none; }
.spec-head { margin-bottom: 26px; }
.spec-figure { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--seal); }
.spec-figure small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.6; font-weight: 400; margin-top: 6px; }
.piece-specs small { opacity: 0.55; }

/* ---------- testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.testi-card { padding: 0; }
.testi-mark { font-family: var(--font-display); font-style: normal; font-weight: 800; font-size: 44px; color: var(--gold); line-height: 1; }
.testi-card p { font-size: 15.5px; line-height: 1.7; margin: -7.08px 0 -0.58px; opacity: 0.9; }
.testi-card cite { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; opacity: 0.55; }

/* ---------- CTA ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 80px var(--gutter);
}
.cta h2 { font-size: clamp(32px, 5vw, 56px); max-width: 14ch; }
.cta h2.cta-h2-wide { max-width: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--stone); padding: 80px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, auto);
  gap: 40px;
  padding-bottom: 26px;
}
.footer-brand p { font-size: 14px; opacity: 0.65; margin-top: 18px; max-width: none; color: #b08d57; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-email-li { margin-top: -13.6px; }
.footer-col a, .footer-col address { font-size: 14.5px; opacity: 0.85; font-style: normal; }
.footer-col a:hover { color: var(--gold); }

.ig-link { display: inline-flex; align-items: center; gap: 7px; line-height: 1; }
.ig-icon, .wa-icon, .mail-icon, .yt-icon, .li-icon { flex-shrink: 0; display: block; }
.social-row { display: flex; align-items: center; gap: 16px; }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(242,236,225,0.3);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  opacity: 0.5;
}

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--seal);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(28,26,23,0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px); background: var(--seal-dark); }

/* variante compacta do botão de whatsapp, usada junto com o botão "voltar ao
   topo" nas páginas de produto */
.wa-float--sm { width: 42px; height: 42px; right: 20px; }
.wa-float--sm svg { width: 23px; height: 23px; }

/* botão flutuante "voltar ao topo", só no mobile (páginas de produto são longas) */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 82px;
  right: 20px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--seal);
  color: var(--paper);
  border: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 760px) {
  .back-to-top { display: flex; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 190px 0 90px;
  color: var(--paper);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,26,23,0.72), rgba(28,26,23,0.55)); }
.page-hero-content { position: relative; }
.page-hero h1 { font-size: clamp(38px, 6vw, 66px); max-width: 20ch; margin-top: 22px; }
.hero-lede-wide { max-width: 52ch; }
.playlist-block { max-width: 480px; }
@media (min-width: 761px) {
  .hero-lede-wide { max-width: none; }
  .playlist-block { max-width: none; }
  .title-nowrap-desktop { max-width: none; white-space: nowrap; }
  .hero-slogan { max-width: none; }
  .site-header.is-solid, .site-header.is-light { padding: 20px 0; }
  .page-hero { min-height: 100svh; display: flex; align-items: flex-end; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- about page extras ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split img { border-radius: 2px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.stat b { font-family: var(--font-display); font-size: 44px; display: block; color: var(--seal); }
.stat span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; display: block; margin-top: 8px; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.field { margin-bottom: 22px; }
.contact-form .field:has(+ .form-footer) { margin-bottom: 10px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.65;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--seal);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; opacity: 0.55; margin-top: 4px; }
.form-card { padding: 48px; padding-top: 0; }
@media (max-width: 760px) {
  .form-card { padding: 28px; padding-top: 0; padding-bottom: 0; max-width: 640px; }
  .form-note { margin-left: calc(50% - 50vw + var(--gutter)); margin-right: calc(50% - 50vw + var(--gutter)); }
}
.contact-info-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-info-item:first-child { border-top: none; }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; width: 130px; flex-shrink: 0; }
.contact-info-item .v { font-size: 15px; }
.contact-info-item .v small { display: block; opacity: 0.55; font-size: 12.5px; margin-top: 4px; }
.map-frame { aspect-ratio: 16/9; width: 100%; border: 1px solid var(--line); filter: grayscale(0.4) contrast(1.05); }

.form-success {
  display: none;
  padding: 20px 22px;
  background: var(--stone);
  border-left: 3px solid var(--seal);
  font-size: 14.5px;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  padding: 20px 22px;
  background: var(--stone);
  border-left: 3px solid #a32d2d;
  font-size: 14.5px;
}
.form-error.is-visible { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 760px) {
  .footer-bottom span { font-size: 11.5px; letter-spacing: 0.02em; }
  .footer-col h4.footer-h4-contato { margin-top: 9.59px; margin-bottom: 18.05px; }
  .footer-col h4.footer-h4-redes { margin-top: 2.09px; margin-bottom: 20.45px; }
  .footer-col h4.footer-h4-endereco { margin-top: 12.89px; margin-bottom: 14.30px; }
  .collection-filter { flex-wrap: nowrap; gap: 5px; }
  .collection-filter button { flex: 1 1 0; font-size: 8.5px; letter-spacing: 0.025em; padding: 5px 7px; white-space: nowrap; text-align: center; }
  .hero-media-notter { background-image: url('../assets/imagens-produtos/hero-notter-hummer.jpg'); background-position: center 75%; }
  .hero-media-living { background-image: url('../assets/imagens-produtos/hero-living-completo.jpg?v=3'); background-position: 42% center; }
  .hero-media-quarto { background-position: 45% center; }
  /* full-bleed dentro de um grid (.split) renderiza errado no Safari real
     (a grid track não bate com o breakout por margem negativa); tira o
     grid de cena só nesses dois casos para o cálculo de largura ficar
     confiável */
  .split:has(.fundadores-img), .split:has(.equipe-img), .split:has(.marcela-img) {
    display: block;
  }
  .split:has(.fundadores-img) > div,
  .split:has(.equipe-img) > div,
  .split:has(.marcela-img) > div {
    width: 100%;
  }
  .split:has(.fundadores-img) > div:not(:last-child) {
    margin-bottom: 40px;
  }
  .split:has(.equipe-img) > div:not(:last-child) {
    margin-bottom: 43.5px;
  }
  .split:has(.marcela-img) > div:not(:last-child) {
    margin-bottom: 13.1px;
  }
  .marcela-img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
  }
  .fundadores-img {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-top: -14px !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  .equipe-img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    aspect-ratio: 8 / 9;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
  }
  .diff-grid, .collection-grid, .collection-grid.is-wide, .stat-row { grid-template-columns: 1fr; }
  .collection-grid { gap: 20.73px; background: transparent; }
  .section-pad.collection-section { padding-top: 44.1px; padding-bottom: 46.73px; }
  .collection-grid > .piece-card:last-child .piece-body { padding-bottom: 0; }
  .diff-card { padding-top: 25px; padding-bottom: 25px; }
  .piece-card.is-mobile-only { display: block; }
  .gallery-grid, .floorplan-grid, .moment-grid, .spec-columns, .not-list { grid-template-columns: 1fr; }
  .craft-gallery { grid-template-columns: repeat(2, 1fr); }
  .carousel-btn { display: none; }
  .carousel-dots button { width: 56px; height: 38px; }
  /* imagem principal do carrossel, plantas humanizadas e tour 360° ocupam toda
     a largura da seção no mobile; setas e miniaturas continuam dentro da
     faixa de texto padrão, sem sangrar */
  .moment-carousel .moment-track,
  .floorplan-grid,
  .tour-360-wrap {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }
  .tour-360-wrap .tour-360-frame { border-radius: 0; }
  .section-pad:has(.tour-360-wrap) { padding-bottom: 0; }
  .spec-columns { gap: 11.79px; }
  .spec-head { margin-bottom: 20.03px; }
  .spec-columns > div:first-child h4 { margin-bottom: -0.4px; }
  .spec-columns > div:last-child h4 { margin-bottom: 1.6px; }
  .spec-columns > div:first-child .num-row, .spec-columns > div:last-child .num-row { margin-bottom: 16px; }
  .product-hero-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6.37px 6px; justify-items: center; text-align: center; margin-top: 12.8px; padding-top: 10.5px; }
  .product-hero-specs b { font-size: clamp(14px, 2.364px + 3.6364vw, 18px); }
  .product-hero-specs small { font-size: clamp(8.2px, 1.509px + 2.0909vw, 10.5px); }
  .product-hero-specs .piece-icon { height: clamp(24px, 12px + 3.75vw, 30px); }
  .product-hero-specs .piece-icon svg { width: auto; height: 100%; }
  .piece-specs { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; margin-left: -24px; margin-right: -24px; gap: 6.37px 6px; font-size: clamp(9.4px, 6.8px + 0.8125vw, 10.7px); padding-top: 12px; }
  .piece-specs b { font-size: clamp(13.2px, 9.6px + 1.125vw, 15px); }
  .piece-specs .piece-icon { height: clamp(24px, 12px + 3.75vw, 30px); }
  .piece-specs .piece-icon svg { width: auto; height: 100%; }
  .piece-specs b + small { margin-top: 4.18px; }
  .piece-specs .piece-icon + small { margin-top: 6.74px; }
  .tour-360-frame { aspect-ratio: 3 / 4; }
  .product-seal { width: 108px; height: 108px; }
  .product-seal .seal-num { font-size: 24px; }
  .moment-track figure { text-align: center; }
  .process-list { grid-template-columns: 1fr; border-bottom: none; }
  .process-divider { display: none; }
  .process-row { border-top: 1px solid var(--line-dark); }
  .process-list.is-seal .process-row { border-top-color: var(--line); }
  .process-list > .process-divider:first-child + .process-row { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav-col { display: none; }
  .cta { flex-direction: column; align-items: center; text-align: center; padding: 45.1px 0 60px; }
  .cta:has(.btn) { padding-bottom: 0; gap: 0; }
  .btn { margin-top: 20px !important; margin-bottom: 50px !important; }
  .section-pad:has(.btn) { padding-bottom: 0; }
  .collection-cta-wrap { margin-top: 0 !important; }
  /* par de botões lado a lado no herói do 404: a seção já tem padding
     vertical próprio para centralizar o bloco, a regra geral dobraria o espaço */
  .btn-row .btn { margin-top: 0 !important; margin-bottom: 0 !important; }
  .section-pad { padding: 50px 0; }
  .mosaic-section { padding-top: 46.1px; }
  .site-footer { padding-top: 60px; }
  .site-header .brand-logo { height: 30px; }
  .footer-brand .brand-logo { height: 24px; }
  .footer-brand p { max-width: none; }

  /* center section titles/text on mobile (footer excluded) */
  .hero-content, .page-hero-content { text-align: center; }
  .eyebrow { flex-direction: column; gap: 6px; }
  .section-head { text-align: center; }
  .section-head h2 { margin-left: auto; margin-right: auto; }
  .manifesto { text-align: center; }
  .guia-block { text-align: center; }
  .mercado-block { text-align: center; }
  .form-intro { text-align: center; }
  .form-intro h2 { margin-left: auto; margin-right: auto; }
  .form-footer { text-align: center; }
  .italic-quote { text-align: center; }
  .split > div:first-child { text-align: center; }
  .stat { text-align: center; }
  .playlist-block { text-align: center; }

  /* balance line-wrapping on mobile instead of ragged lines */
  h1, h2, h3, p, blockquote { text-wrap: balance; }
  /* left-aligned card/row text reads better using the full column width than balanced */
  .diff-card h3, .diff-card p, .reason-item p, .process-row h3, .process-row p, .footer-brand p { text-wrap: wrap; }

  .page-hero { min-height: auto; }
  .sobre-hero { min-height: 505px; }
  .contato-hero { min-height: 513.84px; }

  /* estende a própria hero (não só a imagem) por trás do notch/barra de status
     do iPhone: o overflow:hidden do container cortava a extensão feita só na
     imagem, então agora a caixa inteira sobe e ganha padding-top equivalente,
     mantendo o conteúdo na mesma posição visual */
  .page-hero {
    margin-top: calc(-1 * env(safe-area-inset-top, 0px));
    padding-top: calc(190px + env(safe-area-inset-top, 0px));
  }
  .hero {
    margin-top: calc(-1 * env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    min-height: calc(100svh + env(safe-area-inset-top, 0px));
  }

  /* give the highlighted <em> background room to breathe when the hero title wraps to an extra line on narrow screens */
  .hero-title { line-height: 1.3; }
}
