/**
 * LegalOne — tema scuro (corporate / gestionale).
 */
:root {
  --bg-page: #050a12;
  --bg-elevated: #0c1524;
  --bg-card: #111d2e;
  --bg-card-hover: #152536;
  --blue-deep: #020810;
  --blue-950: #030d1a;
  --blue-900: #061222;
  --blue-850: #0a1a2e;
  --blue-800: #0d2340;
  --blue-750: #102a4a;
  --blue-700: #143456;
  --blue-600: #1a4a7a;
  --blue-500: #2563a8;
  --blue-400: #3b82c4;
  --blue-300: #6ba3d6;
  --blue-200: #94b8e0;
  --accent: #2d7dd2;
  --accent-bright: #4a9eff;
  --text: #e8eef7;
  --text-muted: #94a8c4;
  --text-soft: #6b7d99;
  --white: #fff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max: 1120px;
  --border-subtle: rgba(74, 158, 255, 0.12);
  --border-strong: rgba(74, 158, 255, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--blue-900) 40%, var(--blue-850) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--accent-bright);
  font-weight: 500;
}

a:hover {
  color: var(--blue-200);
}

code {
  background: var(--blue-850);
  color: var(--blue-200);
  padding: 0.12em 0.45em;
  border-radius: 6px;
  font-size: 0.88em;
  border: 1px solid var(--border-strong);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(6, 18, 34, 0.98) 0%, rgba(5, 10, 18, 0.96) 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 2px solid rgba(107, 163, 214, 0.45);
}

.btn--outline-light:hover {
  background: rgba(74, 158, 255, 0.12);
  border-color: var(--accent-bright);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 70% at 15% 0%, rgba(45, 125, 210, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 80% 55% at 100% 80%, rgba(26, 74, 122, 0.35) 0%, transparent 50%),
    linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-950) 28%, var(--blue-850) 58%, var(--blue-800) 100%);
  color: var(--white);
  padding: 56px 20px 80px;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to top, var(--bg-page), transparent);
  pointer-events: none;
  opacity: 0.9;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236ba3d6' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(45, 125, 210, 0.2);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  border: 1px solid rgba(107, 163, 214, 0.35);
  color: var(--blue-200);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.hero__lead {
  margin: 0 0 18px;
  font-size: 1.06rem;
  opacity: 0.94;
  max-width: 46ch;
  color: #c8d8ec;
}

.hero__bullets {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 48ch;
}

.hero__bullets li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: #b8cce6;
}

.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue-500));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-strong);
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.05);
}

/* Intro */
.section--intro {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-elevated) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.intro-grid h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  color: var(--text);
}

.intro-grid p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.intro-grid p:last-child {
  margin-bottom: 0;
}

.intro-highlight {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--blue-850) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.intro-highlight h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--accent-bright);
}

.intro-highlight ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.intro-highlight li {
  margin-bottom: 6px;
}

/* Sections */
.section {
  padding: 72px 20px;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--blue-900) 50%, var(--bg-elevated) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section--blue {
  background: linear-gradient(165deg, #040c18 0%, var(--blue-850) 38%, var(--blue-800) 100%);
  color: var(--white);
  border: none;
  box-shadow: inset 0 1px 0 rgba(74, 158, 255, 0.08);
}

.section--blue .section__title {
  color: var(--white);
}

.section--blue .section__subtitle {
  color: rgba(200, 216, 236, 0.92);
}

.section--blue .detail-block {
  background: rgba(8, 20, 36, 0.65);
  border-color: rgba(74, 158, 255, 0.18);
  backdrop-filter: blur(8px);
}

.section--blue .detail-block h3 {
  color: #fff;
}

.section--blue .detail-block p,
.section--blue .detail-block li {
  color: rgba(210, 224, 242, 0.94);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__title {
  text-align: center;
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--text);
}

.section__title--spaced {
  margin-top: 56px;
}

.section__subtitle {
  text-align: center;
  margin: 0 auto 44px;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.feature-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--blue-850) 100%);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-top-color: var(--accent-bright);
  background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  opacity: 0.95;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: var(--text);
}

.feature-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-card__more {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-soft);
  padding-top: 8px;
  border-top: 1px dashed rgba(74, 158, 255, 0.2);
}

/* Moduli installabili */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px 22px;
  border-left: 4px solid var(--blue-500);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.module-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--text);
}

.module-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modules-note {
  margin: 28px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Detail blocks */
.detail-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.detail-blocks--three {
  grid-template-columns: repeat(3, 1fr);
}

.detail-block {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.detail-block h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--accent-bright);
}

.detail-block p,
.detail-block li {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.detail-block ul {
  margin: 8px 0 0;
  padding-left: 1.15rem;
}

.detail-block li + li {
  margin-top: 6px;
}

/* Visual strip */
.section--strip {
  background: linear-gradient(90deg, var(--blue-900) 0%, var(--bg-elevated) 45%, var(--bg-page) 100%);
  border-top: 1px solid var(--border-subtle);
}

.visual-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.visual-strip__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-strong);
}

.visual-strip__img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.06);
}

.visual-strip h2 {
  margin: 0 0 14px;
  font-size: 1.65rem;
  color: var(--text);
}

.visual-strip p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 36px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(180, 200, 224, 0.75);
  background: linear-gradient(180deg, var(--blue-deep) 0%, #010508 100%);
  border-top: 1px solid var(--border-subtle);
}

.site-footer p {
  margin: 0;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.site-footer a {
  color: var(--blue-300);
}

.site-footer a:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead,
  .hero__bullets {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__bullets li {
    text-align: left;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    max-width: 520px;
    margin: 0 auto;
  }

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

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

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

  .detail-blocks,
  .detail-blocks--three {
    grid-template-columns: 1fr;
  }

  .visual-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html,
  body {
    font-size: 16px;
  }

  .section {
    padding: 56px 16px;
  }

  .hero {
    padding: 44px 16px 64px;
  }
}
