/* ═══════════════════════════════════════════════════════════════
   CitySpotter — Homepage v2 ("the descent")
   Loaded AFTER style.css: nav / mobile-menu / footer / launch-bar
   keep their styles from style.css; everything below is new-page.
   Sky palette (design.md): #0E1B2C → #1A3A5C, AR glow #FFD27A.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --ink:       #0E1B2C;
  --ink-soft:  #3d5166;
  --glow:      #FFD27A;
  --ios-blue:  #0A84FF;
  --ios-green: #34C759;
  --pill-txt:  #1c1c1e;
  --pill-km:   #8e8e93;
  --sky1:      #0A1426;   /* animated by home.js */
  --sky2:      #1D3E66;
  --stars-o:   1;
  --hairline:  rgba(14,27,44,.10);
}

body.home-v2 {
  font-family: 'Instrument Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--sky1);
  color: var(--ink);
  overflow-x: hidden;
}
body.home-v2 h1, body.home-v2 h2, body.home-v2 h3 {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  letter-spacing: -0.03em;
}

/* launch promo bar — dark glass on this page instead of the orange gradient */
body.home-v2 .launch-bar {
  background: rgba(14, 27, 44, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
}
body.home-v2 .launch-bar a { color: var(--glow); }

/* ── FIXED SKY (scroll-animated gradient + stars) ─────────────── */
.sky {
  position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 100%);
}
.sky-stars {
  position: fixed; inset: 0; z-index: -1; opacity: var(--stars-o);
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%,  rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 30%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 26%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 6%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 34%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 44%,  rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 48%, rgba(255,255,255,.35) 50%, transparent 51%);
  background-repeat: no-repeat;
  background-size: 100% 60vh;
  pointer-events: none;
}

/* generic section shell */
.sec { position: relative; padding: 110px 24px; }
.sec-inner { max-width: 1120px; margin: 0 auto; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px;
}
.display {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700; line-height: 1.05; margin: 0 0 18px;
}
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.65; max-width: 640px; }

/* reveal helper (JS adds .rv-in) */
[data-rv] { opacity: 0; transform: translateY(26px); }
.rv-in    { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1; transform: none; }
}

/* ═══ HERO — the window seat ═════════════════════════════════════ */
.hero-v2 {
  min-height: 100svh;
  display: grid; align-items: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero-grid {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { color: #fff; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 10px #4ade80;
  animation: pulse-dot 2.4s ease infinite;
}
@keyframes pulse-dot { 50% { opacity: .45; } }
.hero-copy h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 700; line-height: 1.03; color: #fff; margin: 0 0 22px;
}
.hero-copy h1 .hl { color: var(--glow); }
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.65;
  color: rgba(255,255,255,.72); max-width: 480px; margin-bottom: 34px;
}
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-cta .appstore-badge img { display: block; }
.hero-scrolllink {
  color: rgba(255,255,255,.75); font-size: .95rem; font-weight: 600;
  text-decoration: none; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.25);
  transition: color .2s, border-color .2s;
}
.hero-scrolllink:hover { color: #fff; border-color: #fff; }

/* — the plane window — */
.hero-window { position: relative; display: grid; place-items: center; }
.hw-fuselage {
  width: min(420px, 88vw);
  aspect-ratio: 10 / 13.4;
  border-radius: 46px;
  background:
    radial-gradient(120% 90% at 30% 12%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(165deg, #21354e 0%, #16273c 48%, #0f1d2f 100%);
  box-shadow:
    0 40px 90px -30px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.10);
  display: grid; place-items: center;
  position: relative;
}
.hw-window {
  width: 76%; height: 82%;
  border-radius: 999px;                 /* airplane oval */
  background: linear-gradient(180deg, #0c1930, #10233d);
  padding: 4.5%;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.75),
    inset 0 -2px 6px rgba(255,255,255,.05),
    0 2px 3px rgba(255,255,255,.06);
}
.hw-pane {
  width: 100%; height: 100%;
  border-radius: 999px; overflow: hidden; position: relative;
  background: linear-gradient(180deg,
    #274b78 0%, #3d6da3 34%, #7ba8cf 52%,
    #9db98b 58%, #7f9c6c 74%, #62835a 100%);
  box-shadow: inset 0 0 34px rgba(3,10,22,.55);
}
/* glass reflection streak */
.hw-pane::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%);
  pointer-events: none;
}
/* oversized + shifted up: crops out the illustration's own top toggle,
   which the oval otherwise clips mid-word */
.hw-photo {
  position: absolute; left: 0; top: -14%; width: 100%; height: 114%;
  object-fit: cover; object-position: 47% 50%;
}

/* altitude chip that mimics the app's Alt slider readout */
.hw-alt {
  position: absolute; left: -8%; top: 12%;
  background: rgba(20,33,50,.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; border-radius: 18px; padding: 12px 16px;
  text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.hw-alt .v { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.hw-alt .l { font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

.hero-scrollcue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: 1.4rem;
  animation: cue-bob 2s ease-in-out infinite;
}
@keyframes cue-bob { 50% { transform: translate(-50%, 8px); } }

/* ═══ DESCENT — pinned altitude scrub ════════════════════════════ */
.descent { position: relative; height: 260vh; }
.descent-stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
}
.descent-alt {
  font-size: clamp(4rem, 14vw, 10.5rem);
  font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
  text-align: center;
}
.descent-alt .unit { font-size: .32em; font-weight: 600; opacity: .55; letter-spacing: 0; margin-left: .12em; }
.descent-caption {
  text-align: center; margin-top: 22px; font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600; color: rgba(255,255,255,.8); min-height: 1.6em;
  position: relative;
}
.descent-caption span[data-step] {
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap; opacity: 0; transition: opacity .4s;
}
.descent-caption span.on { opacity: 1; }
.descent-streak {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.55); filter: blur(14px);
  pointer-events: none;
}
.descent-streak.s1 { width: 34vw; height: 8vh; left: 6%;  top: 110%; }
.descent-streak.s2 { width: 26vw; height: 6vh; right: 4%; top: 130%; }
.descent-streak.s3 { width: 44vw; height: 9vh; left: 28%; top: 150%; opacity: .7; }

/* ═══ DEMO — 2D vs 3D (Piombino → Elba) ══════════════════════════ */
.demo .sec-head { text-align: center; margin-bottom: 48px; }
.demo .kicker { color: #1f5f8a; }
.demo .lede { margin: 0 auto; color: var(--ink-soft); }

/* demo stage: real 2D/3D screenshots crossfading in a phone frame */
.demo-stage { display: grid; justify-items: center; gap: 26px; user-select: none; }
/* fixed-ratio stage: screenshot ratio minus the top 11% (status bar +
   the in-image toggle row — the site-level toggle replaces it);
   object-position bottom crops that strip off the top */
.demo-shots { position: relative; aspect-ratio: 1206 / 2250; }
.demo-shots .shot {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
  margin: 0; transition: opacity .6s ease;
}
.demo-shots .shot-3d { opacity: 0; }
.demo-stage[data-mode="3d"] .shot-3d { opacity: 1; }
/* toggle floats on the phone screen, below the dynamic island —
   same spot as the app's own control */
.demo-seg {
  position: absolute; top: 52px; left: 50%; transform: translateX(-50%);
  z-index: 6; white-space: nowrap;
}
@media (max-width: 520px) { .demo-seg { top: 44px; } }

/* segmented 2D/3D control — replica of the in-app toggle */
.ar-seg {
  display: flex; background: rgba(28,42,58,.72); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 4px; gap: 2px; z-index: 5;
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
}
.ar-seg button {
  border: 0; cursor: pointer; font: inherit;
  font-size: clamp(.78rem, 1.6vw, .92rem); font-weight: 700;
  color: rgba(255,255,255,.75);
  background: transparent; border-radius: 999px; padding: 9px 20px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .35s, color .35s;
}
.demo-stage[data-mode="2d"] .ar-seg button.b2d { background: rgba(255,255,255,.16); color: #fff; }
.demo-stage[data-mode="3d"] .ar-seg button.b3d { background: var(--ios-green); color: #fff; }

.ar-note {
  text-align: center; font-size: .85rem; color: var(--ink-soft);
  max-width: 620px; margin: 22px auto 0; line-height: 1.6;
}
.demo-explain {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px;
  max-width: 860px; margin: 56px auto 0;
}
.demo-explain h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.demo-explain p { font-size: .95rem; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* ═══ SPLIT SECTIONS (plane / coverage) ══════════════════════════ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split .copy .kicker { color: #1f5f8a; }
.split .copy .lede { color: var(--ink-soft); }
.split .copy h3.q {
  font-size: 1.14rem; font-weight: 700; margin: 26px 0 8px; color: var(--ink);
}
.split .copy p { font-size: .98rem; line-height: 1.7; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 999px; padding: 9px 16px;
  box-shadow: 0 2px 10px rgba(14,27,44,.05);
}
.chip.ghost {
  background: transparent; border-style: dashed; color: var(--ink-soft);
  border-color: rgba(14,27,44,.22); box-shadow: none;
}
.chips-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 26px;
}
.chips-label + .chips { margin-top: 10px; }

/* iPhone mockup */
.phone {
  width: min(320px, 78vw); margin: 0 auto;
  border-radius: 54px; padding: 11px;
  background: linear-gradient(160deg, #2a2d33, #101216);
  box-shadow: 0 50px 100px -36px rgba(14,27,44,.55), inset 0 1px 0 rgba(255,255,255,.14);
  position: relative;
}
.phone.no-island::after { display: none; }
.phone::after {  /* dynamic island */
  content: ''; position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 28%; height: 22px; border-radius: 999px; background: #000; z-index: 2;
}
.phone .ph-screen { border-radius: 43px; overflow: hidden; }
/* margin % resolves against width; screenshots are ~2.17× taller than wide, so
   -14% of width ≈ crop the top 6.4% of the image (the iOS status bar) */
.phone img { display: block; width: 100%; height: auto; margin-top: -14%; }
.phone .ph-video video { display: block; width: 100%; height: auto; margin-top: -12%; }
.phone-cap {
  text-align: center; font-size: .82rem; color: var(--ink-soft);
  margin-top: 18px; line-height: 1.5;
}

/* stats row */
.stats-v2 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; max-width: 980px; margin: 84px auto 0;
}
.stat-v2 {
  background: #fff; border: 1px solid var(--hairline); border-radius: 20px;
  padding: 26px 18px; text-align: center;
  box-shadow: 0 8px 26px rgba(14,27,44,.05);
}
.stat-v2 .n { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; }
.stat-v2 .l { font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-top: 6px; }

/* ═══ QUOTE ══════════════════════════════════════════════════════ */
.quote-sec { text-align: center; }
.quote-stars { color: #f6b31b; font-size: 1.3rem; letter-spacing: .18em; margin-bottom: 20px; }
.quote-sec blockquote {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.5;
  max-width: 780px; margin: 0 auto 20px; color: var(--ink);
}
.quote-src { font-size: .88rem; color: var(--ink-soft); }

/* ═══ FAQ TEASER ═════════════════════════════════════════════════ */
.faqt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.faqt-card {
  display: block; text-decoration: none;
  background: #fff; border: 1px solid var(--hairline); border-radius: 20px;
  padding: 26px 24px; transition: transform .25s, box-shadow .25s;
  box-shadow: 0 8px 26px rgba(14,27,44,.05);
}
.faqt-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,27,44,.12); }
.faqt-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.faqt-card p { font-size: .88rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 12px; }
.faqt-card .go { font-size: .85rem; font-weight: 700; color: #1f5f8a; }
.faqt-more { text-align: center; margin-top: 30px; }
.faqt-more a { font-weight: 700; color: #1f5f8a; text-decoration: none; }
.faqt-more a:hover { text-decoration: underline; }

/* AI-readable block */
.ai-block {
  font-size: .8rem; line-height: 1.75; color: var(--ink-soft);
  max-width: 820px; margin: 70px auto 0; padding: 22px 26px;
  background: rgba(255,255,255,.75); border: 1px solid var(--hairline);
  border-radius: 14px;
}

/* ═══ ANDROID SIGNUP (dark) ══════════════════════════════════════ */
.signup { color: #fff; text-align: center; padding: 130px 24px 120px; }
.signup .kicker { color: var(--glow); }
.signup .display { color: #fff; }
.signup .lede { color: rgba(255,255,255,.7); margin: 0 auto 40px; }
.signup-form {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  max-width: 640px; margin: 0 auto;
}
.signup-form input[type="email"], .signup-form select {
  font: inherit; font-size: .96rem; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; padding: 14px 18px; min-width: 0;
  backdrop-filter: blur(6px);
}
.signup-form input[type="email"] { flex: 2 1 240px; }
.signup-form select { flex: 1 1 170px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff99' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.signup-form select option { color: #111; }
.signup-form input::placeholder { color: rgba(255,255,255,.45); }
.signup-form input:focus, .signup-form select:focus { outline: 2px solid rgba(255,210,122,.6); outline-offset: 1px; }
.signup-form button {
  font: inherit; font-size: .96rem; font-weight: 700; cursor: pointer;
  color: var(--ink); background: var(--glow);
  border: 0; border-radius: 14px; padding: 14px 28px; flex: 0 0 auto;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 10px 30px rgba(255,210,122,.25);
}
.signup-form button:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,210,122,.35); }
.signup-note { font-size: .8rem; color: rgba(255,255,255,.45); margin-top: 18px; }
.signup-note a { color: rgba(255,255,255,.7); }
.signup-msg { margin-top: 22px; font-weight: 600; min-height: 1.4em; }
.signup-msg.ok  { color: #4ade80; }
.signup-msg.err { color: #ff9f9f; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ═══ INNER PAGES (come-funziona, dall-aereo) ════════════════════ */
.page-head { padding: 150px 24px 30px; text-align: center; }
.page-head .display { max-width: 820px; margin-left: auto; margin-right: auto; }
.page-head .lede { margin: 0 auto; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.steps.s4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .steps.s4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps.s4 { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--hairline); border-radius: 20px;
  padding: 26px 22px; box-shadow: 0 8px 26px rgba(14,27,44,.05);
}
.step .n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; }
.step p { font-size: .92rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }

.btn-primary {
  display: inline-block; font-weight: 700; font-size: .95rem;
  color: #fff; background: var(--ink);
  border-radius: 999px; padding: 13px 26px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(14,27,44,.25); }
.copy .btn-primary { margin-top: 24px; }

@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr; }
  .page-head { padding-top: 130px; }
}

/* ═══ COUNTRIES PAGE (piani) ═════════════════════════════════════ */
/* free banner */
.free-hero {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 5vw, 60px);
  align-items: center;
  background: #fff; border: 1px solid var(--hairline); border-radius: 24px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 20px 50px -30px rgba(14,27,44,.35);
}
.free-hero .fh-badge {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #1f7a44; background: rgba(52,199,89,.12);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 16px;
}
.free-hero h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 0 0 12px; letter-spacing: -.02em; }
.free-hero p { font-size: .98rem; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.free-feats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.free-feats li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink); }
.free-feats li::before { content: '✓'; color: #1f7a44; font-weight: 800; }
.free-price-box { text-align: center; }
.free-price-box .p { font-size: clamp(3rem, 8vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; color: #1f7a44; line-height: 1; }
.free-price-box .s { font-size: .84rem; color: var(--ink-soft); margin: 6px 0 18px; }
.plat-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.plat-chips span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 600; color: var(--ink-soft);
  background: rgba(14,27,44,.05); border-radius: 8px; padding: 6px 11px;
}

/* country cards */
.ctry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.ctry-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 18px;
  padding: 24px 18px; text-align: center;
  box-shadow: 0 8px 26px rgba(14,27,44,.05);
  transition: transform .25s, box-shadow .25s;
}
.ctry-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(14,27,44,.12); }
.ctry-card .flag { font-size: 2.1rem; line-height: 1; }
.ctry-card .name { font-weight: 700; font-size: 1rem; margin-top: 8px; }
.ctry-card .num { font-size: .86rem; color: var(--ink-soft); margin-top: 3px; }
.ctry-card .num b { color: #1f5f8a; font-weight: 800; }
.ctry-total { text-align: center; font-size: 1.05rem; color: var(--ink-soft); margin-top: 34px; }
.ctry-total b { font-weight: 800; color: var(--ink); font-size: 1.35rem; letter-spacing: -.02em; }

@media (max-width: 760px) {
  .free-hero { grid-template-columns: 1fr; text-align: center; }
  .free-feats { justify-items: center; }
  .free-feats li { justify-content: center; }
  .ctry-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══ GALLERY PAGE (galleria) ════════════════════════════════════ */
.gal-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px;
}
.gal-card {
  position: relative;              /* anchor .gal-cap to the card, not the section */
  border: 0; padding: 0; background: transparent; cursor: pointer;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(14,27,44,.3);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s;
  display: block; text-align: left;
}
.gal-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 24px 50px -18px rgba(14,27,44,.45); }
.gal-card:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.gal-shot { position: relative; aspect-ratio: 1206 / 2450; overflow: hidden; background: #16273c; }
.gal-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 14px 12px; color: #fff;
  font-size: .82rem; font-weight: 600; line-height: 1.3;
  background: linear-gradient(to top, rgba(8,15,26,.82), transparent);
}
.gal-cap .tag {
  display: inline-block; font-size: .64rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--glow); margin-bottom: 3px;
}

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,14,24,.92); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 88vh; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-cap { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 600; }
.lb-close {
  position: absolute; top: 3vh; right: 4vw; width: 44px; height: 44px;
  border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 1.4rem;
  background: rgba(255,255,255,.12);
}
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  color: #fff; font-size: 1.6rem; background: rgba(255,255,255,.12);
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; }

/* UGC submit box */
.ugc {
  max-width: 620px; margin: 40px auto 0;
  background: #fff; border: 1px solid var(--hairline); border-radius: 22px;
  padding: clamp(26px, 4vw, 40px); box-shadow: 0 16px 44px -24px rgba(14,27,44,.4);
}
.ugc h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; }
.ugc .lead { font-size: .92rem; color: var(--ink-soft); line-height: 1.6; margin: 0 0 22px; }
.ugc .fg { margin-bottom: 16px; }
.ugc label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.ugc input, .ugc textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--light); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px 15px; outline: none; transition: border-color .2s;
}
.ugc input:focus, .ugc textarea:focus { border-color: #1f5f8a; }
.ugc textarea { resize: vertical; min-height: 88px; }
.ugc .req { color: #1f5f8a; }
.ugc button {
  width: 100%; font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
  color: #fff; background: var(--ink); border: 0; border-radius: 12px; padding: 14px;
  transition: transform .2s, box-shadow .2s;
}
.ugc button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,27,44,.28); }
.ugc .note { font-size: .78rem; color: var(--ink-soft); text-align: center; margin: 14px 0 0; line-height: 1.5; }

@media (max-width: 860px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .lb-nav { display: none; } }

/* ═══ LEGAL / DOC PAGES (privacy) ════════════════════════════════ */
.doc-wrap { max-width: 820px; margin: 0 auto; }
.doc-tabs {
  display: flex; gap: 6px; background: #fff; border: 1px solid var(--hairline);
  border-radius: 14px; padding: 6px; margin-bottom: 30px;
  box-shadow: 0 8px 26px rgba(14,27,44,.05);
}
.doc-tabs button {
  flex: 1; border: 0; cursor: pointer; font: inherit;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  background: transparent; border-radius: 10px; padding: 11px 14px;
  transition: background .2s, color .2s;
}
.doc-tabs button.active { background: var(--ink); color: #fff; }
.doc-sec { display: none; }
.doc-sec.active { display: block; }
.doc-card { background: #fff; border: 1px solid var(--hairline); border-radius: 20px; padding: clamp(26px, 4vw, 46px); box-shadow: 0 12px 34px -20px rgba(14,27,44,.3); }
.doc-summary {
  background: linear-gradient(135deg, rgba(52,199,89,.08), rgba(31,95,138,.06));
  border: 1px solid rgba(52,199,89,.22); border-radius: 14px;
  padding: 22px 26px; margin-bottom: 32px;
}
.doc-summary h3 { font-size: 1rem; font-weight: 700; color: #1f7a44; margin: 0 0 10px; }
.doc-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.doc-summary li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink); line-height: 1.5; }
.doc-summary li::before { content: '✓'; color: #1f7a44; font-weight: 800; flex-shrink: 0; }
.doc-h2 { font-size: 1.1rem; font-weight: 700; color: #1f5f8a; margin: 32px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }
.doc-h3 { font-size: .98rem; font-weight: 700; color: var(--ink); margin: 20px 0 6px; }
.doc-card p { font-size: .92rem; line-height: 1.8; color: var(--ink-soft); margin: 0 0 12px; }
.doc-card p strong { color: var(--ink); }
.doc-card a { color: #1f5f8a; font-weight: 500; }
.doc-card a:hover { text-decoration: underline; }
.doc-updated { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--ink-soft); margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--hairline); }

/* credit items */
.credit-list { display: grid; gap: 16px; margin-top: 6px; }
.credit-item { display: flex; gap: 16px; align-items: flex-start; background: var(--light); border: 1px solid var(--hairline); border-radius: 16px; padding: 20px 22px; }
.credit-item .ic { font-size: 1.5rem; flex-shrink: 0; }
.credit-item .nm { font-weight: 700; font-size: .96rem; margin-bottom: 5px; }
.credit-item p { font-size: .87rem; margin: 0; }
.credit-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.credit-tags span { font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: rgba(31,95,138,.1); color: #1f5f8a; }

/* ═══ CONTACT / REPORT PAGES (contatti, segnala) ═════════════════ */
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 820px; margin: 0 auto 44px; }
.contact-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 18px;
  padding: 26px 22px; text-align: center; text-decoration: none; color: var(--ink);
  box-shadow: 0 8px 26px rgba(14,27,44,.05); transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,27,44,.12); }
.contact-card .ic { font-size: 1.8rem; }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin: 12px 0 4px; }
.contact-card p { font-size: .86rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.contact-card .mail { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 600; color: #1f5f8a; }

/* generic form card (reuses .ugc look) */
.form-card { max-width: 620px; margin: 0 auto; }

@media (max-width: 760px) {
  .doc-tabs { flex-direction: column; }
  .contact-methods { grid-template-columns: 1fr; }
}

/* ═══ RESPONSIVE ═════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-window { order: 2; margin-top: 12px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hw-alt { left: -2%; top: 6%; padding: 9px 12px; }
  .split { grid-template-columns: 1fr; }
  .split .visual { order: 2; margin-top: 10px; }
  .demo-explain { grid-template-columns: 1fr; }
  .stats-v2 { grid-template-columns: repeat(2, 1fr); }
  .faqt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sec { padding: 80px 18px; }
  .descent { height: 220vh; }
}
