/* ═══════════════════════════════════════════
   OpsPilot — Landing Page Styles
   Specifico per index.html (homepage)
   ═══════════════════════════════════════════ */

/* ─── Page Variables Override ─── */
:root {
  --bg: #F5F7FA;
  --card-bg: #ffffff;
  --text: #172a3a;
  --muted: #5a7082;
  --line: rgba(23, 42, 58, .09);
  --shadow: 0 4px 20px rgba(23, 42, 58, .08);
  --shadow-lg: 0 16px 56px rgba(23, 42, 58, .13);
  --radius: 16px;
  --radius2: 12px;
  --max: 1100px;
  --pad: 20px;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ─── Body ─── */
html, body { height: 100%; }

body {
  background: #F5F7FA;
  line-height: 1.6;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: 48px;
}

a { color: inherit; }

/* ─── Navigation ─── */
#site-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
}

.nav {
  position: relative;
  background: linear-gradient(135deg, #1a3a54, #28587b);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: .2px;
}

.logo {
  width: 228px;
  height: 78px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.logo:hover { transform: scale(1.05); }

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, .80);
  font-weight: 650;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* ─── Nav Dropdown ─── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  opacity: .6;
  transition: transform .2s;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: #1a3a54;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  z-index: 100;
  animation: dropdownFadeIn .2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .75) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, .10) !important;
  color: #fff !important;
}

.nav-dropdown-menu .dd-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-dropdown-menu .dd-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-menu .dd-label small {
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 4px 0;
}

/* Mobile dropdown */
.mobile-nav .mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-nav .mobile-dropdown-toggle::after {
  content: '▾';
  font-size: 11px;
  opacity: .5;
  transition: transform .2s;
}

.mobile-nav .mobile-dropdown-toggle.open::after {
  transform: rotate(180deg);
}

.mobile-dropdown-items {
  display: none;
  background: rgba(0, 0, 0, .15);
}

.mobile-dropdown-items.open {
  display: block !important;
}

.mobile-dropdown-items a {
  padding-left: 36px !important;
  font-size: 15px !important;
}

/* ─── Hamburger & Mobile Nav ─── */
.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 20px;
  line-height: 1;
  transition: background .2s;
}

.hamburger-btn:hover { background: rgba(255, 255, 255, .12); }

.mobile-nav {
  display: none;
  background: #1e3d57;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  padding: 8px 0;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, .80);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .15s, color .15s;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.mobile-nav a:last-child { border-bottom: none; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(23, 42, 58, .06);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: rgba(23, 42, 58, .10);
  border-color: rgba(23, 42, 58, .18);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, #2563EB, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, .28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 12px 36px rgba(37, 99, 235, .38);
  transform: translateY(-1px);
}

/* Bottone ambra — CTA principale nell'hero */
.btn-amber {
  border: 0;
  background: linear-gradient(135deg, #F59E0B, #d97706);
  color: #fff;
  box-shadow: 0 8px 28px rgba(245, 158, 11, .32);
}

.btn-amber:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 12px 40px rgba(245, 158, 11, .44);
  transform: translateY(-1px);
}

/* Bottone ghost per sfondo scuro */
.btn-ghost-light {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

/* ─── Hero ─── */
.hero {
  padding: 90px 0 72px;
  background: linear-gradient(160deg, #0D1B2A 0%, #1E3A5F 52%, #2563EB 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(99, 160, 255, .22), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(34, 211, 238, .08), transparent 55%);
  pointer-events: none;
}

/* ── Pattern SVG di sfondo ── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo/bg-pattern.svg');
  background-repeat: repeat;
  background-size: 600px 400px;
  opacity: .28;
  pointer-events: none;
}

/* ── Override globale per tutto il testo nell'hero dark ── */
/* breadcrumb, trust row, testi inline con color:var(--muted) */
.hero nav,
.hero nav a,
.hero nav span { color: rgba(255,255,255,.55) !important; }
.hero nav a[href] { color: rgba(255,255,255,.75) !important; }
.hero nav a[href]:hover { color: #fff !important; }
.hero > div [style*="color:var(--muted)"],
.hero > div > div [style*="color:var(--muted)"] { color: rgba(255,255,255,.55) !important; }
/* ── Ripristino colore nella form card (sfondo bianco) ── */
.hero .hero-card [style*="color:var(--muted)"],
.hero .hero-card label { color: var(--muted) !important; }

/* ── Testo dell'hero su sfondo scuro ── */
.hero h1              { color: #ffffff; }
.hero .sub {
  color: #ffffff;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.65;
}
.hero .hero-eyebrow   {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .82);
}
.hero .hero-eyebrow .dot-live {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .25);
}
.hero .badge {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .65);
}
.hero .dot.good  { background: #34d399; }
.hero .dot.accent { background: rgba(255,255,255,.5); }
.hero .dot.warn  { background: #fbbf24; }

/* ── Panel / promo box dentro l'hero ── */
.hero .panel.accent-sky {
  background: rgba(255, 255, 255, .96) !important;
  border-top-color: #38bdf8;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22) !important;
  backdrop-filter: blur(12px);
}

/* ── Form card ── */
.hero .card.hero-card {
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .25);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 900;
  color: var(--text);
}

.sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  max-width: 60ch;
  line-height: 1.65;
}

/* ─── Override section typography — landing ─── */
.section-title {
  font-size: clamp(26px, 3.5vw, 40px) !important;
  letter-spacing: -.03em !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
}

.section-sub {
  font-size: 18px !important;
  max-width: 600px !important;
  line-height: 1.72 !important;
}

/* ─── Badges & Dots ─── */
.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .04);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.good { background: var(--good); }
.dot.accent { background: var(--accent); }
.dot.warn { background: var(--warn); }

/* ─── Cards & Panels ─── */
.card {
  background: #ffffff;
  border: 1px solid rgba(23, 42, 58, .09);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(23, 42, 58, .06), 0 1px 3px rgba(23, 42, 58, .04);
}

.card, .panel, .step {
  transition: transform 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.32s ease, border-color 0.32s ease;
  position: relative;
  overflow: hidden;
}

.card:hover, .panel:hover, .step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 52px rgba(23, 42, 58, .13) !important;
  border-color: rgba(37, 99, 235, .22);
}

.hero-card { padding: 20px; }

.panel {
  padding: 20px;
  border-radius: var(--radius2);
  background: #ffffff;
  border: 1px solid rgba(23, 42, 58, .08);
  box-shadow: 0 2px 10px rgba(23, 42, 58, .05);
}

.panel h3 { margin: 2px 0 8px; font-size: 18px; font-weight: 700; }
.panel p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.kpi { display: flex; align-items: flex-start; gap: 12px; }

.icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), .12);
  border: 1px solid rgba(var(--accent-rgb), .22);
  color: var(--accent);
  flex: 0 0 auto;
}

/* ─── Steps ─── */
.steps { counter-reset: step; }
.step { display: flex; gap: 12px; }

.num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(var(--accent2-rgb), .12);
  border: 1px solid rgba(var(--accent2-rgb), .22);
  color: rgba(var(--accent2-rgb), .95);
  display: grid;
  place-items: center;
  font-weight: 850;
  flex: 0 0 auto;
}

/* ─── Forms ─── */
.mini-title { font-weight: 800; margin: 0 0 10px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

label { font-size: 14px; color: var(--muted); font-weight: 700; }

input, textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--accent-rgb), .03);
  color: var(--text);
  outline: none;
  font-family: var(--font);
}

select option { background: var(--bg); color: var(--text); }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(var(--text-rgb), .45); }

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

.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.hr { height: 1px; background: var(--line); margin: 14px 0; }

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

/* ─── Pricing ─── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.price-card { padding: 18px; position: relative; }
.price-card h3 { margin: 0 0 4px; }

.tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--good-rgb), .12);
  border: 1px solid rgba(var(--good-rgb), .22);
  color: rgba(var(--good-rgb), .98);
}

.price { font-size: 26px; font-weight: 900; margin: 10px 0 6px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 700; }

ul { margin: 10px 0 0; padding: 0 0 0 18px; color: var(--muted); }
li { margin: 6px 0; font-size: 15px; }

/* ─── Pricing cards upgrade ─── */
.price-card {
  padding: 24px;
  position: relative;
  border-radius: var(--radius) !important;
}
.price-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.price { font-size: 30px; font-weight: 900; margin: 12px 0 6px; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Card featured (Starter) highlight */
.bg-mist .price-card.accent-sky {
  border-color: rgba(37, 99, 235, .22) !important;
  box-shadow: 0 8px 32px rgba(37, 99, 235, .10) !important;
}

/* ─── Footer ─── */
.footer {
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.note { font-size: 13px; color: rgba(var(--text-rgb), .55); margin-top: 10px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .03);
  font-weight: 700;
  color: rgba(var(--text-rgb), .75);
  font-size: 14px;
}

/* ─── Cookie Consent ─── */
#cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  z-index: 2000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: slide-up .4s ease;
}

#cookie-consent p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns .btn { flex: 1; font-size: 13px; padding: 10px; }

/* ─── Widget Chat (commentato nell'HTML) ─── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.ops-msg, .demo-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.ops-msg-bot, .demo-msg-bot {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(0, 0, 0, .08);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: #e8eefc;
}

.ops-msg-user, .demo-msg-user {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .15), rgba(var(--accent2-rgb), .15));
  border: 1px solid rgba(var(--accent-rgb), .2);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: #e8eefc;
}

.ops-msg-typing, .demo-msg-typing {
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .06);
  align-self: flex-start;
  color: #b7c3df;
  font-style: italic;
  font-size: 12px;
}

#ops-chat { display: none; }
#ops-chat.open { display: flex !important; }
#ops-toggle:hover { transform: scale(1.08); }

/* ─── Animations ─── */
@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-ui { animation: floating 4s ease-in-out infinite; }

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

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

.gradient-text {
  background: linear-gradient(90deg, #1a6fba, #7c3aed, #0ea890, #5b7fd4, #7c3aed, #1a6fba);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-move 6s linear infinite;
  filter: drop-shadow(0 2px 14px rgba(40, 88, 123, .25));
  display: inline-block;
}

/* ─── Responsive: Tablet ─── */
@media (max-width: 900px) {
  .hero-grid,
  .pricing,
  .grid-3,
  .grid-2,
  .form-row,
  .demo-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-links,
  .demo-info-col,
  .nav .btn-primary { display: none; }

  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    margin-right: 8px;
  }

  .hero { padding-top: 42px; }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 480px) {
  h1 { font-size: clamp(28px, 7.5vw, 36px); }
  .btn { padding: 11px 14px; font-size: 15px; }
  .nav-inner { padding: 10px 0; }

  #site-top-bar { position: static; }
  body { padding-top: 0 !important; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 32px; }

  .pill-row { gap: 6px; }
  .pill { font-size: 13px; padding: 6px 10px; }

  .social-badges {
    margin-left: 0 !important;
    margin-top: 10px;
    padding-left: 0 !important;
    border-left: none !important;
    width: 100%;
    justify-content: center;
  }
}

/* ════════════════════════════════════════════
   NUOVI COMPONENTI — v2 Redesign
   ════════════════════════════════════════════ */

/* ─── Hero Eyebrow Badge ─── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .20);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: .01em;
}
.hero-eyebrow .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
  animation: pulse-live 2.2s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, .08); }
}

/* ─── Pattern SVG su sezioni bianche selezionate ─── */
.has-pattern {
  position: relative;
}
.has-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo/bg-pattern.svg');
  background-repeat: repeat;
  background-size: 600px 400px;
  opacity: .09;
  pointer-events: none;
  z-index: 0;
}
.has-pattern > * { position: relative; z-index: 1; }

/* ─── Pattern SVG su bg-navy e bg-deep ─── */
.bg-navy, .bg-deep { position: relative; }
.bg-navy::after, .bg-deep::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../images/logo/bg-pattern.svg');
  background-repeat: repeat;
  background-size: 600px 400px;
  opacity: .22;
  pointer-events: none;
  z-index: 0;
}
.bg-navy > *, .bg-deep > * { position: relative; z-index: 1; }

/* ─── Pattern SVG su bg-mist ─── */
.bg-mist {
  position: relative;
}
.bg-mist::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo/bg-pattern.svg');
  background-repeat: repeat;
  background-size: 600px 400px;
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}
.bg-mist > * { position: relative; z-index: 1; }

/* ─── Stats Bar (social proof strip sotto hero) ─── */
.stats-bar {
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 42, 58, .08);
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(23, 42, 58, .06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  align-items: center;
}
.stats-grid .stat-item {
  padding: 12px 20px;
  border-right: 1px solid rgba(23, 42, 58, .08);
}
.stats-grid .stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(23, 42, 58, .06);
  }
  .stats-grid .stat-item {
    background: #fff;
    border-right: none;
    padding: 16px 10px;
  }
}

/* ─── Section Eyebrow Label (Planfix style) ─── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .16);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.bg-deep .section-eyebrow,
.bg-navy .section-eyebrow {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .65);
}

/* ─── 3-Column Comparison (Planfix style) ─── */
.compare-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.compare-card {
  border-radius: 16px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.compare-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
}
.compare-card.is-bad {
  background: #fff5f5;
  border-color: #fecaca;
}
.compare-card.is-neutral {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.compare-card.is-good {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border-color: #bfdbfe;
  box-shadow: 0 8px 32px rgba(37, 99, 235, .08);
}
.compare-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.is-bad .compare-icon { background: #fee2e2; }
.is-neutral .compare-icon { background: #e2e8f0; }
.is-good .compare-icon { background: var(--accent); }
.compare-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.compare-card p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.compare-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  font-weight: 700;
}
.is-bad .compare-footer { color: #ef4444; }
.is-neutral .compare-footer { color: var(--muted); }
.is-good .compare-footer { color: var(--good); }

@media (max-width: 768px) {
  .compare-3 { grid-template-columns: 1fr; gap: 14px; }
}

/* ─── Channels Section ─── */
/* ════════════════════════════════════════
   SETTORI SECTION
   ════════════════════════════════════════ */
.settori-section {
  position: relative;
  overflow: hidden;
}

/* radial glow di sfondo */
.settori-section::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 50%, rgba(37,99,235,.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 85% 50%, rgba(34,211,238,.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.settori-wrap { position: relative; z-index: 1; }

.settori-header {
  text-align: center;
  margin-bottom: 52px;
}

/* griglia settori */
.settori-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* card standard */
.settore-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.settore-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(34,211,238,.06));
  opacity: 0;
  transition: opacity .25s;
}

.settore-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 16px 44px rgba(0,0,0,.28), 0 0 0 1px rgba(37,99,235,.18);
  background: rgba(255, 255, 255, .10);
}

.settore-card:hover::before { opacity: 1; }

/* logo SVG */
.settore-logo {
  width: 88px; height: 88px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.28));
  transition: filter .25s, transform .25s;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.settore-card:hover .settore-logo {
  filter: drop-shadow(0 8px 20px rgba(37,99,235,.30));
  transform: scale(1.07);
}

/* testi */
.settore-label {
  font-size: 13px; font-weight: 800;
  color: #ffffff;
  letter-spacing: -.01em;
  text-align: center;
  position: relative; z-index: 1;
  line-height: 1.3;
}
.settore-sublabel {
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  text-align: center;
  font-family: var(--font-mono, monospace);
  position: relative; z-index: 1;
  margin-top: -6px;
}

/* card featured — 2 colonne, layout orizzontale */
.settore-card.featured {
  grid-column: span 2;
  flex-direction: row;
  padding: 26px 28px;
  gap: 22px;
  align-items: center;
  background: rgba(37, 99, 235, .10);
  border-color: rgba(37, 99, 235, .25);
}
.settore-card.featured:hover {
  background: rgba(37, 99, 235, .17);
  border-color: rgba(37, 99, 235, .50);
}
.settore-card.featured .settore-logo {
  width: 108px; height: 108px;
}
.settore-card.featured .settore-info {
  text-align: left;
  position: relative; z-index: 1;
}
.settore-card.featured .settore-label {
  font-size: 17px;
  text-align: left;
  margin-bottom: 3px;
}
.settore-card.featured .settore-sublabel {
  text-align: left;
  margin-top: 0;
  margin-bottom: 8px;
}
.settore-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
  position: relative; z-index: 1;
}

/* CTA sotto la griglia */
.settori-cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative; z-index: 1;
}
.settori-cta-text {
  font-size: 15px;
  color: rgba(255, 255, 255, .50);
}
.settori-cta-text strong { color: #ffffff; }

/* ─── Responsive settori ─── */
@media (max-width: 900px) {
  .settori-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .settore-card.featured {
    grid-column: span 3;
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .settore-card.featured .settore-info { text-align: center; }
  .settore-card.featured .settore-label { text-align: center; font-size: 15px; }
  .settore-card.featured .settore-sublabel { text-align: center; }
}

@media (max-width: 600px) {
  .settori-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .settore-card.featured {
    grid-column: span 2;
  }
  .settore-logo { width: 72px; height: 72px; }
  .settore-card.featured .settore-logo { width: 80px; height: 80px; }
  .settore-label { font-size: 12px; }
  .settori-header { margin-bottom: 36px; }
}

/* ─── Visual 3D nella sezione Canali ─── */
.channels-3d-visual {
  display: none;               /* nascosto su mobile */
}

@media (min-width: 900px) {
  .channels-3d-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.channels-3d-img {
  width: 100%;
  max-width: 400px;
  border-radius: 28px;
  box-shadow:
    0 24px 80px rgba(37, 99, 235, .12),
    0 8px 24px rgba(23, 42, 58, .08);
  animation: channels-float 5s ease-in-out infinite;
}

@keyframes channels-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Su sfondo bianco i card-canali ricevono un fill leggero */
.channels-on-white .channel-card-lp {
  background: #F5F7FA;
  border-color: rgba(23, 42, 58, .08);
}
.channels-on-white .channel-card-lp:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, .22);
}

.channels-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.channels-list-lp {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.channel-card-lp {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(37, 99, 235, .10);
  box-shadow: 0 2px 12px rgba(23, 42, 58, .05);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.channel-card-lp:hover {
  box-shadow: 0 8px 28px rgba(37, 99, 235, .12);
  border-color: rgba(37, 99, 235, .22);
  transform: translateX(4px);
}
.channel-icon-lp {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.channel-icon-lp.wa  { background: rgba(37, 211, 102, .12); }
.channel-icon-lp.tg  { background: rgba(0, 136, 204, .12); }
.channel-icon-lp.web { background: rgba(37, 99, 235, .12); }
.channel-icon-lp.ig  { background: rgba(225, 48, 108, .10); }
.channel-card-lp h4  { font-size: 15px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.channel-card-lp p   { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

/* Chat preview box */
.inbox-preview {
  background: #172a3a;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(23, 42, 58, .30);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
}
.inbox-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  font-weight: 600;
  margin-bottom: 6px;
}
.inbox-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse-live 2s infinite;
}
.msg-bubble-lp {
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 85%;
}
.msg-in-lp {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .80);
  align-self: flex-start;
}
.msg-out-lp {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
}
.msg-meta-lp {
  font-size: 11px;
  opacity: .45;
  margin-top: 4px;
}
.channel-tag-lp {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 5px;
}
.ctag-wa  { background: rgba(37, 211, 102, .2); color: #34d399; }
.ctag-tg  { background: rgba(0, 136, 204, .25); color: #60c3f7; }
.ctag-web { background: rgba(37, 99, 235, .25); color: #93c5fd; }

@media (max-width: 840px) {
  .channels-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .inbox-preview { min-height: auto; }
}

/* ─── Review Cards ─── */
.reviews-grid-lp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.review-card-lp {
  background: #F5F7FA;
  border-radius: 16px;
  padding: 26px;
  border: 1px solid rgba(23, 42, 58, .08);
  box-shadow: 0 2px 12px rgba(23, 42, 58, .05);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.review-card-lp:hover {
  box-shadow: 0 12px 36px rgba(23, 42, 58, .10);
  transform: translateY(-4px);
}
.review-header-lp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.review-avatar-lp {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
  color: #fff;
  flex-shrink: 0;
}
.review-meta-lp h4 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.review-meta-lp span { font-size: 12px; color: var(--muted); }
.review-stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; }
.review-title-lp { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.review-body-lp { font-size: 13px; color: var(--muted); line-height: 1.68; flex: 1; }
.review-source-lp {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.review-source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .reviews-grid-lp { grid-template-columns: 1fr; gap: 14px; }
}

/* ─── FAQ migliorato ─── */
details {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s;
}
details + details { margin-top: 10px; }
details:hover { box-shadow: 0 4px 18px rgba(37, 99, 235, .08); }
details[open] { border-color: rgba(37, 99, 235, .22); }
details[open] summary { color: var(--accent); background: rgba(37, 99, 235, .04); }
summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  list-style: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s, color .2s;
  line-height: 1;
}
details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  padding: 0 20px 18px;
  line-height: 1.7;
}

/* ─── Final CTA Section ─── */
.final-cta-section {
  background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 60%, #1a4080 100%);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99, 160, 255, .14), transparent 70%);
  pointer-events: none;
}
.final-cta-section h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.025em;
  line-height: 1.1;
  position: relative;
}
.final-cta-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, .58);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}
.cta-trust-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
  position: relative;
}
.cta-trust-item {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  font-weight: 600;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ─── Hero responsive improvements ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-eyebrow { font-size: 12px; }
  .hero { padding: 72px 0 56px; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .stats-bar { padding: 20px 16px; }
  .compare-card { padding: 22px 18px; }
  .channel-card-lp { padding: 16px; }
  .review-card-lp { padding: 20px; }
  .inbox-preview { padding: 20px; }
  .final-cta-section { padding: 72px 20px; }
  .section-title { font-size: 24px !important; }
  h1 { font-size: clamp(28px, 8vw, 38px) !important; }
}

/* ─── Pricing mobile fix ─── */
@media (max-width: 900px) {
  .pricing,
  .grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .pricing .price-card:last-child { grid-column: span 2; }
}
