/* Landing Passamano (ADR 0018). Direzione grafica: resources/views/public/DESIGN.md.
 * Font ospitati sul nostro server: nessuna richiesta a terzi. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FBF7F0;
  --paper-2: #F3EDE2;
  --line: #E4DCCE;
  --ink: #23312B;
  --ink-2: #56635C;
  --green: #2F7D5B;
  --green-ink: #24644A;
  --forest: #17302A;
  --apricot: #F2A65A;
  --error: #B3412E;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --t-display: clamp(48px, 6.6vw, 108px);
  --t-h2: clamp(40px, 6vw, 88px);
  --t-h3: clamp(24px, 2.4vw, 34px);
  --t-num: clamp(64px, 8vw, 120px);
  --t-lead: clamp(19px, 1.5vw, 22px);

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 14vw, 200px);
  --max: 1240px;
  --phone-shadow: 0 40px 80px -40px rgba(23, 48, 42, .45), 0 18px 30px -20px rgba(23, 48, 42, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:not(.motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 450 17px/1.6 var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grana da carta stampata: rumore SVG inline, nessun file esterno */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--apricot); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Tipografia ------------------------------------------------------------------------- */
.display, .h2 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
  font-weight: 380;
  letter-spacing: -.035em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: var(--t-display); }
.display > span, .h2 > span { display: block; }
.h2 { font-size: var(--t-h2); max-width: 14em; }
h3 { font-family: var(--serif); font-variation-settings: "SOFT" 30, "opsz" 72; font-weight: 420; letter-spacing: -.02em; line-height: 1.1; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 32em; }
/* Righe di SplitText: la maschera non deve tagliare le discendenti */
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* Con JS + movimento: i titoli aspettano GSAP. Rete di sicurezza: dopo 2,5 s si vedono comunque. */
.motion [data-split], .motion [data-hero-in], .motion [data-phone], .motion [data-mascot], .motion [data-tag] {
  visibility: hidden; animation: show-anyway 0s 2.5s forwards;
}
@keyframes show-anyway { to { visibility: visible; } }

/* Pulsanti e link ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: #fff; text-decoration: none;
  font: 600 17px/1 var(--sans); letter-spacing: -.005em;
  transition: background-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--green-ink); color: #fff; }
.btn .ico { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-wide { width: 100%; }
.link-quiet {
  position: relative; color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.link-quiet:hover { color: var(--ink); background-size: 40% 1px; }

/* Barra in alto ---------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.nav.is-scrolled { background: rgba(251, 247, 240, .92); border-color: var(--line); }
@supports (backdrop-filter: blur(1px)) { .nav.is-scrolled { background: rgba(251, 247, 240, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 450 23px/1 var(--serif); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; }
.nav nav { display: flex; gap: 32px; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav nav { display: none; } }

/* Hero ------------------------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: center;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  min-height: 100svh; padding: 120px var(--gutter) 72px;
}
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47, 125, 91, .5); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(47, 125, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 125, 91, 0); } }
.hero .lead { margin: 36px 0 40px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 28px 0 0; margin: 48px 0 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; font-weight: 550; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ico { width: 20px; height: 20px; color: var(--green); flex: none; }

.hero-stage { position: relative; height: min(640px, 76svh); min-height: 560px; }
/* Macchia albicocca dietro telefono e orsetto: stacca il gruppo dal fondo carta */
.hero-stage::before {
  content: ""; position: absolute; left: 50%; top: 54%; width: min(720px, 170%); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 166, 90, .5) 30%, rgba(242, 166, 90, .2) 62%, rgba(242, 166, 90, 0));
}

/* Telefono finto */
.phone {
  position: absolute; width: 288px; aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px;
  background: #1D2723; box-shadow: var(--phone-shadow), inset 0 0 0 1.5px #3a4842;
}
.hero .phone { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 88px; height: 25px; margin-left: -44px; background: #0f1513; border-radius: 20px; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper); }
.app-top { padding: 54px 16px 10px; }
.app-top strong { font: 420 22px/1.1 var(--serif); letter-spacing: -.02em; }
.app-search { margin: 10px 0; padding: 10px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.app-chips { display: flex; gap: 6px; margin-bottom: 8px; }
.app-chips span { font-size: 10px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.app-chips .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.app-top small { font-size: 10px; color: var(--ink-2); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 16px; }
.app-card { display: grid; gap: 1px; line-height: 1.3; }
.app-art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--paper-2); color: var(--ink); }
.app-art .art { width: 62%; }
.app-card b { font-size: 13px; font-weight: 700; margin-top: 6px; }
.app-card span { font-size: 10px; }
.app-card small { font-size: 9px; color: var(--ink-2); }

.float-tag {
  position: absolute; z-index: 3; right: -4%; bottom: 14%; display: flex; align-items: center; gap: 12px;
  background: var(--forest); color: rgba(255, 255, 255, .75); border-radius: 18px; padding: 14px 18px 14px 14px;
  font-size: 13px; line-height: 1.35; max-width: 230px; box-shadow: var(--phone-shadow);
}
.float-tag b { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.float-tag .ico { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--apricot); color: var(--forest); stroke-width: 2.2; }

.mascot { position: absolute; width: 180px; left: 0; bottom: 2%; z-index: 4; }
.mascot [data-arm] { transform-origin: 158px 128px; transform-box: view-box; }
.mascot [data-eyes] { transform-origin: 100px 98px; transform-box: view-box; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 112px; min-height: 0; gap: 24px; }
  .hero-stage { height: 580px; min-height: 0; }
  .float-tag { right: 0; }
}
/* Telefono: testo compatto, un solo pulsante a tutta larghezza, telefono finto in un pannello
   che lo taglia in basso così entra nello schermo insieme a orsetto e conferma di ritiro */
@media (max-width: 520px) {
  .hero { padding-top: 100px; padding-bottom: 48px; gap: 36px; }
  .kicker { margin-bottom: 20px; font-size: 14px; }
  .hero .lead { margin: 22px 0 28px; font-size: 17px; line-height: 1.55; }
  .cta-row .link-quiet { display: none; }
  .cta-row .btn { width: 100%; }
  .trust { gap: 8px; margin-top: 20px; padding-top: 0; border-top: 0; font-size: 14px; }
  .trust li { gap: 6px; padding: 7px 12px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .55); }
  .trust .ico { width: 16px; height: 16px; }

  .hero-stage { height: 440px; border-radius: 28px; overflow: hidden; background: var(--paper-2); }
  .hero-stage::before { top: 62%; width: 150%; }
  .hero .phone { width: 236px; top: 36px; transform: translateX(-50%); }
  .mascot { width: 112px; left: 6px; bottom: 6px; }
  .float-tag { right: 10px; bottom: 26px; max-width: 184px; padding: 10px 12px 10px 10px; }
  .float-tag b { font-size: 14px; }
  .float-tag .ico { width: 30px; height: 30px; padding: 6px; }
}

/* Fascia "cosa trovi" ------------------------------------------------------------------ */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker ul { display: flex; gap: 56px; list-style: none; margin: 0; padding: 0 28px; }
.ticker li { display: flex; align-items: center; gap: 14px; font: 400 24px/1 var(--serif); letter-spacing: -.015em; white-space: nowrap; }
.ticker .art { width: 40px; height: 40px; color: var(--green); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sezioni ---------------------------------------------------------------------------- */
section { scroll-margin-top: 80px; }

/* Perché */
.why { padding-top: var(--section); padding-bottom: var(--section); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 8vw, 112px); }
.stat { padding: 0 32px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 20px; font: 300 var(--t-num)/.9 var(--serif); font-variation-settings: "SOFT" 30, "opsz" 144; letter-spacing: -.045em; color: var(--green); }
.num small { font: 600 16px/1 var(--sans); letter-spacing: 0; color: var(--ink); }
.stat p:last-child { margin: 0; color: var(--ink-2); max-width: 22em; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .stat { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { padding-top: 0; border-top: 0; }
}

/* Come funziona */
.how {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 7vw, 120px);
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: var(--section) var(--gutter);
  /* fondo a tutta larghezza anche se la griglia è centrata */
  background: var(--paper-2); box-shadow: 0 0 0 100vmax var(--paper-2); clip-path: inset(0 -100vmax);
}
.how-title { grid-column: 1 / -1; margin-bottom: clamp(32px, 5vw, 72px); }
.how-phone-col { position: relative; }
.phone-steps { position: sticky; top: calc(50vh - 290px); width: 288px; margin: 0 auto; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; min-height: 64vh; align-content: center; opacity: .3; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step-n { font: 300 56px/1 var(--serif); font-variation-settings: "opsz" 144; color: var(--green); letter-spacing: -.04em; }
.step h3 { font-size: clamp(30px, 3.4vw, 48px); margin: 4px 0 16px; }
.step p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 26em; }

.step-screen { position: absolute; inset: 0; padding: 56px 16px 16px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.step-screen.is-on { opacity: 1; transform: none; }
.s-head { font: 420 18px/1.2 var(--serif); letter-spacing: -.01em; }
.s-map { position: relative; flex: 1; border-radius: 18px; overflow: hidden; background:
  linear-gradient(90deg, rgba(255, 255, 255, .7) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px) 0 0 / 28px 28px, var(--paper-2); }
.s-pin { position: absolute; transform: translate(-50%, -50%); background: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; box-shadow: 0 4px 10px rgba(23, 48, 42, .12); }
.s-pin.hot { background: var(--green); color: #fff; }
.s-ring { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px; border-radius: 50%; border: 1px dashed rgba(47, 125, 91, .6); }
.s-card { display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px; border-radius: 16px; border: 1px solid var(--line); font-size: 12px; }
.s-card .app-art { width: 44px; border-radius: 10px; }
.s-card .app-art .art { width: 70%; }
.s-card div:not(.app-art) { flex: 1; display: grid; line-height: 1.3; }
.s-card small { color: var(--ink-2); }
.bubble { max-width: 80%; padding: 9px 12px; border-radius: 16px; font-size: 12px; line-height: 1.4; }
.bubble.in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.offer { align-self: center; display: grid; justify-items: center; background: var(--paper-2); border-radius: 16px; padding: 10px 22px; font-size: 12px; }
.offer b { font: 400 26px/1.2 var(--serif); }
.offer .ok { display: flex; align-items: center; gap: 4px; color: var(--green); font-weight: 700; }
.offer .ico, .released .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.pay-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay-row.total { font-size: 15px; border: 0; }
.vault { display: flex; align-items: center; gap: 10px; background: var(--paper-2); border-radius: 16px; padding: 12px; font-size: 12px; }
.vault .ico { width: 24px; height: 24px; flex: none; color: var(--green); }
.vault p { margin: 0; line-height: 1.4; }
.pay-btn { margin-top: auto; text-align: center; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px; font-weight: 600; font-size: 13px; }
.qr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; width: 170px; margin: 18px auto 6px; padding: 14px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.qr i { aspect-ratio: 1; border-radius: 2px; background: #EEF0EC; }
.qr i.b { background: var(--ink); }
.code { text-align: center; font-size: 13px; margin: 0; }
.code b { letter-spacing: .12em; }
.released { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; background: var(--apricot); color: var(--forest); border-radius: 16px; padding: 12px; font-weight: 700; font-size: 13px; }

@media (max-width: 860px) {
  .how { grid-template-columns: 1fr; }
  .how-title { margin-bottom: 8px; }
  .how-phone-col {
    position: sticky; top: 72px; z-index: 3; height: 360px; margin: 0 calc(var(--gutter) * -1);
    background: linear-gradient(var(--paper-2) 90%, rgba(243, 237, 226, 0));
  }
  .phone-steps { position: absolute; top: 8px; left: 50%; margin-left: -144px; transform: scale(.58); transform-origin: top center; }
  .step { min-height: 46vh; align-content: start; padding-top: 24px; grid-template-columns: 44px 1fr; }
  .step-n { font-size: 40px; }
}

/* Protezione: sezione scura */
.protect { background: var(--forest); color: #fff; padding: var(--section) 0; overflow: hidden; }
.protect .h2 { color: #fff; }
.flow { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-nodes { list-style: none; margin: 0; padding: 0; }
.flow-node { position: absolute; display: grid; justify-items: center; text-align: center; gap: 2px; transform: translate(-50%, -50%); line-height: 1.3; }
.node-ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--forest); border: 1px solid rgba(255, 255, 255, .22); }
.node-ico .ico { width: 28px; height: 28px; }
.flow-node b { margin-top: 12px; font-weight: 600; white-space: nowrap; }
.flow-node small { color: rgba(255, 255, 255, .65); font-size: 14px; }
.n1 { left: 12.2%; top: 58.3%; }
.n2 { left: 50%; top: 50%; }
.n2 .node-ico { background: var(--apricot); border-color: var(--apricot); color: var(--forest); }
.n3 { left: 87.8%; top: 45.8%; }
.protect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; margin-top: clamp(72px, 10vw, 140px); }
.protect-grid article { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 24px; }
.protect-grid .ico { width: 28px; height: 28px; color: var(--apricot); }
.protect-grid h3 { font-size: 23px; margin: 20px 0 10px; }
.protect-grid p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 16px; }
@media (max-width: 960px) { .protect-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .protect-grid { grid-template-columns: 1fr; }
  .flow { margin-bottom: 40px; }
  .node-ico { width: 46px; height: 46px; }
  .node-ico .ico { width: 22px; height: 22px; }
  .flow-node b { font-size: 12px; margin-top: 6px; }
  .flow-node small { display: none; }
}

/* Zona */
.zone { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: var(--section); padding-bottom: var(--section); }
.zone .lead { margin: 32px 0 20px; }
.zone-copy > p:last-child { color: var(--ink-2); max-width: 32em; }
.zone-map svg { width: 100%; height: auto; border-radius: 28px; background: var(--paper-2); }
.sea { fill: #E2E9E3; }
.coast { stroke: #CBD6CE; stroke-width: 1.5; }
.ring { stroke: var(--green); stroke-width: 1.25; stroke-dasharray: 3 6; }
.ring-label { font: 600 13px var(--sans); fill: var(--green); }
.town circle { fill: var(--ink); }
.town text { font: 500 14px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper-2); stroke-width: 4px; }
.here { font: 450 18px var(--serif); letter-spacing: -.01em; fill: var(--ink); paint-order: stroke; stroke: var(--paper-2); stroke-width: 5px; }
.here-narrow { display: none; }
.sea-label { font: italic 400 16px var(--serif); fill: #6E8A80; }
.pulse { fill: var(--green); opacity: .18; }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .town text { font-size: 24px; stroke-width: 6px; }
  .town circle { r: 5px; }
  .town.minor { display: none; }
  .here { font-size: 28px; }
  .here-wide { display: none; }
  .here-narrow { display: inline; }
  .ring-label { font-size: 20px; }
  .sea-label { font-size: 24px; }
}

/* Lista d'attesa */
.join { background: var(--green); color: #fff; }
.join .h2 { color: #fff; }
.join-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start;
  padding-top: var(--section); padding-bottom: var(--section);
}
.join-copy p { font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 26em; margin: 32px 0 0; }
.count { display: inline-flex; gap: 6px; color: #fff !important; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 20px; }
.join-form { position: relative; z-index: 2; display: grid; gap: 20px; background: var(--paper); color: var(--ink); border: 0; box-shadow: 0 24px 60px rgba(23, 48, 42, .25); border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.field input[type=email], .field input[type=text] {
  width: 100%; min-height: 54px; font: 500 17px var(--sans); color: var(--ink);
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2);
  transition: border-color .2s, background-color .2s;
}
.field input::placeholder { color: #8A948E; }
.field input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(47, 125, 91, .15); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 11px 6px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.check { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); align-items: flex-start; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 600; color: var(--green); }
.form-msg.is-error { color: var(--error); }
.join-form.is-done .field, .join-form.is-done .check, .join-form.is-done .btn { display: none; }
.join-form.is-done .form-msg { font: 400 28px/1.2 var(--serif); letter-spacing: -.015em; color: var(--ink); padding: 32px 8px; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
@media (max-width: 860px) { .join-inner { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .seg { grid-template-columns: 1fr; border-radius: 20px; } .seg span { border-radius: 16px; } }

/* Domande */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px clamp(40px, 7vw, 120px); padding-top: var(--section); padding-bottom: var(--section); }
.faq .h2 { align-self: start; position: sticky; top: 112px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font: 420 var(--t-h3)/1.2 var(--serif); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.plus { position: relative; flex: none; width: 20px; height: 20px; transition: transform .35s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 1.5px; margin-top: -.75px; background: currentColor; border-radius: 2px; }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; color: var(--ink-2); font-size: 18px; max-width: 36em; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq .h2 { position: static; } }

/* Piè di pagina */
.footer { background: var(--forest); color: rgba(255, 255, 255, .7); padding: 72px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-brand { margin: 0 0 8px; font: 400 40px/1 var(--serif); letter-spacing: -.03em; color: #fff; }
.footer p { margin-top: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer nav a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer nav a:hover { color: #fff; text-decoration: underline; }
.footer :focus-visible { outline-color: var(--apricot); }
.copy { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }

/* Movimento ridotto: tutto visibile e fermo */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-track { width: auto; }
  .ticker ul { flex-wrap: wrap; gap: 20px 40px; }
  .ticker-copy { display: none !important; }
}
