:root {
  --navy: #0B2A5B;
  --blue: #1E63B5;
  --sky: #3FA9F5;
  --green: #3BAA35;
  --green-soft: #E8F6E6;
  --sky-soft: #EAF5FE;
  --ink: #1B2433;
  --muted: #5B6779;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FC;
  --line: #E1E8F0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 91, .08);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Montserrat", sans-serif; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
.accent { color: var(--blue); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin: 16px auto 0; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  font-family: "Montserrat", sans-serif; font-size: .95rem; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(30, 99, 181, .3); }
.btn-primary:hover { background: var(--navy); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(59, 170, 53, .3); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-light { background: #fff; color: var(--navy); }
.btn svg { width: 20px; height: 20px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 62px; height: auto; mix-blend-mode: multiply; }
.brand-text { font-family: "Montserrat", sans-serif; line-height: 1; }
.brand-text b { display: block; font-size: 1.45rem; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.brand-text small { font-size: .62rem; font-weight: 700; color: var(--blue); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--blue); }
.nav .btn { color: #fff; padding: 10px 20px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #F4F9FF 0%, #FFFFFF 55%, var(--green-soft) 100%);
  padding: 90px 0 100px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { margin: 20px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: .85rem; font-weight: 600; color: var(--navy);
}
.hero-card {
  background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 40px;
  text-align: center; position: relative;
}
.hero-card img { width: 62%; margin: 0 auto 16px; mix-blend-mode: multiply; }
.hero-card .tag {
  display: inline-block; background: var(--green); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 8px 18px; font-size: .9rem;
}
.page-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 72px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 620px; margin-top: 14px; font-size: 1.1rem; }
.page-hero .eyebrow { color: #9BE38F; }

/* Card / griglie */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-top: 10px; }
.icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--blue); margin-bottom: 18px;
}
.icon.green { background: var(--green-soft); color: var(--green); }
.icon svg { width: 28px; height: 28px; }
.card ul { margin-top: 14px; list-style: none; }
.card li { padding-left: 26px; position: relative; margin: 6px 0; color: var(--ink); font-size: .95rem; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233BAA35' stroke-width='4'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat;
}
.section-head { margin-bottom: 48px; }

/* Colori panni */
.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.color-item { border-radius: var(--radius); padding: 22px; color: #fff; }
.color-item b { font-family: "Montserrat", sans-serif; font-size: 1.1rem; display: block; }
.color-item span { font-size: .9rem; opacity: .92; }
.c-red { background: #D93A3A; } .c-yellow { background: #E8B416; } .c-blue { background: #1E63B5; } .c-green { background: #3BAA35; }

/* Passi */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 30px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center;
  font-family: "Montserrat", sans-serif; transform: translateY(20px);
}

.method-title { text-align: center; margin: 64px 0 28px; font-size: 1.4rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); margin-top: 16px; }
.panel {
  background: linear-gradient(135deg, var(--sky-soft), var(--green-soft));
  border-radius: 28px; padding: 44px;
}
.stat { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(11,42,91,.1); }
.stat:last-child { border-bottom: 0; }
.stat b { font-family: "Montserrat", sans-serif; font-size: 2rem; color: var(--navy); min-width: 90px; }
.stat span { color: var(--muted); }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff;
  border-radius: 28px; padding: 56px; display: flex; justify-content: space-between;
  align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); margin-top: 8px; }

/* Contatti */
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { margin: 0; flex-shrink: 0; width: 48px; height: 48px; }
.contact-list b { display: block; color: var(--navy); }
.contact-list span, .contact-list a { color: var(--muted); text-decoration: none; }
form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .9rem; color: var(--navy); display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
details + details { margin-top: 12px; }
summary { font-weight: 700; color: var(--navy); cursor: pointer; font-family: "Montserrat", sans-serif; }
details p { color: var(--muted); margin-top: 10px; }

/* Testi lunghi (privacy) */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 12px; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--ink); margin-top: 10px; }
.prose ul { padding-left: 22px; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-top: 0; }
.prose mark { background: #FFF3BF; padding: 0 4px; border-radius: 4px; }

/* Mappa su consenso */
.map-placeholder {
  height: 100%; display: grid; place-items: center; text-align: center; gap: 12px;
  background: var(--sky-soft); padding: 24px; align-content: center;
}
.map-placeholder p { color: var(--muted); font-size: .9rem; max-width: 420px; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 64px 0 28px; margin-top: 0; }
.footer .grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer .brand-text b { color: #fff; }
.footer .brand-text small { color: var(--sky); }
.footer .brand img { background: #fff; border-radius: 12px; padding: 6px; mix-blend-mode: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px;
  font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* WhatsApp flottante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px;
  border-radius: 50%; background: #25D366; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.2); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .colors { grid-template-columns: repeat(2, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .hero-card { max-width: 420px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .grid-4, .colors, .form-row, .footer .grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 26px; }
  .panel { padding: 28px; }
  .hero { padding: 56px 0 64px; }
}
