/* =========================================================
   HELPY — Landing site
   Design system + components — TEMA CHIARO
   ========================================================= */

:root {
  /* Brand */
  --blue: #1e4dff;          /* blu elettrico (logo) */
  --blue-bright: #2f6bff;
  --indigo: #5b46f0;        /* viola del pitch */
  --violet: #7c3aed;
  --teal: #01696f;          /* primario dell'app */
  --teal-bright: #06b6b8;

  /* Superfici chiare */
  --bg: #ffffff;            /* sfondo principale */
  --bg-soft: #f5f7fc;       /* sezioni alternate */
  --bg-tint: #eef2fb;       /* sezione tinta */
  --surface: #ffffff;       /* card */
  --line: #e6e9f2;          /* bordi */
  --line-soft: #eef1f7;

  /* Testo */
  --ink: #0c1024;           /* titoli */
  --ink-text: #0c1024;
  --slate: #51597a;         /* corpo */
  --muted: #8089a6;

  /* Gradienti */
  --grad-brand: linear-gradient(115deg, #1e4dff 0%, #5b46f0 55%, #7c3aed 100%);
  --grad-text: linear-gradient(100deg, #1e4dff 0%, #6b3ff0 55%, #8b3df0 100%);

  /* Ombre */
  --shadow-sm: 0 2px 10px rgba(16, 24, 64, 0.06);
  --shadow: 0 20px 44px -22px rgba(16, 24, 64, 0.22);
  --shadow-lg: 0 32px 64px -30px rgba(16, 24, 64, 0.26);

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Anton", "Space Grotesk", sans-serif;
  --font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
ion-icon { pointer-events: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-brand);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Typography helpers ---------- */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--slate);
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(6, 182, 184, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 184, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(6, 182, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 184, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn ion-icon { font-size: 1.2em; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  background-size: 160% 160%;
  box-shadow: 0 12px 28px -10px rgba(30, 77, 255, 0.55);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -12px rgba(91, 70, 240, 0.6);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: #fff;
  color: var(--ink-text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: #cfd6e8;
  box-shadow: var(--shadow);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.4s, border-color 0.4s, padding 0.4s, box-shadow 0.4s;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 24, 64, 0.5);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink);
}
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  box-shadow: 0 6px 18px -6px rgba(30, 77, 255, 0.7);
}
.brand__name {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links > a:not(.btn) {
  font-size: 0.95rem;
  color: var(--slate);
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad-brand);
  transition: width 0.3s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a:not(.btn):hover::after,
.nav__links > a.is-active::after { width: 100%; }
.nav__links > a.is-active { color: var(--ink); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 950;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay scuro dietro al menu mobile */
.nav__scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 32, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 890;
}
.nav__scrim.is-open { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(4rem, 8vh, 7rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  will-change: transform;
}
.aurora--1 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  top: -160px; left: -60px;
  animation: drift1 16s ease-in-out infinite;
}
.aurora--2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  top: -40px; right: -40px;
  animation: drift2 19s ease-in-out infinite;
}
.aurora--3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--teal-bright), transparent 70%);
  bottom: -180px; left: 38%;
  opacity: 0.16;
  animation: drift1 22s ease-in-out infinite reverse;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 30px) scale(1.1); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 40, 120, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 40, 120, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 35%, transparent 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 9vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--slate);
  max-width: 30rem;
  margin-bottom: 2.2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust ion-icon { color: var(--teal); font-size: 1.15rem; }

/* ---------- Phone mockup (chiaro) ---------- */
.hero__device {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone {
  position: relative;
  width: min(300px, 86vw);
  aspect-ratio: 300 / 620;
  background: #11131c;
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    0 50px 90px -34px rgba(16, 24, 64, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotateY(-14deg) rotateX(4deg) rotate(1deg);
  transition: transform 0.6s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.hero__device:hover .phone { transform: rotateY(-4deg) rotateX(2deg); }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
.phone__notch {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #11131c;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #f7f9fc;
  display: flex;
  flex-direction: column;
}

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.3rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a2138;
}
.appbar__status { display: inline-flex; gap: 5px; font-size: 0.85rem; }

.app {
  flex: 1;
  padding: 0.8rem 1.1rem 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.app__eyebrow { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.app__hi { font-size: 1.15rem; font-weight: 700; margin-top: 0.1rem; color: var(--ink); }
.app__sub { font-size: 0.74rem; color: var(--muted); margin-bottom: 0.9rem; }

.app__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  overflow: hidden;
}
.tile {
  background: #fff;
  border: 1px solid #eaeef6;
  border-radius: 14px;
  padding: 0.7rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #2a3150;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 4px 12px -8px rgba(16, 24, 64, 0.2);
}
.tile__ic {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}

.app__tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0 0.8rem;
  border-top: 1px solid #eaeef6;
  background: rgba(255, 255, 255, 0.7);
}
.app__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.58rem;
  font-weight: 600;
  color: #9aa2ba;
}
.app__tab ion-icon { font-size: 1.1rem; }
.app__tab.is-active { color: var(--teal); }

/* light-phone calendar */
.cal {
  background: #fff;
  border: 1px solid #e8ecf5;
  border-radius: 16px;
  padding: 0.7rem;
  margin: 0.6rem 0;
  box-shadow: 0 8px 20px -14px rgba(20, 30, 70, 0.3);
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1a2138;
  margin-bottom: 0.5rem;
}
.cal__head ion-icon { color: #9aa2ba; font-size: 0.9rem; }
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.cal__d {
  font-size: 0.62rem;
  font-weight: 600;
  color: #3a4361;
  padding: 4px 0;
  border-radius: 7px;
}
.cal__d--mute { color: #b4bcd0; }
.cal__d--on { background: var(--teal); color: #fff; }
.slot {
  background: #e9f6f6;
  border: 1px solid #cdebec;
  border-radius: 14px;
  padding: 0.7rem;
}
.slot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.slot__label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #11162a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.slot__label ion-icon { color: var(--teal); }
.slot__add {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: var(--teal);
  padding: 3px 8px;
  border-radius: 999px;
}
.slot__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #cdebec;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.64rem;
  font-weight: 600;
  color: #11162a;
}
.slot__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); }

/* floating cards (chiare) */
.floatcard {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow);
  animation: floatcard 6s ease-in-out infinite;
}
.floatcard strong { display: block; font-size: 0.82rem; color: var(--ink); }
.floatcard small { color: var(--muted); font-size: 0.72rem; }
.floatcard__ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
}
.floatcard--book { top: 12%; left: -6%; animation-delay: 0.4s; }
.floatcard--pay { bottom: 14%; right: -8%; animation-delay: 1.6s; }
@keyframes floatcard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.1rem 0;
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
  animation: scrollx 38s linear infinite;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  color: #aab2c8;
  letter-spacing: 0.01em;
}
.marquee__track .dot { color: var(--blue); }
@keyframes scrollx {
  to { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}
.section--light { background: var(--bg); color: var(--ink-text); }
.section--dark { background: var(--bg-soft); color: var(--ink-text); }

.section__head { max-width: 46rem; margin-bottom: 3.2rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.section__title--dark { color: var(--ink); }
.section__intro {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--slate);
}
.section__head--center .section__intro { margin-inline: auto; }
.section__intro--dark { color: var(--slate); }

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cdd5ec; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--slate);
}

/* ---------- PRONTO SOCCORSO ---------- */
.section--er {
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 90, 70, 0.10), transparent 42%),
    var(--bg);
}
.er {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.er__big {
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.er__note {
  margin-top: 1.4rem;
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 34rem;
}
.er__list { display: flex; flex-direction: column; gap: 1rem; }
.er__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.er__list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.er__list strong { font-size: 1rem; color: var(--ink); }
.er__list p { font-size: 0.88rem; color: var(--slate); margin-top: 0.2rem; }
.er__ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step:hover::before { transform: scaleX(1); }
.step__n {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  font-family: var(--font-display);
  font-size: 3rem;
  color: #eef1fa;
  line-height: 1;
}
.step__ic {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  margin-bottom: 1.3rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.6rem; color: var(--ink); }
.step p { color: var(--slate); font-size: 0.98rem; }

/* ---------- SERVICES BENTO ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.svc {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}
.svc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.svc:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 45%, var(--line));
  box-shadow: var(--shadow);
}
.svc:hover::after { opacity: 1; }
.svc__ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.55rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  margin-bottom: 1.1rem;
}
.svc h3 { font-size: 1.18rem; margin-bottom: 0.5rem; color: var(--ink); }
.svc p { font-size: 0.92rem; color: var(--slate); margin-bottom: 1.2rem; }
.svc__time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 75%, #1a2138);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* ---------- APP SECTION ---------- */
.app-sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.feats { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.feats li { display: flex; gap: 1.1rem; align-items: flex-start; }
.feats__ic {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.feats strong { font-size: 1.08rem; color: var(--ink); }
.feats p { font-size: 0.95rem; color: var(--slate); margin-top: 0.15rem; }
.app-sec__device { display: flex; justify-content: center; perspective: 1400px; }
.app-sec__device .phone {
  transform: rotateY(12deg) rotateX(4deg) rotate(-1deg);
  animation-delay: 1s;
}
.app-sec__device:hover .phone { transform: rotateY(3deg) rotateX(2deg); }

/* ---------- PAY ---------- */
.section--pay {
  background:
    radial-gradient(circle at 12% 8%, rgba(30, 77, 255, 0.07), transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(1, 105, 111, 0.07), transparent 38%),
    var(--bg-tint);
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.pay-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.pay-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cdd5ec; }
.pay-card--wide { grid-column: span 1; grid-row: span 2; display: flex; flex-direction: column; }
.pay-card__ic {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  margin-bottom: 1.2rem;
}
.pay-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--ink); }
.pay-card p { font-size: 0.94rem; color: var(--slate); }
.pay-card__badges {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pay-card__badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: var(--slate);
  background: var(--bg-soft);
}
.pay-card__badges ion-icon { color: var(--blue); font-size: 1.05rem; }

/* ---------- CTA (gradiente brand) ---------- */
.section--cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--grad-brand);
  color: #fff;
  isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta__bg .aurora { opacity: 0.4; filter: blur(80px); }
.cta__bg .aurora--1 { background: radial-gradient(circle, #ffffff, transparent 70%); top: -120px; left: 10%; }
.cta__bg .aurora--2 { background: radial-gradient(circle, #9fd5ff, transparent 70%); bottom: -140px; right: 8%; }
.cta { max-width: 48rem; margin: 0 auto; position: relative; }
.cta .badge {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 1.4rem 0 1.2rem;
  color: #fff;
}
.section--cta .grad-text {
  background: linear-gradient(100deg, #ffffff, #d4e2ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta__lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.2rem;
}
.cta__lead strong { color: #fff; }
.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.section--cta .btn--primary {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35);
}
.section--cta .btn--primary ion-icon { color: var(--blue); }
.section--cta .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow: none;
}
.section--cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.22); border-color: #fff; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  color: var(--ink-text);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand p {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.92rem;
  max-width: 22rem;
}
.footer__col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  transition: color 0.25s;
}
.footer__col a:hover { color: var(--blue); }
.footer__muted { color: var(--muted); font-size: 0.88rem; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- REVEAL ANIMATION ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet e sotto: layout a colonna singola */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__device { margin: 2.5rem auto 0; max-width: 360px; }
  .er { grid-template-columns: 1fr; }
  .app-sec { grid-template-columns: 1fr; }
  .app-sec__copy { order: 1; }
  .app-sec__device { order: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-card--wide { grid-row: span 1; grid-column: span 2; }
  .floatcard--book { left: -3%; }
  .floatcard--pay { right: -3%; }
}

/* Nav: menu a comparsa già da tablet (evita che i link sforino) */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    background: #ffffff;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px -30px rgba(16, 24, 64, 0.4);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links > a:not(.btn) { font-size: 1.2rem; }
  .nav__cta { margin-top: 0.5rem; }
  .nav__toggle { display: flex; }
  /* Nav opaca su mobile: evita il flicker del backdrop-filter durante lo scroll */
  .nav.is-scrolled {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Telefono: nascondo le card decorative flottanti (sporgono dal mockup) */
@media (max-width: 600px) {
  .floatcard { display: none; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-card--wide { grid-column: span 1; }
  .hero__trust { justify-content: center; gap: 0.9rem 1.2rem; }
  .marquee__track { font-size: 1.2rem; }
  .section__title { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  .btn { white-space: normal; }
  .btn--lg { padding: 0.9rem 1.35rem; font-size: 0.98rem; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; max-width: 100%; word-break: break-word; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
