/* ================================================================
   inFactory Suite — Landing Pages CSS (addon su site.css)
   Caricato DOPO site.css — sovrascrive solo le parti landing-specific
   ================================================================ */

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes grad-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes l-pulse-red {
  0%,100% { box-shadow: 0 0 0 0 rgba(231,79,16,.7); }
  50%      { box-shadow: 0 0 0 6px rgba(231,79,16,0); }
}
@keyframes l-alarm-bg {
  0%, 100% { background: rgba(231,79,16,.07); }
  50%       { background: rgba(231,79,16,.14); }
}
@keyframes l-glow-mint {
  0%,100% { box-shadow: 0 4px 16px rgba(1,213,202,.25); }
  50%      { box-shadow: 0 4px 32px rgba(1,213,202,.65); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes l-shimmer {
  0%   { left: -120%; }
  100% { left: 120%; }
}
@keyframes l-blink-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
@keyframes l-counter-pop {
  0%   { transform: scale(.88); opacity: 0; }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes l-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── hero 2-col ─────────────────────────────────────────────────── */
.l-hero {
  padding: calc(60px + 60px) 0 72px;
  background: linear-gradient(150deg,#c8d8f2 0%,#dce8fb 30%,#cce8f6 60%,#d4e2f8 100%);
  background-size: 300% 300%;
  animation: grad-shift 10s ease infinite;
  position: relative; overflow: hidden;
}

/* Landing hero con foto di settore — background-image viene dall'inline style */
.l-hero.l-hero-photo {
  background-color: #0a1428;
  background-size: cover !important;
  background-position: center !important;
  animation: none;
  margin-top: -76px;
  padding: calc(76px + 80px) 0 80px;
}
.l-hero.l-hero-photo::before {
  background: linear-gradient(135deg,
    rgba(6,14,30,.80) 0%,
    rgba(0,20,55,.70) 45%,
    rgba(0,10,35,.60) 100%) !important;
}
.l-hero.l-hero-photo .l-sector-badge {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  box-shadow: none;
}
.l-hero.l-hero-photo .l-hero-content h1 { color: #fff; }
.l-hero.l-hero-photo .l-hero-content h1 em { color: var(--mint); }
.l-hero.l-hero-photo .l-hero-sub { color: rgba(255,255,255,.80); }
.l-hero.l-hero-photo .l-hero-trust span { color: rgba(255,255,255,.65); }
.l-hero.l-hero-photo .btn-outline {
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.35);
}
.l-hero.l-hero-photo .btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.l-hero::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(ellipse 700px 400px at 70% 60%, rgba(1,213,202,.18), transparent),
              radial-gradient(ellipse 400px 500px at 15% 25%, rgba(0,142,235,.1), transparent);
}
.l-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
.l-sector-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 16px;
  font-size: 12px; font-weight: 700; color: var(--navy);
  box-shadow: 0 2px 10px rgba(15,25,35,.08); margin-bottom: 22px;
}
.l-hero-content h1 {
  font-size: clamp(28px,3.8vw,46px); font-weight: 700;
  line-height: 1.13; margin-bottom: 18px; letter-spacing: -.03em;
}
.l-hero-content h1 em { font-style: normal; color: var(--mint-dark); }
.l-hero-sub {
  font-size: 17px; color: var(--text-light);
  line-height: 1.65; margin-bottom: 32px; max-width: 480px;
}
.l-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.l-hero-actions .btn { width: auto; }
.l-hero-trust { display: flex; flex-wrap: wrap; gap: 16px; }
.l-hero-trust span {
  font-size: 12px; color: var(--text-light); font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.l-hero-trust span::before { content:"✓"; color: var(--mint); font-weight:800; }

/* ── hero visual mock (light card) ───────────────────────────── */
.l-hero-visual {
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: 0 28px 64px rgba(15,25,35,.18), 0 4px 12px rgba(15,25,35,.08);
  border: 1px solid rgba(255,255,255,.9);
  animation: float-y 6s ease-in-out infinite;
  position: relative;
}
.l-hero-visual::after {
  content: '';
  position: absolute; top: 0; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  left: -120%;
  animation: l-shimmer 4s 1.5s ease-in-out infinite;
  pointer-events: none;
}
.l-hero-visual-bar {
  background: #f0f2f6; padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.l-vis-dot { width: 10px; height: 10px; border-radius: 50%; }
.l-vis-bar-label {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: #6b7280; margin-left: 8px;
}
.l-vis-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }

/* Alarm row — flashes red tint */
.l-vis-alarm {
  background: rgba(231,79,16,.07); border: 1px solid rgba(231,79,16,.22);
  border-radius: 8px; padding: 9px 12px;
  display: flex; align-items: center; gap: 10px;
  animation: l-alarm-bg 2s ease-in-out infinite;
}
.l-vis-alarm-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #e74f10;
  flex-shrink: 0; animation: l-pulse-red 1.4s infinite;
}
.l-vis-alarm-machine { font-size: 12px; font-weight: 700; color: var(--navy); }
.l-vis-alarm-status  { font-size: 11px; color: #9ca3af; }

/* KPI grid */
.l-vis-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.l-vis-kpi {
  background: #f7f9fc; border: 1px solid rgba(0,0,0,.07);
  border-radius: 8px; padding: 10px 10px 8px;
  transition: box-shadow .2s, transform .2s;
}
.l-vis-kpi:hover { box-shadow: 0 4px 14px rgba(15,25,35,.09); transform: translateY(-1px); }
.l-vis-kpi-label {
  font-size: 10px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .04em;
  display: block; margin-bottom: 4px;
}
.l-vis-kpi-val {
  display: block; font-family: 'DM Mono', monospace;
  font-size: 20px; font-weight: 700; line-height: 1.1;
  animation: l-counter-pop .7s both;
}
.l-vis-kpi-val.mint   { color: var(--mint-dark); }
.l-vis-kpi-val.orange { color: #dc2626; }
.l-vis-kpi-val.blue   { color: var(--brand-blue); }
.l-vis-kpi small { font-size: 10px; color: #9ca3af; }

/* Machine list */
.l-vis-machines { display: flex; flex-direction: column; gap: 6px; }
.l-vis-machine {
  background: #f7f9fc; border: 1px solid rgba(0,0,0,.06); border-radius: 6px;
  padding: 8px 10px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--navy);
  transition: background .2s, transform .15s;
}
.l-vis-machine:hover { background: #eef2f8; transform: translateX(3px); }
.l-vis-m-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.l-vis-machine.ok   .l-vis-m-dot { background: #01D5CA; box-shadow: 0 0 0 3px rgba(1,213,202,.2); }
.l-vis-machine.warn .l-vis-m-dot { background: #e74f10; animation: l-pulse-red 1.4s infinite; }
.l-vis-machine.idle .l-vis-m-dot { background: #d1d5db; }

/* ── stats band (animated shifting gradient) ─────────────────── */
.l-stats-band {
  background: linear-gradient(135deg, var(--mint-dark) 0%, var(--brand-blue) 40%, #7C3AED 70%, var(--brand-blue) 100%);
  background-size: 300% 300%;
  animation: grad-shift 7s ease infinite;
  padding: 48px 0; position: relative; overflow: hidden;
}
.l-stats-band::after {
  content: '';
  position: absolute; top: 0; width: 35%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  left: -50%;
  animation: l-shimmer 5s 2s ease-in-out infinite;
  pointer-events: none;
}
.l-stats-band-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; text-align: center; position: relative; z-index: 1;
}
.l-stats-band-item {
  padding: 16px 32px;
  position: relative;
}
.l-stats-band-item + .l-stats-band-item::before {
  content: '';
  position: absolute; left: 0; top: 20%; height: 60%;
  width: 1px; background: rgba(255,255,255,.18);
}
.l-stats-band-val {
  font-family: 'DM Mono', monospace;
  font-size: clamp(36px,5vw,56px); font-weight: 700;
  color: white; display: block; line-height: 1; margin-bottom: 8px;
}
.l-stats-band-label {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.75); line-height: 1.4;
  max-width: 160px; margin: 0 auto;
}
.l-stats-band-source {
  font-size: 11px; color: rgba(255,255,255,.4);
  margin-top: 4px; display: block;
}

/* ── pain section ─────────────────────────────────────────────── */
.l-pains { padding: 80px 0; background: var(--bg); }
.l-section-head { text-align: center; max-width: 560px; margin: 0 auto 52px; }
.l-section-head .eyebrow { display: block; margin-bottom: 10px; }
.l-section-head h2 { font-size: clamp(22px,3vw,34px); font-weight: 700; }
.l-section-head h2 em { font-style: normal; color: var(--accent); }
.pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.pain-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,25,35,.05);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(15,25,35,.12);
  border-color: rgba(1,213,202,.3);
}
.pain-card::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(1,213,202,.04), transparent);
  transition: left .4s;
  pointer-events: none;
}
.pain-card:hover::after { left: 120%; }
.pain-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #e74f10 0%, #f97316 50%, #fbbf24 100%);
  background-size: 200% 200%;
  animation: grad-shift 5s ease infinite;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pain-num-badge { font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 700; color: white; }
.pain-icon-wrap--erp { background: linear-gradient(135deg, #7C3AED 0%, #a855f7 50%, #c084fc 100%); box-shadow: 0 4px 14px rgba(124,58,237,.32); }
.pain-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.pain-card p  { font-size: 13.5px; color: var(--text-light); line-height: 1.65; }

/* ── result section ───────────────────────────────────────────── */
.l-result {
  padding: 84px 0; background: var(--navy); text-align: left;
  background-image:
    linear-gradient(180deg, rgba(1,213,202,.32) 0, rgba(1,213,202,0) 2px),
    linear-gradient(90deg, rgba(4,14,24,.88) 0%, rgba(4,14,24,.64) 46%, rgba(4,14,24,.3) 100%),
    radial-gradient(ellipse 820px 520px at 72% 45%, rgba(1,213,202,.18), transparent 68%),
    radial-gradient(ellipse 560px 320px at 18% 18%, rgba(0,142,235,.12), transparent 70%),
    linear-gradient(135deg, #06111d 0%, #082438 52%, #07131f 100%);
  position: relative; overflow: hidden;
}
.l-result::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 0%, transparent 78%);
  animation: float-y 9s ease-in-out infinite reverse;
}
.l-result-eyebrow {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--mint); display: block; margin-bottom: 12px;
  animation: l-blink-live 3s ease-in-out infinite;
}
.l-result-headline {
  font-size: clamp(22px,2.15vw,32px); font-weight: 800; color: white;
  line-height: 1.28; letter-spacing: 0;
  margin: 0 0 24px; max-width: 640px;
}
.l-result-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px; max-width: 640px; margin: 0 0 24px;
}
.l-result-kpi {
  display: block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 18px 16px;
  min-height: 112px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 28px rgba(0,0,0,.12);
  transition: background .2s, transform .2s, border-color .2s, box-shadow .2s;
}
.l-result-kpi:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
  border-color: rgba(1,213,202,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 14px 34px rgba(0,0,0,.18);
}
.l-result-kpi strong {
  font-family: 'DM Sans', sans-serif; font-size: clamp(22px,2.05vw,30px); font-weight: 800;
  color: var(--mint); display: block;
  line-height: 1.05; margin-bottom: 10px;
  min-width: 0; height: auto; border-radius: 0;
  background: transparent !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--mint) !important;
  animation: none;
  text-shadow: none;
}
.l-result-kpi span { font-size: 12.5px; color: rgba(255,255,255,.68); font-weight: 700; line-height: 1.45; display: block; max-width: none; }
.l-result-note {
  max-width: 640px;
  margin: -10px 0 22px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.45);
}
.l-testimonial {
  background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 20px 22px;
  max-width: 640px; margin: 0 0 18px; position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.16);
}
.l-testimonial::before {
  content: '"'; position: absolute; top: 12px; left: 20px;
  font-size: 60px; color: rgba(1,213,202,.2); font-family: Georgia, serif; line-height: 1;
}
.l-testimonial p { font-size: 14.5px; color: rgba(255,255,255,.82); font-style: italic; line-height: 1.65; margin-bottom: 18px; padding-top: 8px; }
.l-t-author { display: flex; align-items: center; gap: 12px; text-align: left; }
.l-t-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mint) 0%, var(--brand-blue) 100%);
  background-size: 200% 200%; animation: grad-shift 4s ease infinite;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: white; flex-shrink: 0;
}
.l-t-name { font-size: 13px; font-weight: 700; color: white; }
.l-t-role { font-size: 12px; color: rgba(255,255,255,.45); }
.l-cs-link { margin-top: 16px; }
.l-cs-link a { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.62); text-decoration: underline; text-underline-offset: 3px; transition: color .15s; display:inline-flex;align-items:center;min-height:44px;padding:9px 0; }
.l-cs-link a:hover { color: var(--mint); }

/* ── come funziona ─────────────────────────────────────────────── */
.l-how { padding: 80px 0; background: white; }
.l-how-head { text-align: center; max-width: 540px; margin: 0 auto 52px; }
.l-how-head h2 { font-size: clamp(22px,3vw,34px); font-weight: 700; }
.l-how-head h2 em { font-style: normal; color: var(--mint-dark); }
.l-steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0; position: relative;
}
.l-steps::before {
  content: ''; position: absolute;
  top: 22px; left: calc(16.66% + 22px); right: calc(16.66% + 22px);
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--brand-blue), #7C3AED, var(--mint));
  background-size: 300% 100%;
  animation: grad-shift 4s ease infinite;
  z-index: 0;
}
.l-step { padding: 0 28px 0; text-align: center; position: relative; z-index: 1; }
.l-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mint) 0%, var(--brand-blue) 50%, #7C3AED 100%);
  background-size: 200% 200%;
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; margin: 0 auto 24px;
  animation: l-glow-mint 2.5s ease-in-out infinite, grad-shift 5s ease infinite;
  position: relative; z-index: 2;
}
.l-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.l-step p  { font-size: 13.5px; color: var(--text-light); line-height: 1.65; }

/* ── applicazioni / kpi ─────────────────────────────────────────── */
.l-apps {
  padding: 92px 0;
  background:
    radial-gradient(ellipse 720px 360px at 50% 0%, rgba(1,213,202,.12), transparent 68%),
    linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
  position: relative;
}
.l-apps::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(15,25,35,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(15,25,35,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 78%, transparent);
}
.l-apps .container { position: relative; z-index: 1; }
.l-apps-head { text-align: left; max-width: 760px; margin: 0 0 40px; }
.l-apps-head .eyebrow { color: var(--brand-blue); }
.l-apps-head h2 {
  font-size: clamp(28px,3.4vw,42px); font-weight: 800; color: var(--navy);
  line-height: 1.08; margin-top: 10px; max-width: 700px;
}
.l-apps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 20px; counter-reset: app-card; }
.l-app-card {
  counter-increment: app-card;
  background: white;
  border: 1px solid rgba(15,25,35,.07);
  border-radius: 16px; padding: 26px 24px 28px;
  box-shadow: 0 4px 20px rgba(15,25,35,.06), 0 1px 4px rgba(15,25,35,.04);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative; overflow: hidden;
}
/* top accent strip — teal for 3n+1, blue for 3n+2, purple for 3n */
.l-app-card::after {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; bottom: auto; width: auto;
  background: linear-gradient(90deg, var(--mint-dark), var(--brand-blue));
  border-radius: 16px 16px 0 0; opacity: 1;
}
.l-app-card:nth-child(3n-1)::after { background: linear-gradient(90deg, var(--brand-blue), #7C3AED); }
.l-app-card:nth-child(3n)::after   { background: linear-gradient(90deg, #7C3AED, #a855f7); }
/* number badge */
.l-app-card::before {
  content: counter(app-card, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--mint-dark) 0%, var(--brand-blue) 100%);
  background-size: 200% 200%; animation: grad-shift 6s ease infinite;
  color: white; font-family: 'DM Mono', monospace;
  font-size: 14px; font-weight: 800; margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(1,213,202,.3);
}
.l-app-card:nth-child(3n-1)::before {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #7C3AED 100%);
  box-shadow: 0 4px 14px rgba(0,142,235,.3);
}
.l-app-card:nth-child(3n)::before {
  background: linear-gradient(135deg, #7C3AED 0%, #a855f7 100%);
  box-shadow: 0 4px 14px rgba(124,58,237,.28);
}
.l-app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(15,25,35,.11), 0 4px 12px rgba(15,25,35,.06);
  border-color: rgba(1,213,202,.28);
}
.l-app-card:nth-child(3n-1):hover { border-color: rgba(0,142,235,.28); }
.l-app-card:nth-child(3n):hover   { border-color: rgba(124,58,237,.28); }
.l-app-card h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 10px; line-height: 1.25; }
.l-app-card p  { font-size: 13.5px; color: var(--text-light); line-height: 1.68; }
.l-kpi-box {
  background: #fff; border: 1px solid rgba(15,25,35,.08);
  border-radius: 16px; padding: 28px;
  box-shadow: 0 18px 42px rgba(15,25,35,.075);
  position: relative; overflow: hidden;
}
.l-kpi-box::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--mint), var(--brand-blue));
}
.l-kpi-box h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.l-kpi-box ul { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 24px; }
.l-kpi-box ul li {
  font-size: 13.5px; color: var(--text-light); line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-top: 1px solid rgba(15,25,35,.06);
  min-width: 0;
}
.l-kpi-box ul li::before {
  content: '→'; color: var(--mint-dark); font-weight: 800; flex-shrink:0; margin-top: 0;
  width: 24px; height: 24px; border-radius: 8px;
  background: rgba(1,213,202,.1); display: inline-flex; align-items: center; justify-content: center;
}
.l-kpi-box ul li strong { white-space: nowrap; color: var(--text); }

/* ── form section (light — no dark) ─────────────────────────── */
.l-form-section {
  padding: 80px 0;
  background: linear-gradient(150deg, #e8f2fd 0%, #f0f7ff 40%, #e6f4f8 70%, #eaf0fc 100%);
  background-size: 300% 300%;
  animation: grad-shift 12s ease infinite;
}
.l-form-section .eyebrow { color: var(--mint-dark) !important; }
.l-form-wrap {
  max-width: 580px; margin: 0 auto;
  background: white; border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(15,25,35,.12); overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
}
.l-form-head {
  background: linear-gradient(135deg, var(--mint-dark) 0%, var(--brand-blue) 50%, #7C3AED 100%);
  background-size: 300% 300%;
  animation: grad-shift 8s ease infinite;
  padding: 28px 32px;
}
.l-form-head h2 { font-size: 22px; color: white; margin-bottom: 4px; }
.l-form-head p  { font-size: 13px; color: rgba(255,255,255,.75); }
.l-form-body { padding: 28px 32px; }
.f-field { display: grid; gap: 6px; margin-bottom: 14px; }
.f-field label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); }
.f-field input,
.f-field select {
  height: 46px; border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 0 14px; font-size: 15px; font-family: inherit;
  background: white; color: var(--navy); width: 100%; transition: border-color .15s;
}
.f-field input:focus,
.f-field select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(1,213,202,.15); }
.f-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-submit { margin-top: 8px; width: 100%; font-size: 17px; height: 54px; }
.f-note { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 12px; }
.f-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-bottom: 4px; }
.f-badge { font-size: 12px; font-weight: 700; background: rgba(1,213,202,.08); border: 1px solid rgba(1,213,202,.2); color: var(--mint-dark); border-radius: 999px; padding: 4px 12px; }

/* ── mini mock widgets (result section + how section) ─────────── */
.l-result-inner {
  display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 56px;
  align-items: center; max-width: 1180px; margin: 0 auto 0;
}
@media (max-width: 900px) {
  .l-result-inner { grid-template-columns: 1fr; gap: 0; }
}
.l-result-left { }
.l-result-widget {
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px; overflow: hidden;
  animation: float-y 7s ease-in-out infinite;
  position: relative; top: 0;
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
  width: 100%;
}
.l-rw-bar {
  background: #334155; padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(15,25,35,.08);
}
.l-rw-dot { width: 8px; height: 8px; border-radius: 50%; }
.l-rw-title { font-family:'DM Mono',monospace; font-size: 10px; color: rgba(255,255,255,.62); margin-left: 6px; }
.l-rw-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.l-rw-chart {
  display: flex; align-items: flex-end; gap: 5px; height: 74px;
  padding: 8px 4px 0;
}
.l-rw-col {
  flex: 1; border-radius: 3px 3px 0 0;
  background: rgba(1,213,202,.24);
  animation: l-bar-rise .6s both;
}
.l-rw-col.hi  { background: rgba(1,213,202,.8); }
.l-rw-col.mid { background: rgba(1,213,202,.5); }
@keyframes l-bar-rise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}
.l-rw-col:nth-child(1)  { animation-delay: .1s; }
.l-rw-col:nth-child(2)  { animation-delay: .15s; }
.l-rw-col:nth-child(3)  { animation-delay: .2s; }
.l-rw-col:nth-child(4)  { animation-delay: .25s; }
.l-rw-col:nth-child(5)  { animation-delay: .3s; }
.l-rw-col:nth-child(6)  { animation-delay: .35s; }
.l-rw-col:nth-child(7)  { animation-delay: .4s; }
.l-rw-col:nth-child(8)  { animation-delay: .45s; }
.l-rw-col:nth-child(9)  { animation-delay: .5s; }
.l-rw-col:nth-child(10) { animation-delay: .55s; }
.l-rw-label { font-family:'DM Mono',monospace; font-size: 10px; color: var(--text-light); text-align: center; }
.l-rw-stats { display: flex; flex-direction: column; gap: 7px; }
.l-rw-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: #f3f7fa; border-radius: 8px;
}
.l-rw-stat-name { font-size: 11px; color: var(--text); font-weight: 700; }
.l-rw-stat-val  { font-family:'DM Mono',monospace; font-size: 13px; font-weight: 700; }
.l-rw-stat-val.green { color: var(--mint-dark); }
.l-rw-stat-val.red   { color: #e74f10; }
.l-rw-stat-val.white { color: var(--navy); }
.l-rw-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  animation: l-pulse-mint 2s infinite; display: inline-block; margin-right: 5px;
}
@keyframes l-pulse-mint {
  0%,100% { box-shadow: 0 0 0 0 rgba(1,213,202,.7); }
  50%      { box-shadow: 0 0 0 5px rgba(1,213,202,0); }
}

/* ── scroll reveal (triggered by landing JS) ──────────────────── */
.l-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.25,.46,.45,.94), transform .55s cubic-bezier(.25,.46,.45,.94);
}
.l-reveal.visible { opacity: 1; transform: translateY(0); }
.l-reveal-d1 { transition-delay: .08s; }
.l-reveal-d2 { transition-delay: .18s; }
.l-reveal-d3 { transition-delay: .28s; }

/* ── responsive ────────────────────────────────────────────────── */
/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  .l-hero-grid     { grid-template-columns: 1fr; gap: 32px; }
  .l-hero-visual   { display: none; }
  .l-hero          { padding: calc(60px + 36px) 0 48px; }
  .l-hero.l-hero-photo { margin-top: -60px; padding: calc(60px + 60px) 0 56px; }
  .l-hero-sub      { max-width: 100%; font-size: 16px; }
  .l-steps::before { display: none; }
  .l-steps         { gap: 20px; }
  .l-step          { padding: 0; }
  .l-result-inner  { grid-template-columns: 1fr; }
  .l-result-widget { display: none; }
  .l-apps-grid     { grid-template-columns: repeat(2,1fr); }
  .l-apps-head     { max-width: 680px; }
  .pain-grid       { grid-template-columns: repeat(2,1fr); }
  .l-result-grid   { grid-template-columns: repeat(3,1fr); }
  .l-form-section  { padding: 56px 0; }
  .l-form-body     { padding: 22px 20px; }
  .l-form-head     { padding: 22px 20px; }
  .l-how           { padding: 56px 0; }
  .l-pains         { padding: 56px 0; }
  .l-result        { padding: 56px 0; }
  .l-apps          { padding: 56px 0; }
}

/* ── Mobile (≤680px) ── */
@media (max-width: 680px) {
  .pain-grid         { grid-template-columns: 1fr; }
  .l-result-grid     { grid-template-columns: 1fr; }
  .l-steps           { grid-template-columns: 1fr; gap: 32px; }
  .l-apps-grid       { grid-template-columns: 1fr; }
  .l-apps-head       { text-align: center; margin-left: auto; margin-right: auto; }
  .l-apps-head h2    { margin-left: auto; margin-right: auto; }
  .l-kpi-box ul      { grid-template-columns: 1fr; }
  .l-stats-band-grid { grid-template-columns: 1fr; gap: 0; }
  .l-stats-band-item { padding: 18px 20px; }
  .l-stats-band-item + .l-stats-band-item::before { top: 0; height: 1px; width: 60%; left: 20%; }
  .f-g2              { grid-template-columns: 1fr; }
  .l-hero-actions    { flex-direction: column; }
  .l-hero-actions .btn { width: 100%; justify-content: center; }
  .l-hero-trust      { flex-direction: column; gap: 8px; }
  .l-stats-band-val  { font-size: 40px; }
  .l-result-kpi strong { font-size: 28px; }
  .l-testimonial     { padding: 20px; }
  .l-testimonial::before { font-size: 44px; }
  .l-section-head    { margin-bottom: 36px; }
  .l-how-head        { margin-bottom: 36px; }
  .l-apps-head       { margin-bottom: 32px; }
  .l-sector-badge    { margin-bottom: 16px; }
  .l-form-wrap       { border-radius: var(--r); }
  .f-submit          { height: 52px; font-size: 16px; }
  .l-kpi-box         { padding: 18px 20px; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .l-hero          { padding: calc(60px + 28px) 0 40px; }
  .l-hero.l-hero-photo { padding: calc(60px + 48px) 0 48px; }
  .l-result-grid   { grid-template-columns: 1fr; }
  .l-stats-band    { padding: 36px 0; }
  .l-stats-band-val { font-size: clamp(28px,8vw,34px); }
  .l-form-section  { padding: 44px 0; }
  .l-result-kpi    { padding: 18px 14px; min-height: 0; }
  .l-result-kpi strong { font-size: 26px; }
  .l-result-note { font-size: 12px; line-height: 1.55; }
  .l-result-headline { font-size: clamp(22px,7vw,30px); }
  .l-step-num      { width: 38px; height: 38px; font-size: 14px; margin-bottom: 18px; }
  .l-step h3       { font-size: 15px; }
  .l-step p        { font-size: 13px; }
  .pain-card       { padding: 20px 16px; }
  .pain-card h3    { font-size: 14px; }
  .l-hero-content h1 { font-size: clamp(24px, 8vw, 34px); }
  .l-hero-sub      { font-size: 15px; }
  .l-hero-actions .btn { height: 52px; font-size: 16px; width: 100%; justify-content: center; }
  .l-hero-actions  { flex-direction: column; }
  .l-sector-badge  { font-size: 11px; padding: 4px 12px; }
  .l-form-body     { padding: 18px 16px; }
  .l-form-head     { padding: 18px 16px; }
  .l-form-head h2  { font-size: 18px; }
  .f-field label { font-size: 12px; line-height: 1.4; }
  .f-field input,
  .f-field select  { height: 50px; font-size: 16px; } /* prevent iOS zoom */
  .l-kpi-box       { padding: 16px 14px; }
  .l-kpi-box strong { font-size: clamp(26px,8vw,32px); }
}

/* ── Hover off on touch ── */
@media (hover: none) {
  .pain-card:hover,
  .l-app-card:hover,
  .l-result-kpi:hover,
  .l-vis-machine:hover { transform: none !important; box-shadow: inherit !important; }
}

/* =================================================================
   LANDING DESIGN SYSTEM OVERRIDES
   Mantiene le pagine settore coerenti e leggibili su iPhone.
   ================================================================= */

:root {
  --l-section-y: clamp(58px, 7vw, 84px);
  --l-gap: clamp(18px, 2.4vw, 24px);
  --l-card-pad: clamp(20px, 2.6vw, 28px);
  --l-h1: clamp(34px, 4.2vw, 50px);
  --l-h2: clamp(26px, 3.2vw, 38px);
  --l-h3: clamp(17px, 1.7vw, 20px);
  --l-copy: clamp(15px, 1.25vw, 17px);
}

.l-hero,
.l-pains,
.l-result,
.l-how,
.l-apps,
.l-form-section {
  padding-top: var(--l-section-y);
  padding-bottom: var(--l-section-y);
}

.l-hero.l-hero-photo {
  min-height: min(720px, calc(100svh - 38px));
  display: grid;
  align-items: center;
  padding-top: calc(76px + clamp(64px, 8vw, 92px));
  padding-bottom: clamp(64px, 8vw, 92px);
}

.l-hero::before {
  opacity: .95;
}

.l-hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .86fr);
  gap: clamp(36px, 5vw, 64px);
}

.l-hero-content h1 {
  font-size: var(--l-h1);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 760px;
}

.l-hero-sub {
  font-size: var(--l-copy);
  line-height: 1.62;
  max-width: 600px;
}

.l-sector-badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.l-hero-visual {
  border-radius: var(--r);
  box-shadow: 0 22px 54px rgba(15,25,35,.2), 0 1px 0 rgba(255,255,255,.45) inset;
}

.l-stats-band {
  padding: clamp(34px, 5vw, 52px) 0;
  background:
    radial-gradient(ellipse 560px 280px at 12% 0%, rgba(255,255,255,.16), transparent 72%),
    linear-gradient(135deg, #08304a 0%, #007d9f 42%, #1d4ed8 100%);
}

.l-stats-band-grid {
  gap: 12px;
}

.l-stats-band-item {
  margin: 0;
  padding: clamp(18px, 2.4vw, 24px);
  text-align: left;
  background: rgba(255,255,255,.095);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}

.l-stats-band-item + .l-stats-band-item::before {
  display: none;
}

.l-stats-band-val {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.l-stats-band-label {
  max-width: none;
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.84);
}

.l-stats-band-source {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255,255,255,.52);
}

/* Le card operative usano parole, non KPI numerici: gerarchia più equilibrata. */
.l-stats-band--operational .l-stats-band-val {
  font-size: clamp(28px, 3vw, 36px);
}

.l-stats-band--operational .l-stats-band-label {
  font-size: 15px;
  line-height: 1.45;
}

.l-stats-band--operational .l-stats-band-source {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 7px;
}

.l-section-head,
.l-how-head,
.l-apps-head {
  margin-bottom: clamp(30px, 4.4vw, 48px);
}

.l-section-head h2,
.l-how-head h2,
.l-apps-head h2 {
  font-size: var(--l-h2);
  line-height: 1.14;
  letter-spacing: 0;
}

.pain-grid,
.l-apps-grid {
  gap: var(--l-gap);
}

.pain-card,
.l-app-card,
.l-kpi-box,
.l-testimonial,
.l-form-wrap {
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(15,25,35,.075), 0 1px 3px rgba(15,25,35,.04);
}

.pain-card,
.l-app-card {
  padding: var(--l-card-pad);
}

.pain-card h3,
.l-app-card h3,
.l-step h3,
.l-kpi-box h3 {
  font-size: var(--l-h3);
  line-height: 1.28;
  letter-spacing: 0;
}

.pain-card p,
.l-app-card p,
.l-step p,
.l-kpi-box ul li {
  font-size: 14.5px;
  line-height: 1.62;
}

.pain-icon-wrap,
.l-app-card::before {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.l-result {
  background-image:
    linear-gradient(180deg, rgba(1,213,202,.26) 0, rgba(1,213,202,0) 2px),
    radial-gradient(ellipse 720px 420px at 88% 18%, rgba(1,213,202,.16), transparent 70%),
    linear-gradient(135deg, #07131f 0%, #0b2334 54%, #06111d 100%);
}

.l-result-inner {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: clamp(32px, 5vw, 56px);
}

.l-result-headline {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.28;
  max-width: 720px;
}

.l-result-grid {
  gap: 12px;
  max-width: 720px;
}

.l-result-kpi {
  min-height: 0;
  padding: 16px;
  border-radius: var(--r);
}

.l-result-kpi strong {
  font-size: clamp(24px, 2.6vw, 32px);
}

.l-result-kpi span {
  font-size: 12.5px;
}

.l-result--operational .l-result-kpi strong {
  font-size: clamp(22px, 2vw, 26px);
}

.l-result--operational .l-result-kpi span {
  font-size: 14px;
  line-height: 1.5;
}

.l-testimonial {
  max-width: 720px;
}

.l-testimonial::before {
  font-size: 42px;
}

.l-apps {
  background:
    radial-gradient(ellipse 680px 320px at 50% 0%, rgba(1,213,202,.10), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

.l-apps-head {
  max-width: 720px;
}

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

.l-kpi-box {
  padding: var(--l-card-pad);
}

.l-form-section {
  background:
    radial-gradient(ellipse 620px 300px at 80% 0%, rgba(1,213,202,.11), transparent 68%),
    linear-gradient(180deg, #f3f8fc 0%, #e8f2f7 100%);
}

.l-form-head,
.l-form-body {
  padding: var(--l-card-pad);
}

@media (max-width: 900px) {
  .l-hero.l-hero-photo {
    min-height: auto;
    margin-top: -60px;
    padding-top: calc(60px + 56px);
    padding-bottom: 58px;
  }

  .l-hero-grid,
  .l-result-inner {
    grid-template-columns: 1fr;
  }

  .l-hero-visual,
  .l-result-widget {
    display: none;
  }

  .l-hero-content h1 {
    max-width: 680px;
  }

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

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

@media (max-width: 680px) {
  :root {
    --l-section-y: 50px;
    --l-gap: 14px;
    --l-card-pad: 18px;
  }

  .l-hero.l-hero-photo {
    padding-top: calc(60px + 44px);
    padding-bottom: 46px;
    background-position: center top !important;
  }

  .l-hero.l-hero-photo::before {
    background: linear-gradient(135deg,
      rgba(6,14,30,.88) 0%,
      rgba(0,20,55,.80) 52%,
      rgba(0,10,35,.72) 100%) !important;
  }

  .l-hero-content h1 {
    font-size: clamp(30px, 9vw, 38px);
    margin-bottom: 14px;
  }

  .l-hero-sub {
    font-size: 16px;
    line-height: 1.58;
    margin-bottom: 24px;
  }

  .l-hero-actions {
    gap: 10px;
    margin-bottom: 20px;
  }

  .l-hero-actions .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding-left: 18px;
    padding-right: 18px;
  }

  .l-hero-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .l-stats-band-grid,
  .pain-grid,
  .l-result-grid,
  .l-steps,
  .l-apps-grid,
  .l-kpi-box ul {
    grid-template-columns: 1fr;
  }

  .l-stats-band {
    padding: 28px 0;
  }

  .l-stats-band-grid {
    gap: 10px;
  }

  .l-stats-band-item {
    padding: 18px;
  }

  .l-stats-band-val {
    font-size: clamp(29px, 9vw, 36px);
  }

  .l-section-head,
  .l-how-head,
  .l-apps-head {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .l-section-head h2,
  .l-how-head h2,
  .l-apps-head h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .pain-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .pain-icon-wrap {
    margin-bottom: 0;
  }

  .pain-card h3,
  .pain-card p {
    grid-column: 2;
  }

  .pain-card h3 {
    margin-bottom: 6px;
  }

  .l-result-headline {
    font-size: clamp(22px, 6.5vw, 28px);
  }

  .l-result-kpi {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .l-result-kpi strong {
    margin-bottom: 0;
    font-size: clamp(24px, 8vw, 30px);
  }

  .l-testimonial {
    padding: 18px;
  }

  .l-testimonial p {
    font-size: 14px;
    padding-top: 4px;
  }

  .l-t-role {
    line-height: 1.35;
  }

  .l-step {
    text-align: left;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .l-step-num {
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .l-step h3,
  .l-step p {
    grid-column: 2;
  }

  .l-app-card::before {
    margin-bottom: 14px;
  }

  .l-kpi-box ul li strong {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .l-sector-badge {
    font-size: 10.5px;
    padding: 5px 11px;
  }

  .l-hero-content h1 {
    font-size: 29px;
  }

  .l-hero-sub {
    font-size: 15.5px;
  }

  .pain-card,
  .l-app-card,
  .l-kpi-box,
  .l-testimonial,
  .l-form-head,
  .l-form-body {
    padding: 16px;
  }

  .l-result-kpi {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .f-badges {
    justify-content: flex-start;
  }
}
