/* ==========================================================================
   AREVIS.IT - DESIGN SYSTEM & STYLESHEET
   Masterbrand Cloud B2B Software Ecosystem
   ========================================================================== */

:root {
  /* Color Tokens */
  --color-bg: #090D16;
  --color-bg-subtle: #0F172A;
  --color-card: #131D31;
  --color-card-hover: #1A2640;
  --color-border: #1E293B;
  --color-border-light: #334155;
  
  --color-primary: #0284C7;
  --color-primary-hover: #0369A1;
  --color-cyan: #38BDF8;
  --color-cyan-glow: rgba(56, 189, 248, 0.25);
  
  --color-emerald: #10B981;
  --color-emerald-subtle: rgba(16, 185, 129, 0.12);
  --color-indigo: #6366F1;
  --color-indigo-subtle: rgba(99, 102, 241, 0.12);
  --color-amber: #F59E0B;
  --color-amber-subtle: rgba(245, 158, 11, 0.12);
  
  --color-text-main: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-text-dim: #64748B;
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #172554 0%, #090D16 65%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  z-index: 101;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.announcement-content strong {
  color: #fff;
}

.announcement-link {
  color: var(--color-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.badge-pulse {
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.announcement-close {
  position: absolute;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(9, 13, 22, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.logo-badge {
  background: rgba(56, 189, 248, 0.12);
  color: var(--color-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Nav Links */
.main-nav {
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #fff;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.chevron-icon {
  transition: transform var(--transition-fast);
}

.has-dropdown:hover .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 480px;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-smooth);
  pointer-events: none;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.product-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(4px);
}

.product-item.featured {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.product-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-cyan { background: rgba(56, 189, 248, 0.15); color: var(--color-cyan); }
.bg-indigo { background: rgba(99, 102, 241, 0.15); color: var(--color-indigo); }
.bg-emerald { background: rgba(16, 185, 129, 0.15); color: var(--color-emerald); }
.bg-slate { background: rgba(148, 163, 184, 0.15); color: #CBD5E1; }

.product-info strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.product-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Badges */
.badge-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-status.active {
  background: var(--color-emerald-subtle);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.preview {
  background: var(--color-indigo-subtle);
  color: var(--color-indigo);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-status.included {
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0369A1 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #38BDF8, #0284C7);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  filter: blur(8px);
}

.btn-secondary {
  background: #1E293B;
  color: #F8FAFC;
  border-color: #334155;
}

.btn-secondary:hover {
  background: #334155;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-subtext {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all var(--transition-fast);
}

.mobile-drawer {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-block: 5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.22) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cyan);
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 1.8rem + 3.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 950px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--color-text-muted);
  max-width: 780px;
  margin-inline: auto;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #CBD5E1;
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--color-cyan);
}

/* Mockup Window */
.hero-mockup-wrapper {
  max-width: 1040px;
  margin-inline: auto;
  perspective: 1000px;
}

.mockup-window {
  background: #0B111E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(2, 132, 199, 0.15);
  overflow: hidden;
  text-align: left;
}

.mockup-header {
  background: #0F172A;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 6px;
}

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

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.mockup-url {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tenant-pill {
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--color-cyan);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.mockup-body {
  padding: 1.5rem;
}

.mockup-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card-mock {
  background: #131E33;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kpi-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.kpi-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-block: 0.2rem;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.text-emerald { color: #10B981; }
.text-cyan { color: #38BDF8; }
.text-indigo { color: #818CF8; }
.text-amber { color: #F59E0B; }
.text-slate { color: #94A3B8; }
.text-white { color: #FFFFFF; }
.text-muted { color: var(--color-text-dim); }
.text-sm { font-size: 0.85rem; }

.mockup-dashboard-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}

.mockup-chart-box, .mockup-live-feed {
  background: #131E33;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #fff;
}

.badge-mini {
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.mockup-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 130px;
  padding-top: 1rem;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  width: 16%;
}

.bar {
  width: 100%;
  background: linear-gradient(180deg, var(--color-cyan) 0%, var(--color-primary) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.fill-80 { height: 80px; }
.fill-95 { height: 110px; background: linear-gradient(180deg, #10B981, #059669); }
.fill-60 { height: 60px; }
.fill-45 { height: 45px; }
.fill-70 { height: 75px; }

.live-activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.live-activity-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.live-activity-list strong {
  display: block;
  color: #F1F5F9;
}

.live-activity-list p {
  color: var(--color-text-dim);
  font-size: 0.75rem;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

/* ==========================================================================
   PRODUCT SUITE (ECOSISTEMA AREVIS)
   ========================================================================== */
.section-suite {
  padding-block: 6rem;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.section-header {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.subheading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.build-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.build-pillar-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.build-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
}

.build-pillar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-block: 1.25rem 0.5rem;
}

.build-pillar-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.suite-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

.suite-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-card), 0 0 30px rgba(56, 189, 248, 0.1);
}

.suite-card.active-card {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, #16223B 0%, #111A2E 100%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.card-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.badge-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-pill.preview {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-indigo);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.badge-pill.role {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
}

.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.card-summary {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #E2E8F0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.card-footer-action {
  margin-top: auto;
}

/* ==========================================================================
   DEEP DIVE MODULI OPERATIVI (TABS)
   ========================================================================== */
.section-modules {
  padding-block: 6rem;
}

.modules-tabs-wrapper {
  margin-top: 3rem;
}

.modules-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

.pane-text h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin-block: 0.75rem 1rem;
}

.pane-text p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: #E2E8F0;
}

.bullet-list strong {
  color: #fff;
}

.feature-card-showcase {
  background: #0B111E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #CBD5E1;
  font-weight: 600;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.metric-row h4 {
  font-size: 1.35rem;
  font-family: var(--font-heading);
  margin-top: 0.2rem;
}

.security-checklist, .price-radar-mock, .payroll-stats, .doc-mock-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chk-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.supplier-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
}

.supplier-row.winner {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--color-cyan);
}

.payroll-stats div {
  display: flex;
  justify-content: space-between;
  padding-block: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.doc-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #E2E8F0;
}

/* ==========================================================================
   SEZIONE SICUREZZA & CLOUD UE
   ========================================================================== */
.section-security {
  padding-block: 6rem;
}

.security-card-enterprise {
  background: linear-gradient(135deg, #0F172A 0%, #16243E 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 1.5rem + 2vw, 4rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.security-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.security-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-block: 0.75rem 1rem;
}

.security-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pillar-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.pillar p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cert-card {
  background: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.cert-shield {
  font-size: 1.8rem;
}

.cert-header h4 {
  font-size: 1.2rem;
  color: #fff;
}

.cert-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.cert-stat {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-cyan);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.cert-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

/* ==========================================================================
   SEZIONE PIANI & PREZZI
   ========================================================================== */
.section-pricing {
  padding-block: 6rem;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.2) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.92rem;
}

.toggle-label {
  color: var(--color-text-dim);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.toggle-label.active {
  color: #fff;
  font-weight: 600;
}

.discount-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-left: 0.4rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--color-border-light);
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
}

.featured-plan {
  background: linear-gradient(180deg, #1A2847 0%, #111B30 100%);
  border-color: var(--color-cyan);
  box-shadow: 0 15px 40px -10px rgba(2, 132, 199, 0.3);
  transform: scale(1.03);
}

.featured-plan:hover {
  transform: scale(1.03) translateY(-6px);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0284C7, #38BDF8);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.3rem 1.25rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.pricing-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.plan-target {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.4em;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.period {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

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

.plan-features li > span:not(.check) {
  flex: 1;
}

/* ==========================================================================
   SEZIONE CONTATTI / DEMO
   ========================================================================== */
.section-contact {
  padding-block: 6rem;
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 700;
  margin-block: 0.75rem 1rem;
  color: #fff;
}

.contact-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #E2E8F0;
}

.c-benefit span {
  color: var(--color-emerald);
  font-weight: 700;
  margin-right: 0.4rem;
}

.direct-contact-info p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.link-cyan {
  color: var(--color-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #CBD5E1;
}

.form-group input, .form-group select, .form-group textarea {
  background: #090D16;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  transition: border-color var(--transition-fast);
}

.form-group textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748B;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

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

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-block: 0.5rem;
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #060910;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 4.5rem 2rem;
  font-size: 0.88rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.15fr 1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--color-emerald);
}

.status-indicator-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  color: var(--color-text-dim);
  font-size: 0.8rem;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   MODALE LEGALE
   ========================================================================== */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.legal-modal-backdrop.open {
  display: flex;
}

.legal-modal-dialog {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.legal-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-header h3 {
  color: #fff;
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.legal-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.7;
}

.legal-modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0B111E;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }

  .pane-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .mockup-dashboard-content {
    grid-template-columns: 1fr;
  }

  .featured-plan {
    transform: none;
  }

  .featured-plan:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .nav-actions .btn-primary {
    display: none; /* Hide trial button on narrow screens, leave Accedi */
  }

  .mockup-bars {
    display: none;
  }
}

/* ==========================================================================
   AREVIS ENGINEERING & AI SOLUTIONS SECTION
   ========================================================================== */
.section-engineering {
  padding-block: 6rem;
  background: radial-gradient(circle at 50% 20%, rgba(30, 41, 59, 0.5) 0%, rgba(9, 13, 22, 0.95) 100%);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.engineering-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.eng-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.eng-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.12);
}

.eng-card.featured-ai {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(20, 30, 55, 0.7) 100%);
}

.eng-card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.eng-card.featured-ai .eng-card-img-wrapper {
  height: 100%;
  min-height: 380px;
}

.eng-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.eng-card:hover .eng-card-img-wrapper img {
  transform: scale(1.06);
}

.eng-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.1) 0%, rgba(9, 13, 22, 0.75) 100%);
  pointer-events: none;
}

.eng-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eng-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.eng-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.eng-badge.ai {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.eng-badge.custom {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.eng-badge.security {
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.eng-badge.commerce {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.eng-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.eng-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.eng-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
}

.eng-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #E2E8F0;
}

.eng-feature-list li span.bullet {
  color: var(--color-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.eng-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.eng-tag {
  font-size: 0.72rem;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Engineering CTA Banner */
.eng-cta-banner {
  background: linear-gradient(90deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.eng-cta-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.eng-cta-text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 650px;
}

.eng-cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   ENGINEERING METHODOLOGY (4 PHASES)
   ========================================================================== */
.eng-methodology-wrapper {
  margin-block: 4rem 3.5rem;
  padding-block: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eng-methodology-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.eng-methodology-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}

.eng-methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.eng-step-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.eng-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.15);
}

.eng-step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.eng-step-card:hover .eng-step-num {
  color: var(--color-cyan);
}

.eng-step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.eng-step-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.eng-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  align-self: flex-start;
}

/* ==========================================================================
   TECH STACK & AI ECOSYSTEM MATRIX
   ========================================================================== */
.eng-tech-matrix-wrapper {
  margin-bottom: 4rem;
}

.eng-tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.eng-tech-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.eng-tech-box-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eng-tech-box-icon {
  font-size: 1.35rem;
}

.eng-tech-box-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.eng-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.eng-tech-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.2s ease;
}

.eng-tech-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}

.eng-tech-pill.highlight {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-weight: 600;
}

/* ==========================================================================
   INTERACTIVE PROJECT ESTIMATOR & CONFIGURATOR
   ========================================================================== */
.eng-estimator-wrapper {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(11, 17, 30, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.08);
  margin-bottom: 3.5rem;
}

.estimator-header {
  text-align: center;
  max-width: 750px;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}

.estimator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 1rem;
}

.estimator-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}

.estimator-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.estimator-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.estimator-step-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.estimator-step-label span.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-cyan);
  color: #0F172A;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.estimator-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.estimator-opt-btn {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.estimator-opt-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.8);
  color: #fff;
}

.estimator-opt-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--color-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.estimator-opt-btn.active::after {
  content: "●";
  color: var(--color-cyan);
  font-size: 0.75rem;
}

.estimator-checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.estimator-check-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.estimator-check-label:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.estimator-check-label input[type="checkbox"] {
  accent-color: var(--color-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.estimator-check-label:has(input[type="checkbox"]:checked) {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
  color: #fff;
}

/* Estimator Live Result Card */
.estimator-result-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
  display: flex;
  flex-direction: column;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.result-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38BDF8;
  letter-spacing: 0.5px;
}

.result-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #10B981;
}

.result-live-indicator .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.result-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.result-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.metric-val.cyan {
  color: var(--color-cyan);
}

.metric-sub {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.4;
}

.result-guarantees-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.75rem;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #E2E8F0;
}

.guarantee-item svg {
  color: #10B981;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .engineering-grid {
    grid-template-columns: 1fr;
  }

  .eng-card.featured-ai {
    grid-template-columns: 1fr;
  }

  .eng-card.featured-ai .eng-card-img-wrapper {
    min-height: 260px;
  }

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

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

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

  .eng-cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .eng-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .eng-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .eng-methodology-grid {
    grid-template-columns: 1fr;
  }

  .eng-tech-matrix-grid {
    grid-template-columns: 1fr;
  }

  .eng-estimator-wrapper {
    padding: 2rem 1.25rem;
  }

  .estimator-btn-grid {
    grid-template-columns: 1fr;
  }
}



/* ==========================================================================
   AREVIS MASTERBRAND — HERO ECOSYSTEM, SERVIZI E PRODOTTI
   ========================================================================== */

/* Utility */
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Icon colors */
.bg-amber { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.bg-rose { background: rgba(244, 63, 94, 0.15); color: #FB7185; }
.bg-violet { background: rgba(139, 92, 246, 0.15); color: #A78BFA; }

/* Mobile drawer */
.mobile-drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #090D16;
  min-height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-drawer .container {
  padding-block: 1.25rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.8rem 0.5rem;
  border-radius: var(--radius-sm);
  color: #CBD5E1;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links a:hover {
  color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.06);
}

.mobile-drawer-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
}

.mobile-toggle {
  align-items: center;
  justify-content: center;
}

/* Hero ecosystem panel */
.hero-ecosystem {
  max-width: 1040px;
  margin-inline: auto;
  perspective: 1000px;
}

.ecosystem-window {
  background: #0B111E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(2, 132, 199, 0.15);
  overflow: hidden;
  text-align: left;
}

.ecosystem-body {
  padding: 1.75rem;
}

.ecosystem-intro {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.ecosystem-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-cyan);
}

.ecosystem-intro strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.ecosystem-tile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #131E33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.ecosystem-tile:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.ecosystem-tile svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-cyan);
}

.ecosystem-product-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.ecosystem-product-strip:hover {
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

.spotlight-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #0B111E;
  background: var(--color-cyan);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.ecosystem-product-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ecosystem-product-copy strong {
  color: #fff;
  font-size: 0.95rem;
}

.ecosystem-product-copy span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.ecosystem-arrow {
  color: var(--color-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Services */
.section-services {
  padding-block: 6rem;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: rgba(19, 29, 49, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cyan);
}

.service-link span {
  transition: transform var(--transition-fast);
}

.service-link:hover span {
  transform: translateX(4px);
}

.services-cta {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(90deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
}

.services-cta p {
  max-width: 760px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.services-cta strong {
  color: #fff;
}

/* Products */
.section-products {
  padding-block: 6rem;
  background: radial-gradient(circle at 50% 20%, rgba(30, 41, 59, 0.5) 0%, rgba(9, 13, 22, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(19, 29, 49, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.08);
}

.spotlight-info {
  min-width: 0;
}

.spotlight-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.spotlight-index {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.spotlight-sector {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
}

.spotlight-name {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.spotlight-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: #E2E8F0;
  margin-bottom: 0.9rem;
}

.spotlight-description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1.4rem;
}

.spotlight-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin-bottom: 1.75rem;
}

.spotlight-features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.85rem;
  color: #E2E8F0;
  line-height: 1.4;
}

.spotlight-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-emerald);
  font-weight: 700;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.spotlight-meta {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

.spotlight-visual {
  min-width: 0;
}

.spotlight-visual .mockup-kpi-grid {
  grid-template-columns: repeat(2, 1fr);
}

.spotlight-visual .mockup-dashboard-content {
  grid-template-columns: 1fr;
}

.spotlight-visual .mockup-live-feed {
  display: none;
}

.catalog-note {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-lg);
}

.catalog-note-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  color: var(--color-cyan);
}

.catalog-note-text {
  flex: 1;
}

.catalog-note-text strong {
  display: block;
  color: #fff;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.catalog-note-text p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Method, estimator and tech sections */
.section-method {
  padding-block: 1rem;
}

.section-method .eng-methodology-wrapper {
  margin-block: 0;
  padding-block: 5rem;
  border-bottom: none;
}

.section-estimator {
  padding-block: 1rem 5rem;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.4) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.section-estimator .eng-estimator-wrapper {
  margin-bottom: 0;
}

.section-why {
  padding-block: 6rem;
  background: radial-gradient(circle at 50% 20%, rgba(30, 41, 59, 0.5) 0%, rgba(9, 13, 22, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.why-statement {
  margin-top: 2.5rem;
  padding: 2.25rem 2rem;
  text-align: center;
  background: linear-gradient(90deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
}

.why-statement p {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.why-statement strong {
  color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 1.5rem;
  }

  .why-statement {
    padding: 1.75rem 1.25rem;
  }

  .why-statement .btn {
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .spotlight-visual .mockup-window {
    max-width: 640px;
    margin-inline: auto;
  }

  .services-cta,
  .catalog-note {
    flex-direction: column;
    text-align: center;
  }

  .services-cta .btn,
  .catalog-note .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .ecosystem-body {
    padding: 1.25rem;
  }

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

  .ecosystem-product-strip {
    flex-wrap: wrap;
  }

  .ecosystem-arrow {
    width: 100%;
  }

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

  .spotlight {
    padding: 1.5rem;
  }

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

  .spotlight-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .catalog-note {
    padding: 1.25rem;
  }
}

/* Anchor offset per header sticky */
section[id],
footer[id] {
  scroll-margin-top: 90px;
}

/* Fix header e announcement su schermi piccoli */
@media (max-width: 600px) {
  .announcement-bar {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
  }

  .announcement-close {
    right: 0.75rem;
    top: 0.5rem;
  }

  .logo-badge.badge-wide {
    display: none;
  }

  .nav-actions .btn-outline {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }
}

/* Header: passa al menu mobile prima che le voci si comprimano */
@media (max-width: 1250px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* ==========================================================================
   CONFRONTO PIANI / SCHEDE ERP
   ========================================================================== */
.plan-compare {
  margin-top: 4.5rem;
}

.compare-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.compare-table thead th {
  background: #0B111E;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
  width: 140px;
}

.compare-table tbody tr:hover td {
  background: rgba(56, 189, 248, 0.04);
  color: #E2E8F0;
}

.compare-table tbody tr.compare-group td {
  background: rgba(56, 189, 248, 0.08);
  color: var(--color-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.compare-table tbody tr.compare-group:hover td {
  background: rgba(56, 189, 248, 0.08);
}

.compare-table th:last-child,
.compare-table td:last-child {
  background: rgba(56, 189, 248, 0.03);
}

.compare-yes {
  color: var(--color-emerald) !important;
  font-weight: 700;
}

.compare-no {
  color: #475569 !important;
}

.compare-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-dim);
}

@media (max-width: 600px) {
  .compare-table th,
  .compare-table td {
    padding: 0.7rem 0.65rem;
    font-size: 0.8rem;
  }

  .compare-table th:not(:first-child),
  .compare-table td:not(:first-child) {
    width: 110px;
  }
}
