/* =============================================
   NEXORA CLOUD - Foglio di stile principale
   nexoracloud.eu | M.C. Group Sardegna SRL
   ============================================= */

/* =============================================
   0. ICON SYSTEM
   ============================================= */

/* SVG icon helper - used as <svg class="icon"><use href="assets/icons.svg#icon-name"/></svg> */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Sizes */
.icon-sm  { width: 16px; height: 16px; }
.icon-md  { width: 20px; height: 20px; }
.icon-lg  { width: 24px; height: 24px; }
.icon-xl  { width: 28px; height: 28px; }
.icon-2xl { width: 32px; height: 32px; }

/* Logo SVG */
.logo__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Icon inside card icons */
.card__icon .icon,
.solution-card__icon .icon,
.feature-card__icon .icon,
.trust-badge__icon .icon,
.contact-info-icon .icon,
.footer__contact-icon .icon,
.dropdown__icon .icon {
  width: 100%;
  height: 100%;
  max-width: 24px;
  max-height: 24px;
}

/* Navigation dropdown icons */
.dropdown__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   1. VARIABILI CSS & RESET
   ============================================= */
:root {
  /* Colori principali */
  --navy:       #060d24;
  --navy-mid:   #0d1b3e;
  --navy-light: #142150;
  --electric:   #2563eb;
  --electric-hover: #1d4ed8;
  --azure:      #38bdf8;
  --cyan:       #06b6d4;
  --violet:     #7c3aed;
  --violet-light: #a78bfa;
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --gray-50:    #f1f5f9;
  --gray-100:   #e2e8f0;
  --gray-200:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-800:   #1e293b;

  /* Gradienti */
  --grad-hero:    linear-gradient(135deg, #060d24 0%, #0d1b3e 50%, #0f2460 100%);
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-card:    linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --grad-section: linear-gradient(180deg, #060d24 0%, #0a1535 100%);
  --grad-accent:  linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);

  /* Tipografia */
  --font-main: 'Plus Jakarta Sans', 'Manrope', 'Inter', sans-serif;

  /* Spacing */
  --section-py: 96px;
  --container:  1200px;

  /* Bordi & ombre */
  --border-glass: 1px solid rgba(255,255,255,0.08);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow:  0 0 40px rgba(37,99,235,0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transizioni */
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }
input, textarea, select { font-family: var(--font-main); }

/* =============================================
   2. UTILITY CLASSES
   ============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section--dark { background: var(--navy); }
.section--mid  { background: var(--navy-mid); }
.section--light { background: var(--navy-light); }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-azure { color: var(--azure); }
.text-gray  { color: var(--gray-400); }
.text-center { text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: var(--azure);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.badge--violet {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  color: var(--violet-light);
}

/* =============================================
   3. TIPOGRAFIA
   ============================================= */
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 12px;
}

h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* =============================================
   4. PULSANTI
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.5);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  border-color: var(--azure);
  color: var(--azure);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--azure);
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
}

.btn--ghost:hover { gap: 12px; }

.btn--ghost::after {
  content: '→';
  display: inline-block;
  transition: transform var(--transition);
}

.btn--ghost:hover::after { transform: translateX(4px); }

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* =============================================
   5. HEADER / NAVIGAZIONE
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
}

.header--scrolled {
  background: rgba(6,13,36,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-glass);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.logo__text span { color: var(--azure); }

/* Navigazione desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link:hover, .nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav__link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 240px;
  background: rgba(13,27,62,0.98);
  backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.nav__item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.dropdown__link:hover {
  color: var(--white);
  background: rgba(37,99,235,0.2);
}

.dropdown__icon {
  width: 32px;
  height: 32px;
  background: rgba(37,99,235,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* CTA Header */
.header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6,13,36,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px 24px 40px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__link {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border-bottom: var(--border-glass);
}

.mobile-menu__link:hover {
  color: var(--azure);
  background: rgba(37,99,235,0.1);
}

.mobile-menu__sub {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px 10px 32px;
  color: rgba(255,255,255,0.65);
}

.mobile-menu__cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =============================================
   6. FOOTER
   ============================================= */
.footer {
  background: #030818;
  border-top: var(--border-glass);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand p {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: var(--border-glass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: rgba(37,99,235,0.2);
  border-color: rgba(37,99,235,0.4);
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--azure); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.5;
}

.footer__contact-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  border-top: var(--border-glass);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  color: var(--gray-400);
  font-size: 13px;
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  color: var(--gray-400);
  font-size: 13px;
  transition: color var(--transition);
}

.footer__bottom-links a:hover { color: var(--azure); }

/* =============================================
   7. HERO SECTIONS
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: var(--grad-hero);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Glow orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: -100px;
  left: 10%;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: 30%;
  left: -50px;
  opacity: 0.2;
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: var(--azure);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--azure);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: var(--border-glass);
  flex-wrap: wrap;
}

.hero__stat-value {
  font-size: 32px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Page Hero (pagine interne) */
.page-hero {
  padding: 160px 0 80px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.page-hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.page-hero__orb--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: -50px;
  left: 5%;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: var(--azure);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.page-hero__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero__subtitle {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* =============================================
   8. CARD COMPONENTI
   ============================================= */
.card {
  background: var(--grad-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card__icon--blue   { background: rgba(37,99,235,0.2); }
.card__icon--cyan   { background: rgba(6,182,212,0.2); }
.card__icon--violet { background: rgba(124,58,237,0.2); }
.card__icon--azure  { background: rgba(56,189,248,0.15); }
.card__icon--green  { background: rgba(16,185,129,0.2); }
.card__icon--orange { background: rgba(249,115,22,0.2); }

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.7;
}

/* Solution Cards */
.solution-card {
  background: var(--grad-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.solution-card:hover {
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.15);
}

.solution-card:hover::before { opacity: 1; }

.solution-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.2);
}

.solution-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.solution-card p {
  color: var(--gray-400);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.solution-card__link {
  color: var(--azure);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.solution-card:hover .solution-card__link { gap: 10px; }

/* Feature Cards */
.feature-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--grad-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.05);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(37,99,235,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-card__body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card__body p {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.6;
}

/* =============================================
   9. GRIDS
   ============================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* =============================================
   10. DASHBOARD MOCKUP
   ============================================= */
.dashboard-mockup {
  background: rgba(13,27,62,0.8);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.dashboard-mockup__header {
  background: rgba(6,13,36,0.8);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: var(--border-glass);
}

.dashboard-mockup__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dashboard-mockup__dot:nth-child(1) { background: #ef4444; }
.dashboard-mockup__dot:nth-child(2) { background: #f59e0b; }
.dashboard-mockup__dot:nth-child(3) { background: #22c55e; }

.dashboard-mockup__title {
  margin-left: 8px;
  font-size: 13px;
  color: var(--gray-400);
}

.dashboard-mockup__body {
  padding: 24px;
}

/* Dashboard Widgets */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-stat {
  background: rgba(255,255,255,0.04);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.dash-stat__label {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.dash-stat__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.dash-stat__trend {
  font-size: 11px;
  color: #22c55e;
  margin-top: 4px;
}

.dash-chart {
  background: rgba(255,255,255,0.03);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px;
  height: 140px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
  padding-bottom: 4px;
}

.chart-bar {
  flex: 1;
  background: var(--grad-primary);
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  min-height: 20px;
  transition: opacity var(--transition);
}

.chart-bar:nth-child(even) { opacity: 0.4; }

.dash-table {
  background: rgba(255,255,255,0.03);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dash-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 10px 16px;
  font-size: 12px;
  border-bottom: var(--border-glass);
}

.dash-table__row:last-child { border-bottom: none; }
.dash-table__row--header {
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.dash-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
}

.dash-badge--green  { background: rgba(34,197,94,0.15); color: #22c55e; }
.dash-badge--blue   { background: rgba(37,99,235,0.15); color: var(--azure); }
.dash-badge--orange { background: rgba(249,115,22,0.15); color: #fb923c; }

/* =============================================
   11. PROCESS / STEPS
   ============================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.4), rgba(6,182,212,0.4), transparent);
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.process-step__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37,99,235,0.15);
  border: 2px solid rgba(37,99,235,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  background: var(--grad-primary);
  color: var(--white);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.6;
}

/* =============================================
   12. INTEGRAZIONI LOGOS
   ============================================= */
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.integration-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: var(--border-glass);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: all var(--transition);
}

.integration-pill:hover {
  border-color: rgba(37,99,235,0.3);
  color: var(--white);
  background: rgba(37,99,235,0.1);
}

.integration-pill__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* =============================================
   13. SICUREZZA / TRUST
   ============================================= */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.trust-badge:hover {
  border-color: rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.05);
}

.trust-badge__icon {
  width: 44px;
  height: 44px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.trust-badge__text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-badge__text p {
  font-size: 13px;
  color: var(--gray-400);
}

/* =============================================
   14. FORMS
   ============================================= */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.form-label .required { color: var(--azure); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 15px;
  padding: 14px 16px;
  transition: all var(--transition);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-600); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--electric);
  background: rgba(37,99,235,0.08);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-select option { background: var(--navy-mid); color: var(--white); }

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--electric);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-check span {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
}

.form-check a { color: var(--azure); }

.form-submit { margin-top: 8px; }

/* Form container */
.form-card {
  background: rgba(13,27,62,0.6);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(10px);
}

/* =============================================
   15. FAQ ACCORDION
   ============================================= */
.faq-item {
  border: var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  transition: all var(--transition);
}

.faq-item.open {
  border-color: rgba(37,99,235,0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.03);
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover { background: rgba(37,99,235,0.06); }

.faq-icon {
  width: 32px;
  height: 32px;
  background: rgba(37,99,235,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer__inner {
  padding: 0 24px 20px;
  color: var(--gray-400);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 400px; }

/* =============================================
   16. CTA SECTION
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, rgba(6,182,212,0.1) 100%);
  border-top: var(--border-glass);
  border-bottom: var(--border-glass);
  padding: var(--section-py) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* =============================================
   17. ANIMAZIONI SCROLL
   ============================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

.animate-fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   18. COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  background: rgba(13,27,62,0.97);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 9999;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-banner h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.cookie-btn--accept {
  background: var(--grad-primary);
  color: var(--white);
}

.cookie-btn--reject {
  background: rgba(255,255,255,0.08);
  color: var(--gray-400);
  border: var(--border-glass);
}

.cookie-btn--reject:hover { color: var(--white); }

/* =============================================
   19. MISC COMPONENTS
   ============================================= */

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 32px;
}

.form-success__icon {
  width: 80px;
  height: 80px;
  background: rgba(34,197,94,0.15);
  border: 2px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
}

.form-success h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.form-success p { color: var(--gray-400); font-size: 15px; }

/* Highlight List */
.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

.highlight-list__item::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 6px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}

.tab-btn.active {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.tab-btn:hover:not(.active) { color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Privacy / legal content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--azure);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
  color: var(--gray-400);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--gray-400);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul li { margin-bottom: 8px; }

.legal-content a { color: var(--azure); text-decoration: underline; }

.legal-content .date-update {
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 13px;
  color: var(--azure);
  margin-bottom: 40px;
  display: inline-block;
}

/* Contact Info Block */
.contact-info-card {
  background: var(--grad-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: var(--border-glass);
}

.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-item:first-child { padding-top: 0; }

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(37,99,235,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-body label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  display: block;
  margin-bottom: 4px;
}

.contact-info-body span {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
}

.contact-info-body a {
  color: var(--azure);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-info-body a:hover { color: var(--white); }

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border-glass);
  border: none;
  margin: 0;
}

/* =============================================
   20. RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-py: 64px; }
  .nav { display: none; }
  .header__cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col--reverse { direction: ltr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3.two-col-tablet { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero__stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --section-py: 52px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__bottom-links { justify-content: center; }
  .hero__stat-value { font-size: 24px; }
  .btn-group { flex-direction: column; width: 100%; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .tabs { gap: 2px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}

/* Portfolio mini-grid on homepage */
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 500px) {
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}