/* ---------- Colors, fonts, spacing (edit these first) ---------- */
:root {
  --navy: #0C447C;
  --blue: #185FA5;
  --sky: #B5D4F4;
  --sky-light: #E6F1FB;
  --text: #1a1a1a;
  --text-muted: #5f5e5a;
  --border: #d3d1c7;
  --paper: #ffffff;
  --tint: #f4f8fc;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 1040px;

  /* Colori che cambiano con il tema */
  --hero-bg: #0C447C;      /* intestazioni, footer, banner */
  --link: #185FA5;         /* link e icone */
  --brand-text: #0C447C;   /* logo e prezzi */
  --btn-bg: #185FA5;
  --btn-hover: #0C447C;
  --bg-soft: #E6F1FB;      /* box azzurri */
  --on-soft: #0C447C;      /* testo dentro i box azzurri */
}

/* ---------- Tema scuro ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #e8edf2;
  --text-muted: #a3afbc;
  --border: #2c3a4a;
  --paper: #121a24;
  --tint: #172230;

  --hero-bg: #0a2a4a;
  --link: #7db8f0;
  --brand-text: #b5d4f4;
  --btn-bg: #2f74c0;
  --btn-hover: #3f86d6;
  --bg-soft: #1b3552;
  --on-soft: #cfe3f8;
}


/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.6; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 500; }
h1 { font-size: clamp(32px, 6vw, 52px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border: 0; border-radius: var(--radius);
  background: var(--blue); color: #fff; font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy); }
.btn--small { padding: 8px 16px; }
.btn--ghost { background: transparent; color: var(--sky-light); box-shadow: inset 0 0 0 1.5px var(--sky); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; padding: 12px 24px;
  background: var(--paper); border-bottom: 1px solid var(--border);
}
.nav__logo { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 18px; color: var(--navy); text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a:not(.btn) { color: var(--text); text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--blue); }
.nav__toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--sky-light); padding: 80px 0; }
.hero__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { color: var(--sky-light); }
.hero__lead { font-size: 19px; color: var(--sky); margin-bottom: 28px; }
.hero__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section__intro { color: var(--text-muted); max-width: 60ch; margin-bottom: 32px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
.card i { font-size: 28px; color: var(--blue); }
.card h3 { margin-top: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card__price { color: var(--navy) !important; font-weight: 500; font-size: 17px !important; margin: 14px 0 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 500;
}
.steps p { color: var(--text-muted); }

/* ---------- Promise ---------- */
.promise { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.promise > div { max-width: 56ch; }
.promise__badge {
  display: flex; flex-direction: column; align-items: left; justify-content: left;
  width: 0px; height: 150px; margin: 0; border-radius: 100%;
  background: var(--sky-light); color: var(--navy); font-size: 14px;
}
.promise__badge span { font-size: 48px; font-weight: 500; line-height: 1; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.contact address { font-style: normal; }
.contact address p { display: flex; align-items: center; gap: 10px; }
.contact address i { font-size: 20px; color: var(--blue); }
.contact__note { margin-top: 20px; padding: 12px 16px; background: var(--sky-light); border-radius: var(--radius); color: var(--navy); }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 15px; }
.form input, .form textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-weight: 400; background: var(--paper); color: var(--text);
}
.form__status { margin: 0; min-height: 1.4em; color: var(--blue); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { padding: 24px; text-align: center; background: var(--navy); color: var(--sky); font-size: 14px; }
.footer p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 24px; }
  .nav__links .btn { margin: 8px 24px 16px; text-align: center; }
  .hero { padding: 56px 0; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Multipagina: voce di menu attiva ---------- */
.nav__links a[aria-current="page"]:not(.btn) { color: var(--blue); font-weight: 500; }

/* ---------- Intestazione delle pagine interne ---------- */
.page-head { background: var(--navy); color: var(--sky); padding: 48px 0; }
.page-head h1 { color: var(--sky-light); font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.page-head p { margin: 0; max-width: 60ch; }

/* ---------- Link "vedi tutti" ---------- */
.more { margin: 28px 0 0; font-weight: 500; }

/* ---------- Chi sono ---------- */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--sky-light); color: var(--blue); font-size: 80px;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.values { list-style: none; padding: 24px; margin: 24px 0 0; display: grid; gap: 14px; background: var(--sky-light);
  border-radius: var(--radius); }
.values li { display: flex; gap: 12px; align-items: flex-start; }
.values i { font-size: 22px; color: var(--blue); margin-top: 2px; }
.values p { margin: 0; color: var(--text-muted); }
.values strong { color: var(--text); font-weight: 500; }

/* ---------- Banner finale ---------- */
.cta { background: var(--navy); color: var(--sky-light); text-align: center; padding: 56px 0; }
.cta h2 { color: var(--sky-light); }
.cta p { color: var(--sky); margin-bottom: 20px; }

@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; }
  .avatar { width: 160px; height: 160px; font-size: 56px; }
}
