/* v360.css: page-only styles for /fotografia-e-video-em-360-graus-no-paraguai/
   Concept: the page as a 360-degree viewing instrument. High-key hero with a bezel dial whose ring turns with
   scroll, a stitched panorama strip drifting sideways under a sight line, a lens-framed "visor" around
   Maite Media's own 360 video, uses indexed by degrees, steps and FAQ.
   Loaded after main.css and servico.css (glass, faq, related, end). */
:root { --v3-ease: cubic-bezier(.22, 1, .36, 1); --v3-ink: #17191c; }

/* ── Hero (high-key) ────────────────────────────────────────────────────── */
.v3-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--v3-ink);
  background: linear-gradient(to bottom, #ffffff 0%, #f8f7f5 60%, var(--paper) 100%);
  min-height: min(90svh, 800px); display: flex; align-items: center;
  padding-block: clamp(7rem, 14vh, 8.5rem) clamp(3.5rem, 9vh, 6rem); }
.v3-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.v3-layer { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.v3-bg .v3-layer { position: absolute; }
.v3-layer--globe { right: -10%; top: -14%; width: min(980px, 118vw); aspect-ratio: 1; color: rgba(23, 25, 28, .075); }
.v3-layer--globe svg { display: block; width: 100%; height: 100%; }
.v3-layer--halo { right: 4%; top: 6%; width: min(760px, 100vw); aspect-ratio: 1; }
.v3-layer--halo i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 46, 34, .14), rgba(255, 46, 34, 0) 64%); }

.v3-hero__wrap { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.v3-eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .42rem .95rem .42rem .8rem; border-radius: 999px; background: var(--v3-ink); color: #fff;
  font: 700 .72rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; }
.v3-eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--red-lit); }
.v3-hero h1 { margin-top: 1.1rem; font-size: clamp(2.2rem, 4.9vw, 3.9rem); line-height: 1.04; text-wrap: balance; color: var(--v3-ink); }
.v3-hero h1 em { font-style: normal; color: var(--red); }
.v3-lead { margin-top: 1.2rem; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.14rem); color: #3b4047; }
.v3-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.v3-hero__txt > * { animation: v3-rise .9s var(--v3-ease) both; }
.v3-hero__txt > :nth-child(2) { animation-delay: .08s; } .v3-hero__txt > :nth-child(3) { animation-delay: .16s; } .v3-hero__txt > :nth-child(4) { animation-delay: .24s; }
@keyframes v3-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* bezel dial: the ring turns, the red marker stays */
.v3-dialbox { justify-self: center; width: min(100%, 480px); }
.v3-dial { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff;
  box-shadow: 0 40px 70px -40px rgba(23, 25, 28, .55), 0 0 0 1px rgba(23, 25, 28, .08);
  animation: v3-pop 1.1s var(--v3-ease) .2s both; }
@keyframes v3-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.v3-dial__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v3-dial__rim { fill: none; stroke: var(--v3-ink); stroke-width: 2; }
.v3-dial__ring { transform-origin: 200px 200px; transform: rotate(var(--rot, 0deg)); will-change: transform; }
.v3-tk { stroke: var(--v3-ink); stroke-width: 1; opacity: .38; }
.v3-tk--major { stroke-width: 1.8; opacity: .9; }
.v3-num { font: 700 15px var(--f-display); fill: var(--v3-ink); letter-spacing: .04em; }
.v3-dial__inner { fill: none; stroke: #d9d5d2; stroke-width: 1.2; }
.v3-dial__inner--dash { stroke-dasharray: 2 7; stroke-linecap: round; }
.v3-dial__mark { fill: var(--red); }
.v3-dial__n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.v3-dial__n b { display: inline-flex; align-items: baseline; font: 800 clamp(3.2rem, 8.4vw, 5.6rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--v3-ink); font-variant-numeric: tabular-nums; }
.v3-dial__n [data-deg] { display: inline-block; min-width: 2.2ch; text-align: right; }
.v3-dial__n i { font-style: normal; color: var(--red); margin-left: .04em; }
.v3-dial__n span:last-child { margin-top: .55rem; font: 700 .7rem var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: #636a72; }

/* floating degree pill (appears once the hero has scrolled away) */
.v3-hud { position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .55rem;
  padding: .32rem .95rem .32rem .38rem; border-radius: 999px; background: rgba(23, 25, 28, .9); color: #fff; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none; transition: opacity .45s ease, transform .6s var(--v3-ease); }
.v3-hud.is-on { opacity: 1; transform: none; }
.v3-hud__svg { width: 34px; height: 34px; overflow: visible; }
.v3-hud__ring { transform-origin: 20px 20px; transform: rotate(var(--rot, 0deg)); will-change: transform; fill: none; stroke: #fff; stroke-width: 1; }
.v3-hud__ring circle { opacity: .45; }
.v3-hud__ring line { opacity: .85; }
.v3-hud__mark { fill: var(--red-lit); }
.v3-hud__n { font: 700 .92rem/1 var(--f-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; min-width: 4ch; }
.v3-hud__n span { display: inline-block; min-width: 3ch; text-align: right; }

/* ── Panorama strip ─────────────────────────────────────────────────────── */
.v3-strip { position: relative; background: var(--paper); color: var(--v3-ink); padding-block: clamp(1rem, 3vw, 2rem) var(--rhythm); overflow: hidden; }
.v3-strip__hd { max-width: 1180px; }
.v3-strip__hd .label { color: #636a72; }
.v3-strip__hd h2 { margin-top: .8rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-wrap: balance; }
.v3-strip__hd p:last-child { margin-top: 1rem; max-width: 64ch; color: #4a4f56; }
.v3-pan { --pw: clamp(260px, 32vw, 520px); position: relative; margin-top: clamp(2rem, 4vw, 3rem); height: calc(var(--pw) * .5714 + 5.6rem); overflow: hidden; }
.v3-pan__track { position: absolute; left: 50%; top: 0; width: max-content; transform: translate3d(calc(-50% + var(--tx, 0px)), 0, 0); will-change: transform; }
.v3-pan__row { position: relative; display: flex; }
.v3-pan__f { position: relative; flex: none; width: var(--pw); aspect-ratio: 7 / 4; margin: 0; overflow: hidden; background: #e4e6e8; }
.v3-pan__f + .v3-pan__f { box-shadow: -1px 0 0 rgba(255, 255, 255, .85); }
.v3-pan__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-pan__f::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 46px rgba(23, 25, 28, .16); }
.v3-pan__row::after { content: ""; position: absolute; left: 0; right: 0; top: 62%; border-top: 1px dashed rgba(204, 16, 16, .7); pointer-events: none; z-index: 2; }
.v3-pan__ruler { position: relative; height: 2.8rem; margin-top: .7rem;
  background-image: linear-gradient(to right, rgba(23, 25, 28, .7) 1.5px, transparent 1.5px), linear-gradient(to right, rgba(23, 25, 28, .32) 1px, transparent 1px);
  background-size: calc(var(--pw) * 7 / 8) 14px, calc(var(--pw) * 7 / 72) 7px; background-repeat: repeat-x; }
.v3-pan__ruler span { position: absolute; top: 1.05rem; transform: translateX(-50%); font: 700 .7rem/1 var(--f-display); letter-spacing: .08em; color: #636a72; }
.v3-pan__sight { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.v3-pan__sight i { position: absolute; left: 50%; top: 0; bottom: calc(2.8rem + .7rem - 4px); width: 2px; margin-left: -1px; background: var(--red); opacity: .9; }
.v3-pan__sight b { position: absolute; left: 50%; bottom: .1rem; transform: translateX(-50%); display: inline-block; padding: .38rem .8rem; border-radius: 999px; background: var(--v3-ink); color: #fff;
  font: 700 .8rem/1 var(--f-display); font-variant-numeric: tabular-nums; min-width: 4.6ch; text-align: center; }

/* ── Visor (video) ──────────────────────────────────────────────────────── */
.v3-visor { background: radial-gradient(ellipse 70% 50% at 50% 55%, #14171b, var(--void) 72%); overflow: hidden; }
.v3-visor__hd { max-width: 70ch; margin-inline: auto; text-align: center; }
.v3-visor__hd h2 { text-wrap: balance; }
.v3-visor__frame { position: relative; max-width: 1040px; margin-inline: auto; padding: clamp(8px, 1.6vw, 16px) clamp(8px, 1.6vw, 16px) 0; border-radius: clamp(18px, 2.6vw, 28px);
  background: linear-gradient(150deg, #2c3138, #101215 60%, #1b1f24); border: 1px solid #343a42;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(255, 46, 34, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
.v3-screen { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(10px, 1.6vw, 16px); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.v3-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.v3-visor__bar { position: relative; height: 2.6rem; display: flex; align-items: center; justify-content: center; margin-inline: .2rem;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .28) 1px, transparent 1px); background-size: 12px 6px; background-repeat: repeat-x; background-position: 0 100%; }
.v3-visor__bar span { padding: .3rem .9rem; border-radius: 999px; background: #101215; font: 700 .68rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.v3-c { position: absolute; width: clamp(18px, 2.4vw, 26px); aspect-ratio: 1; border: 0 solid var(--red-lit); pointer-events: none; }
.v3-c--tl { left: -8px; top: -8px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.v3-c--tr { right: -8px; top: -8px; border-width: 2px 2px 0 0; border-top-right-radius: 8px; }
.v3-c--bl { left: -8px; bottom: -8px; border-width: 0 0 2px 2px; border-bottom-left-radius: 8px; }
.v3-c--br { right: -8px; bottom: -8px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }
.v3-visor__note { margin-top: 1.4rem; text-align: center; font-size: .86rem; color: var(--dim); }
.v3-visor__note a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red-lit); }
.v3-visor__note a:hover { color: #fff; }

/* ── Uses indexed by degrees ────────────────────────────────────────────── */
.v3-uses__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--paper-line); }
.v3-use { position: relative; display: grid; grid-template-columns: minmax(0, 24%) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: center;
  padding-block: clamp(1.5rem, 3.4vw, 2.4rem); border-top: 1px solid var(--paper-line); }
.v3-use::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--v3-ease); }
.v3-use.is-active::before { transform: scaleX(1); }
.v3-use__n { font: 800 clamp(3.4rem, 9.6vw, 8rem)/.9 var(--f-display); letter-spacing: -.05em; color: #dcd7d3; font-variant-numeric: tabular-nums; transition: color .5s ease; }
.v3-use.is-active .v3-use__n, .v3-use:hover .v3-use__n { color: var(--red); }
.v3-use__b { transition: translate .6s var(--v3-ease); }
.v3-use:hover .v3-use__b { translate: 8px 0; }
.v3-use h3 { font-size: clamp(1.3rem, 2.6vw, 1.85rem); color: var(--v3-ink); text-wrap: balance; }
.v3-use p { margin-top: .6rem; max-width: 60ch; color: #4a4f56; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.v3-steps__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.v3-steps__list::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: linear-gradient(to right, var(--red-lit), var(--edge) 35%, var(--edge)); }
.v3-steps__list li { position: relative; padding-top: 2rem; }
.v3-steps__list li::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--red-lit); box-shadow: 0 0 0 4px rgba(255, 46, 34, .18); }
.v3-step__n { display: block; font: 800 3rem/1 var(--f-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.4px var(--red-lit); }
.v3-steps h3 { margin-top: .9rem; font-size: 1.12rem; color: #fff; }
.v3-steps p { margin-top: .5rem; font-size: .9rem; color: var(--mist); }

/* scroll reveal (only when JS enables it; static otherwise) */
.v3-anim .v3-rev { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .8s var(--v3-ease), transform .8s var(--v3-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.v3-anim .v3-rev.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .v3-hero__wrap { grid-template-columns: 1fr; gap: 2.4rem; }
  .v3-hero { min-height: 0; padding-block: 7rem 4rem; }
  .v3-dialbox { width: min(84vw, 380px); }
  .v3-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .v3-steps__list::before { display: none; }
  .v3-steps__list li::before { display: none; }
  .v3-steps__list li { padding-top: 0; padding-left: 1.1rem; border-left: 2px solid var(--red-lit); }
}
@media (max-width: 700px) {
  .v3-use { grid-template-columns: 1fr; gap: .6rem; }
  .v3-use__n { font-size: clamp(3rem, 18vw, 4.4rem); }
  .v3-c--tl { left: -4px; top: -4px; } .v3-c--tr { right: -4px; top: -4px; } .v3-c--bl { left: -4px; bottom: -4px; } .v3-c--br { right: -4px; bottom: -4px; }
  .v3-pan__ruler span:nth-child(even) { display: none; }
}
@media (max-width: 560px) {
  .v3-cta .btn { flex: 1 1 100%; text-align: center; }
  .v3-steps__list { grid-template-columns: 1fr; }
  .v3-hud { padding-right: .8rem; }
}

/* ── Reduced motion: static, fully readable ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .v3-hero__txt > *, .v3-dial { animation: none; }
  .v3-layer, .v3-dial__ring, .v3-hud__ring { transform: none !important; will-change: auto; }
  .v3-pan__track { transform: translate3d(-50%, 0, 0) !important; will-change: auto; }
  .v3-hud { display: none; }
  .v3-use::before, .v3-use__n, .v3-use__b { transition: none; }
  .v3-use:hover .v3-use__b { translate: none; }
  .v3-anim .v3-rev { opacity: 1; transform: none; transition: none; }
}

/* Fachada do vídeo: o player do YouTube só é carregado no clique (sem pedidos ao YouTube antes disso) */
.v3-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; color: #fff; cursor: pointer; display: grid; place-items: center; font: inherit; text-decoration: none; }
.v3-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) saturate(.9); transition: filter 260ms ease, transform 600ms cubic-bezier(.16, 1, .3, 1); }
.v3-play:hover img, .v3-play:focus-visible img { filter: brightness(.78) saturate(1); transform: scale(1.03); }
.v3-play:focus-visible { outline: 2px solid var(--red-lit); outline-offset: -4px; }
.v3-play__ic { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(60px, 9vw, 84px); aspect-ratio: 1; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 8px rgba(204, 16, 16, .28), 0 18px 50px rgba(0, 0, 0, .55); transition: background 160ms ease, transform 260ms cubic-bezier(.16, 1, .3, 1); }
.v3-play__ic svg { margin-left: 4px; }
.v3-play:hover .v3-play__ic, .v3-play:focus-visible .v3-play__ic { background: var(--red-lit); transform: scale(1.06); }
.v3-play__t { position: absolute; z-index: 1; left: 50%; bottom: clamp(.8rem, 3vw, 1.4rem); transform: translateX(-50%); white-space: nowrap; padding: .4rem .95rem; border-radius: 999px; background: rgba(10, 11, 13, .78); font: 700 .7rem/1.1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.v3-play--link { text-align: center; }
.v3-play--link .v3-play__t { position: static; transform: none; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .v3-play img, .v3-play__ic { transition: none; } .v3-play:hover img, .v3-play:focus-visible img { transform: none; } }
