/* ==========================================================================
   LARI — Sicurezza Perimetrale AI
   CSS Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --bg:         #080810;
  --bg2:        #0D0D1A;
  --surface:    #111120;
  --card:       #131325;
  --border:     #1D1D35;
  --border-2:   #252540;
  --accent:     #00D4FF;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-glow:rgba(0, 212, 255, 0.25);
  --blue:       #4477FF;
  --blue-dim:   rgba(68, 119, 255, 0.12);
  --text:       #E8E8F2;
  --text-2:     #A0A0C0;
  --muted:      #60607A;
  --white:      #FFFFFF;
  --red:        #FF4466;
  --green:      #00E676;

  --font-head:  'Space Grotesk', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card: 0 0 0 1px var(--border), 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-behavior: smooth — disabled, handled by JS for a slower eased effect */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.accent { color: var(--accent); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.section-body {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.section-body--highlight {
  background: rgba(0,212,255,0.06);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--primary:hover {
  background: #33DDFF;
  box-shadow: 0 0 36px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn--full { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #080810;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.header.scrolled {
  background: #080810;
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  transition: filter var(--transition);
}

.logo:hover .logo__mark {
  filter: drop-shadow(0 0 8px var(--accent));
}

.logo__text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.nav__link--cta {
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.35);
  margin-left: 8px;
}

.nav__link--cta:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(8, 8, 16, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  transition: transform var(--transition-slow);
}

.mobile-nav.open { transform: translateY(0); }

.mobile-nav__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav__link:hover, .mobile-nav__link:active { background: var(--surface); color: var(--white); }

.mobile-nav__link--cta {
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.3);
  margin-top: 8px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(0,212,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(68,119,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 100% 30% at 50% 100%, rgba(8,8,16,0.9) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Hero text */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0,212,255,0.06);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.trust__check { color: var(--accent); font-size: 0.85rem; }
.trust__sep { color: var(--border-2); }

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   8. Camera Mockup (Hero Visual)
   -------------------------------------------------------------------------- */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cam-mockup {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(0,212,255,0.08);
  position: relative;
}

.cam-mockup__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}

.cam-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cam-dot--r { background: #FF5F57; }
.cam-dot--y { background: #FEBC2E; }
.cam-dot--g { background: #28C840; }

.cam-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-family: var(--font-head);
}

.cam-mockup__screen {
  position: relative;
}

.cam-feed {
  position: relative;
  height: 260px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, #0f1a12 0%, #060a0d 50%, #04060a 100%);
}

/* Simulated night scene gradient */
.cam-feed__bg {
  position: absolute;
  inset: 0;
  background:
    url("../media/image_generated/webp/videosorveglianza-ai.webp") center/cover no-repeat,
    radial-gradient(circle 80px at 60% 60%, rgba(20,40,20,0.8) 0%, transparent 100%),
    radial-gradient(circle 120px at 80% 30%, rgba(10,20,30,0.6) 0%, transparent 100%);
}

/* Detection bounding box */
.detect-box {
  position: absolute;
  right: 35%;
  top: 47%;
  width: 14%;
  height: 32%;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  box-shadow: inset 0 0 12px rgba(0,212,255,0.1), 0 0 16px rgba(0,212,255,0.3);
  animation: detect-pulse 2.5s ease-in-out infinite;
}

.detect-box::before,
.detect-box::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent);
  border-style: solid;
}

.detect-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.detect-box::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

@keyframes detect-pulse {
  0%, 100% { box-shadow: inset 0 0 12px rgba(0,212,255,0.1), 0 0 16px rgba(0,212,255,0.3); }
  50% { box-shadow: inset 0 0 20px rgba(0,212,255,0.2), 0 0 30px rgba(0,212,255,0.5); }
}

.detect-label {
  position: absolute;
  top: -22px;
  left: -1px;
  background: var(--accent);
  color: #000;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-head);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Scan line effect */
.cam-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0,212,255,0.4), transparent);
  animation: scan-line 4s linear infinite;
}

@keyframes scan-line {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.cam-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  border-top: 1px solid var(--border);
}

.cam-time {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.05em;
}

.cam-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  font-family: var(--font-head);
}

.cam-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Alert notification */
.alert-notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 68, 102, 0.1);
  border: 1px solid rgba(255, 68, 102, 0.3);
  border-radius: var(--radius-md);
  margin-top: -12px;
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  align-self: flex-start;
  margin-left: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: notif-slide 0.6s 1.5s both;
}

@keyframes notif-slide {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

.alert-notif__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.alert-notif__body { flex: 1; }

.alert-notif__title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
}

.alert-notif__sub {
  font-size: 0.72rem;
  color: var(--text-2);
  margin-top: 2px;
}

.alert-notif__time {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Scroll reveal
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--transition-slow), transform 0.65s var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger for siblings */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* --------------------------------------------------------------------------
   10. Problema Section
   -------------------------------------------------------------------------- */
.problema {
  background: var(--bg);
}

.problema__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.diff-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diff-item {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diff-item--bad  { border-color: rgba(255,68,102,0.25); background: rgba(255,68,102,0.04); }
.diff-item--good { border-color: rgba(0,212,255,0.25);  background: rgba(0,212,255,0.04); }

.diff-item__header { display: flex; align-items: center; gap: 10px; }

.diff-item__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.diff-item--bad  .diff-item__icon { background: rgba(255,68,102,0.15); color: var(--red); }
.diff-item--good .diff-item__icon { background: rgba(0,212,255,0.15);  color: var(--accent); }

.diff-item__label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.diff-item__desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* Stats */
.problema__stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-card {
  padding: 28px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}

.stat-card:hover { border-color: var(--border-2); }

.stat-card__num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Come Funziona
   -------------------------------------------------------------------------- */
.come-funziona {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 0;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step__num {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
}

.step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.step__icon svg {
  width: 80px;
  height: 80px;
}

.step__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.step__body {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}

.step__connector {
  display: flex;
  align-items: flex-start;
  padding-top: 56px;
}

.step__connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--blue));
  opacity: 0.3;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   12. Vantaggi — Features Grid
   -------------------------------------------------------------------------- */
.vantaggi { background: var(--bg); }

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,212,255,0.15);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.feature-card__icon svg { width: 44px; height: 44px; }

.feature-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-card__body {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   13. Compatibilità
   -------------------------------------------------------------------------- */
.compat {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.compat__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.compat-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

.compat-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.5;
}

.compat-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Network Diagram */
.compat__visual { display: flex; justify-content: center; }

.network-diagram--img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.network-diagram__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.network-diagram {
  position: relative;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
}

.nd-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  background: var(--card);
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 0 40px rgba(0,212,255,0.15), var(--shadow-card);
}

.nd-hub svg { width: 44px; height: 44px; }

.nd-hub__label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  white-space: nowrap;
}

.nd-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.nd-nodes {
  position: absolute;
  inset: 0;
}

.nd-node {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.nd-node span { font-size: 1.5rem; }

.nd-node small {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   14. Target
   -------------------------------------------------------------------------- */
.target { background: var(--bg); }

.target-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.target-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.target-card:hover {
  border-color: rgba(0,212,255,0.25);
  transform: translateY(-4px);
}

.target-card__img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

/* Immagini target card */
.target-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.target-card__img--villa,
.target-card__img--casa {
  background: var(--card);
}

.target-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 20px 24px;
  background: linear-gradient(to bottom, rgba(8,8,16,0.15) 0%, rgba(8,8,16,0.75) 100%);
  z-index: 1;
}

.target-card__tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  padding: 5px 12px;
  border-radius: 100px;
}

.target-card__body {
  padding: 28px;
}

.target-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.target-card__desc {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.target-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.target-card__list li {
  font-size: 0.87rem;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.target-card__list li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   15. Processo / Timeline
   -------------------------------------------------------------------------- */
.processo {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-timeline {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  position: relative;
}

.process-step + .process-step { margin-top: 0; }

.process-step__side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,212,255,0.4);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, rgba(0,212,255,0.3), rgba(0,212,255,0.05));
  margin: 8px 0;
  min-height: 40px;
}

.process-step__content {
  padding-bottom: 44px;
}

.process-step:last-child .process-step__content { padding-bottom: 0; }

.process-step__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  padding-top: 10px;
}

.process-step__desc {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   16. Contatti — Quiz
   -------------------------------------------------------------------------- */
.contatti {
  background: var(--bg);
}

.quiz-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 48px;
  overflow: hidden;
}

.quiz-progress__bar {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--blue));
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 0%;
}

.quiz {
  position: relative;
  min-height: 260px;
}

.quiz-step {
  display: none;
  animation: step-in 0.4s ease forwards;
}

.quiz-step.active { display: block; }

@keyframes step-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz-step__q {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--white);
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.4;
}

.quiz-step__opts {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-step__opts--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quiz-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 28px;
  background: var(--card);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-lg);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  min-width: 150px;
  text-align: center;
  cursor: pointer;
}

.quiz-opt:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.12);
}

.quiz-opt.selected {
  border-color: var(--accent);
  background: rgba(0,212,255,0.1);
  color: var(--accent);
}

.quiz-opt__icon {
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-opt__icon svg {
  width: 28px;
  height: 28px;
}

/* Email form */
.quiz-email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quiz-input-wrap { display: flex; flex-direction: column; gap: 6px; }

.quiz-input-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.quiz-input {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.quiz-input::placeholder { color: var(--muted); }

.quiz-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.quiz-privacy {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Thanks state */
.quiz-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
}

.quiz-thanks__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,212,255,0.1);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.quiz-thanks__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.quiz-thanks__desc {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 400px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer__logo { margin-right: 16px; }

.footer__tagline {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--text); }

.footer__legal {
  display: flex;
  gap: 16px;
}

.footer__legal a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer__legal a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.footer__bottom p {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__company {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}

.footer__company p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer__company a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --------------------------------------------------------------------------
   18. Confronto Section (Senza vs Con Lari)
   -------------------------------------------------------------------------- */
.confronto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.confronto__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.confronto__card:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.confronto__card--senza {
  border-color: rgba(255, 68, 102, 0.2);
}

.confronto__card--senza:hover {
  border-color: rgba(255, 68, 102, 0.35);
}

.confronto__card--con {
  border-color: rgba(0, 212, 255, 0.2);
}

.confronto__card--con:hover {
  border-color: rgba(0, 212, 255, 0.35);
}

.confronto__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.confronto__badge--bad {
  background: rgba(255, 68, 102, 0.12);
  color: #FF4466;
  border: 1px solid rgba(255, 68, 102, 0.25);
}

.confronto__badge--good {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.confronto__visual {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confronto__svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.confronto__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.confronto__text {
  flex: 1;
}

.confronto__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.confronto__title em {
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.confronto__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confronto__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.5;
}

.confronto__list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.9rem;
}

.confronto__list--bad li::before {
  content: "✗";
  color: #FF4466;
  font-weight: 700;
}

.confronto__list--good li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* Callout */
.confronto__callout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(68,119,255,0.04));
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.confronto__callout-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-top: 2px;
}

.confronto__callout-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.confronto__callout-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   19. Quiz Consent Checkbox
   -------------------------------------------------------------------------- */
.quiz-consent {
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.quiz-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.quiz-consent__label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quiz-consent__label a:hover {
  color: var(--white);
}

.quiz-consent__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   20. Cookie Banner (blocking overlay — Garante 2021)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Prevent scrolling when banner is visible */
body.cookie-lock {
  overflow: hidden;
}

.cookie-banner__inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 540px;
  width: 90%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
  text-align: center;
}

.cookie-banner__text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.82rem;
  min-width: unset;
}

/* --------------------------------------------------------------------------
   21. Responsive — Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; gap: 48px; }
  .hero__text { text-align: center; }
  .hero__sub, .hero__actions { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__visual { max-width: 480px; margin: 0 auto; }

  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step__connector { display: none; }

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

  .problema__inner { grid-template-columns: 1fr; gap: 48px; }
  .compat__inner { grid-template-columns: 1fr; gap: 48px; }
  .compat__visual { justify-content: flex-start; }
  .target-cards { grid-template-columns: 1fr; }
  .quiz-step__opts--3 { grid-template-columns: 1fr; }

  .confronto__grid { grid-template-columns: 1fr; gap: 24px; }
  .confronto__card { padding: 24px; }
}

/* --------------------------------------------------------------------------
   19. Responsive — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 48px; }

  .nav { display: none; }
  .hamburger { display: flex; }

  .compat__visual { display: none; } /* show only text on mobile */

  .hero { min-height: 100svh; }
  .hero__headline { font-size: clamp(1.9rem, 8vw, 2.8rem); }

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

  .process-timeline { padding: 0 8px; }

  .quiz-step__opts { flex-direction: column; align-items: stretch; }
  .quiz-step__opts--3 { grid-template-columns: 1fr; }

  .quiz-opt { flex-direction: row; justify-content: flex-start; min-width: unset; padding: 18px 22px; }
  .quiz-opt__icon { font-size: 1.5rem; }

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

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links, .footer__legal { width: 100%; flex-wrap: wrap; }
  .footer__company p { font-size: 0.72rem; }

  .confronto__callout { flex-direction: column; gap: 12px; padding: 20px; }

  .cookie-banner__inner { width: 95%; padding: 24px 20px; }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner__actions .btn { width: 100%; justify-content: center; }

  .network-diagram { width: 320px; height: 320px; }

  .nd-node[style*="--nx:200px"] { --nx: 160px; }
  .nd-node[style*="--ny:44px"]  { --ny: 36px;  }
  .nd-node[style*="--nx:334px"] { --nx: 272px; }
  .nd-node[style*="--nx:66px"]  { --nx: 48px;  }
  .nd-node[style*="--ny:352px"] { --ny: 284px; }
  .nd-node[style*="--ny:116px"] { --ny: 96px;  }
  .nd-node[style*="--ny:284px"] { --ny: 224px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cam-mockup { font-size: 0.85em; }
  .confronto__title { font-size: 1.1rem; }
}
