:root {
  --navy: #101d3a;
  --blue: #1e88e5;
  --blue-dark: #145da6;
  --orange: #ff6a1a;
  --text: #1a1a1a;
  --gray-bg: #f4f6f9;
  --border: #dfe3e8;
  --blue-tint: #eef4fc;
  --orange-tint: #fff1e8;
  --muted: #4a5468;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.2;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
  margin: 12px auto 0;
}

.handwritten {
  font-family: "Caveat", cursive;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 16px 32px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(20, 93, 166, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: block;
}

.logo {
  display: block;
  height: 64px;
  margin: 10px 0;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: var(--orange);
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 106, 26, 0.12), transparent 40%),
    linear-gradient(180deg, var(--blue-tint) 0%, #ffffff 100%);
  padding: 56px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  display: block;
  color: var(--orange);
}

.hero-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
  margin: 24px 0 32px;
}

.badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}

.badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
}

.badge-icon svg {
  width: 22px;
  height: 22px;
}

/* Form */
.form-wrap {
  position: relative;
}

.handwritten-hero {
  position: absolute;
  top: -44px;
  left: -96px;
  transform: rotate(-8deg);
}

.lead-form {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(16, 29, 58, 0.15);
  padding: 8px;
}

.tabs {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tab input {
  position: absolute;
  opacity: 0;
}

.tab span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 10px;
  background: var(--gray-bg);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tab span svg {
  width: 18px;
  height: 18px;
}

.tab input:checked + span {
  background: var(--navy);
  color: #ffffff;
}

.tab input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.form-body {
  padding: 20px 16px 12px;
}

.form-body h2 {
  text-align: center;
  font-size: 22px;
}

.form-intro {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 20px;
}

.field {
  position: relative;
  display: block;
  margin-bottom: 12px;
}

.field > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #8a94a6;
  pointer-events: none;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101d3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}

.field select:invalid {
  color: #757e90;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.18);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.consent input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.consent a {
  color: var(--blue-dark);
}

.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

/* Why us */
.why-us {
  background: var(--gray-bg);
  padding: 64px 0;
  text-align: center;
}

.why-us h2,
.how-it-works h2 {
  font-size: 32px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}

.feature {
  padding: 0 24px;
}

.feature + .feature {
  border-left: 1px solid var(--border);
}

.feature-icon,
.ql-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcebfb;
  color: var(--blue-dark);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-icon.alt {
  background: #ffe2d1;
  color: #c24a0a;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* How it works */
.how-it-works {
  background: linear-gradient(180deg, var(--orange-tint) 0%, #ffffff 100%);
  padding: 64px 0;
  text-align: center;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.step {
  position: relative;
}

.step + .step::before {
  content: "→";
  position: absolute;
  left: -30px;
  top: 22px;
  color: var(--navy);
  font-size: 22px;
}

.step-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(16, 29, 58, 0.08);
}

.step-icon svg {
  width: 34px;
  height: 34px;
}

.step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Partners */
.partners {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.partners .section-lead {
  margin-top: 0;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 56px;
  margin-top: 28px;
}

.partner-logos img {
  height: 72px;
}

/* Final CTA */
.final-cta {
  background: var(--blue-tint);
  padding: 56px 0;
}

.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.final-cta-text {
  text-align: center;
}

.final-cta h2 {
  font-size: 28px;
  max-width: 560px;
  margin: 0 auto;
}

.final-cta p {
  color: var(--muted);
  font-size: 16px;
  max-width: 540px;
  margin: 12px auto 24px;
}

.final-cta-side {
  display: flex;
  align-items: center;
  gap: 40px;
}

.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.quick-links a:hover {
  color: var(--blue-dark);
}

.ql-icon {
  width: 40px;
  height: 40px;
  margin: 0;
  background: #ffffff;
}

.ql-icon svg {
  width: 20px;
  height: 20px;
}

.handwritten-cta {
  transform: rotate(-8deg);
}

/* Privacy policy */
.policy-page {
  background: var(--gray-bg);
  padding: 48px 0 64px;
}

.policy {
  max-width: 860px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(16, 29, 58, 0.06);
}

.policy-page .policy {
  padding: 40px 48px;
}

@media (max-width: 640px) {
  .policy-page {
    padding: 24px 16px 40px;
  }

  .policy-page .policy {
    padding: 24px 20px;
  }

  .policy h1 {
    font-size: 22px;
  }
}

.policy h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.policy h2 {
  font-size: 20px;
  margin: 36px 0 10px;
}

.policy h3 {
  font-size: 16px;
  margin: 22px 0 6px;
}

.policy p,
.policy li {
  font-size: 15px;
  line-height: 1.7;
}

.policy p {
  margin: 0 0 12px;
}

.policy ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.policy a {
  color: var(--blue-dark);
}

/* Chi siamo */
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--orange);
}

.about-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 106, 26, 0.12), transparent 40%),
    linear-gradient(180deg, var(--blue-tint) 0%, #ffffff 100%);
  padding: 64px 0;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
}

.about-hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 24px;
}

.about-hero h1 .accent {
  color: var(--orange);
}

.about-hero .hero-lead {
  margin: 0 0 16px;
}

.about-hero .hero-lead strong {
  color: var(--navy);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 8px 28px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(16, 29, 58, 0.12);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 0;
}

.fact + .fact {
  border-top: 1px solid var(--border);
}

.fact-number {
  color: var(--navy);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fact-highlight .fact-number {
  color: var(--orange);
  font-size: 42px;
}

.fact-label {
  color: var(--muted);
  font-size: 14px;
}

.about-story {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.about-story-inner {
  max-width: 780px;
  text-align: center;
}

.about-story p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.about-story p strong {
  color: var(--navy);
}

.about-story .about-story-key {
  color: var(--navy);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
  margin: 24px 0 0;
}

.about-values {
  background: var(--gray-bg);
  padding: 64px 0;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.value-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 6px 18px rgba(16, 29, 58, 0.06);
}

.value-card .feature-icon {
  margin: 0 0 20px;
}

.value-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.value-card .value-intro {
  color: var(--navy);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.value-card strong {
  color: var(--navy);
}

.value-card .value-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--navy);
}

.value-note svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--blue-dark);
}

.about-signature {
  background: var(--blue-tint);
  padding: 56px 0 64px;
}

.about-signature-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.signature-brand {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  font-weight: 700;
}

.signature-claim {
  font-size: 30px;
  color: var(--orange);
  transform: rotate(-3deg);
  margin: 4px 0 12px;
}

.signature-company {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.signature-company strong {
  color: var(--navy);
}

@media (max-width: 960px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .facts {
    max-width: 480px;
    width: 100%;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-hero {
    padding: 40px 0 48px;
  }

  .about-hero h1 {
    font-size: 30px;
  }

  .about-story .about-story-key {
    font-size: 18px;
  }

  .value-card {
    padding: 28px 22px;
  }

  .value-card h2 {
    font-size: 21px;
  }
}

/* Footer */
.site-footer {
  background: var(--navy);
  padding: 18px 24px;
  text-align: center;
}

.site-footer a {
  color: #ffffff;
  font-size: 14px;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #cfe3fb;
}

/* Responsive */
@media (max-width: 1100px) {
  .handwritten-hero {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-wrap {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }

  .feature:nth-child(3) {
    border-left: 0;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(3)::before {
    display: none;
  }

  .final-cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .final-cta-side {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }

  .site-header {
    position: static;
  }

  .logo {
    height: 52px;
    max-width: 100%;
  }

  .main-nav {
    gap: 24px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .why-us h2,
  .how-it-works h2 {
    font-size: 26px;
  }

  .why-us,
  .how-it-works {
    padding: 48px 0;
  }

  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature + .feature {
    border-left: 0;
  }

  .step + .step::before {
    display: none;
  }

  .final-cta h2 {
    font-size: 24px;
  }

  .partner-logos img {
    height: 56px;
  }

  .handwritten-cta {
    display: none;
  }
}
