@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("font/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #f5f1ea;
  --card: #fdfcfa;
  --text: #2a2a28;
  --muted: #6b6b68;
  --accent: #84967c;
  --accent-ink: #4f6048;
  --accent-soft: #e9eee5;
  --accent-wash: #f4f6f1;
  --terra: #d08a66;
  --line: #e9e3d8;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(70, 55, 30, 0.04), 0 8px 24px rgba(70, 55, 30, 0.07);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-ink);
}

.contenitore {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

.salta {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 10;
}
.salta:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ===== Testata ===== */
.testata {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.testata .contenitore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo img {
  height: 38px;
  width: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.menu a:not(.btn):hover {
  color: var(--accent-ink);
}

/* ===== Bottoni ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primario {
  background: var(--accent-ink);
  color: #fff;
}
.btn-primario:hover {
  background: #44543e;
}
.btn-secondario {
  background: transparent;
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
.btn-secondario:hover {
  background: var(--accent-soft);
}
.btn-piccolo {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

/* ===== Hero ===== */
.hero {
  padding: 56px 0 72px;
}
.hero .contenitore {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.etichetta {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
h1 em {
  font-style: normal;
  color: var(--accent-ink);
}
.sotto {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}
.azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nota {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* telefono di esempio */
.telefono {
  width: min(300px, 100%);
  margin-inline: auto;
  background: var(--card);
  border: 8px solid #2a2a28;
  border-radius: 38px;
  box-shadow: var(--shadow), 0 30px 60px rgba(70, 55, 30, 0.18);
  padding: 20px 16px 18px;
}
.telefono .ora {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.telefono h2 {
  font-size: 19px;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.telefono .data {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.avanzamento {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-wash);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.anello {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 50%, var(--accent-soft) 50% 100%);
  display: grid;
  place-items: center;
  flex: none;
}
.anello span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-wash);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-ink);
}
.avanzamento strong {
  display: block;
  font-size: 14px;
}
.avanzamento small {
  color: var(--muted);
  font-size: 12.5px;
}
.pasto {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: #fff;
}
.pasto .spunta {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
  display: grid;
  place-items: center;
}
.pasto.fatto .spunta {
  background: var(--accent);
  border-color: var(--accent);
}
.pasto.fatto .spunta::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.pasto b {
  display: block;
  font-size: 14px;
}
.pasto small {
  color: var(--muted);
  font-size: 12.5px;
}
.esempio {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 0;
}

/* ===== Sezioni ===== */
section {
  padding: 72px 0;
}
.sezione-chiara {
  background: var(--card);
  border-block: 1px solid var(--line);
}
h2.titolo {
  font-size: clamp(27px, 3.6vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.intro {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 36px;
  font-size: 18px;
}
.griglia {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.griglia.due {
  grid-template-columns: repeat(2, 1fr);
}
.scheda {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.sezione-chiara .scheda {
  background: var(--bg);
  box-shadow: none;
}
.icona {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icona svg {
  width: 24px;
  height: 24px;
}
.scheda h3 {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.scheda p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.scheda ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px;
}
.scheda li + li {
  margin-top: 4px;
}

/* passi */
.passi {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: passo;
}
.passi li {
  counter-increment: passo;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.passi li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.passi h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.passi p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* prezzi */
.prezzi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 18px;
  justify-content: center;
}
.piano {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.piano.evidenza {
  border: 2px solid var(--accent-ink);
}
.piano h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.piano .importo {
  margin: 0 0 6px;
  color: var(--muted);
}
.piano .importo strong {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.piano .dettaglio {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}
.piano ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px;
  flex: 1;
}
.piano li + li {
  margin-top: 4px;
}
.risparmio {
  position: absolute;
  top: -14px;
  right: 22px;
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 5px 14px;
  border-radius: 999px;
}
.nota-prezzi {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* banda finale */
.banda {
  background: var(--accent-ink);
  color: #fff;
  border-radius: 30px;
  padding: 48px 32px;
  text-align: center;
}
.banda h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.banda p {
  margin: 0 auto 26px;
  max-width: 34em;
  color: #e6ece2;
}
.banda .btn-primario {
  background: #fff;
  color: var(--accent-ink);
}
.banda .btn-primario:hover {
  background: var(--accent-soft);
}

/* ===== Piede ===== */
footer {
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 15px;
}
footer .contenitore {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
footer img {
  height: 32px;
  width: auto;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
footer a {
  color: var(--muted);
}

/* ===== Telefono ===== */
@media (max-width: 860px) {
  .hero .contenitore {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .griglia,
  .griglia.due,
  .passi,
  .prezzi {
    grid-template-columns: 1fr;
  }
  .menu a.voce {
    display: none;
  }
  section {
    padding: 52px 0;
  }
  .hero {
    padding: 36px 0 52px;
  }
}

@media (max-width: 420px) {
  .logo img {
    height: 32px;
  }
  .menu {
    gap: 12px;
  }
  .btn {
    width: 100%;
  }
  .menu .btn {
    width: auto;
  }
  .banda {
    padding: 36px 20px;
  }
}

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