:root {
  --eco-dark: #14532d;
  --eco-bright: #22c55e;
  --eco-surface: #f7faf8;
  --ink: #10241a;
  --ink-muted: #4b5f55;
  --border: rgba(20, 83, 45, 0.12);
  --shadow: 0 20px 40px -20px rgba(20, 83, 45, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--eco-dark);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--eco-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--eco-bright);
}

.logo--small {
  display: block;
  margin-bottom: 0.5rem;
}

.nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--eco-bright);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--eco-dark);
  border-radius: 2px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--eco-dark);
  color: #ffffff;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--outline {
  border-color: var(--eco-dark);
  color: var(--eco-dark);
}

.btn--outline:hover {
  background: var(--eco-dark);
  color: #ffffff;
}

.btn--ghost {
  color: var(--eco-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.btn--ghost:hover {
  color: var(--eco-bright);
}

.btn--small {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

/* Hero */

.hero {
  background: radial-gradient(circle at 15% 0%, rgba(34, 197, 94, 0.14), transparent 55%), var(--eco-surface);
  padding: 5.5rem 0 4.5rem;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero__text {
  max-width: 34rem;
  flex: 1;
}

.hero__mark {
  flex-shrink: 0;
  width: 11rem;
}

.mark-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.mark-shield {
  fill: rgba(34, 197, 94, 0.08);
  stroke: var(--eco-dark);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.mark-leaf {
  fill: var(--eco-bright);
  stroke: none;
}

.mark-vein {
  fill: none;
  stroke: var(--eco-dark);
  stroke-width: 2;
  stroke-linecap: round;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--eco-bright);
  margin: 0 0 0.75rem;
}

.hero__lead {
  font-size: 1.1rem;
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section--tinted {
  background: var(--eco-surface);
}

.section h2 {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* Cards */

.cards {
  display: grid;
  gap: 1.5rem;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.card--accent {
  border-top: 3px solid var(--eco-bright);
}

.card h3 {
  color: var(--eco-dark);
}

/* Icon badges */

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  margin-bottom: 1.1rem;
}

.icon-badge--lg {
  width: 3.75rem;
  height: 3.75rem;
  background: rgba(20, 83, 45, 0.08);
}

.icon {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: var(--eco-dark);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge--lg .icon {
  width: 1.9rem;
  height: 1.9rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Piani */

.piani-stato {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-muted);
}

.piani-nota {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card__prezzo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--eco-bright);
  margin: 0 0 1rem;
}

.plan-card__features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  flex: 1;
}

.plan-card__features li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
}

.plan-card__features li:first-child {
  border-top: none;
}

.plan-card .btn {
  align-self: flex-start;
}

/* Split (soluzione) */

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.split__item {
  background: var(--eco-surface);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
}

.split__tag {
  display: inline-block;
  background: var(--eco-dark);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Steps */

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

.step {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  position: relative;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--eco-bright);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step p {
  font-size: 0.9rem;
  margin: 0;
}

/* CTA */

.cta {
  background: var(--eco-dark);
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
}

.cta__inner {
  max-width: 34rem;
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.cta .hero__actions {
  justify-content: center;
}

.cta .btn--outline {
  border-color: #ffffff;
  color: #ffffff;
}

.cta .btn--outline:hover {
  background: #ffffff;
  color: var(--eco-dark);
}

.cta .btn--primary {
  background: var(--eco-bright);
}

.cta__login {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta__login a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive */

@media (max-width: 860px) {
  .cards--3,
  .cards--2,
  .split,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero__text {
    max-width: none;
  }

  .hero__mark {
    width: 7rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header__actions .btn--ghost {
    display: none;
  }
}
