:root {
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --bg-3: #f5f7fa;
  --card: #ffffff;
  --card-2: #ffffff;
  --border: #e7eaef;
  --border-2: #d7dce3;
  --text: #161a20;
  --muted: #586173;
  --muted-2: #8a93a3;
  --accent: #2f5fd0;
  --accent-2: #2950b8;
  --accent-soft: rgba(47, 95, 208, 0.08);
  --accent-line: rgba(47, 95, 208, 0.22);
  --accent-ink: #ffffff;
  --wa: #25d366;
  --shadow-card: 0 1px 3px rgba(20,30,55,.05), 0 8px 20px -14px rgba(20,30,55,.18);
  --shadow-hover: 0 14px 34px -16px rgba(20,30,55,.24);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance; }

a { color: inherit; text-decoration: none; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa-glyph { width: 19px; height: 19px; fill: var(--wa); stroke: none; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s ease, border-color .2s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -10px rgba(47,95,208,.55); }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(47,95,208,.6); }
.btn--wa { background: var(--card); color: var(--text); border-color: var(--border-2); }
.btn--wa:hover { border-color: var(--wa); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.8); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease;
}
.nav.is-stuck { border-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); letter-spacing: -0.01em; }
.brand__mark { color: var(--accent); display: inline-flex; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.04; }
.brand__name b { font-weight: 700; font-size: 17px; }
.brand__sub { font-family: var(--font-body); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand__dot { color: var(--accent); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 15.5px; font-weight: 500; transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 4px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 104px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 90%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(47,95,208,.07), transparent 60%);
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; max-width: 760px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--accent-line);
}
.pill .ic { width: 15px; height: 15px; fill: var(--accent); stroke: none; }

.hero__title { font-size: clamp(38px, 7vw, 64px); font-weight: 700; margin: 22px 0 0; }
.hero__sub { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; margin: 22px 0 0; max-width: 600px; text-wrap: pretty; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 36px; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.hero__badges .ic { width: 18px; height: 18px; stroke: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(28px, 4.2vw, 42px); }
.section__lead { color: var(--muted); font-size: 18px; line-height: 1.6; margin-top: 16px; text-wrap: pretty; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 18px; }
.grid--cards { grid-template-columns: repeat(4, 1fr); }
.grid--why { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-card);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-hover); }
.card__ic { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 13px; background: var(--accent-soft); margin-bottom: 18px; }
.card__ic svg { width: 25px; height: 25px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card--cta { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: none; display: flex; flex-direction: column; }
.card--cta h3 { color: var(--text); }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 600; font-size: 15.5px; margin-top: auto; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Why ---------- */
.why { padding: 4px; }
.why__ic { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 15px; background: var(--accent-soft); margin-bottom: 16px; }
.why__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { font-size: 19px; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { position: relative; padding: 30px 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.step__ic { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); margin-bottom: 18px; }
.step__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Zona ---------- */
.zona__head { max-width: 680px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 20px; }
.tags li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-size: 15px; color: var(--muted); transition: border-color .2s ease, color .2s ease; }
.tags li:hover { border-color: var(--accent-line); color: var(--text); }
.zona__note { color: var(--muted); font-size: 16px; }
.zona__note a { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-line); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 24px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq__item[open] { border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.faq__item summary { list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 18px; padding: 19px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 26px; font-weight: 400; transition: transform .25s ease; line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); font-size: 16px; padding: 0 0 21px; }

/* ---------- Contatti ---------- */
.contact { max-width: 720px; margin: 0 auto; text-align: center; }
.contact h2 { font-size: clamp(30px, 4.6vw, 48px); }
.contact .section__lead { margin: 18px auto 0; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 34px 0 28px; }
.contact__actions .btn { font-size: 17px; padding: 15px 28px; }
.contact__meta { list-style: none; display: flex; gap: 12px 30px; justify-content: center; flex-wrap: wrap; }
.contact__meta li, .contact__meta a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; }
.contact__meta a:hover { color: var(--text); }
.contact__meta svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; }
.footer__brand .brand__text { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.footer__brand p { color: var(--muted); font-size: 15px; margin-top: 12px; line-height: 1.7; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--muted); font-size: 15.5px; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 14px; }
.credit a { color: var(--muted); border-bottom: 1px dotted var(--border-2); }
.credit a:hover { color: var(--accent); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 120; gap: 1px; background: var(--border); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px -12px rgba(20,30,55,.2); }
.callbar__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px; font-weight: 600; font-size: 16px; background: var(--card); }
.callbar__btn .ic { width: 19px; height: 19px; }
.callbar__btn--call { color: var(--accent-ink); background: var(--accent); }
.callbar__btn--wa { color: var(--text); }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 130; max-width: 410px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 18px 20px; }
.cookie[hidden] { display: none; }
.cookie p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.cookie__actions { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 720px) { .cookie { left: 12px; right: 12px; bottom: 76px; max-width: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .grid--why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border); padding: 18px 22px; gap: 18px;
  }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero { padding: 64px 0 88px; }
  body { padding-bottom: 64px; }
  .callbar { display: flex; }
}
@media (max-width: 460px) {
  .grid--cards, .grid--why { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .contact__meta { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
