/* BOMA digital services — stile del sito.
   Nessuna risorsa esterna: font ospitato qui, nessun cookie né tracciamento. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #0b0b12;
  --ink-2: #14141f;
  --lime: #b4ff39;
  --lime-deep: #7ccf00;
  --indigo: #5856d6;
  --violet: #8b7bff;

  --bg: #f7f7f2;
  --surface: #ffffff;
  --text: #111118;
  --muted: #5d5d6a;
  --line: rgba(17, 17, 24, 0.09);
  --shadow: 0 20px 50px -24px rgba(17, 17, 40, 0.35);

  --radius: 28px;
  --max: 1120px;
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07070c;
    --surface: #12121b;
    --text: #f3f3f7;
    --muted: #a3a3b3;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 20px 60px -28px rgba(0, 0, 0, 0.9);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Navigazione ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--lime);
  display: grid; place-items: center; font-size: 18px; font-weight: 1000;
  box-shadow: inset 0 0 0 1px rgba(180, 255, 57, 0.35);
}
.brand small { font-weight: 600; color: var(--muted); font-size: 14px; letter-spacing: 0; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
}
.nav-links a:hover { color: var(--text); background: var(--line); }
.nav-links a.cta { background: var(--ink); color: var(--lime); }
@media (prefers-color-scheme: dark) { .nav-links a.cta { background: var(--lime); color: var(--ink); } }
@media (max-width: 720px) { .nav-links a:not(.cta) { display: none; } .brand small { display: none; } }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font-weight: 800; font-size: 17px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 12px 30px -12px rgba(180, 255, 57, 0.7); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.btn-dark { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 96px 0 120px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: var(--indigo); top: -160px; right: -120px; animation: float 14s ease-in-out infinite; }
.hero::after { width: 420px; height: 420px; background: var(--lime-deep); bottom: -220px; left: -120px; opacity: .35; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 30px); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 64px 0 80px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 14px; font-weight: 700; color: #d9d9e6;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }

h1.display {
  font-size: clamp(44px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -0.04em;
  font-weight: 1000;
  margin: 22px 0 20px;
}
.hl { color: var(--lime); }
.hl-grad { background: linear-gradient(90deg, var(--lime), #e8ffb8 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 21px; color: #c9c9d6; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Telefono (anteprima dell'app disegnata in HTML) ---------- */
.phone {
  justify-self: center;
  width: 300px; aspect-ratio: 300 / 620;
  border-radius: 48px; padding: 12px;
  background: linear-gradient(160deg, #2a2a38, #0c0c13);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(4deg);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-12px); } }
.screen {
  height: 100%; border-radius: 38px; overflow: hidden; position: relative;
  background: #f2f2f7; color: #111; padding: 46px 16px 16px; font-size: 12px;
}
.screen .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; }
.screen .hello { font-size: 26px; font-weight: 1000; letter-spacing: -0.02em; }
.screen .sub { color: #8a8a8e; display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; }
.chip { background: var(--indigo); color: #fff; font-weight: 800; font-size: 9px; padding: 3px 8px; border-radius: 8px; }
.days { display: flex; gap: 6px; margin-bottom: 12px; }
.days span { flex: 1; text-align: center; padding: 12px 0; border-radius: 14px; background: #fff; font-weight: 800; font-size: 10px; }
.days span.on { background: var(--indigo); color: #fff; }
.daycard { background: #fff; border-radius: 22px; padding: 14px; }
.daycard .t { display: flex; justify-content: space-between; font-weight: 900; font-size: 15px; margin-bottom: 10px; }
.daycard .t a { color: var(--indigo); font-size: 11px; text-decoration: none; }
.sub-row { display: flex; align-items: center; gap: 10px; background: #f8f9fa; border-radius: 12px; padding: 9px 10px; margin-bottom: 7px; }
.sub-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sub-row b { display: block; font-size: 12px; }
.sub-row em { font-style: normal; color: #8a8a8e; font-size: 10px; }
.sub-row .time { margin-left: auto; font-size: 8px; font-weight: 800; color: var(--indigo); background: rgba(88, 86, 214, .14); padding: 2px 6px; border-radius: 5px; }
.sub-row .ok { margin-left: 6px; color: #34c759; font-weight: 900; }
.tabbar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-around; background: rgba(255, 255, 255, .85); border-radius: 26px; padding: 9px 0; font-size: 8px; font-weight: 800; color: #444; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .3); }
.tabbar .on { color: var(--indigo); }

/* ---------- Sezioni ---------- */
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.kicker { color: var(--indigo); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--lime); } }
h2.title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 1000; margin: 10px 0 16px; }
.intro { color: var(--muted); font-size: 20px; max-width: 640px; margin: 0; }

.grid { display: grid; gap: 18px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 22px; letter-spacing: -0.02em; margin: 16px 0 6px; font-weight: 900; }
.card p { color: var(--muted); margin: 0; font-size: 17px; }
.icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(88, 86, 214, .12);
}
.icon.lime { background: rgba(124, 207, 0, .16); }

/* Prodotto in evidenza */
.feature {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 36px; padding: 36px;
  position: relative; overflow: hidden; margin-top: 44px;
}
.feature::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: var(--indigo); filter: blur(80px); opacity: .5; }
.feature > * { position: relative; }
.feature img { width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 16px 40px -14px rgba(180, 255, 57, .5); }
.feature h3 { font-size: 34px; font-weight: 1000; letter-spacing: -0.03em; margin: 0 0 6px; }
.feature p { color: #c9c9d6; margin: 0; }
.pill { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: rgba(180, 255, 57, .14); color: var(--lime); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; text-align: left; } }

/* Valori */
.values { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 8px 0; }
.value .num { font-size: 15px; font-weight: 900; color: var(--indigo); }
@media (prefers-color-scheme: dark) { .value .num { color: var(--lime); } }
.value h3 { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin: 6px 0; }
.value p { color: var(--muted); margin: 0; }

/* Contatti */
.contact {
  text-align: center; border-radius: 40px; padding: 72px 24px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(88, 86, 214, .35), transparent 55%),
              radial-gradient(120% 140% at 100% 100%, rgba(124, 207, 0, .3), transparent 55%), var(--ink);
  color: #fff;
}
.contact h2 { color: #fff; }
.contact .intro { color: #c9c9d6; margin: 0 auto 30px; }

/* Footer */
footer.site { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Comparsa allo scorrimento (solo se il browser lo supporta e l'utente non riduce le animazioni) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .phone { animation: none; }
}

/* ---------- Pagine di testo (privacy, termini, supporto) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 40px; }
.doc .app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.doc .app-head img { width: 64px; height: 64px; border-radius: 16px; }
.doc .app-head .n { font-size: 26px; font-weight: 1000; letter-spacing: -0.02em; line-height: 1.1; }
.doc .app-head .b { color: var(--muted); font-size: 15px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.035em; line-height: 1.05; font-weight: 1000; margin: 0 0 6px; }
.doc h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; margin: 34px 0 6px; }
.doc h3 { font-size: 19px; font-weight: 800; margin: 24px 0 4px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.doc a { color: var(--indigo); font-weight: 700; }
@media (prefers-color-scheme: dark) { .doc a { color: var(--lime); } }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px; margin: 18px 0; box-shadow: var(--shadow); }
.doc .box p, .doc .box li { margin: 0; }
.doc .related { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
