/* Bilingue: mostra solo la lingua attiva (impostata su <html> da lang.js) */
[data-lang] { display: none !important; }
html.lang-en [data-lang="en"] { display: revert !important; }
html.lang-it [data-lang="it"] { display: revert !important; }

/* Toggle lingua */
.lang-toggle { display: inline-flex; border: 1px solid rgba(70,16,79,0.2); border-radius: 999px; overflow: hidden; margin-left: 18px; }
.lang-toggle button {
  border: none; background: transparent; color: #7a5a80; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; padding: 5px 12px; letter-spacing: 0.5px;
}
.lang-toggle button.active { background: #b41fbb; color: #fff; }

:root {
  --purple-dark: #24042a;
  --purple: #46104f;
  --magenta: #b41fbb;
  --magenta-soft: #d071d6;
  --pink: #f4e3f7;
  --cream: #f7f1e6;
  --ink: #2b2320;
  --muted: #6b5f6e;
  --radius: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fbf7f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }

a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(70, 16, 79, 0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: Georgia, serif; font-weight: bold; font-size: 20px; color: var(--purple); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav a { color: var(--purple); font-size: 15px; margin-left: 22px; font-weight: 500; }

/* Hero */
.hero {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(180, 31, 187, 0.55), transparent 60%),
    linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff; text-align: center; padding: 84px 24px 96px;
}
.hero img.appicon {
  width: 128px; height: 128px; border-radius: 29px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 60px rgba(208, 113, 214, 0.5);
}
.hero h1 { font-size: 58px; margin: 26px 0 6px; letter-spacing: -0.5px; }
.hero .subtitle { font-family: Georgia, serif; font-size: 24px; color: var(--pink); margin: 0 0 14px; }
.hero p.promo { max-width: 620px; margin: 0 auto 30px; color: #ecd7ef; font-size: 18px; }
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; background: #fff; color: var(--purple);
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
}
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn:hover { text-decoration: none; opacity: 0.92; }

/* Sections */
section { padding: 72px 0; }
section h2 { font-size: 34px; text-align: center; color: var(--purple); margin: 0 0 10px; }
section .lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 44px; font-size: 18px; }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid rgba(70,16,79,0.08); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 6px 24px rgba(70,16,79,0.05);
}
.card .ico { font-size: 26px; }
.card h3 { font-size: 20px; margin: 12px 0 6px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Alt background */
.alt { background: linear-gradient(180deg, #fbf1f7 0%, #f7f1e6 100%); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--magenta); color: #fff; font-weight: 700; font-family: Georgia, serif;
}
.step h3 { font-size: 19px; margin: 0 0 6px; color: var(--purple); }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Screenshots */
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 24px 20px; scroll-snap-type: x mandatory; }
.shots img {
  height: 560px; border-radius: 28px; scroll-snap-align: center; flex: 0 0 auto;
  box-shadow: 0 16px 44px rgba(70,16,79,0.18); border: 1px solid rgba(70,16,79,0.06);
}

/* Note about two Bibles */
.note {
  background: var(--cream); border-radius: var(--radius); padding: 22px 26px;
  color: var(--ink); max-width: 760px; margin: 24px auto 0; font-size: 15.5px;
  border: 1px solid rgba(70,16,79,0.07);
}

/* Footer */
.site-footer { background: var(--purple-dark); color: #d9c6dd; padding: 40px 24px; text-align: center; }
.site-footer a { color: #f0d9f3; margin: 0 12px; }
.site-footer .small { font-size: 13px; color: #9f86a5; margin-top: 14px; }

/* Legal / doc pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 40px; color: var(--purple); }
.doc h2 { font-size: 24px; color: var(--purple); margin-top: 34px; text-align: left; }
.doc p, .doc li { color: #3a3138; font-size: 16.5px; }
.doc .updated { color: var(--muted); font-size: 14px; }
.back { display: inline-block; margin-bottom: 20px; font-size: 15px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 46px; }
  .nav a { display: none; }          /* nasconde i link ma tiene il toggle lingua */
  .lang-toggle { margin-left: 0; }
  section { padding: 54px 0; }
  .shots img { height: 460px; }
}
