/*
  SeisMeteo — stile del sito seismeteo.com (design "v3", ottobre 2026)

  Home: testata e hero "giorno sopra, notte sotto" con la traccia sismica come
  orizzonte, poi sezioni scure (ritorno, iPhone Duo, funzioni, Gratis/Pro).
  Pagine interne: testata compatta scura e colonna di lettura su fondo scuro.

  Linee guida di marketing di Apple: il sito non disegna prodotti Apple. I
  dispositivi sono le cornici ufficiali di Apple Design Resources (iPhone 18
  Pro Max e iPhone Duo), unite alle schermate vere dell'app in un'unica
  immagine da strumenti_cornici.py e mostrate così come sono: niente
  inclinazioni, ritagli, ombre aggiunte o animazioni. Si animano solo testi e
  grafiche del sito.

  Animazioni (solo con prefers-reduced-motion: no-preference):
  - scroll-driven in CSS, dentro @supports (animation-timeline: view());
  - se il browser non le supporta (o con ?fallback=1) site.js mette la classe
    "no-sda" su <html> e pilota le stesse animazioni con IntersectionObserver
    e variabili CSS (--t) aggiornate a ogni frame di scorrimento.
  Senza animazioni la pagina è statica e leggibile: testi e riquadri visibili.

  Nessun attributo style nell'HTML (la CSP ha style-src 'self'): le variabili
  impostate da site.js passano dal CSSOM, che la CSP non blocca.
*/

:root {
  color-scheme: dark;
  --night: #0b1233;
  --deep: #070b1c;
  --ink: #13204d;
  --card: #0f1633;
  --card-2: #16204a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --sun1: #ffe7a8;
  --sun2: #ffc070;
  --sun3: #ff9148;
  --moon: #f6e98f;
  --accent: #13a4ec;
  --orange: #ff8a3d;
  --text: #eef1fb;
  --text-2: #c9cee3;
  --muted: #a3aac6;
  --link: #7ccaf6;
  --focus: #4cc3ff;
  --todo-bg: #5c4400;
  --todo-text: #ffe08a;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--deep);
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .6rem 1rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Segnaposto da completare: volutamente vistosi */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  font-weight: 700;
  padding: 0 .3em;
  border-radius: 4px;
  outline: 1px dashed var(--todo-text);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.trace { fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ================================================================
   Testata
   ================================================================ */

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 12px 34px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
}

.site-header .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 14.5px;
}
.site-header .links a {
  color: inherit;
  text-decoration: none;
  opacity: .86;
  padding: 4px 0;
}
.site-header .links a:hover { opacity: 1; text-decoration: underline; }
.site-header .links a[aria-current="page"] {
  opacity: 1;
  font-weight: 650;
  box-shadow: 0 2px 0 currentColor;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
}
.lang a,
.lang span {
  padding: 4px 8px;
  border-radius: 99px;
  color: inherit;
  text-decoration: none;
}
.lang a { opacity: .78; }
.lang a:hover { opacity: 1; text-decoration: underline; }
.lang [aria-current] {
  background: rgba(19, 32, 77, .12);
}

/* Home: testata trasparente sopra il cielo del giorno, testo color inchiostro */
.site-header.is-home {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  color: var(--ink);
}
.site-header.is-home :focus-visible { outline-color: var(--ink); }

/* Pagine interne: versione compatta e scura */
.site-header.is-compact {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, #1a275f 0%, var(--night) 70%, var(--deep) 100%);
  overflow: hidden;
}
.site-header.is-compact .bar { min-height: 68px; padding-top: 6px; padding-bottom: 6px; }
.site-header.is-compact .brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.site-header.is-compact .lang [aria-current] { background: rgba(255, 255, 255, .16); }
.header-trace {
  display: block;
  width: 1600px;
  max-width: none;
  height: 34px;
  margin: -8px auto 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ================================================================
   Piè di pagina
   ================================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #a3a8c0;
  background: var(--deep);
}
.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 48px;
  align-items: start;
}
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #e3e7f5; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ================================================================
   HOME
   ================================================================ */

.home main { display: block; }

.kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffb35c;
}
.kicker.blue { color: #4cc3ff; }
/* Kicker che contengono marchi Apple: niente maiuscolo, i marchi restano "iPhone" e "App Store" */
.kicker.plain { text-transform: none; letter-spacing: .02em; font-size: 15px; }

/* ---------- Icona come elemento grafico ---------- */

.cloud { position: relative; width: 1.9em; height: 1.15em; filter: drop-shadow(0 .05em .05em rgba(0, 0, 0, .2)); }
.cl { position: absolute; background: #fff; border-radius: 50%; }
.cl1 { left: 0; bottom: 0; width: 1.9em; height: .62em; border-radius: .31em; }
.cl2 { left: .26em; bottom: .26em; width: .78em; height: .78em; }
.cl3 { left: .8em; bottom: .3em; width: .92em; height: .92em; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 820px;
  overflow: hidden;
  background: var(--night);
}
.h-day {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 560px;
  background: linear-gradient(180deg, var(--sun1) 0%, var(--sun2) 52%, var(--sun3) 100%);
}
.h-night {
  position: absolute;
  left: 0;
  right: 0;
  top: 560px;
  bottom: 0;
  background: linear-gradient(180deg, #22327a 0%, var(--night) 100%);
}
.sky { height: 100%; }
.h-trace {
  position: absolute;
  left: 50%;
  top: -70px;
  width: 4000px;
  max-width: none;
  height: 140px;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .18));
  z-index: 1;
}
.h-sun {
  position: absolute;
  left: 600px;
  top: 64px;
  width: 150px;
  height: 150px;
  --ring: 26px;
  --halo: 110px;
}
.h-sun::before,
.h-sun::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
/* Alone (sotto): anello e bagliore. Pulsa con opacity e transform, che non
   ridisegnano la pagina; il fondo dello stesso colore dell'anello copre lo
   spazio che si apre tra disco e anello quando si ingrandisce. */
.h-sun::before {
  background: rgba(255, 240, 190, .34);
  box-shadow: 0 0 0 var(--ring) rgba(255, 240, 190, .34), 0 0 var(--halo) rgba(255, 236, 160, .95);
  opacity: .85;
}
/* Disco (sopra) */
.h-sun::after { background: radial-gradient(circle at 40% 38%, #fffbe6 0%, #ffe680 50%, #ffc533 100%); }
.h-cloud { position: absolute; left: 668px; top: 160px; font-size: 52px; }
.h-moon {
  position: absolute;
  left: 70px;
  top: 70px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 15px -3px 0 0 var(--moon);
}
.star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.star.s1 { left: 150px; top: 140px; }
.star.s2 { left: 300px; top: 200px; animation-delay: .8s; }
.star.s3 { left: 470px; top: 90px; animation-delay: 1.6s; }
.star.s4 { left: 640px; top: 180px; animation-delay: .4s; }
.star.s5 { left: 1040px; top: 60px; animation-delay: 2.2s; }
.star.s6 { left: 1120px; top: 200px; animation-delay: 1.2s; }

.hero-inner { height: 100%; z-index: 3; }
.copy {
  position: absolute;
  left: var(--gutter);
  top: 136px;
  width: 560px;
  color: var(--ink);
  z-index: 3;
}
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(19, 32, 77, .1);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #d62f32; display: block; flex: none; }
.copy h1 {
  font-size: 78px;
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 800;
  margin: 18px 0;
}
/* "The ground below." è più lungo di "La terra sotto.": resta su due righe */
html[lang="en"] .copy h1 { font-size: 66px; }
.hero-lead {
  font-size: 18.5px;
  line-height: 1.5;
  margin: 0 0 26px;
  color: rgba(19, 32, 77, .82);
  text-wrap: pretty;
}
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
}
.store img { display: block; width: 162px; height: 54px; }
.store:focus-visible { outline-offset: 4px; }
.note { margin: 0; font-size: 13.5px; color: rgba(19, 32, 77, .78); line-height: 1.4; }

.h-shot { position: absolute; right: 120px; top: 96px; z-index: 3; width: 300px; }
.h-shot img { display: block; width: 100%; height: auto; }

/* Rullo disegnato nelle card delle funzioni */
.heli { width: 100%; height: auto; display: block; }

/* ---------- Banda sismica ---------- */

.band {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night), var(--deep));
}
.band svg { position: absolute; left: 0; top: 0; width: 4800px; max-width: none; height: 110px; }

/* ---------- SeisMeteo è tornata ---------- */

.ret {
  position: relative;
  padding: 80px 0 120px;
  background: radial-gradient(60% 50% at 50% 30%, rgba(255, 138, 61, .16), rgba(0, 0, 0, 0) 70%), var(--deep);
  text-align: center;
  /* clip e non hidden: hidden ne farebbe un contenitore di scorrimento e le
     timeline view() delle icone resterebbero ferme */
  overflow: hidden;
  overflow: clip;
}
.ret h2 {
  font-size: 112px;
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 850;
  margin: 18px 0 22px;
}
.grad {
  background: linear-gradient(90deg, #ffe08f, #ff8a3d 60%, #ff6a4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ret .lead {
  font-size: 21px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .76);
  max-width: 720px;
  margin: 0 auto;
  text-wrap: pretty;
}
.icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin: 64px 0 20px;
}
.icons figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.icons figcaption { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .6); letter-spacing: .06em; }
.icons img { display: block; width: 150px; height: 150px; border-radius: 22.37%; }
.old img { filter: saturate(.85); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.new img { box-shadow: 0 28px 80px rgba(255, 140, 60, .4), 0 10px 30px rgba(0, 0, 0, .45); }
.arrow svg { display: block; width: 120px; height: 40px; }

.timeline {
  position: relative;
  max-width: 980px;
  margin: 54px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 179, 92, .7));
}
.step { position: relative; padding: 30px 26px 0 0; }
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid rgba(255, 255, 255, .5);
}
.step.now::before { background: var(--orange); border-color: #ffd27a; box-shadow: 0 0 0 6px rgba(255, 138, 61, .2); }
.step b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.step span { display: block; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); margin-top: 6px; }

.legacy {
  display: inline-flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 60px;
  padding: 16px 22px 16px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  text-align: left;
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 660px;
}
.legacy p { margin: 0; color: rgba(255, 255, 255, .86); }
.legacy p + p { margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.legacy b { color: #fff; }
.legacy .badge {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #0b1233;
  background: linear-gradient(160deg, #ffd27a, #ff8a3d);
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.2;
}

/* ---------- iPhone Duo ---------- */

.duo {
  position: relative;
  padding: 110px 0 120px;
  background: radial-gradient(50% 40% at 50% 60%, rgba(19, 164, 236, .12), rgba(0, 0, 0, 0) 70%), var(--deep);
}
.duo-head { text-align: center; margin-bottom: 56px; }
.duo-head h2 { font-size: 64px; line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin: 12px 0 0; text-wrap: balance; }

/* iPhone Duo chiuso (immagine ferma: cornice ufficiale e schermata vera) e
   accanto le didascalie, che compaiono una alla volta scorrendo. */
.duo-grid { display: flex; align-items: center; justify-content: center; gap: 72px; }
.dev { margin: 0; flex: none; }
.dev img { display: block; width: 100%; height: auto; }
.dev-chiuso { width: 320px; }
.duo-caps { display: flex; flex-direction: column; gap: 20px; max-width: 470px; }
.cap { margin: 0; font-size: 21px; line-height: 1.45; color: rgba(255, 255, 255, .84); text-wrap: pretty; }
.cap b { color: #fff; }
.duo-note { margin: 6px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .62); text-wrap: balance; }

/* ---------- Funzioni ---------- */

.feat { padding: 110px 0 40px; }
.sec-h { text-align: center; margin-bottom: 44px; }
.sec-h h2 { font-size: 56px; line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin: 12px 0 10px; text-wrap: balance; }
.sec-h p:not(.kicker) { font-size: 19px; color: rgba(255, 255, 255, .7); margin: 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bc { background: var(--card); border: 1px solid rgba(255, 255, 255, .07); border-radius: 26px; padding: 26px; overflow: hidden; }
.bc.wide2 { grid-column: span 2; }
.bc .k { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bc h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; margin: 8px 0; }
.bc p:not(.k) { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .72); margin: 0; }
.bc p.after { margin-top: 10px; }
.bc p.fine { margin-top: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.k.o { color: #ffb35c; }
.k.r { color: #ff7a6b; }
.k.g { color: #3ee8bd; }
.k.b { color: #4cc3ff; }
.k.w { color: #c7cdf0; }
.bheli { margin-top: 18px; background: #0a1028; border-radius: 16px; padding: 14px 16px; }
.bq { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bq div { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 8px 10px; font-size: 13.5px; }
.bq span { color: rgba(255, 255, 255, .6); font-size: 12px; margin-left: auto; }
/* Magnitudo colorate come nell'app */
.m { width: 34px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.m.g { background: rgba(16, 212, 160, .16); color: #10d4a0; }
.m.y { background: rgba(251, 191, 36, .16); color: #fbbf24; }
.m.o { background: rgba(249, 115, 22, .18); color: #f97316; }
.bt { font-size: 64px; font-weight: 200; letter-spacing: -.03em; margin-top: 10px; line-height: 1.1; }
.bars { display: flex; gap: 8px; align-items: flex-end; height: 56px; margin-top: 10px; }
.bars i { flex: 1; border-radius: 6px; background: linear-gradient(180deg, #ffb35c, #ff8a3d); display: block; }
.bars .b1 { height: 60%; }
.bars .b2 { height: 72%; }
.bars .b3 { height: 55%; }
.bars .b4 { height: 80%; }
.bars .b5 { height: 90%; }
.bars .b6 { height: 68%; }
.bars .b7 { height: 62%; }
.chips { margin-top: 2px; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 99px; margin: 12px 6px 0 0; }
.chip.y { background: rgba(251, 191, 36, .16); color: #fbbf24; }
.chip.o { background: rgba(249, 115, 22, .16); color: #fb923c; }

/* ---------- Gratis e Pro ---------- */

.pro { padding: 90px 0 110px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { border-radius: 24px; padding: 28px 26px; background: var(--card); border: 1px solid rgba(255, 255, 255, .07); }
.plan.p {
  background: linear-gradient(160deg, rgba(255, 138, 61, .22), rgba(34, 50, 122, .35) 55%, var(--card));
  border-color: rgba(255, 179, 92, .35);
}
.plan .nm { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.plan .pr { margin: 6px 0 2px; font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.plan .pr small { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .75); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 15px; line-height: 1.45; }
.plan li { padding: 8px 0 8px 24px; position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #3ee8bd;
  border-bottom: 2px solid #3ee8bd;
  transform: rotate(-45deg);
}
.plan.p li::before { border-color: #ffb35c; }
.plans-note { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, .66); text-align: center; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.tr { padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); }
.tr h3 { margin: 0 0 4px; font-size: 16.5px; }
.tr p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .7); line-height: 1.45; }
.sources-line {
  margin: 36px auto 0;
  max-width: 860px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .66);
  text-align: center;
}

/* ================================================================
   ANIMAZIONI
   ================================================================ */

@keyframes glow { 50% { opacity: 1; transform: scale(1.1); } }
@keyframes drift { 50% { transform: translateX(-18px); } }
@keyframes tw { 50% { opacity: .25; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bmove { from { transform: translateX(0); } to { transform: translateX(-1200px); } }

@media (prefers-reduced-motion: no-preference) {
  .h-sun::before { animation: glow 6s ease-in-out infinite; }
  .h-cloud { animation: drift 14s ease-in-out infinite; }
  .star { animation: tw 3.4s ease-in-out infinite; }
  .star.s2 { animation-delay: .8s; }
  .star.s3 { animation-delay: 1.6s; }
  .star.s4 { animation-delay: .4s; }
  .star.s5 { animation-delay: 2.2s; }
  .star.s6 { animation-delay: 1.2s; }
  .pill i { animation: tw 1.8s ease-in-out infinite; }
  .h-trace polyline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.6s .4s cubic-bezier(.2, .7, .2, 1) forwards; }
  /* Si sposta l'svg intero (non un suo gruppo): passa dal compositore */
  .band svg { animation: bmove 18s linear infinite; }
  /* Fuori schermo le animazioni infinite si fermano (site.js mette "is-off") */
  .hero.is-off .h-sun::before,
  .hero.is-off .h-cloud,
  .hero.is-off .star,
  .hero.is-off .pill i,
  .band.is-off svg { animation-play-state: paused; }

  /* --- Scroll-driven animations (CSS) --- */
  @supports (animation-timeline: view()) {
    html:not(.no-sda) .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    /* Sbiadisce solo l'icona del 2014, non la didascalia */
    html:not(.no-sda) .old img { animation: oldout linear both; animation-timeline: view(); animation-range: cover 30% cover 55%; }
    html:not(.no-sda) .new { animation: newin linear both; animation-timeline: view(); animation-range: cover 25% cover 50%; }
    html:not(.no-sda) .arrow polyline { stroke-dasharray: 1; animation: ar linear both; animation-timeline: view(); animation-range: cover 22% cover 45%; }
    @keyframes rv { from { opacity: 0; transform: translateY(46px) scale(.98); } to { opacity: 1; transform: none; } }
    @keyframes oldout { from { opacity: 1; transform: none; } to { opacity: .35; transform: scale(.88) rotate(-4deg); } }
    @keyframes newin { from { opacity: 0; transform: scale(.6) rotate(10deg); } to { opacity: 1; transform: none; } }
    @keyframes ar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  }

  /* --- Ripiego con site.js (classe no-sda su <html>) --- */
  html.no-sda .old img { opacity: calc(1 - .65 * var(--t, 0)); transform: scale(calc(1 - .12 * var(--t, 0))) rotate(calc(-4deg * var(--t, 0))); }
  html.no-sda .new { opacity: var(--t, 1); transform: scale(calc(.6 + .4 * var(--t, 1))) rotate(calc(10deg * (1 - var(--t, 1)))); }
  html.no-sda .arrow polyline { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 1)); }
  html.no-sda .rv { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
  html.no-sda.io .rv:not(.is-in) { opacity: 0; transform: translateY(46px) scale(.98); }
}

/* ================================================================
   PAGINE INTERNE (supporto, privacy, termini, fonti, 404)
   ================================================================ */

.page main {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 88px;
}
.page h1 {
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  text-wrap: balance;
}
.page h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 750;
  color: #fff;
  margin: 52px 0 14px;
  scroll-margin-top: 24px;
}
.page h3 {
  font-size: 18.5px;
  line-height: 1.3;
  color: #fff;
  margin: 30px 0 10px;
  scroll-margin-top: 24px;
}
.page p, .page ul, .page ol { margin: 0 0 16px; color: var(--text-2); }
.page ul, .page ol { padding-left: 1.35rem; }
.page li { margin-bottom: 7px; }
.page li::marker { color: #7f88b0; }
.page strong, .page b { color: #fff; }
.page .lead { font-size: 20px; line-height: 1.55; color: #dfe3f2; }
.page .muted { color: var(--muted); }
.page .small { font-size: 14.5px; }
.page .updated { font-size: 14.5px; color: var(--muted); margin-top: -4px; }

.page .cta {
  display: inline-block;
  background: var(--accent);
  color: #04121b;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 99px;
}
.page .cta:hover { background: #3fb7f3; }

.notice {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-left: 4px solid #ffb35c;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 24px 0;
}
.notice.info { border-left-color: var(--accent); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--card);
}
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.55; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--text-2);
}
thead th { background: var(--card-2); color: #fff; font-weight: 700; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: #fff; font-weight: 600; }

details {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 20px 14px 36px;
  margin: 0 0 10px;
}
details[open] { padding-bottom: 18px; }
summary {
  cursor: pointer;
  font-weight: 650;
  color: #fff;
  list-style-position: outside;
}
summary::marker { color: #ffb35c; }
details > *:not(summary):first-of-type { margin-top: 12px; }
details p:last-child, details ul:last-child, details ol:last-child { margin-bottom: 0; }

.email-box {
  background: linear-gradient(160deg, rgba(19, 164, 236, .14), var(--card) 60%);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 20px 0 32px;
}
.email-box .address {
  display: block;
  font-family: var(--mono);
  font-size: 19px;
  color: #fff;
  margin: 6px 0 14px;
  user-select: all;
  -webkit-user-select: all;
}

.eula {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 8px 24px 20px;
  margin: 24px 0;
}
.eula h2 { margin-top: 18px; font-size: 22px; }
.eula h3 { margin-top: 26px; font-size: 17px; }
.eula p, .eula li { font-size: 16px; }
.caps { font-weight: 700; letter-spacing: .01em; color: #fff; }

dl.sources { margin: 0 0 16px; }
dl.sources dt { font-weight: 700; color: #fff; margin-top: 18px; }
dl.sources dd { margin: 4px 0 0; color: var(--text-2); }

.notfound-en { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line-2); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Desktop stretto: schermata più vicina al bordo; sole più piccolo nello spazio
   tra il testo e la schermata, con la nuvola in basso a destra come nel design */
@media (max-width: 1219px) and (min-width: 1000px) {
  .h-shot { right: var(--gutter); }
  .copy { width: min(560px, calc(100% - 300px - 3 * var(--gutter) - 24px)); }
  .copy h1 { font-size: 70px; }
  html[lang="en"] .copy h1 { font-size: 58px; }
  .h-sun { left: auto; right: 360px; top: 70px; width: 110px; height: 110px; --ring: 18px; --halo: 80px; }
  .h-cloud { left: auto; right: 348px; top: 138px; font-size: 40px; }
}

/* Computer con finestra bassa (portatile con le barre del browser): iPhone
   più piccolo, così resta intero sopra la piega */
@media (min-width: 1000px) and (max-height: 719px) {
  .h-shot { top: 88px; width: 240px; }
}

/* Tablet e telefono: hero impilato (testo sul giorno, schermata sulla notte) */
@media (max-width: 999px) {
  :root { --gutter: 32px; }
  .hero {
    height: auto;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
  }
  .h-day, .h-night { position: relative; top: auto; height: auto; }
  .h-day { grid-area: 1 / 1; }
  .h-night { grid-area: 2 / 1; }
  .sky { position: absolute; inset: 0; padding: 0; max-width: none; }
  .hero-inner { display: contents; }
  .copy {
    grid-area: 1 / 1;
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    max-width: 640px;
    padding: 118px var(--gutter) 88px;
  }
  .h-shot {
    grid-area: 2 / 1;
    position: relative;
    right: auto;
    top: auto;
    justify-self: center;
    width: 260px;
    margin: 72px 0 64px;
  }
  .h-sun { left: auto; right: 28px; top: 92px; width: 104px; height: 104px; --ring: 18px; --halo: 80px; }
  .h-cloud { left: auto; right: 6px; top: 160px; font-size: 38px; }
  .h-moon { left: 28px; top: 120px; }
  .star.s1 { left: 12%; top: 60px; }
  .star.s2 { left: 22%; top: 380px; }
  .star.s3 { left: 84%; top: 90px; }
  .star.s4 { left: 8%; top: 560px; }
  .star.s5 { left: 90%; top: 420px; }
  .star.s6 { left: 78%; top: 640px; }
  .h-trace { width: 2833px; height: 99px; top: -50px; }

  .ret h2 { font-size: clamp(54px, 12vw, 96px); }
  .duo-head h2 { font-size: clamp(38px, 7vw, 56px); }
  .duo { padding: 88px 0 96px; }
  .duo-grid { flex-direction: column; gap: 44px; }
  .duo-caps { max-width: 560px; text-align: center; }
  .sec-h h2 { font-size: clamp(34px, 6vw, 48px); }
  .bento { grid-template-columns: 1fr 1fr; }
  .site-footer .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 26px; max-width: 420px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 179, 92, .7)); }
  .step { padding: 0 0 0 36px; }
  .step b { font-size: 28px; }
}

@media (max-width: 639px) {
  :root { --gutter: 20px; }
  body { font-size: 16.5px; }
  /* Su telefono la testata della home tiene solo Supporto (le sezioni sono sotto) */
  .site-header.is-home .bar { gap: 12px 16px; }
  .site-header.is-home .links a:not(.nav-support) { display: none; }
  .site-header.is-compact .bar { flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .site-header.is-compact .links { order: 3; width: 100%; gap: 4px 20px; font-size: 14px; padding-bottom: 6px; }
  .copy { padding: 104px var(--gutter) 80px; }
  .copy h1 { font-size: clamp(40px, 11.2vw, 56px); margin: 16px 0; }
  /* "The ground below." è più lungo: titolo un po' più piccolo e nuvola stretta al sole */
  html[lang="en"] .copy h1 { font-size: clamp(34px, 9.2vw, 52px); }
  .hero-lead { font-size: 17px; }
  .ret { padding: 64px 0 88px; }
  .ret .lead { font-size: 18px; }
  .icons { gap: 18px; margin-top: 48px; }
  .icons img { width: 96px; height: 96px; }
  .arrow svg { width: 72px; height: 24px; }
  .legacy { margin-top: 44px; padding: 14px 16px 14px 14px; gap: 12px; }
  .cap { font-size: 17px; }
  .duo-head { margin-bottom: 28px; }
  .h-shot { width: 240px; }
  .dev-chiuso { width: min(300px, 78vw); }
  .h-sun { right: -22px; top: 104px; width: 96px; height: 96px; }
  .h-cloud { right: 4px; top: 170px; font-size: 32px; }
  html[lang="en"] .h-cloud { right: 0; top: 182px; font-size: 26px; animation: none; }
  .h-moon { left: 14px; top: 12px; width: 44px; height: 44px; box-shadow: 12px -2px 0 0 var(--moon); }
  .feat { padding: 84px 0 28px; }
  .sec-h { margin-bottom: 32px; }
  .sec-h p:not(.kicker) { font-size: 17px; }
  .bento, .plans { grid-template-columns: 1fr; }
  .bc.wide2 { grid-column: auto; }
  .bc { padding: 22px; border-radius: 22px; }
  .bc h3 { font-size: 21px; }
  .pro { padding: 64px 0 84px; }
  .page main { padding: 32px 20px 72px; }
  .page h1 { font-size: 34px; }
  .page h2 { font-size: 22px; margin-top: 40px; }
  .page .lead { font-size: 18px; }
  .eula { padding: 4px 16px 16px; }

  /* Tabelle lunghe: ogni riga diventa una scheda */
  table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line-2); padding: 8px 0; }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { border-bottom: 0; padding: 5px 16px; }
  table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
  }
}

/* Telefoni molto stretti: la nuvola sale accanto alla prima riga del titolo, che è più corta */
@media (max-width: 359px) {
  .h-cloud,
  html[lang="en"] .h-cloud { right: 12px; top: 162px; font-size: 24px; animation: none; }
}

/* Riduzione del movimento: tutto fermo e leggibile (le immagini dei dispositivi non si animano mai) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .grad { color: CanvasText; background: none; }
  .todo { outline: 2px solid CanvasText; }
}

@media print {
  .site-header .links, .lang, .skip, .store, .band, .duo, .header-trace { display: none !important; }
  body, html, .site-header.is-compact, .site-footer { background: #fff !important; color: #000 !important; }
  .page h1, .page h2, .page h3, .page p, .page li, td, th, dd, dt, summary { color: #000 !important; }
  .notice, details, .eula, .email-box, .table-wrap { background: #fff !important; border-color: #999 !important; }
}
