:root {
  --bg: #02040b;
  --text: #f8fbff;
  --muted: #c9d4e4;
  --soft: #9aa8bc;
  --accent: #72f6df;
  --cyan: #8bdcff;
  --violet: #c1a6ff;
  --gold: #f4d98b;
  --surface: rgba(255,255,255,0.055);
  --surface-strong: rgba(7,14,28,0.82);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 34px 110px rgba(0,0,0,.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  font-weight: 300;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12% 12%, rgba(114,246,223,.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(193,166,255,.18), transparent 30%),
    radial-gradient(circle at 50% 56%, rgba(139,220,255,.10), transparent 40%),
    linear-gradient(145deg, #02040b 0%, #08172b 45%, #050818 78%, #02040b 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 118px 118px;
  opacity: .14;
  mask-image: radial-gradient(circle at center, black 0%, transparent 76%);
}

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

.page {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1140px, calc(100% - 44px));
  margin: 0 auto;
}

/* HEADER PIÙ GRANDE */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2,4,11,.84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 17px;
  font-weight: 520;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 16.5px;
  font-weight: 420;
  color: #dde7f5;
}

.nav-links a {
  position: relative;
  opacity: .94;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -10px;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
  transition: .22s ease;
}

.nav-links a:hover::after {
  left: 0;
  right: 0;
  opacity: 1;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* BOTTONI PIÙ GRANDI, NON PESANTI */
.btn {
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 430;
  letter-spacing: .01em;
  background: rgba(255,255,255,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(114,246,223,.32);
}

.btn-primary {
  color: #031311;
  background: linear-gradient(135deg, #f0fffb 0%, #9affe9 35%, #72f6df 65%, #8bdcff 100%);
  border-color: rgba(154,255,233,.56);
  box-shadow: 0 18px 42px rgba(114,246,223,.18);
}

.btn-secondary {
  color: #eef6ff;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
}

/* HERO */
.hero {
  padding: 82px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(360px,.75fr);
  gap: 74px;
  align-items: center;
}

.eyebrow,
.kicker {
  display: inline-flex;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(114,246,223,.24);
  background: rgba(114,246,223,.085);
  color: #d5fff8;
  font-size: 13px;
  font-weight: 410;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* TITOLO GRANDE RIDOTTO */
h1 {
  max-width: 650px;
  margin: 24px 0 22px;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.12;
  letter-spacing: -.032em;
  font-weight: 360;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(92deg, #ffffff 0%, #e6fff9 42%, #9eeaff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 360;
}

/* TESTO PICCOLO INGRANDITO */
.lead {
  max-width: 690px;
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.68;
  font-weight: 330;
  color: var(--muted);
}

.lead strong {
  font-weight: 430;
  color: #f3f9ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin: 32px 0 26px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  max-width: 680px;
}

.chip {
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.052);
  color: #d3deec;
  font-size: 13.2px;
  font-weight: 350;
}

/* VIDEO HERO REINSERITO */
.hero-video-card {
  position: relative;
  min-height: 470px;
  max-width: 480px;
  margin-left: auto;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(5,10,22,.76);
  box-shadow: var(--shadow);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(2,4,11,.78);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(15px);
}

.video-caption strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 420;
  margin-bottom: 7px;
}

.video-caption span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 330;
  color: #d0dbea;
}

/* PAGINE INTERNE */
section {
  padding: 70px 0;
}

.page-hero {
  padding: 76px 0 42px;
}

.page-hero h1 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.14;
  font-weight: 360;
  max-width: 760px;
}

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

h2 {
  margin: 14px 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -.026em;
  font-weight: 360;
}

.section-text {
  max-width: 800px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 330;
}

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

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

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

.card {
  padding: 25px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)), rgba(5,10,22,.68);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 22px 74px rgba(0,0,0,.24);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(114,246,223,.085);
  border: 1px solid rgba(139,220,255,.16);
  font-size: 21px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -.018em;
  font-weight: 400;
}

.card p {
  margin: 0;
  color: #c8d3e2;
  font-size: 16px;
  line-height: 1.66;
  font-weight: 320;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature {
  padding: 22px;
  border-radius: 23px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.045);
  font-size: 18px;
  font-weight: 330;
  color: var(--muted);
}

.final-cta {
  padding: 48px;
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(114,246,223,.13), transparent 32%),
    linear-gradient(135deg, rgba(8,13,26,.80), rgba(2,4,11,.94));
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: var(--shadow);
}

.final-cta h2 {
  font-size: clamp(28px, 2.8vw, 38px);
}

.final-cta p {
  font-size: 17px;
}

footer {
  padding: 42px 0 60px;
  color: var(--soft);
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 320;
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

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

  .hero-video-card {
    max-width: 100%;
    min-height: 380px;
    margin-left: 0;
  }

  h1 {
    font-size: clamp(34px, 7vw, 48px);
  }
}

@media (max-width: 560px) {
  .nav-inner {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 33px;
  }

  h2 {
    font-size: 28px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-video-card {
    min-height: 320px;
  }
}

/* =========================================================
   FORCE HERO VIDEO VISIBILITY
   ========================================================= */

.hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.78fr) !important;
  gap: 76px !important;
  align-items: center !important;
}

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

.hero-video-card {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 500px !important;
  min-height: 470px !important;
  margin-left: auto !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  background: rgba(5,10,22,.76) !important;
  box-shadow: 0 34px 110px rgba(0,0,0,.52) !important;
}

.hero-video {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

.video-caption {
  display: block !important;
  position: absolute !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 2 !important;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-video-card {
    max-width: 100% !important;
    min-height: 380px !important;
    margin-left: 0 !important;
  }
}

