/* ── Reset & base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #1B4332;
  --green-700: #2D6A4F;
  --green-500: #52B788;
  --green-300: #95D5B2;
  --green-100: #D8F3DC;
  --green-50:  #F0FAF4;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white:    #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1100px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout helpers ───────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section--alt { background: var(--green-50); }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 580px;
}

.section-header { margin-bottom: 64px; }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin-inline: auto; }

/* ── Fade-in on scroll ────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--green-700);
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--green-700);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s;
}
.nav__links a:hover { color: var(--green-700); }

.nav__cta {
  background: var(--green-700);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav__cta:hover { background: var(--green-900) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: .3s;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  padding-block: 100px 80px;
  background: linear-gradient(160deg, var(--green-50) 0%, var(--white) 60%);
  overflow: hidden;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--gray-900);
  max-width: 700px;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: normal;
  color: var(--green-700);
}

.hero__sub {
  font-size: 19px;
  color: var(--gray-500);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(45,106,79,.35);
}
.btn--primary:hover {
  background: var(--green-900);
  box-shadow: 0 4px 16px rgba(45,106,79,.40);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn--ghost:hover {
  border-color: var(--green-500);
  color: var(--green-700);
}

.hero__screenshot {
  margin-top: 72px;
  position: relative;
}

/* ── Browser frame ────────────────────────────── */
.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.06);
  background: var(--white);
}

.browser-frame__bar {
  background: var(--gray-100);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gray-300);
}

.browser-frame__dots {
  display: flex;
  gap: 6px;
}

.browser-frame__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.browser-frame__dots span:nth-child(1) { background: #FF5F57; }
.browser-frame__dots span:nth-child(2) { background: #FFBD2E; }
.browser-frame__dots span:nth-child(3) { background: #28CA41; }

.browser-frame__url {
  flex: 1;
  background: var(--white);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  font-family: var(--font);
}

.browser-frame__body {
  position: relative;
  min-height: 400px;
  background: var(--gray-100);
  overflow: hidden;
}

.browser-frame__body img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-placeholder {
  width: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  color: var(--green-700);
  font-size: 14px;
  font-weight: 500;
}

.screenshot-placeholder__icon {
  font-size: 40px;
  opacity: .5;
}

.screenshot-placeholder--sm { min-height: 280px; }
.screenshot-placeholder--xs { min-height: 200px; }

/* ── TARGETS ──────────────────────────────────── */
.targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.target-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.target-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-sm);
}

.target-card__icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.target-card__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-900);
  line-height: 1.3;
}

.target-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ── FEATURES ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card__emoji {
  font-size: 30px;
  margin-bottom: 16px;
  display: block;
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── HOW IT WORKS ─────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 80px; }

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.step--reverse .step__content { order: 2; }
.step--reverse .step__visual  { order: 1; }

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green-700);
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1.25;
}

.step__desc {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
}

.step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ── CHI SIAMO ────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: box-shadow .2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }

.team-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.team-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.team-card__bio {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ── ROADMAP ──────────────────────────────────── */
.roadmap-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.roadmap-col {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 28px;
}

.roadmap-col--active {
  border-color: var(--green-500);
  background: var(--green-50);
}

.roadmap-col__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.roadmap-col__badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.badge--active { background: var(--green-700); color: var(--white); }
.badge--future { background: var(--gray-300); color: var(--gray-700); }

.roadmap-col__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}

.roadmap-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.roadmap-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-700);
}

.roadmap-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.roadmap-col--active .roadmap-list li::before {
  background: var(--green-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.roadmap-col:not(.roadmap-col--active) .roadmap-list li::before {
  background: var(--gray-300);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='2' fill='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── FAQ ──────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--gray-300);
}

.faq-item:first-child { border-top: 1px solid var(--gray-300); }

.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item__q::after {
  content: '+';
  font-size: 22px;
  color: var(--green-700);
  transition: transform .25s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .faq-item__q::after {
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-item__a-inner {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── CTA FINALE ───────────────────────────────── */
.cta-banner {
  background: var(--green-700);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
}

.cta-banner__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-banner__sub {
  font-size: 18px;
  opacity: .82;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.btn--white {
  background: var(--white);
  color: var(--green-700);
}
.btn--white:hover {
  background: var(--green-100);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  padding-block: 48px;
  border-top: 1px solid var(--gray-300);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--green-700);
}

.footer__copy {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 6px;
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer__links a {
  font-size: 14px;
  color: var(--gray-500);
  transition: color .2s;
}
.footer__links a:hover { color: var(--green-700); }

.footer__civicware {
  font-size: 13px;
  color: var(--gray-500);
  text-align: right;
}

.footer__civicware a { color: var(--green-700); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    padding: 32px 24px;
    gap: 24px;
    z-index: 99;
    border-top: 1px solid var(--gray-300);
  }
  .nav__hamburger { display: flex; }

  .step { grid-template-columns: 1fr; gap: 32px; }
  .step--reverse .step__content { order: unset; }
  .step--reverse .step__visual  { order: unset; }

  .roadmap-cols { grid-template-columns: 1fr; }

  .cta-banner { padding: 48px 24px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__civicware { text-align: left; }
}

@media (max-width: 480px) {
  .hero { padding-block: 64px 48px; }
  .section { padding-block: 64px; }
}
