:root {
  --bg: #0f100f;
  --bg-soft: #161817;
  --panel: #1d211f;
  --panel-2: #f7f8f5;
  --text: #f6f7f2;
  --muted: #bcc6bf;
  --ink: #18201b;
  --ink-soft: #516055;
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(18, 32, 24, 0.12);
  --green: #12ae12;
  --green-2: #18c964;
  --cyan: #50c9e8;
  --blue: #4f68ff;
  --rose: #cc3366;
  --amber: #f1b84b;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: Poppins, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  height: 100%;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .page-scroll {
  overflow: hidden;
}

.page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  position: relative;
  flex: 0 0 auto;
  z-index: 20;
  background: rgba(15, 16, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(100% - 32px, var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: min(290px, 42vw);
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.brand img.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand img.brand-logo-full {
  width: clamp(198px, 15vw, 272px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  place-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.nav-dropdown-toggle {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.nav-dropdown.open .nav-dropdown-toggle svg,
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown:focus-within .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 15, 14, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  white-space: nowrap;
}

.site-nav a.portal-login {
  color: var(--green-2);
  font-weight: 700;
}

.site-nav a.portal-login:hover {
  color: #041006;
  background: var(--green-2);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 0.91rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #041006;
  background: var(--green-2);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.btn-plain {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  background:
    linear-gradient(90deg, rgba(15, 16, 15, 0.96), rgba(15, 16, 15, 0.72) 48%, rgba(15, 16, 15, 0.48)),
    url("impresa-ai-hero.png") center/cover no-repeat;
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-2);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero-logo {
  display: block;
  width: clamp(420px, 43vw, 760px);
  max-width: 100%;
  height: auto;
  margin: 0 0 14px;
  object-fit: contain;
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 24px rgba(22, 229, 139, 0.16));
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: #e6eee8;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero .lead {
  width: 100%;
  max-width: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.metric-panel {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--line);
  background: rgba(18, 21, 19, 0.78);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
}

.metric-panel h2 {
  font-size: 1rem;
  color: var(--green-2);
  margin-bottom: 12px;
}

.metric-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-list i {
  color: var(--cyan);
}

.next-hint {
  width: min(100% - 32px, var(--max));
  margin: auto auto 0;
  padding: 18px 0 32px;
  color: #effff2;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
}

.section {
  padding: 78px 0;
}

.section.light {
  background: var(--panel-2);
  color: var(--ink);
}

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

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

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

.section-head-wide {
  max-width: var(--max);
}

.section-head p {
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 1.04rem;
}

.light .section-head p,
.light .body-copy,
.light .card p,
.light .split-copy p,
.light .timeline p,
.light .faq-item p {
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 24px;
}

.light .card {
  background: #ffffff;
  border-color: var(--line-dark);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(80, 201, 232, 0.12);
  color: var(--cyan);
}

.card p,
.body-copy {
  color: var(--muted);
  margin: 12px 0 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.light .tag {
  border-color: var(--line-dark);
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.split-media {
  min-height: 440px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(15, 16, 15, 0.12), rgba(15, 16, 15, 0.84)),
    url("impresa-ai-hero.png") center/cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  color: var(--muted);
}

.light .check-list li {
  color: var(--ink-soft);
}

.check-list i {
  color: var(--green-2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline-step {
  border-top: 3px solid var(--green-2);
  padding: 18px 18px 0;
}

.timeline-step span {
  display: block;
  color: var(--amber);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(15, 16, 15, 0.96), rgba(15, 16, 15, 0.7)),
    url("impresa-ai-hero.png") center/cover no-repeat;
  padding: 98px 0 62px;
}

.page-hero .lead {
  max-width: 840px;
}

.feature-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.feature-row:first-child {
  border-top: 0;
}

.feature-row strong {
  color: var(--green-2);
}

.feature-row p {
  color: var(--muted);
  margin: 8px 0 0;
}

.light .feature-row {
  border-color: var(--line-dark);
}

.light .feature-row p {
  color: var(--ink-soft);
}

.quote-band {
  background: #ffffff;
  color: var(--ink);
  padding: 34px;
  border-radius: var(--radius);
  border-left: 5px solid var(--green-2);
}

.quote-band p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.comparison th,
.comparison td {
  padding: 18px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  background: #eaf7ed;
  color: var(--ink);
}

.comparison tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line-dark);
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px;
}

.cta-band {
  background:
    linear-gradient(90deg, rgba(18, 174, 18, 0.18), rgba(80, 201, 232, 0.12)),
    var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.site-footer {
  padding: 34px 0;
  background: #090a09;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav,
  .nav-actions {
    display: none;
  }

  .site-header.open .site-nav,
  .site-header.open .nav-actions {
    display: flex;
  }

  .site-header.open .nav-shell {
    min-height: 100vh;
    align-items: flex-start;
    padding: 18px 0;
    flex-wrap: wrap;
  }

  .site-header.open .brand,
  .site-header.open .nav-toggle {
    align-self: flex-start;
  }

  .site-header.open .site-nav,
  .site-header.open .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.open .site-nav a,
  .site-header.open .nav-actions a,
  .site-header.open .nav-dropdown-toggle {
    justify-content: center;
    text-align: center;
  }

  .site-header.open .nav-dropdown {
    width: 100%;
  }

  .site-header.open .nav-dropdown-toggle {
    width: 100%;
  }

  .site-header.open .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .site-header.open .nav-dropdown.open .nav-dropdown-menu,
  .site-header.open .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
  }

  .hero-grid,
  .split,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .metric-panel {
    max-width: 540px;
  }

  .grid-3,
  .grid-2,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .wrap,
  .hero-inner,
  .next-hint {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 32px;
  }

  .hero-logo {
    width: min(100%, 330px);
    height: auto;
  }

  .section,
  .page-hero {
    padding: 56px 0;
  }

  .grid-3,
  .grid-2,
  .timeline {
    grid-template-columns: 1fr;
  }

  .split-media {
    min-height: 300px;
  }

  .comparison {
    display: block;
    overflow-x: auto;
  }

  .btn {
    width: 100%;
  }

  .next-hint {
    font-size: clamp(1.2rem, 7vw, 2rem);
    padding-bottom: 22px;
  }
}
