:root {
  --cream: #FAF6EF;
  --cream-deep: #F1E9DC;
  --surface: #FFFFFF;
  --ink: #1B2A4A;
  --ink-soft: #5B6680;
  --coral: #FF5A5A;
  --cobalt: #2F5BFF;
  --mint: #2EDB9A;
  --sunflower: #FFC81E;
  --violet: #7B4DFF;
  --shadow: 0 18px 40px rgba(27, 42, 74, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cobalt); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* --- testata ----------------------------------------------------------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.nav a { margin-left: 18px; text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.nav a:hover { color: var(--ink); }

/* --- apertura ---------------------------------------------------------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
  padding: 36px 0 64px;
}
.hero .logo { width: min(100%, 520px); height: auto; display: block; margin-bottom: 8px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 26px; max-width: 520px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 16px;
  box-shadow: 0 6px 0 rgba(0,0,0,.16);
}
.store.play { background: var(--cobalt); color: #fff; }
.store.apple { background: var(--ink); color: #fff; }
.store small { display: block; font-weight: 600; opacity: .8; font-size: 12px; }

.phone {
  position: relative; justify-self: center;
  width: min(300px, 80vw); aspect-ratio: 9 / 19.5;
  border-radius: 44px; padding: 10px; background: #0f1830;
  box-shadow: var(--shadow), inset 0 0 0 2px #2a3558;
}
.phone img.screen { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; display: block; }
.morphy-float {
  position: absolute; width: 140px; left: -70px; bottom: 40px;
  animation: bob 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(46, 219, 154, .35));
}
.shape { position: absolute; width: 54px; animation: bob 5s ease-in-out infinite; }
.shape.s1 { top: 8%; right: -18px; animation-delay: -1s; }
.shape.s2 { top: 42%; right: -34px; animation-delay: -2.5s; }
.shape.s3 { bottom: 10%; right: -10px; animation-delay: -3.5s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* --- sezioni ----------------------------------------------------------- */
section { padding: 56px 0; }
section h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; text-align: center; }
section p.sub { text-align: center; color: var(--ink-soft); margin: 0 auto 34px; max-width: 620px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.card img { width: 72px; height: 72px; object-fit: contain; margin: -8px 0 0 -8px; }
.card h3 { margin: 12px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); }

.shots { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.shots .phone { width: min(240px, 70vw); }

.story {
  background: linear-gradient(135deg, #2A1F55, #4B2E8F);
  color: #fff; border-radius: var(--radius); padding: 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
}
.story img { width: 160px; }
.story h2 { text-align: left; color: #fff; }
.story p { margin: 0; color: #E6DDFF; font-size: 17px; }

/* --- pagina privacy ---------------------------------------------------- */
.doc {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px; margin: 20px 0 48px;
}
.doc h1 { margin-top: 0; font-size: clamp(26px, 3.5vw, 36px); }
.doc h2 { text-align: left; font-size: 21px; margin: 28px 0 8px; }
.doc p, .doc li { color: #2d3a58; }
.doc .updated { color: var(--ink-soft); font-size: 14px; }
.lang { display: flex; gap: 8px; margin-bottom: 18px; }
.lang a {
  padding: 6px 14px; border-radius: 999px; background: var(--cream-deep);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px;
}

/* --- piede ------------------------------------------------------------- */
footer { padding: 28px 0 40px; color: var(--ink-soft); font-size: 14px; text-align: center; }
footer a { color: var(--ink-soft); margin: 0 8px; }

/* --- telefono ---------------------------------------------------------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 16px; }
  .hero .logo, .hero p.lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .morphy-float { width: 96px; left: -30px; }
  .shape { width: 40px; }
  .shape.s2 { right: -16px; }
  .features { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .story img { margin: 0 auto; width: 120px; }
  .story h2 { text-align: center; }
  .doc { padding: 24px 18px; }
  .nav a { margin-left: 12px; font-size: 14px; }
}
