:root {
  --green: #009b3a;
  --green-dark: #007a2e;
  --dark: #0e1b14;
  --light: #ffffff;
  --gray: #f2f4f3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Mulish', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

/* ================= HEADER ================= */

.top-header {
  background: #00653B;
  height: 130px;
  padding: 0 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.logo-header {
  height: 70px;
  max-width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: calc(100vh - 130px);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;

}

/* Overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14,27,20,0.8),
    rgba(14,27,20,0.1)
  );
  z-index: 1;
}

/* Linea bianca */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.4);
  z-index: 2;
}

.hero > * {
  position: relative;
  z-index: 3;
}

/* CONTENT */

.hero-content {
  max-width: 900px;
  padding: 72px 48px;
  margin-left: 80px;
  margin-top: 80px;
  margin-bottom: 0;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero h1 .sub-text {
  display: block;
  font-weight: 400;
  font-size: 35px;
  margin-top: 6px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 40px;
}

/* BADGE */

.badge {
  display: inline-block;
  background: #00653B;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 28px;
}

/* CTA */

.cta-group {
  display: flex;
  gap: 16px;
  margin-top: 80px;
  flex-wrap: wrap;
}

.cta {
  padding: 18px 44px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: .2s ease;
  width: 100%;
  max-width: 280px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cta.primary {
  background:#FF8E0D;
  color:#fff;
}

.cta.secondary {
  background:#fff;
  color:var(--green-dark);
  border:none;
}

.cta:hover {
  transform: translateY(-3px);
}

/* ================= POPUP ================= */

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup.active {
  display: flex;
}

.popup-box {
  background: var(--gray);
  color: #111;
  width: 95%;
  max-width: 640px;
  max-height: 80vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup-header,
.popup-footer {
  background: #333;
  padding: 16px;
  display: flex;
}

.popup-header {
  justify-content: flex-end;
}

.popup-footer {
  justify-content: center;
}

.close-x,
.close-text {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.popup-content {
  padding: 24px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.5;
}

/* ================= STEPS ================= */

.steps-overlay {
  position: relative;
  bottom: 0; /* attaccata al footer */
  left: 0;
  width: 100%;
  padding: 14px 120px; /* ancora più sottile */
  z-index: 3;

  /* molto più trasparente */
  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(3px);
}

.steps-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

.steps {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:#fff;
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  margin:0 auto 8px;
}

.step-label {
  font-size:14px;
  font-weight:700;
}

/* ================= FOOTER ================= */

.footer {
  background:#00653B;
  color:#fff;
  padding:32px;
  text-align:center;
  font-size:12px;
}

.footer a {
  color:#fff;
  text-decoration:underline;
}

.footer-logos {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  margin-top:16px;
  flex-wrap:wrap;
}

.footer-logos img {
  height:24px;
  max-width:100%;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  /* ==================== HEADER MOBILE ==================== */
  .top-header {
    height: 96px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo-header {
    height: 52px;
  }

  .header-right {
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
    color: #fff;
  }

  /* ==================== HERO MOBILE ==================== */
  .hero {
    min-height: auto;      /* NON forzare altezza schermo */
    height: auto;
    background-position: center;
    position: relative;
    padding-bottom: 0;ding-bottom: 0;
  }

  .hero-content {
    margin-left: 0;
    margin-top: 32px;
    padding: 24px 20px;
    text-align: center;
    max-width: 100%;
  }

  .badge {
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero h1 .sub-text {
    font-size: 26px;
    margin-top: 4px;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.4;
    max-width: 100%;
    margin-bottom: 32px;
  }

  /* ==================== CTA MOBILE ==================== */
  .cta-group {
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
    align-items: center;
  }

  .cta {
    padding: 18px 44px;
    font-size: 18px;
    width: 100%;
    max-width: 280px;
  }

  /* ==================== STEPS OVERLAY MOBILE ==================== */
  .steps-overlay {
    position: relative;  /* sopra footer */
    left: 0;
    right: 0;
    bottom: 0; /* attaccata al footer */
    padding: 12px 16px;
    background: rgba(255,255,255,0.12); /* bianca semitrasparente */
    display: flex;
    justify-content: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    z-index: 5;
  }

  .steps {
    display: flex;
    justify-content: space-around; /* tutti su una riga */
    align-items: center;
    width: 100%;
    max-width: 400px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .step {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .step-label {
    font-size: 11px;
    color: #ffffff; /* visibile sulla fascia chiara */
  }

  /* ==================== POPUP MOBILE ==================== */
  .popup-box {
    width: calc(100% - 24px);
    max-height: 85vh;
    border-radius: 14px;
  }

  .popup-content {
    font-size: 14px;
    line-height: 1.45;
  }

  .close-x {
    font-size: 26px;
  }

  .popup-footer {
    padding: 14px;
  }

  .close-text {
    font-size: 14px;
  }

  /* ==================== FOOTER MOBILE ==================== */
  .footer {
    position: relative; /* normale, sotto fascia */
    z-index: 1;
    padding: 24px 16px;
    font-size: 11px;
    margin-top: 0; /* rimuove eventuali margini precedenti */
    background: #00653B; /* verde Sisal */
    color: #fff;
    text-align: center;
  }

  .footer a {
    color: #ffffff;
    text-decoration: underline;
  }

  .footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px; /* distanza tra i loghi */
    margin-top: 16px; /* distanza dal testo sopra */
  }

  .footer-logos img {
    height: 18px;
  }

}
