:root {
  --ink: #16202a;
  --muted: #647180;
  --line: #dce4ea;
  --cloud: #f4f7f8;
  --primary: #176b73;
  --primary-dark: #0f4d52;
  --coral: #d96846;
  --amber: #e0a73b;
  --violet: #6558a9;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--primary);
}

.btn {
  border-radius: 8px;
  align-items: center;
  display: inline-flex;
  gap: .5rem;
  font-weight: 700;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
}

.site-navbar {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(22, 32, 42, .08);
  backdrop-filter: blur(14px);
}

.navbar-brand {
  color: var(--ink);
  font-weight: 800;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
}

.nav-link {
  color: var(--ink);
  font-weight: 650;
}

.hero-section {
  min-height: 78vh;
  padding: 122px 0 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 26, 32, .92), rgba(10, 26, 32, .76) 47%, rgba(10, 26, 32, .42)),
    linear-gradient(135deg, #12343a 0%, #176b73 44%, #d96846 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 4.1vw, 3.65rem);
  line-height: .98;
  margin: 1rem 0 1.25rem;
  max-width: 980px;
}

.hero-content .lead {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  max-width: 720px;
}

.eyebrow {
  color: #f2c14e;
  display: inline-block;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.hero-points {
  color: rgba(255, 255, 255, .86);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1.4rem;
}

.hero-points span {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
  font-weight: 650;
}

.hero-points i {
  color: #78d3bd;
}

.hero-visual {
  position: absolute;
  inset: 82px -210px 0 55%;
  z-index: 1;
  opacity: .5;
  transform: rotate(-3deg);
}

.dashboard-shell {
  width: min(680px, 54vw);
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
  padding: 18px;
}

.dashboard-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.dashboard-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dash-panel {
  min-height: 130px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
  color: var(--white);
  padding: 18px;
}

.dash-panel small {
  color: rgba(255, 255, 255, .72);
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
}

.dash-panel strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.panel-wide {
  grid-column: span 2;
}

.panel-list span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  margin-top: 14px;
}

.panel-list span:nth-child(3) {
  width: 78%;
}

.panel-list span:nth-child(4) {
  width: 58%;
}

.panel-accent {
  background: rgba(224, 167, 59, .5);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, .24);
  border-radius: 999px;
  margin-top: 24px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: #78d3bd;
}

.section-pad {
  padding: 88px 0;
}

#funzionalita {
  padding-top: 48px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading h2,
.soft-section h2,
.audience-intro h2,
.contact-box h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  margin-top: .6rem;
}

.feature-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22, 32, 42, .08);
}

.feature-card i {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 1.3rem;
}

.feature-card h3,
.benefit-item h3 {
  font-size: 1.2rem;
  margin-bottom: .65rem;
}

.feature-card p,
.benefit-item p,
.soft-section p,
.contact-box p {
  color: var(--muted);
  margin-bottom: 0;
}

.soft-section {
  background: var(--cloud);
}

.benefit-list {
  display: grid;
  gap: 16px;
}

.benefit-item {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.benefit-item span {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: rgba(217, 104, 70, .13);
  color: var(--coral);
  font-size: 1.25rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.module-pill {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 16px;
  font-weight: 750;
  background: var(--white);
}

.module-pill i {
  color: var(--violet);
  font-size: 1.25rem;
}

.audience-section {
  color: var(--white);
  background: #183439;
}

.audience-intro {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.audience-card {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 24px;
  background: rgba(255, 255, 255, .08);
  font-size: 1.08rem;
  font-weight: 750;
}

.audience-card i {
  color: #f2c14e;
  font-size: 1.5rem;
}

.contact-section {
  padding: 84px 0;
  background: var(--white);
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f7f8 100%);
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.contact-box p {
  margin: 0 auto 2rem;
  max-width: 640px;
}

.site-footer {
  padding: 24px 0;
  background: #10191d;
  color: rgba(255, 255, 255, .76);
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 126px;
  }

  .hero-visual {
    inset: 110px -280px 0 28%;
    opacity: .34;
  }

  .dashboard-shell {
    width: 720px;
  }

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

@media (max-width: 575.98px) {
  .hero-section {
    padding: 120px 0 56px;
  }

  .hero-visual {
    inset: 118px -520px 0 12%;
    opacity: .22;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-pad {
    padding: 64px 0;
  }

  .feature-card,
  .benefit-item,
  .audience-card {
    padding: 22px;
  }

  .benefit-item {
    flex-direction: column;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }
}
