/* MacRawScope Pro — Coming Soon */
:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --paper: #ffffff;
  --ink: #1c1c1a;
  --ink-2: #4a4945;
  --muted: #7d7b75;
  --line: #e2e0d9;
  --red: #c8423f;          /* rosso del logo PRO */
  --red-dark: #a8322f;
  --soft: #ebe9e2;
  --radius: 18px;
  --max: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .01em; color: var(--muted); }

/* ---------- Barra in alto ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .app {
  width: 48px; height: 48px; border-radius: 11px;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 4px 10px -2px rgba(40,30,20,.25);
  transition: transform .3s var(--ease);
}
.brand:hover .app { transform: rotate(-6deg) scale(1.04); }
.brand .name { height: 30px; width: auto; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 13px; background: var(--paper); }
.top .studio { flex: none; padding-left: 18px; border-left: 1px solid var(--line); }
.top .studio img { height: 40px; width: auto; }
@media (max-width: 720px) {
  .top nav .opt { display: none; }
  .top .wrap { gap: 12px; }
  .brand { gap: 8px; }
  .brand .app { width: 34px; height: 34px; border-radius: 8px; }
  .brand .name { height: 16px; }
  .top .studio { padding-left: 10px; }
  .top .studio img { height: 32px; }
}

/* ---------- Pulsanti (mai neri) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn.red { background: #6b6862; color: #fff; box-shadow: 0 6px 18px rgba(60, 55, 48, .22); }
.btn.red:hover { background: #57544f; }
.btn.light { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.light:hover { background: #fafaf8; }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--soft); color: var(--muted); box-shadow: none; cursor: not-allowed;
}

/* ---------- Apertura ---------- */
.hero { padding-top: 64px; padding-bottom: 24px; }
.hero .icon { width: 76px; height: 76px; margin-bottom: 26px; }
.hero h1 { margin: 0 0 22px; }
.hero h1 img { width: min(560px, 100%); height: auto; }
/* badge «Coming soon»: bordo luminoso che ruota e leggero galleggiamento 3D */
@property --border-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.badge-wrap { display: inline-block; margin-bottom: 26px; perspective: 600px; position: relative; z-index: 6; }
.badge-neon-3d {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; background: #fff; border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  animation: badgeFloat 4s ease-in-out infinite; will-change: transform;
}
.badge-neon-border {
  position: absolute; inset: -2px; border-radius: 50px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--border-angle), transparent 70%, rgba(0,0,0,.1) 80%, #1a1a1a 95%, rgba(0,0,0,.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 3s linear infinite;
}
.badge-neon-3d span { position: relative; font: 700 16px/1 var(--mono); letter-spacing: .14em; color: #1a1a1a; }
@keyframes spinBorder { to { --border-angle: 360deg; } }
/* l'ombra resta fissa: si anima solo transform, che non ridisegna la pagina */
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-6px) rotateX(4deg) rotateY(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .badge-neon-3d, .badge-neon-border { animation: none; } }
.headline { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -.025em; font-weight: 600; margin: 0 0 18px; }
.headline span { display: block; font-weight: 300; color: var(--ink-2); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 620px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.beta-card {
  display: flex; align-items: center; gap: 16px;
  max-width: 620px; padding: 16px 18px; margin-bottom: 18px;
  background: var(--paper); border-radius: 16px; box-shadow: 0 0 0 1px var(--line) inset, 0 8px 24px rgba(0,0,0,.04);
}
.beta-card b { display: block; font-size: 15px; }
.beta-card p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.beta-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #e5a43a; box-shadow: 0 0 0 5px rgba(229,164,58,.18); flex: none; animation: pulse 2.4s infinite; }

/* Schermata principale con effetto di ingresso legato allo scorrimento */
.stage { margin: 46px auto 0; perspective: 1400px; }
.stage .frame {
  border-radius: 14px; overflow: hidden; background: #ddd;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 90px -30px rgba(40, 30, 20, .45), 0 0 0 1px rgba(0,0,0,.06);
  transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 14deg)) scale(var(--sc, .92));
  transition: transform .1s linear;
}

/* ---------- Sezioni ---------- */
section { padding: 96px 0; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; margin: 0 0 14px; }
h2 span { font-weight: 300; color: var(--ink-2); }
.intro { color: var(--ink-2); max-width: 640px; margin: 0 0 48px; font-size: 18px; }

/* Free: righe testo + immagine */
.row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.row:last-child { margin-bottom: 0; }
.row.flip .txt { order: 2; }
.row h3 { font-size: 26px; letter-spacing: -.01em; margin: 0 0 10px; }
.row p { color: var(--ink-2); margin: 0 0 12px; }
.row .shot { border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(40,30,20,.35), 0 0 0 1px rgba(0,0,0,.06); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pair .shot:first-child { margin-top: 40px; }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 64px; }
  .row.flip .txt { order: 0; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font: 12px/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; color: var(--ink-2); }

/* ---------- Versioni a pagamento ---------- */
.paid { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line) inset; }
.tier .veil { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tier .veil img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.tier:hover .veil img { transform: scale(1.18); }
.tier .veil::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,243,239,0) 40%, rgba(244,243,239,.85));
}
.tier .lock {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 1;
  font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 9px 14px; border-radius: 999px; color: var(--ink-2);
}
.tier .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tier h3 { font-size: 24px; margin: 0 0 12px; letter-spacing: -.01em; }
.tier h3 small { font: 500 12px var(--mono); color: var(--muted); margin-left: 6px; letter-spacing: .04em; }
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; color: var(--ink-2); }
.tier li { padding: 6px 0 6px 22px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); opacity: .8; }
.tier li.more { color: var(--muted); font-style: italic; }
.tier li.more::before { background: var(--muted); opacity: .5; }
.tier .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tier .foot .mono { font-size: 12px; }

/* ---------- Prenotazione ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; gap: 28px; } }
.promise { list-style: none; padding: 0; margin: 22px 0 0; }
.promise li { padding: 10px 0 10px 34px; position: relative; color: var(--ink-2); border-top: 1px solid var(--line); }
.promise li::before { content: "✓"; position: absolute; left: 4px; top: 9px; color: var(--red); font-weight: 700; }
form.card { background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: 0 0 0 1px var(--line) inset, 0 24px 60px -30px rgba(40,30,20,.25); }
form label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
form input[type=text], form input[type=email] {
  width: 100%; font: 16px var(--sans); padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); margin-bottom: 16px;
}
form input:focus { outline: 2px solid color-mix(in srgb, var(--red) 40%, transparent); border-color: transparent; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
@media (max-width: 480px) { .choices { grid-template-columns: repeat(2, 1fr); } }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span {
  display: block; text-align: center; padding: 11px 6px; border-radius: 12px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 15px;
  transition: background .2s, border-color .2s, color .2s;
}
.choices input:checked + span { background: color-mix(in srgb, var(--red) 10%, var(--paper)); border-color: var(--red); color: var(--red-dark); }
.choices input:focus-visible + span { outline: 2px solid var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 18px; font-weight: 400; }
.consent input { margin-top: 3px; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form-error { color: var(--red-dark); font-size: 14px; margin: 0 0 12px; min-height: 1em; }

/* ---------- Domande ---------- */
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-weight: 300; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 10px 0 0; animation: faq-in .35s var(--ease); }

/* ---------- Piede ---------- */
footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer img { height: 54px; width: auto; }
footer .mono a { color: var(--ink-2); }

/* ---------- Animazioni ---------- */
@keyframes materialize {
  from { opacity: 0; filter: blur(10px) saturate(.6); transform: translateY(14px) scale(.985); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes sweep {
  0% { background-position: 120% 0; }
  60%, 100% { background-position: -40% 0; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(229,164,58,0); } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

.js .m { opacity: 0; }
.js .m.in { animation: materialize 1s var(--ease) both; animation-delay: var(--d, 0s); }

/* riflesso che scorre (come un prisma) */
.prism {
  background: linear-gradient(100deg, currentColor 0 40%, #f7d9a8 46%, #e88f8c 50%, #9ec6e8 54%, currentColor 60% 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: sweep 5.5s cubic-bezier(.37, 0, .63, 1) 1.2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .js .m { opacity: 1; }
  .js .m.in, .prism, .beta-card .dot { animation: none; }
  .prism { -webkit-text-fill-color: currentColor; }
  .stage .frame { transform: none; }
}

/* ---------- Capitoli della Free (apertura animata durante lo scorrimento) ---------- */
.chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 64px; align-items: center; margin: 0 0 140px; }
.chapter:last-child { margin-bottom: 0; }
.chapter.flip .txt { order: 2; }
.chapter .num {
  display: block; font: 700 clamp(64px, 9vw, 120px)/.9 var(--sans); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px #a8a59d;
  margin-bottom: 14px;
}
.chapter h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; }
.chapter p { color: var(--ink-2); margin: 0 0 14px; font-size: 18px; }
@media (max-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-bottom: 96px; }
  .chapter.flip .txt { order: 0; }
}

.reveal { --q: 1; position: relative; perspective: 1600px; }
.reveal .win {
  position: relative; border-radius: 14px; overflow: hidden; background: #d9d6ce;
  box-shadow: 0 50px 100px -40px rgba(40,30,20,.55), 0 0 0 1px rgba(0,0,0,.07);
  clip-path: inset(calc(var(--q) * 16%) calc(var(--q) * 12%) round 16px);
  transform: translateY(calc(var(--q) * 90px)) scale(calc(1 - var(--q) * .14)) rotateX(calc(var(--q) * 12deg));
  filter: blur(calc(var(--q) * 9px)) saturate(calc(1 - var(--q) * .5));
  transform-origin: 50% 100%;
  will-change: transform, clip-path, filter;
}
.reveal .win img { width: 100%; }
/* riflesso che attraversa la schermata appena si apre */
.reveal .win::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-120%);
}
.reveal.open .win::after { animation: shine 1.4s var(--ease) .1s both; }
@keyframes shine { to { transform: translateX(120%); } }

/* scheda che arriva di lato sopra la schermata */
.reveal .float {
  position: absolute; z-index: 2; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(40,30,20,.5), 0 0 0 1px rgba(0,0,0,.08);
  opacity: calc(1 - var(--q) * 1.4);
  transform: translateX(calc(var(--q) * 120px)) rotate(calc(var(--q) * 6deg));
}
.reveal .float.details { width: 21%; right: -5%; top: 8%; }
.reveal .float.zoom { width: 46%; left: -6%; bottom: -10%; }
@media (max-width: 900px) { .reveal .float.details { right: -2%; } .reveal .float.zoom { left: -2%; } }

/* quadrato di messa a fuoco che «aggancia» il soggetto */
.af-lock {
  position: absolute; z-index: 1; border: 2px solid #3ddc6a; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 18px rgba(61,220,106,.55);
  opacity: 0; transform: scale(2.6);
}
.af-lock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #3ddc6a; }
.reveal.open .af-lock { animation: af-lock 1.3s var(--ease) .35s both, af-blink .9s steps(2) 1.6s 2; }
@keyframes af-lock { 0% { opacity: 0; transform: scale(2.6); } 60% { opacity: 1; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
@keyframes af-blink { 50% { border-color: #fff; } }

/* nastro dei formati che scorre */
.ticker { min-width: 0; max-width: 100%; overflow: hidden; margin-top: 22px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker .track { display: flex; gap: 8px; width: max-content; animation: ticker 28s linear infinite; }
.ticker .chip { white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { --q: 0 !important; }
  .reveal.open .win::after, .ticker .track { animation: none; }
  .reveal.open .af-lock { animation: none; opacity: 1; transform: none; }
}

/* nota sulle schermate */
.shot-note { margin: 72px auto 0; max-width: 720px; text-align: center; font: 13px/1.6 var(--mono); color: var(--muted);
  padding: 14px 18px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; }

/* capitolo 04: tag Finder */
.reveal .float.tags { width: 52%; right: -6%; bottom: -8%; }
@media (max-width: 900px) { .reveal .float.tags { right: -2%; } }
.tier-chip { display: inline-block; margin: 0 0 12px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; color: var(--red-dark); background: color-mix(in srgb, var(--red) 9%, var(--paper));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 25%, transparent) inset; }

/* apertura: le schermate si alternano con una dissolvenza e un leggero zoom */
.slides { position: relative; aspect-ratio: 1400 / 802; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slide 20s infinite; }
.slides img:nth-child(1) { animation-delay: 0s; }
.slides img:nth-child(2) { animation-delay: 5s; }
.slides img:nth-child(3) { animation-delay: 10s; }
.slides img:nth-child(4) { animation-delay: 15s; }
@keyframes slide {
  0% { opacity: 0; transform: scale(1.02); }
  4%, 25% { opacity: 1; transform: scale(1); }
  30%, 100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .slides img { animation: none; }
  .slides img:first-child { opacity: 1; }
}

/* capitolo a tutta larghezza (registrazione della ricerca nel Finder) */
.chapter.wide { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.chapter.wide .txt { max-width: 760px; }

/* le schede che entrano di lato non devono allargare la pagina sul telefono */
html { overflow-x: clip; }
main, section, .hero { overflow-x: clip; }

/* ---------- Effetto di generazione (particelle che si condensano) ---------- */
.gen { position: relative; }
.gen img { transition: opacity .6s var(--ease); }
.gen img.gen-wait { opacity: 0; }
.gen-c { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; transition: opacity .7s var(--ease); }
.gen-c.gen-out { opacity: 0; }
.hero { position: relative; }
.grain { position: absolute; left: 0; top: 0; width: 100%; z-index: 0; pointer-events: none; }
.hero > *:not(.grain) { position: relative; z-index: 1; }
/* con le particelle la schermata non ha più bisogno di sfocatura e ritaglio in ingresso */
.reveal .win { clip-path: none; filter: none; transform: translateY(calc(var(--q) * 60px)) scale(calc(1 - var(--q) * .06)); }
.slides img.gen-wait { opacity: 0 !important; }

/* granulosità sopra tutto il capitolo mentre si genera */
.chapter { position: relative; }
.grain { z-index: 4; }
.chapter .num, .chapter .tier-chip, .chapter h3, .chapter p { position: relative; z-index: 1; }

/* ---------- Ricostruzione dalle particelle (sostituisce gli effetti precedenti nei blocchi) ---------- */
.pg { position: relative; }
.pg .m { animation: none !important; opacity: 1 !important; }
.pg .reveal .win, .pg .reveal .float { transform: none !important; opacity: 1 !important; }
.pg-hide { opacity: 0 !important; transition: none !important; }
.pg > * { transition: opacity .6s var(--ease); }
.pg-canvas { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; transition: opacity .7s var(--ease); }
.pg-canvas.pg-out { opacity: 0; }
.gen img.gen-wait { opacity: 1; }
.stage .frame { transform: none; }
/* priorità: nascondere durante la ricostruzione vince sulle altre regole */
.pg > .pg-hide.pg-hide { opacity: 0 !important; transition: none !important; }
.pg > canvas.pg-canvas { position: absolute; left: 0; top: 0; z-index: 5; }
/* rivelazione progressiva del contenuto vero durante la ricostruzione */
.pg > .pg-mask {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--rv, -20%) - 12%), transparent var(--rv, -20%));
          mask-image: linear-gradient(90deg, #000 calc(var(--rv, -20%) - 12%), transparent var(--rv, -20%));
  transition: none !important;
}

/* prenotazione inviata */
.form-ok { text-align: center; padding: 28px 8px; }
.form-ok b { display: block; font-size: 22px; margin-bottom: 8px; }
.form-ok p { color: var(--ink-2); margin: 0; }
.form-error a { color: var(--ink); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
form.card button:disabled { opacity: .7; cursor: wait; }

/* informativa privacy */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; margin: 0 0 6px; }
.legal h2 { font-size: 20px; margin: 34px 0 8px; }
.legal p { color: var(--ink-2); margin: 0; }
.legal a { color: var(--ink); }
.consent a { color: var(--ink-2); }

/* capitolo della guida: la finestra resta alla sua grandezza naturale */
.chapter.guida .reveal { max-width: 1020px; }

/* elenco delle funzionalità in un capitolo */
.feat { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 22px; }
.feat li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.feat li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: #a8a59d; }

/* animazioni MP4 sopra al poster: compaiono quando il video sta davvero andando */
.win video.anim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.win video.anim.on { opacity: 1; }

/* capitolo 02: livello dell'ingrandimento */
.float-tier { position: absolute; right: 8px; top: 8px; font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 8px; border-radius: 999px; color: #fff; background: var(--red-dark); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
