/* ============================================================
   PcSafe.it — style.css  (Netivo-style · light & modern)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f9f9;
  --surface: #ffffff;
  --ink: #0c1f1f;
  --ink-soft: #162828;
  --muted: #5a6b6b;
  --muted-light: #8a9898;
  --line: #e6ecec;
  --primary: #0891b2;
  --primary-2: #0e7490;
  --primary-soft: #ecfdfd;
  --lime: #22d3ee;
  --lime-soft: #f0fdfa;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(12, 31, 31, 0.05), 0 4px 14px rgba(12, 31, 31, 0.05);
  --shadow-md: 0 10px 30px rgba(12, 31, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 31, 31, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { width: 1em; height: 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}
.tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(8, 145, 178, 0); }
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}
.text-accent { color: var(--primary); }

.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-desc { color: var(--muted); font-size: 1.05rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(8, 145, 178, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.btn-white {
  background: #fff;
  color: var(--primary-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26); }
.btn-block { width: 100%; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  background: rgba(255, 255, 255, 0);
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(12, 31, 31, 0.06);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo {
  height: 44px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: var(--shadow-sm);
}
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.is-active { color: var(--primary); }
.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 999px;
  margin-left: 10px;
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.28);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(8, 145, 178, 0.36); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--primary-soft);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(8, 145, 178, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f2f9f8 100%);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%);
}
.hero-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.6;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.blob-1 { width: 420px; height: 420px; top: -120px; right: -80px; background: rgba(34, 211, 238, 0.35); animation: floatA 12s ease-in-out infinite; }
.blob-2 { width: 320px; height: 320px; bottom: -80px; left: 8%; background: rgba(8, 145, 178, 0.18); animation: floatB 14s ease-in-out infinite; }
.blob-3 { width: 220px; height: 220px; top: 30%; right: 30%; background: rgba(8, 145, 178, 0.12); animation: floatC 10s ease-in-out infinite; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lime-soft);
  color: #0e7490;
  border: 1px solid rgba(34, 211, 238, 0.6);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 26px;
}
.chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-accent {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-accent.typing::after {
  content: "";
  display: inline-block;
  width: 3px; height: 0.9em;
  margin-left: 4px;
  background: var(--primary);
  vertical-align: -0.08em;
  animation: blink 0.9s step-end infinite;
}
.hero-accent.done::after {
  content: "";
  display: inline-block;
  width: 3px; height: 0.9em;
  margin-left: 4px;
  background: var(--primary);
  vertical-align: -0.08em;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero-proof { display: flex; align-items: center; gap: 16px; }
.proof-avatars { display: flex; }
.proof-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 3px solid #fff;
  margin-left: -10px;
}
.proof-avatar:first-child { margin-left: 0; }
.proof-avatar:nth-child(2) { background: linear-gradient(135deg, var(--lime), #0891b2); }
.proof-avatar:nth-child(3) { background: linear-gradient(135deg, #2c3e2f, #163022); }
.hero-proof p { font-size: 0.9rem; color: var(--muted); }
.hero-proof strong { color: var(--ink); }

/* ---- Dashboard mockup ---- */
.hero-dash { position: relative; }
.dash-window {
  background: #0d1a1a;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dashFloat 7s ease-in-out infinite;
}
@keyframes dashFloat {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50%      { transform: rotate(0.5deg) translateY(-10px); }
}
.dash-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.dash-dot { width: 11px; height: 11px; border-radius: 50%; }
.d-red { background: #ff5f57; }
.d-yellow { background: #febc2e; }
.d-green { background: #28c840; }
.dash-title {
  margin-left: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #9fb8a8;
  letter-spacing: 0.02em;
}
.dash-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  color: #5eead4;
  background: rgba(34, 211, 238, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22d3ee;
  animation: pulseDot 1.6s infinite;
}

.dash-body { display: flex; }
.dash-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.side-ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}
.side-ico.is-on {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 16px rgba(8, 145, 178, 0.5);
}

.dash-main { flex: 1; padding: 18px; display: grid; gap: 16px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.dash-kpi {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.dash-kpi-label {
  font-size: 0.62rem;
  color: #8fa89a;
  letter-spacing: 0.03em;
}
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(8, 145, 178, 0.2) 120%);
  transform-origin: bottom;
  animation: growBar 1.4s var(--ease) forwards;
  animation-delay: var(--bd, 0s);
}
.b1 { height: 40%; --bd: 0s; }
.b2 { height: 65%; --bd: 0.12s; }
.b3 { height: 50%; --bd: 0.24s; }
.b4 { height: 85%; --bd: 0.36s; }
.b5 { height: 62%; --bd: 0.48s; }
.b6 { height: 95%; --bd: 0.6s; }
.b7 { height: 74%; --bd: 0.72s; }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.dash-log {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  padding: 14px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  min-height: 150px;
}

/* ---- terminal lines ---- */
.term-line { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.term-line.is-visible { opacity: 1; transform: none; }
.t-prompt { color: var(--lime); }
.t-cmd { color: #e8f5ec; }
.t-output { color: #9fb8a8; }
.t-green { color: #22d3ee; font-weight: 500; }
.t-cursor { color: var(--lime); animation: blink 0.9s step-end infinite; }

.dash-float-card {
  position: absolute;
  bottom: -26px; left: -34px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.fc-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: var(--primary-soft);
}
.fc-icon svg { width: 22px; height: 22px; color: var(--primary); }
.dash-float-card strong { display: block; font-size: 0.9rem; color: var(--ink); }
.dash-float-card span:not(.fc-icon) { font-size: 0.75rem; color: var(--muted); }

/* ============================================================
   Partners strip
   ============================================================ */
.partners {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 34px 0;
  text-align: center;
}
.partners-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-light);
  margin-bottom: 22px;
  font-weight: 600;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 48px;
}
.partner {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--muted);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}
.partner:hover { opacity: 1; color: var(--primary); }

/* ============================================================
   Stats band
   ============================================================ */
.stats-band { background: var(--bg-soft); padding: 72px 0; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero-stats .hero-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--primary-soft);
  flex-shrink: 0;
}
.stat-ico svg { width: 26px; height: 26px; color: var(--primary); }
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.hero-stat-plus { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-left: 2px; }
.hero-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  opacity: 0;
  transform: translateY(24px);
}
.service-card.is-visible { opacity: 1; transform: none; }
.service-card.is-visible:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(8, 145, 178, 0.35); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 22px;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.28);
  transition: transform 0.35s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.service-tags li {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-2);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.service-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease);
}
.service-link:hover { gap: 12px; }

/* ============================================================
   Chi Sono
   ============================================================ */
.chi-sono { background: var(--bg-soft); }
.chi-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.chi-media { position: relative; }
.chi-photo-frame {
  position: relative;
  border-radius: 26px;
  padding: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  background: conic-gradient(from var(--ang, 0deg), var(--primary), var(--lime), var(--primary));
  animation: borderSpin 8s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
@property --ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes borderSpin { to { --ang: 360deg; } }
.chi-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 22px;
  transform: scale(1.06);
}
.chi-exp {
  position: absolute;
  right: -22px; bottom: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.4);
  animation: floatCard 6s ease-in-out infinite;
}
.chi-exp strong { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.chi-exp span { font-size: 0.8rem; opacity: 0.92; }

.chi-text .section-title { margin-bottom: 22px; }
.chi-desc { color: var(--muted); margin-bottom: 14px; font-size: 1.03rem; }
.chi-desc strong { color: var(--ink); }
.chi-points { margin: 24px 0 30px; display: grid; gap: 14px; }
.chi-points li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.chi-icon {
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-2);
  background: var(--lime-soft);
}

/* ============================================================
   Process
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process-grid .step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   Timeline / Carriera
   ============================================================ */
.carriera { background: #fff; }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 40px; }
.tl-line {
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 80px;
  background: linear-gradient(180deg, var(--primary), transparent);
  animation: slideGlow 3s ease-in-out infinite;
}
@keyframes slideGlow { 0% { top: 0; } 100% { top: calc(100% - 80px); } }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-dot {
  position: absolute;
  left: -40px; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.tl-content {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tl-item:hover .tl-content { transform: translateX(6px); box-shadow: var(--shadow-md); }
.tl-period {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 10px;
}
.tl-company { font-size: 1.12rem; font-weight: 700; }
.tl-location { font-size: 0.82rem; color: var(--muted-light); margin-bottom: 6px; font-weight: 500; }
.tl-role { color: var(--muted); font-size: 0.94rem; }

.formazione {
  max-width: 760px;
  margin: 8px auto 0;
  padding-left: 40px;
}
.formazione-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-light);
  margin-bottom: 14px;
}
.formazione-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--primary-soft);
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 16px;
  padding: 20px 26px;
}
.formazione-year {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0e7490;
}
.formazione-card strong { display: block; font-size: 1.05rem; }
.formazione-card p { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonianze { background: var(--bg-soft); }
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.test-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.35s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.test-card.is-visible { opacity: 1; transform: none; }
.test-card.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.test-stars { color: var(--lime); font-size: 1.05rem; letter-spacing: 3px; margin-bottom: 16px; }
.test-card blockquote {
  color: var(--muted);
  font-size: 0.98rem;
  font-style: italic;
  flex: 1;
  margin-bottom: 22px;
}
.test-author { display: flex; align-items: center; gap: 14px; }
.test-avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.test-author strong { display: block; font-size: 0.98rem; }
.test-author a { font-size: 0.82rem; color: var(--primary); }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(34, 211, 238, 0.35), transparent 60%),
    radial-gradient(500px 300px at 0% 120%, rgba(8, 145, 178, 0.4), transparent 60%),
    linear-gradient(135deg, #0b2e2c 0%, #0891b2 100%);
  padding: 84px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.15; }
.cta-text h2 span { color: var(--lime); }
.cta-text p { color: rgba(255, 255, 255, 0.85); margin-top: 12px; font-size: 1.05rem; }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.cta-phone svg { width: 20px; height: 20px; color: var(--lime); }
.cta-phone:hover { color: var(--lime); }

/* ============================================================
   Contact
   ============================================================ */
.contatti { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-desc { color: var(--muted); margin-bottom: 30px; font-size: 1.05rem; }
.info-items { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--primary-soft);
  flex-shrink: 0;
}
.info-icon svg { width: 24px; height: 24px; color: var(--primary); }
.info-item strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.info-item p, .info-item a { color: var(--muted); }
.info-item a:hover { color: var(--primary); }

.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--primary-soft);
  border: 1px solid rgba(34, 211, 238, 0.6);
  border-radius: 12px;
  font-weight: 600;
  color: #0e7490;
}
.form-success.is-error {
  background: #fdecec;
  border-color: rgba(217, 48, 37, 0.4);
  color: #b3261e;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #0b2020; color: #cfe0e0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 24px 50px;
}
.footer-logo {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.95rem; color: #8fb0b0; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  color: #8fb0b0;
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--lime); }
.social-link { display: flex; align-items: center; gap: 10px; }
.social-link svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 0.85rem;
  color: #6f8f8f;
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  will-change: transform, opacity;
}
.reveal { transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left { transform: translateX(-40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right { transform: translateX(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-scale { transform: scale(0.92); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible, .reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-dash { max-width: 560px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .chi-grid { grid-template-columns: 1fr; gap: 48px; }
  .chi-media { max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 30px;
    gap: 8px;
    box-shadow: -20px 0 60px rgba(12, 31, 21, 0.18);
    transition: right 0.4s var(--ease);
    z-index: 101;
  }
  .nav-menu.is-open { right: 0; }
  .nav-link { width: 100%; font-size: 1.05rem; }
  .nav-cta { margin-left: 0; margin-top: 10px; justify-content: center; }
  .nav-toggle { display: flex; z-index: 102; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .chi-exp { right: 8px; bottom: 14px; padding: 14px 18px; }
  .dash-float-card { left: 8px; bottom: -20px; }
  .timeline, .formazione { padding-left: 30px; }
  .tl-dot { left: -30px; }
  .hero { padding-top: 130px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
  .term-line { opacity: 1; transform: none; }
}
