:root {
  --blue-950: #06223e;
  --blue-850: #08365d;
  --blue-700: #0476b8;
  --cyan-500: #1db7d8;
  --green-500: #83b93f;
  --ink: #142235;
  --muted: #66768a;
  --line: #dfe8f0;
  --surface: #ffffff;
  --soft: #f5f9fc;
  --shadow: 0 22px 70px rgba(6, 34, 62, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 232, 240, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-tree {
  width: 112px;
  height: auto;
}

.brand-wordmark {
  width: clamp(152px, 15vw, 230px);
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--blue-850);
  font-weight: 700;
  font-size: 0.93rem;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(4, 118, 184, 0.1);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-850);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) 0 clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}

.hero-copy,
.hero-visual,
.feature-copy,
.contact-copy,
.contact-panel {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--blue-950);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 .surname {
  white-space: nowrap;
}

.hero-text {
  max-width: 620px;
  color: #405267;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  box-shadow: 0 14px 28px rgba(4, 118, 184, 0.22);
}

.button.secondary {
  color: var(--blue-850);
  background: #fff;
  border-color: var(--line);
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.logo-orbit {
  position: relative;
  width: min(82vw, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 62% 34%, rgba(131, 185, 63, 0.26), transparent 24%),
    radial-gradient(circle at 32% 70%, rgba(29, 183, 216, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 244, 250, 0.88));
  box-shadow: var(--shadow);
}

.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(4, 118, 184, 0.18);
  border-radius: 50%;
}

.logo-orbit::after {
  inset: 72px;
  border-color: rgba(131, 185, 63, 0.22);
}

.logo-orbit img {
  position: relative;
  z-index: 2;
  width: 68%;
  filter: drop-shadow(0 12px 22px rgba(6, 34, 62, 0.18));
}

.signal-card {
  position: absolute;
  min-width: 168px;
  padding: 16px 18px;
  border: 1px solid rgba(223, 232, 240, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(6, 34, 62, 0.14);
  backdrop-filter: blur(14px);
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  color: var(--blue-950);
  font-size: 1.04rem;
}

.card-one {
  top: 62px;
  right: 8px;
}

.card-two {
  left: 8px;
  bottom: 128px;
}

.card-three {
  right: 42px;
  bottom: 38px;
}

.service-strip,
.section,
.contact-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 82px;
}

.service-link {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(6, 34, 62, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(6, 34, 62, 0.12);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue-700);
  font-weight: 800;
}

.service-link strong,
.service-link span:last-child {
  display: block;
}

.service-link strong {
  margin-bottom: 8px;
  color: var(--blue-950);
  font-size: 1.08rem;
}

.service-link span:last-child {
  color: var(--muted);
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading.compact {
  max-width: none;
  margin-bottom: 30px;
  text-align: center;
}

h2 {
  color: var(--blue-950);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 34px 0;
}

.feature.reversed .feature-media {
  order: 2;
}

.feature-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
}

.feature-kicker {
  margin-bottom: 8px;
  color: var(--green-500);
  font-weight: 800;
}

h3 {
  margin-bottom: 14px;
  color: var(--blue-950);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.feature-copy p:last-child {
  color: #405267;
  font-size: 1.08rem;
}

.proof,
.ecosystem,
.partners {
  border-top: 1px solid var(--line);
}

.cert-grid,
.ecosystem-grid,
.partner-grid {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 18px;
}

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

.ecosystem-grid > img,
.ecosystem-grid a,
.partner-grid > img,
.partner-grid a,
.partner-button {
  width: 100%;
  min-height: 154px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cert-card {
  width: min(100%, 250px);
  height: 250px;
  display: grid;
  place-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cert-card img {
  width: 176px;
  height: 176px;
  object-fit: contain;
}

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

.ecosystem-card {
  width: min(100%, 310px);
  height: 240px;
  display: grid;
  place-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
}

.ecosystem-card:hover,
.ecosystem-card:focus-visible {
  border-color: rgba(4, 118, 184, 0.42);
  outline: none;
}

.ecosystem-card img {
  width: 230px;
  height: 130px;
  object-fit: contain;
}

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

.partner-grid img {
  max-height: 92px;
  width: auto;
  object-fit: contain;
}

.partner-button {
  cursor: pointer;
  font: inherit;
}

.partner-button:hover,
.partner-button:focus-visible {
  border-color: rgba(4, 118, 184, 0.42);
  outline: none;
}

.contact-section {
  margin-top: 48px;
  margin-bottom: 48px;
  padding: clamp(34px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: center;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 34, 62, 0.96), rgba(4, 118, 184, 0.92)),
    radial-gradient(circle at 80% 0%, rgba(131, 185, 63, 0.45), transparent 38%);
}

.contact-section .eyebrow,
.contact-section h2,
.contact-section p {
  color: #fff;
}

.contact-copy p:last-child {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.contact-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.contact-panel a,
.contact-panel p {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.contact-legal {
  width: min(1180px, calc(100% - 40px));
  margin: -26px auto 46px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-links a,
.contact-legal a {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-850);
  font-size: 0.9rem;
  font-weight: 800;
}

.footer {
  padding: 26px 20px 38px;
  color: #5d6d80;
  text-align: center;
}

.footer a {
  color: var(--blue-700);
  font-weight: 800;
}

.modal {
  width: min(760px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(6, 34, 62, 0.58);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  padding: clamp(24px, 5vw, 42px);
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-950);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.iubenda-badge {
  width: 210px;
  margin-bottom: 18px;
}

.modal h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.modal h3 {
  margin-top: 26px;
  font-size: 1.25rem;
}

.modal p,
.modal li {
  color: #405267;
}

.modal ul {
  padding-left: 1.25rem;
}

@media (max-width: 920px) {
  .hero,
  .feature,
  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

  .service-strip,
  .cert-grid,
  .ecosystem-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .feature.reversed .feature-media {
    order: 0;
  }

  .contact-section {
    padding: 34px 24px;
  }
}

@media (max-width: 720px) {
  .nav {
    width: min(calc(100vw - 28px), 1180px);
  }

  .brand {
    gap: 10px;
  }

  .brand-tree {
    width: 92px;
  }

  .brand-wordmark {
    width: clamp(130px, 40vw, 170px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 46px rgba(6, 34, 62, 0.12);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px;
  }

  .hero,
  .service-strip,
  .section,
  .contact-section {
    width: min(calc(100vw - 28px), 1180px);
  }

  .hero-copy,
  .hero-text,
  .hero-actions {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero {
    padding-top: 44px;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3rem);
    line-height: 1;
    word-break: normal;
  }

  .hero-text {
    font-size: 1rem;
    max-width: 34ch;
  }

  .hero-actions .button {
    width: calc(100% - 28px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 390px;
    overflow: hidden;
  }

  .logo-orbit {
    width: min(82vw, 330px);
  }

  .signal-card {
    min-width: 142px;
    padding: 12px;
  }

  .card-one {
    top: 18px;
    right: 10px;
  }

  .card-two {
    left: 10px;
    bottom: 84px;
  }

  .card-three {
    right: 10px;
    bottom: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .feature {
    padding: 24px 0;
  }

  .feature-media img {
    min-height: 210px;
  }
}
