/* ChiamaChiaro — landing statica. Palette = design system dell'app
   (docs/RESTYLING.md): verde #15A06C, ink #16201B, bg #F4F6F2. */

:root {
  --green-800: #0c6b47;
  --green: #15a06c;
  --green-100: #dcf1e6;
  --green-50: #eef8f2;
  --teal: #0e97a0;
  --teal-50: #ddf0f1;
  --amber: #c8862f;
  --amber-50: #f6eedf;
  --coral: #d2543f;
  --ink: #16201b;
  --slate: #5b6560;
  --muted: #9aa39d;
  --line: #e6eae6;
  --bg: #f4f6f2;
  --card: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand strong { font-size: 18px; font-weight: 800; }
.nav a.cta {
  background: var(--green); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 12px; font-weight: 800; font-size: 14px;
}

/* Hero */
.hero { padding: 64px 0 48px; text-align: center; }
.hero .kicker {
  display: inline-block; background: var(--green-50); border: 1px solid var(--green-100);
  color: var(--green-800); font-size: 12px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 900; line-height: 1.15; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.sub {
  max-width: 560px; margin: 18px auto 0; color: var(--slate); font-size: 18px;
}
.hero .actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 15px;
  padding: 14px 26px; border-radius: 14px;
}
.btn.primary { background: var(--green); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.hero .note { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* Sections */
section { padding: 44px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 26px; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.3px; }
.lead { color: var(--slate); max-width: 620px; margin-bottom: 26px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
}
section.alt .card { background: var(--bg); }
.card .ico {
  width: 44px; height: 44px; border-radius: 14px; background: var(--green-50);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px;
}
.card.teal .ico { background: var(--teal-50); }
.card.amber .ico { background: var(--amber-50); }
.card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--slate); font-size: 14.5px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 30px; height: 30px; border-radius: 15px;
  background: var(--green); color: #fff; font-weight: 900; align-items: center;
  justify-content: center; margin-bottom: 10px;
}
.step h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.step p { color: var(--slate); font-size: 14px; }

/* Banner privacy */
.privacy-banner {
  background: var(--teal-50); border: 1px solid rgba(14,151,160,.25);
  border-radius: 18px; padding: 22px; margin-top: 26px;
}
.privacy-banner strong { color: var(--ink); }
.privacy-banner p { color: var(--slate); font-size: 14.5px; }

/* Footer */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 13.5px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer a { color: var(--slate); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Pagine testo (privacy, rimozione) */
.doc { padding: 44px 0 64px; max-width: 760px; }
.doc h1 { font-size: 30px; font-weight: 900; margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc h3 { font-size: 16px; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--slate); font-size: 15px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }
.doc .box {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin: 14px 0;
}
.doc .warn {
  background: var(--amber-50); border-color: rgba(200,134,47,.3);
}
.doc a { color: var(--teal); font-weight: 700; }
.doc code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13.5px; }

@media (max-width: 560px) {
  .hero { padding: 44px 0 36px; }
}
