:root {
  --bg: #0c1221;
  --bg-2: #141c31;
  --bg-3: #1a2440;
  --surface: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.15);
  --text: #f2f6ff;
  --muted: rgba(242, 246, 255, 0.75);
  --primary: #21d9b3;
  --accent: #66adff;
  --ink: #08131d;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 1%, rgba(102, 173, 255, 0.2), transparent 30%),
    radial-gradient(circle at 10% 12%, rgba(33, 217, 179, 0.2), transparent 32%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 55%, #090f1d 100%);
  font-family: "Work Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

[data-lang="it"] {
  display: none;
}

html[data-language="it"] [data-lang="en"] {
  display: none;
}

html[data-language="it"] [data-lang="it"] {
  display: inline;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--text);
  color: var(--ink);
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(10px);
}

.nav-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 42px;
  display: block;
}

.brand-label {
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-family: "Rubik", sans-serif;
  font-size: 0.92rem;
  list-style: none;
}

.nav-links a {
  padding: 0.3rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.language-switcher button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--text);
  color: var(--ink);
}

.btn {
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(110deg, var(--primary), #3ee8bf 70%, #77f6c8);
  color: var(--ink);
  padding: 0.72rem 1.15rem;
  box-shadow: 0 12px 25px rgba(33, 217, 179, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
}

.btn-soft {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.68rem 1.05rem;
}

.hero {
  padding: 3.8rem 0 3.2rem;
}

.hero-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(130deg, #111a31, #152038);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 3.6vw, 3rem);
  animation: rise 0.55s ease both;
}

.hero-box::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(33, 217, 179, 0.2), transparent 68%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  margin-bottom: 1rem;
  border: 1px solid rgba(33, 217, 179, 0.38);
  border-radius: 999px;
  background: rgba(33, 217, 179, 0.13);
  color: #95f5dd;
  padding: 0.4rem 0.82rem;
  font-family: "Rubik", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  max-width: 20ch;
  margin-bottom: 1rem;
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 60ch;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-note > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.24rem 0.65rem;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.kpi-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0.9rem;
}

.kpi-value {
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.kpi-label {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
}

section {
  padding: 4.4rem 0;
}

.section-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #0f172a 0%, #15203a 100%);
}

.eyebrow {
  margin-bottom: 0.6rem;
  color: #95f5dd;
  font-family: "Rubik", sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0.8rem;
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 62ch;
  margin-bottom: 2rem;
  color: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 1rem;
}

.value-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
}

.value-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  background: linear-gradient(130deg, var(--primary), var(--accent));
  color: var(--ink);
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.value-card h3 {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
}

.value-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.panel-copy {
  border-right: 1px solid var(--line);
  padding: 1.6rem;
}

.panel-title {
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: 1.2rem;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  list-style: none;
}

.check-list li::before {
  content: "OK";
  margin-right: 0.5rem;
  color: #95f5dd;
  font-family: "Rubik", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.6rem;
  align-content: start;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.6rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.34rem 0.7rem;
  font-size: 0.82rem;
  text-align: center;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.diagram-card {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.diagram-card h3 {
  margin-bottom: 0.7rem;
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
}

.diagram-card .mermaid {
  min-width: 520px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 1rem;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.05rem;
}

.step-index {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--primary), var(--accent));
  color: var(--ink);
  font-family: "Rubik", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 0.3rem;
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: 0.97rem;
}

.step p {
  color: var(--muted);
  font-size: 0.88rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.05rem;
}

.faq-item h3 {
  margin-bottom: 0.4rem;
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: 0.95rem;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.88rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, #15284f, #127f66);
  box-shadow: var(--shadow);
  color: #f8fafc;
  padding: 2.2rem;
}

.cta h2 {
  margin-bottom: 0.35rem;
  color: #f8fafc;
}

.cta p {
  max-width: 55ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.cta .btn-primary {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: none;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #090e1c;
  color: var(--muted);
  padding: 2.6rem 0 2rem;
  font-size: 0.9rem;
}

.footer-brand {
  margin-bottom: 0.9rem;
  text-align: center;
}

.footer-brand img {
  width: auto;
  height: 46px;
  opacity: 0.95;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
}

:focus-visible {
  outline: 3px solid rgba(33, 217, 179, 0.75);
  outline-offset: 3px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .value-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel-row {
    grid-template-columns: 1fr;
  }

  .panel-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

@media (max-width: 760px) {
  .nav-links li:not(:last-child) {
    display: none;
  }

  .brand-label {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-box {
    border-radius: 20px;
  }

  .value-grid,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .diagram-card .mermaid {
    min-width: 440px;
  }
}

@media (max-width: 520px) {
  .hero-cta,
  .hero-cta .btn,
  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }

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

  .stack-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1.1rem;
  }

  .cta {
    padding: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
