/* Tour virtual da Casa Ninho Verde.
   Uma câmera fixa ao fundo; cada rolagem atravessa um ambiente e a foto se aproxima, como quem caminha para dentro.
   Tudo vive sob .nvt para poder rodar tanto numa página própria quanto dentro do modal do site.
   Cores e fontes seguem o site principal (Cormorant Garamond, Poppins, verde profundo, ouro e creme da marca). */

.nvt {
  --nvt-ink: var(--pine, #0E2A1C);
  --nvt-paper: #FBF9EF;
  --nvt-soft: #E7E2CE;
  --nvt-muted: #C7C4B2;
  --nvt-teal: #E3C47A;
  --nvt-teal-tint: #F1DFB0;
  --nvt-amber: #D9A84E;
  --nvt-line: rgba(251, 249, 239, .3);
  --nvt-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --nvt-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  position: relative;
  background: var(--nvt-ink);
  color: var(--nvt-paper);
  font: 400 16px/1.7 var(--nvt-sans);
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
.nvt *, .nvt *::before, .nvt *::after { box-sizing: border-box; }
.nvt a { color: inherit; }
.nvt :focus-visible { outline: 2px solid var(--nvt-amber); outline-offset: 3px; }

/* Palco: fotos empilhadas */
.nvt-stage { position: fixed; inset: 0; overflow: hidden; z-index: 0; background: var(--nvt-ink); }
.nvt-stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.nvt-stage figure.on { opacity: 1; }
.nvt-stage img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transform-origin: var(--fx, 50%) var(--fy, 50%); }
.nvt-stage figure.on img { will-change: transform; }
.nvt-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 16, 12, .62) 0%, rgba(10, 16, 12, .25) 45%, rgba(10, 16, 12, 0) 70%),
    linear-gradient(180deg, rgba(10, 16, 12, .45) 0%, rgba(10, 16, 12, 0) 22%, rgba(10, 16, 12, .1) 40%, rgba(8, 13, 10, .84) 100%);
}

/* Barra de topo, com um véu para o texto que rola por baixo não atrapalhar a leitura */
.nvt-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 40px); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 16, 12, .94) 0%, rgba(10, 16, 12, .78) 58%, rgba(10, 16, 12, 0) 100%);
}
.nvt-top {
  position: fixed; z-index: 5; top: 0; left: 0; right: 0;
  padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 14px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none;
}
.nvt-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: 0 0 auto; font: 600 1.2rem/1 var(--nvt-serif); letter-spacing: .01em; }
.nvt-brand img { display: block; height: 42px; width: auto; }
.nvt-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nvt-where { font: 600 .72rem/1 var(--nvt-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--nvt-muted); text-align: right; white-space: nowrap; }
.nvt-where b { color: var(--nvt-paper); font-weight: 700; }
.nvt-close {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 700 .8rem/1 var(--nvt-sans); letter-spacing: .02em; color: var(--nvt-paper);
  background: rgba(17, 28, 21, .55); border: 1px solid var(--nvt-line); border-radius: 100px; padding: 10px 16px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .18s ease, border-color .18s ease;
}
.nvt-close:hover { background: rgba(251, 249, 239, .16); border-color: rgba(251, 249, 239, .5); }
.nvt-close { white-space: nowrap; }
.nvt-close svg { width: 14px; height: 14px; }
.nvt-bar { position: fixed; z-index: 6; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--nvt-amber); }

/* Trilho de ambientes (desktop) */
.nvt-rail {
  position: fixed; z-index: 5; right: max(24px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none;
}
.nvt-rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 4px 0;
  color: var(--nvt-muted); text-decoration: none; font: 600 .7rem/1.2 var(--nvt-sans); letter-spacing: .1em; text-transform: uppercase;
}
.nvt-rail a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.nvt-rail a i { width: 14px; height: 1px; background: var(--nvt-muted); transition: width .3s, background .3s; }
.nvt-rail:hover a span, .nvt-rail a.on span, .nvt-rail a:focus-visible span { opacity: 1; transform: none; }
.nvt-rail a.on { color: var(--nvt-paper); }
.nvt-rail a.on i { width: 34px; background: var(--nvt-amber); }

/* Cenas */
.nvt-tour { position: relative; z-index: 2; }
.nvt-scene {
  min-height: 150svh; display: flex; align-items: flex-end;
  padding-top: 0; padding-bottom: 18svh;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.nvt-scene:first-child { min-height: 115svh; }
.nvt-copy { width: min(560px, 100%); min-width: 0; display: grid; gap: 14px; margin-left: clamp(0px, 6vw, 96px); }
.nvt-eyebrow { display: flex; align-items: center; gap: .7em; font: 700 .72rem/1.2 var(--nvt-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--nvt-teal); }
.nvt-eyebrow .nvt-n::after { content: ""; display: inline-block; width: 22px; height: 1px; margin-left: .7em; vertical-align: middle; background: var(--nvt-teal); }
.nvt-scene h1, .nvt-scene h2 {
  margin: 0; font-family: var(--nvt-serif); font-weight: 500; color: #FBF9EF; text-wrap: balance;
  line-height: 1.04; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.nvt-scene h1 { font-size: clamp(3.4rem, 8.5vw, 6.4rem); max-width: 12ch; line-height: 1; }
.nvt-scene h2 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); max-width: 16ch; line-height: 1.04; }
.nvt-scene h1 em, .nvt-scene h2 em { font-style: italic; font-weight: 400; color: var(--nvt-teal-tint); }
.nvt-copy p { margin: 0; max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--nvt-soft); text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.nvt-marks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.nvt-marks li {
  font: 700 .72rem/1 var(--nvt-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--nvt-soft);
  padding: 9px 14px; border: 1px solid var(--nvt-line); border-radius: 100px;
  background: rgba(17, 28, 21, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nvt-detail { display: flex; gap: 12px; align-items: flex-end; margin-top: 6px; }
.nvt-detail img { display: block; width: 168px; max-width: 45%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--nvt-line); border-radius: 6px; }
.nvt-detail small { font: 600 .7rem/1.4 var(--nvt-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--nvt-muted); max-width: 22ch; }
.nvt-hint { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 600 .72rem/1 var(--nvt-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--nvt-muted); }
.nvt-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--nvt-amber), transparent); animation: nvt-drip 1.8s ease-in-out infinite; }
@keyframes nvt-drip { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

.nvt-scene.end { min-height: 120svh; }
/* O seletor com .nvt vence o .nvt a { color: inherit } */
.nvt .nvt-btn {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 8px;
  background: #FBF9EF; color: var(--nvt-ink); border: 1px solid #FBF9EF; border-radius: 100px; padding: 12px 22px;
  font: 700 .85rem/1 var(--nvt-sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.nvt .nvt-btn:hover { transform: translateY(-1px); background: var(--nvt-amber); border-color: var(--nvt-amber); color: #221607; }

@media (max-width: 760px) {
  .nvt-rail { display: none; }
  .nvt-copy { margin-left: 0; }
  .nvt-detail img { width: 132px; }
  .nvt-scene { padding-bottom: 12svh; }
  .nvt-where .nvt-room { display: none; }
}
@media (max-width: 480px) {
  .nvt-where { display: none; }
  .nvt-brand img { height: 36px; }
  .nvt-right { gap: 10px; }
  .nvt-close { padding: 9px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .nvt-stage figure { transition: none; }
  .nvt-stage img { transform: none !important; }
  .nvt-hint::after { animation: none; }
}
