@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: #f8fafc; color: #0f172a; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 4px; }

/* ========== CSS VARIABLES ========== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --dark: #0f172a;
  --dark2: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 60px rgba(15,23,42,0.15);
}

/* ========== TYPOGRAPHY ========== */
h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ========== LAYOUT ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; height: 76px;
  display: flex; align-items: center;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 40px rgba(15,23,42,0.08);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: auto; height: auto; border-radius: 0;
  background: transparent; display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.nav-logo-icon:hover { transform: scale(1.1); }
.nav-logo-icon img { height: 44px; width: auto; }
.nav-logo-text { display: flex; align-items: baseline; gap: 0.35em; line-height: 1.1; white-space: nowrap; }
.nav-logo-text strong { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--dark); }
.nav-logo-text span { font-size: 0.72rem; font-weight: 400; color: var(--gray); }
.navbar:not(.scrolled) .nav-logo-text strong,
.navbar:not(.scrolled) .nav-logo-text span { color: rgba(255,255,255,0.9); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 500;
  color: var(--gray); transition: all 0.25s; position: relative;
}
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.75); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.navbar:not(.scrolled) .nav-links a:hover, .navbar:not(.scrolled) .nav-links a.active { color: white; background: rgba(255,255,255,0.15); }
.nav-cta {
  padding: 10px 22px; background: var(--primary); color: white !important;
  border-radius: 12px; font-weight: 600; font-size: 0.875rem;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.25s; box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.4) !important; }
.nav-cta svg { width: 16px; height: 16px; stroke: white; fill: none; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }
.navbar:not(.scrolled) .nav-toggle span { background: white; }
.mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 16px; border-radius: 12px; font-weight: 500; color: var(--gray); transition: all 0.2s; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); background: var(--primary-light); }
.mobile-menu .nav-cta { justify-content: center; margin-top: 8px; color: white !important; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.3s; border: none; font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-white { background: white; color: var(--dark); }
.btn-white:hover { background: #f1f5f9; transform: translateY(-2px); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #15803d; transform: translateY(-2px); }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: #b91c1c; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(3px); }
.btn-green svg, .btn-red svg { stroke: white; }

/* ========== BADGE ========== */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.25);
  font-size: 0.8rem; font-weight: 600; color: var(--primary); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse-dot 2s infinite; }
.badge-white { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: white; }
.badge-white .dot { background: white; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  
  background: linear-gradient(
    135deg,
    #0b1220 0%,   /* più scuro */
    #162f4d 50%,  /* più scuro */
    #0a3b5c 100%  /* più scuro */
  );

}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: url('./Immagini/imm-sfondo-home.jpg') center/cover no-repeat;
  opacity: 0.28; mix-blend-mode: luminosity;
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.hero-particles span {
  position: absolute; border-radius: 50%;
  background: rgba(37,99,235,0.15); animation: float-particle linear infinite;
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px; }
.hero h1 {
  color: var(--primary); /* blu */
}
.hero h1 em { 
  font-style: normal;  
}
.hero-white {
  color: white;
}
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.7); max-width: 580px; margin-bottom: 40px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }
.hero-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  animation: bounce-down 2s ease-in-out infinite;
}
.hero-scroll span { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }

/* Grid di icone tecnologia */
.hero-tech-icons {
  position: absolute;
  left: calc(50% + 320px);
  top: 52%;
  transform: translateY(-50%);
  display: grid; grid-template-columns: repeat(2, 80px); gap: 16px; z-index: 2;
  pointer-events: none;
}
.tech-icon-card {
  width: 80px; height: 80px; border-radius: 16px;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  animation: float-card ease-in-out infinite;
}
.tech-icon-card svg { width: 32px; height: 32px; stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 1.5; }

/* ========== STATS BAR ========== */
.stats-bar {
  background: white; border-radius: 20px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: 40px; margin: -48px auto 0; position: relative; z-index: 10;
  max-width: 960px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat-item { text-align: center; }
.stat-number { font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--primary); display: block; }
.stat-label { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }

/* ========== SECTION HEADER ========== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--gray); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ========== SERVICE CARDS ========== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: white; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 36px 30px; transition: all 0.4s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover { border-color: rgba(37,99,235,0.2); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; transition: all 0.4s;
}
.service-card:hover .service-icon { background: var(--primary); }
.service-icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 1.8; transition: stroke 0.4s; }
.service-card:hover .service-icon svg { stroke: white; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }

/* ========== WHY US ========== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-image { position: relative; border-radius: 20px; overflow: hidden; }
.why-image img { width: 100%; height: 420px; object-fit: cover; }
.why-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: white; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); animation: float-card 3s ease-in-out infinite;
}
.why-badge2 {
  position: absolute; top: -20px; right: -20px;
  background: white; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); animation: float-card 3s ease-in-out infinite; animation-delay: 1.5s;
}
.why-badge-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.why-badge-icon.blue { background: var(--primary-light); }
.why-badge-icon.green { background: #dcfce7; }
.why-badge-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 2; }
.why-badge-icon.green svg { stroke: var(--green); }
.why-badge-text strong { display: block; font-size: 0.85rem; font-weight: 600; }
.why-badge-text span { font-size: 0.75rem; color: var(--gray); }
.checklist { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.92rem; }
.check-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.check-icon svg { width: 13px; height: 13px; stroke: var(--primary); fill: none; stroke-width: 3; }

/* ========== BANNER CTA ========== */
.banner-cta {
  position: relative; background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  padding: 80px 24px; text-align: center; overflow: hidden;
}
.banner-cta::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1200&q=80') center/cover no-repeat;
  opacity: 0.08;
}
.banner-cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.banner-cta h2 { color: white; margin-bottom: 16px; }
.banner-cta p { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1.05rem; }

/* ========== PAGE HERO ========== */
.page-hero {
  position: relative; padding: 160px 24px 80px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1200&q=80') center/cover no-repeat;
  opacity: 0.12;
}
.page-hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.page-hero h1 { color: white; margin-bottom: 20px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ========== SERVICES PAGE ========== */
.service-detail-list { display: flex; flex-direction: column; gap: 32px; }
.service-detail {
  background: white; border-radius: 20px; border: 1px solid var(--border);
  padding: 40px; display: grid; grid-template-columns: 1fr 320px; gap: 48px;
  align-items: center; transition: box-shadow 0.4s;
}
.service-detail:hover { box-shadow: var(--shadow-lg); }
.service-detail.reverse { grid-template-columns: 320px 1fr; }
.service-detail.reverse .service-detail-image { order: -1; }
.service-detail-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-detail-icon svg {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
}

.service-detail svg {
  max-width: 32px;
  max-height: 32px;
}

.service-detail h3 { font-size: 1.35rem; margin-bottom: 14px; }
.service-detail p { color: var(--gray); margin-bottom: 20px; line-height: 1.75; }
.service-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-features li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.service-features li svg { width: 15px; height: 15px; stroke: var(--primary); fill: none; stroke-width: 2.5; flex-shrink: 0; }
.service-detail-image { border-radius: 14px; overflow: hidden; height: 220px; }
.service-detail-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.service-detail:hover .service-detail-image img { transform: scale(1.05); }

/* ========== CHI SIAMO ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.about-image { border-radius: 20px; overflow: hidden; height: 440px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.value-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 40px 32px; text-align: center; transition: all 0.4s; }
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.value-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.value-icon svg { width: 32px; height: 32px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.value-card h3 { margin-bottom: 12px; }
.value-card p { color: var(--gray); font-size: 0.92rem; line-height: 1.7; }

/* Timeline */
.timeline { position: relative; padding: 0; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { display: flex; gap: 32px; margin-bottom: 48px; padding-left: 0; position: relative; }
.timeline-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); border: 4px solid var(--light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; font-size: 0.7rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; position: relative; z-index: 1; }
.timeline-content { padding-top: 6px; }
.timeline-year { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline-content p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }
/* ========== BRANCHED TIMELINE ========== */
.branched-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.bt-branch {
  position: absolute;
  top: 50px;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.6s ease;
}

.bt-item.left .bt-branch {
  right: 0;
}

.bt-item.right .bt-branch {
  left: 0;
}

/* si anima quando il reveal diventa visible */
.bt-item.reveal-left.visible .bt-branch,
.bt-item.reveal-right.visible .bt-branch {
  width: 40px;
}

.bt-line {
  transform-origin: top;
  transform: scaleY(0);
}

.bt-line.reveal.visible {
  transform: scaleY(1);
  transition: transform 1s ease;
}



.bt-item {
  position: relative;
  width: 50%;
  padding: 30px 40px;
}

.bt-item.left {
  left: 0;
  text-align: right;
}

.bt-item.right {
  left: 50%;
  text-align: left;
}

.bt-dot {
  position: absolute;
  top: 30px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-item.left .bt-dot {
  right: -21px;
}

.bt-item.right .bt-dot {
  left: -21px;
}

.bt-content {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.bt-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.bt-content p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ========== CONTATTI ========== */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
.contact-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 28px 24px; text-align: center; transition: all 0.3s; }
.contact-card:hover { box-shadow: var(--shadow); border-color: rgba(37,99,235,0.2); transform: translateY(-3px); }
.contact-card-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.contact-card-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 2; }
.contact-card h4 { font-size: 0.95rem; margin-bottom: 10px; }
.contact-card p { color: var(--gray); font-size: 0.85rem; line-height: 1.6; }

.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; }
.form-card { background: white; border-radius: 20px; border: 1px solid var(--border); padding: 48px; }
.form-card h2 { margin-bottom: 8px; }
.form-card .subtitle { color: var(--gray); font-size: 0.9rem; margin-bottom: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.9rem; font-family: 'Inter', sans-serif; background: white;
  transition: border-color 0.25s, box-shadow 0.25s; color: var(--dark); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

.sidebar-cards { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: white; border-radius: 18px; border: 1px solid var(--border); padding: 28px; align-self: flex-start; }
.sidebar-card .sc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sc-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc-icon.green { background: #dcfce7; }
.sc-icon.red { background: #fee2e2; }
.sc-icon.blue { background: var(--primary-light); }
.sc-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 2; }
.sc-icon.green svg { stroke: var(--green); }
.sc-icon.red svg { stroke: var(--red); }
.sc-icon.blue svg { stroke: var(--primary); }
.sc-text strong { display: block; font-size: 0.95rem; }
.sc-text span { font-size: 0.78rem; color: var(--gray); }
.sidebar-card p { color: var(--gray); font-size: 0.88rem; margin-bottom: 18px; line-height: 1.65; }

/* ========== AREA CLIENTI ========== */
.deskero-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); padding: 160px 24px 100px; text-align: center; position: relative; overflow: hidden; }
.deskero-hero::before { content: ''; position: absolute; top: -40%; left: -20%; width: 80%; height: 150%; background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%); }
.deskero-hero::after { content: ''; position: absolute; bottom: -40%; right: -20%; width: 70%; height: 140%; background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%); }
.deskero-hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.deskero-hero h1 { color: white; margin-bottom: 20px; }
.deskero-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 48px; }
.deskero-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 44px; background: var(--primary); color: white;
  border-radius: 16px; font-weight: 700; font-size: 1.1rem; font-family: 'Inter', sans-serif;
  box-shadow: 0 20px 60px rgba(37,99,235,0.4); transition: all 0.3s; border: none; cursor: pointer;
}
.deskero-btn:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 28px 70px rgba(37,99,235,0.5); }
.deskero-btn svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 2; }
.deskero-note { margin-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.deskero-note a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.portal-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portal-feature { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 32px 28px; transition: all 0.3s; }
.portal-feature:hover { box-shadow: var(--shadow); border-color: rgba(37,99,235,0.2); transform: translateY(-3px); }
.portal-feature-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.portal-feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.portal-feature h3 { font-size: 1rem; margin-bottom: 10px; }
.portal-feature p { color: var(--gray); font-size: 0.875rem; line-height: 1.7; }

/* ========== STATS STRIP (dark) ========== */
.stats-strip { background: var(--primary); padding: 64px 24px; }
.stats-strip-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.strip-stat { text-align: center; }
.strip-stat-icon svg { width: 32px; height: 32px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 1.8; margin: 0 auto 12px; display: block; }
.strip-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700; color: white; display: block; }
.strip-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ========== FOOTER ========== */
footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 72px 24px 32px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 56px; margin-bottom: 56px; }
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand-logo-icon { width: auto; height: auto; border-radius: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.footer-brand-logo-icon img { height: 44px; width: auto; }
.footer-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.footer-brand-text strong,
.footer-brand-text span {
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  display: inline;
}
.footer-brand p { font-size: 0.875rem; opacity: 0.6; line-height: 1.75; max-width: 280px; }
footer h4 { font-family: 'Space Grotesk', sans-serif; color: white; font-size: 0.95rem; margin-bottom: 20px; }
footer ul li { margin-bottom: 12px; }
footer ul li a { font-size: 0.875rem; opacity: 0.6; transition: opacity 0.2s; }
footer ul li a:hover { opacity: 1; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; margin-bottom: 14px; opacity: 0.7; }
.footer-contact li svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.4; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.8rem; opacity: 0.8; transition: opacity 0.2s; }
.footer-bottom-links a:hover { opacity: 0.8; }
.footer-bottom-links a.credit {
  opacity: 0.95;
}


/* ========== PAGES VISIBILITY ========== */
.page { display: none; }
.page.active { display: block; }

/* ========== ANIMATIONS ========== */
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes bounce-down { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
@keyframes float-card { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes counter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.8s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ========== NOTIFICATION ========== */
.notification {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: white; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  transform: translateY(120px); opacity: 0; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 380px;
}
.notification.show { transform: translateY(0); opacity: 1; }
.notification-icon { width: 36px; height: 36px; border-radius: 10px; background: #dcfce7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notification-icon svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 2.5; }
.notification-text strong { display: block; font-size: 0.9rem; color: var(--dark); }
.notification-text span { font-size: 0.8rem; color: var(--gray); }

/* ========== BG LIGHT ========== */
.bg-light { background: #f1f5f9; }
.bg-white { background: white; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-features { grid-template-columns: repeat(2, 1fr); }
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-tech-icons { display: none; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { grid-template-columns: 1fr; }
  .service-detail.reverse .service-detail-image { order: 0; }
  .service-detail-image { height: 200px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1320px) {
  .hero-tech-icons {
    left: calc(50% + 260px);
    transform: translateY(-50%) scale(0.9);
  }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .portal-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; }
  .service-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 28px 20px; }
  .contact-cards { grid-template-columns: 1fr; }
  .stats-strip-grid { grid-template-columns: 1fr 1fr; }
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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