@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #eef1ec;
  --text: #151a16;
  --muted: #5d6760;
  --line: #d9dfd6;
  --accent: #b6e48e;
  --accent-ink: #2f6a1b;
  --on-accent: #12170f;
  --bezel: #151a16;
  --shadow: 0 30px 50px -28px rgba(30, 60, 20, .45);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c0e0d;
    --text: #edf1ed;
    --muted: #98a19a;
    --line: #262b27;
    --accent: #bfeaa6;
    --accent-ink: #cdf0b6;
    --on-accent: #101510;
    --bezel: #2a302b;
    --shadow: 0 30px 50px -28px rgba(0, 0, 0, .9);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* intestazione */
.top {
  width: min(1080px, 100% - 40px);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.logo .tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s .25s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* pulsanti */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  min-height: 48px;
}
.btn:hover { filter: brightness(1.04); }
.btn.small { padding: 10px 20px; min-height: 44px; font-size: 16px; }
.link { color: var(--text); font-weight: 500; padding: 12px 6px; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: clamp(24px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
}
h1 {
  font-size: clamp(2.6rem, 7vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 24px;
  text-wrap: balance;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 15px; margin: 18px 0 0; }

/* telefono */
.phone {
  margin: 0;
  padding: 9px;
  background: var(--bezel);
  border-radius: 46px;
  box-shadow: var(--shadow);
  width: 320px;
  max-width: 100%;
}
.phone img { border-radius: 37px; width: 100%; }
.hero-shot { display: flex; justify-content: center; }
.phone.small { width: 210px; max-width: 100%; padding: 6px; border-radius: 34px; }
.phone.small img { border-radius: 28px; }

/* righe di funzione */
.row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  padding: clamp(40px, 7vw, 88px) 0;
}
.row.rev { grid-template-columns: 320px 1fr; }
.row.rev .row-text { order: 2; }
.row-text { max-width: 28em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 18px; text-wrap: balance; }
.row-text p { margin: 0 0 14px; color: var(--muted); }
.row-text b { color: var(--text); }
.pair { width: 440px; max-width: 100%; display: flex; gap: 18px; justify-content: center; }
.pair .phone:nth-child(2) { margin-top: 40px; }

/* come si usa */
.steps { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.steps ol { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; max-width: 44em; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  display: grid; place-items: center;
}
h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

/* domande */
.faq { padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 96px); max-width: 760px; margin-left: max(20px, calc((100% - 1080px) / 2)); }
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); max-width: 40em; }

/* piè di pagina */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--muted); }

/* mobile */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .row, .row.rev { grid-template-columns: 1fr; }
  .row.rev .row-text { order: 0; }
  .row .phone { margin-inline: auto; }
  .faq { margin-left: auto; }
  .pair { width: auto; }
  .pair .phone.small { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo .tick { animation: none; stroke-dashoffset: 0; }
}
