@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #07111f;
  --bg-soft: #0d1a2c;
  --panel: #101f34;
  --text: #122033;
  --muted: #637083;
  --white: #ffffff;
  --accent: #16c784;
  --accent-2: #45e0a9;
  --line: #dfe6ee;
  --soft: #f4f7fa;
  --danger-soft: #fff4d8;
  --danger-text: #725300;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(7,17,31,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); }
.center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,17,31,.94);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #0a9f6b);
  color: #04140e; font-weight: 800;
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: #9fb0c6; font-size: 12px; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #dce5f1; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: white; }
.menu-toggle { display: none; background: none; color: white; border: 0; font-size: 25px; }

.btn {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04140e !important;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  border: 0;
  box-shadow: 0 12px 30px rgba(22,199,132,.22);
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 10px 16px; border-radius: 10px; }
.btn-secondary { background: transparent; color: white !important; border: 1px solid rgba(255,255,255,.25); box-shadow: none; }
.full { width: 100%; }

.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(22,199,132,.18), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #0b1728 100%);
  color: white;
  padding: 100px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 800;
  font-size: 12px;
}
h1, h2, h3 { line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 70px); letter-spacing: -.04em; margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; margin-bottom: 22px; }
h3 { font-size: 22px; }
.hero-text { color: #b8c6d8; font-size: 18px; max-width: 720px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0; }
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; color: #a9b8cb; font-size: 13px; }

.dashboard-card {
  background: rgba(16,31,52,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.dash-top, .metric, .score { display: flex; align-items: center; justify-content: space-between; }
.dash-top { color: #d7e2ef; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.live { color: var(--accent); font-weight: 800; }
.metric { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.07); color: #93a4b9; }
.metric strong { color: white; }
.score { margin-top: 20px; padding: 18px; background: rgba(22,199,132,.11); border-radius: 15px; }
.score b { font-size: 30px; color: var(--accent); }

.section { padding: 90px 0; }
.section-dark { background: var(--bg); color: white; }
.section-dark h2 { color: white; }
.cards { display: grid; gap: 22px; margin-top: 38px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.number { display: inline-block; color: var(--accent); font-weight: 800; margin-bottom: 18px; }
.dark-card { background: var(--panel); border-color: rgba(255,255,255,.08); box-shadow: none; }
.dark-card p { color: #9fb0c6; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.check-list { padding: 0; list-style: none; }
.check-list li { margin: 10px 0; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.cta-card, .registration-box {
  background: var(--soft);
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.cta-card small { display: block; margin-top: 14px; color: var(--muted); }
.community { background: #effaf6; }

footer { background: #050c16; color: #c6d1df; padding: 42px 0 26px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #dbe5ef; text-decoration: none; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 22px; font-size: 12px; color: #8798ae; }

.page-main, .legal-page { min-height: 70vh; }
.page-hero { padding: 80px 0 100px; background: var(--soft); }
.page-hero h1, .legal-page h1 { font-size: clamp(38px, 5vw, 60px); }
.registration-box { margin: 36px 0; background: white; box-shadow: var(--shadow); }
.privacy-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-grid > div { background: white; padding: 24px; border-radius: 14px; border: 1px solid var(--line); }

.legal-page { padding: 70px 0 100px; }
.legal-page h2 { font-size: 25px; margin-top: 38px; }
.legal-warning { padding: 18px; background: var(--danger-soft); color: var(--danger-text); border-radius: 12px; }
.last-update { margin-top: 50px; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: 1fr; }
  .dashboard-card { max-width: 600px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #07111f;
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .simple-nav { display: flex; position: static; padding: 0; flex-direction: row; background: transparent; }
}
@media (max-width: 620px) {
  .container, .narrow { width: min(100% - 28px, 1140px); }
  .hero { padding-top: 70px; }
  .cards.four, .info-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .section { padding: 70px 0; }
}

.mini-product-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.08);
}
.top-space { margin-top: 34px; }

.products-hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 50% 0%, rgba(22,199,132,.15), transparent 35%),
    var(--bg);
  color: white;
}
.products-hero p:not(.eyebrow) {
  color: #aebed0;
  font-size: 18px;
}
.product-list { background: #f7f9fb; }
.product-showcase {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 52px;
  align-items: center;
  padding: 44px;
  margin-bottom: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.product-showcase.reverse .product-image { order: 2; }
.product-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(7,17,31,.18);
}
.product-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eafaf4;
  color: #087a53;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.product-copy h2 { font-size: clamp(32px, 4vw, 48px); }
.product-copy p { color: var(--muted); font-size: 17px; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
}
.feature-list li {
  margin: 10px 0;
  color: #2b3b4f;
}
.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  margin-right: 10px;
}
.product-cta { background: #effaf6; }
.centered-actions { justify-content: center; }
.btn-dark-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid #9fb0c2;
  box-shadow: none;
}

@media (max-width: 900px) {
  .product-showcase { grid-template-columns: 1fr; padding: 26px; }
  .product-showcase.reverse .product-image { order: 0; }
}


/* Demo video FlaLab */
.demo-section {
  background: #f4f7fa;
}
.demo-heading {
  margin: 0 auto 38px;
}
.demo-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}
.video-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(145deg, #101f34, #07111f);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  box-shadow: 0 28px 75px rgba(7,17,31,.24);
}
.demo-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #03070c;
  border-radius: 16px;
}
.demo-features {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 30px auto 0;
  color: #34455a;
  font-weight: 700;
  font-size: 14px;
}
.demo-features span::first-letter {
  color: var(--accent);
}
.demo-action {
  margin-top: 30px;
}
@media (max-width: 620px) {
  .video-shell { padding: 6px; border-radius: 16px; }
  .demo-video { border-radius: 11px; }
  .demo-features { flex-direction: column; gap: 10px; align-items: center; }
}

/* =========================================================
   FlaLab Framework V2 — responsive, media-first, accessible
   ========================================================= */
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 12px 35px rgba(0,0,0,.22); background: rgba(7,17,31,.985); }

.hero { padding: clamp(70px, 9vw, 118px) 0 clamp(72px, 8vw, 100px); }
.hero-grid { grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: clamp(38px, 6vw, 82px); }
.hero h1 { max-width: 760px; }
.hero-media { position: relative; min-width: 0; }
.hero-media::before {
  content: ""; position: absolute; inset: -10%; z-index: 0;
  background: radial-gradient(circle, rgba(22,199,132,.22), transparent 64%);
  filter: blur(14px); pointer-events: none;
}
.hero-screen {
  position: relative; z-index: 1; padding: 9px; overflow: hidden;
  border-radius: 22px; background: linear-gradient(145deg,#152a45,#07111f);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 32px 85px rgba(0,0,0,.48);
  transform: perspective(1300px) rotateY(-2deg) rotateX(1deg);
}
.hero-screen img { display: block; width: 100%; aspect-ratio: 1272/622; object-fit: cover; border-radius: 14px; }
.hero-badge {
  position: absolute; z-index: 2; right: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-radius: 999px; color: #eafff7; font-weight: 800; font-size: 12px;
  background: rgba(5,12,22,.82); border: 1px solid rgba(69,224,169,.35); backdrop-filter: blur(12px);
}
.hero-badge::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }

.stats-strip { margin-top: -28px; position: relative; z-index: 4; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden;
  border-radius: 18px; background: rgba(16,31,52,.98); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 22px 60px rgba(7,17,31,.25);
}
.stat { padding: 22px 24px; color: white; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--accent-2); font-size: 19px; }
.stat span { color: #9fb0c6; font-size: 12px; }

.card, .product-showcase, .video-shell { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
@media (hover:hover) {
  .card:hover { transform: translateY(-5px); box-shadow: 0 24px 58px rgba(7,17,31,.16); }
  .product-showcase:hover { transform: translateY(-4px); box-shadow: 0 28px 75px rgba(7,17,31,.15); }
}

.media-link { position: relative; display: block; cursor: zoom-in; }
.media-link::after {
  content: "⤢"; position: absolute; right: 14px; top: 14px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%; color: white; font-size: 20px;
  background: rgba(5,12,22,.72); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
  opacity: 0; transform: scale(.88); transition: .2s ease;
}
.media-link:hover::after, .media-link:focus-visible::after { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 999; display: none; place-items: center; padding: 24px;
  background: rgba(1,5,10,.92); backdrop-filter: blur(10px);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1500px,94vw); max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.lightbox-close {
  position: fixed; right: 22px; top: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); color: white; background: rgba(255,255,255,.08);
  font-size: 26px; cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 900px; }
  .hero-screen { transform: none; }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .product-showcase { gap: 30px; }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(36px, 11vw, 52px); }
  h2 { font-size: clamp(29px, 9vw, 40px); }
  .nav-wrap { min-height: 68px; }
  .nav { top: 68px; }
  .hero { padding-top: 54px; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 10px 16px; }
  .hero-screen { padding: 5px; border-radius: 15px; }
  .hero-screen img { border-radius: 10px; }
  .hero-badge { right: 10px; bottom: 10px; padding: 7px 10px; font-size: 10px; }
  .stats-strip { margin-top: -16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); padding: 17px 20px; }
  .stat:last-child { border-bottom: 0; }
  .product-showcase { padding: 18px; border-radius: 18px; }
  .product-image img { border-radius: 12px; }
  .cta-card, .registration-box { padding: 24px 20px; }
  .lightbox { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Catalogo completo indicatori FlaLab */
.indicator-catalog-wrap { margin-top: 72px; }
.catalog-heading { margin: 0 auto 34px; }
.catalog-heading > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.indicator-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.indicator-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(7,17,31,.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.indicator-card::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  right: -55px; top: -55px;
  border-radius: 50%;
  background: rgba(22,199,132,.08);
}
.indicator-card:hover { transform: translateY(-5px); box-shadow: 0 24px 55px rgba(7,17,31,.13); border-color: rgba(22,199,132,.42); }
.indicator-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04140e;
  font-weight: 900;
  letter-spacing: -.03em;
}
.indicator-card .product-tag { margin-bottom: 14px; }
.indicator-card h3 { font-size: 22px; margin-bottom: 14px; }
.indicator-card p { color: var(--muted); margin: 0 0 20px; }
.compact-features { list-style: none; padding: 0; margin: 0; }
.compact-features li { margin: 8px 0; color: #2b3b4f; font-size: 14px; }
.compact-features li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 8px; }
@media (max-width: 980px) { .indicator-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .indicator-catalog-wrap { margin-top: 50px; }
  .indicator-catalog { grid-template-columns: 1fr; }
  .indicator-card { padding: 22px; border-radius: 16px; }
}

/* FlaLab V3 — identità ufficiale ed ecosistema in evidenza */
.brand { min-width: 0; }
.brand-logo { display:block; width: 250px; max-height: 58px; object-fit: contain; object-position:left center; }

.ecosystem-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(22,199,132,.20), transparent 30%),
    radial-gradient(circle at 12% 20%, rgba(22,199,132,.08), transparent 24%),
    linear-gradient(180deg,#050c16 0%,#081522 100%);
}
.ecosystem-section::before {
  content:""; position:absolute; inset:0; opacity:.17; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:40px 40px;
}
.ecosystem-heading { position:relative; z-index:1; margin:0 auto 52px; }
.ecosystem-heading h2 { color:#fff; }
.ecosystem-heading p:not(.eyebrow) { color:#aebed0; font-size:18px; }
.ecosystem-map {
  position:relative; z-index:1; display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px;
  max-width:1040px; margin:0 auto;
}
.eco-center {
  grid-column:1/-1; justify-self:center; width:min(420px,100%);
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding:26px 30px; border-radius:24px;
  background:linear-gradient(145deg,rgba(22,199,132,.18),rgba(16,31,52,.92));
  border:1px solid rgba(69,224,169,.42); box-shadow:0 28px 80px rgba(0,0,0,.38),0 0 42px rgba(22,199,132,.10);
}
.eco-center img { width:76px; height:76px; object-fit:contain; margin-bottom:10px; }
.eco-center strong { font-size:26px; }
.eco-center span { color:#9fb0c6; font-size:13px; margin-top:4px; }
.eco-branch {
  position:relative; padding:26px; min-height:148px; border-radius:20px;
  background:rgba(16,31,52,.82); border:1px solid rgba(255,255,255,.10);
  box-shadow:0 20px 55px rgba(0,0,0,.22); transition:.25s ease;
}
.eco-branch::before { content:""; position:absolute; left:0; top:22px; bottom:22px; width:3px; border-radius:5px; background:linear-gradient(var(--accent),var(--accent-2)); }
.eco-branch:hover { transform:translateY(-4px); border-color:rgba(22,199,132,.45); }
.eco-kicker { display:block; color:var(--accent-2); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.13em; margin-bottom:10px; }
.eco-branch strong { display:block; font-size:22px; margin-bottom:10px; }
.eco-branch small { color:#aebed0; line-height:1.6; }
.ecosystem-flowline {
  position:relative; z-index:1; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px;
  max-width:1000px; margin:34px auto 0; padding:17px 22px; border-radius:999px;
  background:rgba(5,12,22,.72); border:1px solid rgba(22,199,132,.22); color:#aebed0; font-size:13px; font-weight:700;
}
.ecosystem-flowline b { color:var(--accent); }
.ecosystem-flowline strong { color:#fff; }

@media (max-width:900px){
  .brand-logo{width:210px;}
}
@media (max-width:700px){
  .brand-logo{width:175px; max-height:48px;}
  .ecosystem-section{padding:72px 0 78px;}
  .ecosystem-map{grid-template-columns:1fr;}
  .eco-center{grid-column:auto;}
  .ecosystem-flowline{border-radius:20px; gap:8px;}
}
@media (max-width:420px){
  .brand-logo{width:145px;}
  .eco-center,.eco-branch{padding:22px 18px;}
  .ecosystem-flowline b{display:none;}
  .ecosystem-flowline span,.ecosystem-flowline strong{width:100%; text-align:center;}
}
