/* =====================================================
   AREA INFORMATICA — Stylesheet
   Palette: #09080d · oro #c89b3c · verde #00e676
   Font: Space Grotesk + Inter
   ===================================================== */

/* --- CUSTOM PROPERTIES --- */
:root {
  --bg-primary:      #09080d;
  --bg-secondary:    #0e0c16;
  --bg-card:         #141220;
  --bg-card-alt:     #110f1c;
  --accent-cyan:     #c89b3c;   /* gold come colore primario */
  --accent-gold:     #f0c060;   /* gold brillante per enfasi */
  --accent-green:    #00e676;
  --accent-red:      #ff5f57;
  --text-primary:    #ede8df;
  --text-muted:      #857d6e;
  --text-dim:        #3d3730;
  --border:          rgba(200, 155, 60, 0.13);
  --border-strong:   rgba(200, 155, 60, 0.3);
  --font-heading:    'Space Grotesk', sans-serif;
  --font-body:       'Inter', sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --radius:          12px;
  --radius-lg:       20px;
  --transition:      0.3s ease;
  --shadow-card:     0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow:     0 0 40px rgba(200, 155, 60, 0.1);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #fff; }

img { max-width: 100%; display: block; }
ul  { list-style: none; }

/* --- UTILITY --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.section    { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.text-cyan  { color: var(--accent-cyan); }
.text-gold  { color: var(--accent-gold); }
.text-thin  { font-weight: 300; }

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  margin-bottom: 20px;
}
.badge-gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* large editorial title used across sections */
.section-title-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}

/* legacy */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 56px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent-cyan);
  color: #07090f;
}
.btn-primary:hover {
  background: #fff;
  color: #07090f;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 155, 60, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(7, 9, 15, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}
.logo:hover { color: var(--text-primary); }
.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #c89b3c, #8b6914);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #07090f;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

/* =====================================================
   HERO — split layout
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 60px;
}
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 155, 60, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 155, 60, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: pulse-glow 5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* hero split layout */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-eyebrow-line {
  width: 36px;
  height: 2px;
  background: var(--accent-cyan);
}
.hero-eyebrow span {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-title-thin {
  font-weight: 300;
  opacity: 0.75;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #c89b3c 0%, #f0c060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-claim {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  border-left: 2px solid var(--accent-cyan);
  padding-left: 16px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.stat-item {}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce-y 2.4s ease-in-out infinite;
}
.scroll-hint svg { opacity: 0.4; }
@keyframes bounce-y {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* --- STATUS PANEL (decorativo) --- */
.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.sp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.3);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.sp-dots { display: flex; gap: 6px; }
.sp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.sp-red    { background: #ff5f57; }
.sp-yellow { background: #febc2e; }
.sp-green  { background: #28c840; }
.sp-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.sp-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sp-row:last-child { border-bottom: none; }
.sp-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.sp-val {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sp-ok   { color: var(--accent-green); }
.sp-cyan { color: var(--accent-cyan); }

.sp-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.sp-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.sp-footer {
  padding: 10px 20px;
  background: rgba(0,212,255,0.04);
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-align: center;
}

/* =====================================================
   TICKER STRIP
   ===================================================== */
.ticker-wrap {
  overflow: hidden;
  background: rgba(200, 155, 60, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 36s linear infinite;
}
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 24px;
  transition: color var(--transition);
}
.ticker-item:hover { color: var(--accent-cyan); }

.ticker-sep {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* =====================================================
   SERVICES — layout a righe
   ===================================================== */
.services { background: var(--bg-secondary); }

.services-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.services-intro-label { padding-top: 6px; }

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.service-row::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-cyan);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-row:hover::before { opacity: 1; }
.service-row:hover { padding-left: 8px; }
.service-row:first-child { border-top: 1px solid var(--border); }

.service-row-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(200, 155, 60, 0.06);
  border: 1px solid rgba(200, 155, 60, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: all var(--transition);
}
.service-row:hover .service-row-icon {
  background: rgba(200, 155, 60, 0.12);
  border-color: rgba(200, 155, 60, 0.3);
  transform: scale(1.05);
}

.service-row-main h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  transition: color var(--transition);
}
.service-row:hover .service-row-main h3 { color: var(--accent-cyan); }
.service-row-main p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 580px;
}

.service-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 180px;
}

.tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(200, 155, 60, 0.06);
  color: var(--accent-cyan);
  border: 1px solid rgba(200, 155, 60, 0.18);
  white-space: nowrap;
}

/* =====================================================
   COME LAVORIAMO — numeri editoriali
   ===================================================== */
.how-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.3;
}

.how-header {
  margin-bottom: 72px;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.how-step {
  padding: 48px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
}
.how-step:hover {
  background: rgba(200, 155, 60, 0.02);
}
.how-step:nth-child(2n) {
  border-right: none;
}
.how-step:nth-child(3),
.how-step:nth-child(4) {
  border-bottom: none;
}

.how-step-alt {
  background: rgba(200, 155, 60, 0.02);
}

.how-num {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 155, 60, 0.2);
  margin-bottom: 20px;
  transition: -webkit-text-stroke-color var(--transition);
}
.how-step:hover .how-num {
  -webkit-text-stroke-color: rgba(200, 155, 60, 0.5);
}

.how-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.how-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* =====================================================
   STUDI MEDICI
   ===================================================== */
.medical {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.medical::after {
  content: '';
  position: absolute;
  top: 0; right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.medical-label { margin-bottom: 8px; }

.medical-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 72px;
}
.medical-intro-p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding-top: 12px;
  border-left: 2px solid rgba(200, 155, 60, 0.3);
  padding-left: 20px;
}

.medical-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}

.mf-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 36px;
  background: var(--bg-secondary);
  transition: background var(--transition);
}
.mf-item:hover {
  background: var(--bg-card);
}

.mf-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(200, 155, 60, 0.07);
  border: 1px solid rgba(200, 155, 60, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.mf-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.mf-text p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.medical-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}
.medical-cta-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =====================================================
   AI SECTION — terminal aesthetic
   ===================================================== */
.ai-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.ai-section::before {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.ai-intro {
  margin-bottom: 56px;
}
.ai-intro-p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
  margin-top: 12px;
}

/* Terminal block */
.terminal-block {
  background: #0a0f0a;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 64px;
  box-shadow: 0 0 60px rgba(0, 230, 118, 0.05), var(--shadow-card);
  font-family: var(--font-mono);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.5);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 230, 118, 0.15);
}
.term-dots { display: flex; gap: 6px; }
.term-title {
  font-size: 0.72rem;
  color: rgba(0, 230, 118, 0.5);
  letter-spacing: 0.5px;
}

.term-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.term-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.term-comment {
  font-size: 0.8rem;
  color: rgba(0, 230, 118, 0.3);
  font-style: italic;
}
.term-comment::before { content: ''; }

.term-cmd {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.term-prompt {
  color: var(--accent-gold);
  font-weight: 700;
  margin-right: 8px;
  user-select: none;
}

.term-out {
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 6px;
  margin-top: 2px;
}
.term-ok {
  color: #00e676;
  background: rgba(0, 230, 118, 0.06);
  border-left: 2px solid rgba(0, 230, 118, 0.4);
}

.term-blink-line {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: -16px;
}
.term-cursor {
  color: var(--accent-gold);
  animation: cursor-blink 1.1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* AI CTA row */
.ai-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(240,165,0,0.05));
  border: 1px solid rgba(200, 155, 60, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
}
.ai-cta-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.ai-cta-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 500px;
}

/* =====================================================
   PERCHÉ NOI
   ===================================================== */
.why-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.3;
}

.why-header { margin-bottom: 64px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
.why-grid::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 33.333%;
  width: 1px;
  background: var(--border);
}
.why-grid::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 66.666%;
  width: 1px;
  background: var(--border);
}

.why-item {
  padding: 0 32px;
}
.why-item:first-child { padding-left: 0; }
.why-item:last-child  { padding-right: 0; }

.why-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-gold);
  margin-bottom: 20px;
  opacity: 0.6;
}

.why-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.why-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* =====================================================
   CHI SIAMO — editoriale
   ===================================================== */
.about-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.about-label { margin-bottom: 8px; }

.about-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  border-left: 4px solid var(--accent-cyan);
  padding: 20px 0 20px 36px;
  margin-bottom: 72px;
  max-width: 820px;
  opacity: 0.9;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {}
.about-p-lead {
  font-size: 1.08rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p:last-of-type { margin-bottom: 36px; }

.about-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.about-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c89b3c, #8b6914);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #07090f;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.about-sig-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.about-sig-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Timeline (about) */
.about-right {}
.about-timeline {
  margin-bottom: 36px;
}
.tl-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 42px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-item:last-child { padding-bottom: 0; }

.tl-year {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  width: 44px;
  flex-shrink: 0;
  padding-top: 4px;
  position: relative;
}
.tl-year::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-cyan);
}

.tl-content { padding-left: 12px; }
.tl-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.tl-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Certifications */
.about-certs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cert-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}
.cert-row:hover {
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.04);
}
.cert-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(200, 155, 60, 0.07);
  border: 1px solid rgba(200, 155, 60, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* =====================================================
   CONTACTS
   ===================================================== */
.contact {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.contact-top {
  margin-bottom: 64px;
}
.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-phone-cta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding: 16px 20px;
  background: rgba(200, 155, 60, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.contact-phone-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-left: auto;
}
.contact-phone-num:hover { color: #fff; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(200, 155, 60, 0.07);
  border: 1px solid rgba(200, 155, 60, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.contact-row-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-row-value {
  font-weight: 600;
  font-size: 0.9rem;
}
.contact-row-value a {
  color: var(--text-primary);
}
.contact-row-value a:hover {
  color: var(--accent-cyan);
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.08);
}
.form-group textarea {
  min-height: 128px;
  resize: vertical;
}
.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-bottom: 0;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

#form-message {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}
#form-message.success {
  display: block;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-green);
}
#form-message.error {
  display: block;
  background: rgba(255, 95, 87, 0.08);
  border: 1px solid rgba(255, 95, 87, 0.3);
  color: #ff5f57;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #050710;
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 16px;
}
.footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-phone svg { color: var(--accent-cyan); flex-shrink: 0; }
.footer-phone a { color: var(--accent-cyan); font-weight: 600; }
.footer-phone a:hover { color: #fff; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--accent-cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.footer-links a:hover { color: var(--accent-cyan); }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent-cyan);
  color: #07090f;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  border: none;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover {
  background: #fff;
  transform: translateY(-3px);
}

/* =====================================================
   ANIMATE ON SCROLL
   ===================================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-left"] {
  transform: translateX(-28px);
}
[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}
[data-aos="fade-right"] {
  transform: translateX(28px);
}
[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}
[data-aos="zoom-in"] {
  transform: scale(0.9);
}
[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* =====================================================
   RESPONSIVE — 1024px
   ===================================================== */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-panel { display: none; }

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

  .medical-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .medical-features {
    grid-template-columns: 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }
  .how-step { border-right: none; }
  .how-step:nth-child(3),
  .how-step:nth-child(4) { border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }

  .about-body {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .ai-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 36px 32px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .why-grid::before,
  .why-grid::after { display: none; }
  .why-item {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
  }
  .why-item:last-child { border-bottom: none; }
}

/* =====================================================
   RESPONSIVE — 768px
   ===================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.3rem; }
  .hamburger { display: flex; z-index: 1000; }

  .hero { padding-top: 80px; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats { gap: 20px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .ticker-track { animation-duration: 22s; }

  .services-intro { margin-bottom: 36px; }

  .service-row {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
  .service-row-tags { display: none; }
  .service-row:hover { padding-left: 0; }

  .how-step { padding: 32px 0; }
  .how-num { font-size: 3.5rem; }

  .about-quote { font-size: 1.3rem; padding-left: 20px; }

  .contact-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .medical-cta { flex-direction: column; align-items: flex-start; }

  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
}

/* =====================================================
   RESPONSIVE — 480px
   ===================================================== */
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title-xl { font-size: 1.9rem; }
  .section-title { font-size: 1.7rem; }
  .about-quote { font-size: 1.1rem; }
  .ai-cta-row { padding: 28px 20px; }
  .ai-cta-text h3 { font-size: 1.2rem; }
}

/* =====================================================
   BTN VITALI — Assistenza remota + Ticket (pulsano)
   ===================================================== */
@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.55); }
  60%  { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0   rgba(0, 230, 118, 0); }
}
@keyframes pulse-gold {
  0%   { box-shadow: 0 0 0 0 rgba(200, 155, 60, 0.55); }
  60%  { box-shadow: 0 0 0 10px rgba(200, 155, 60, 0); }
  100% { box-shadow: 0 0 0 0   rgba(200, 155, 60, 0); }
}

.btn-vital {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.btn-vital-green {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.4);
  animation: pulse-green 2.2s ease-out infinite;
}
.btn-vital-green:hover {
  background: rgba(0, 230, 118, 0.2);
  border-color: var(--accent-green);
  color: #fff;
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 8px 28px rgba(0, 230, 118, 0.25);
}

.btn-vital-gold {
  background: rgba(200, 155, 60, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(200, 155, 60, 0.4);
  animation: pulse-gold 2.6s ease-out infinite;
  animation-delay: 0.6s;
}
.btn-vital-gold:hover {
  background: rgba(200, 155, 60, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 8px 28px rgba(200, 155, 60, 0.25);
}

/* =====================================================
   CONTACT QUICK ACTIONS — LiveCare + Ticket
   ===================================================== */
.contact-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.cqa-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all var(--transition);
}
.cqa-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-alt);
  color: var(--text-primary);
  transform: translateX(4px);
}
.cqa-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-cyan);
}
.cqa-label {
  font-weight: 600;
  font-size: 0.9rem;
}
.cqa-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.cqa-arrow {
  margin-left: auto;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.cqa-btn:hover .cqa-arrow {
  transform: translateX(4px);
  color: var(--accent-cyan);
}

/* --- NAVBAR phone link --- */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav-phone:hover { color: var(--accent-cyan); }

/* --- CQA varianti colore + pulse --- */
.cqa-green {
  border-color: rgba(0, 230, 118, 0.25);
  animation: pulse-green 2.4s ease-out infinite;
}
.cqa-green:hover {
  border-color: rgba(0, 230, 118, 0.5);
  animation: none;
}
.cqa-green .cqa-label { color: var(--accent-green); }
.cqa-icon-green {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.2);
  color: var(--accent-green);
}

.cqa-gold {
  border-color: rgba(200, 155, 60, 0.25);
  animation: pulse-gold 2.8s ease-out infinite;
  animation-delay: 0.8s;
}
.cqa-gold:hover {
  border-color: rgba(200, 155, 60, 0.5);
  animation: none;
}
.cqa-gold .cqa-label { color: var(--accent-gold); }
.cqa-icon-gold {
  background: rgba(200, 155, 60, 0.08);
  border-color: rgba(200, 155, 60, 0.2);
  color: var(--accent-gold);
}

/* --- HERO phone link --- */
.hero-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.hero-tel:hover { color: var(--text-primary); }
.hero-tel svg { opacity: 0.6; flex-shrink: 0; }

/* --- AI INTRO con logo EchoAI --- */
.ai-intro-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.ai-intro-text { max-width: 680px; }
.ai-intro-logo {
  flex-shrink: 0;
}
.echoai-logo {
  width: 480px;
  height: 480px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 155, 60, 0.2);
  background: rgba(200, 155, 60, 0.04);
  padding: 12px;
  filter: drop-shadow(0 0 24px rgba(200, 155, 60, 0.15));
  transition: filter var(--transition), transform var(--transition);
}
.echoai-logo:hover {
  filter: drop-shadow(0 0 36px rgba(200, 155, 60, 0.3));
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .ai-intro-inner { grid-template-columns: 1fr; }
  .ai-intro-logo { display: flex; justify-content: center; }
  .echoai-logo { width: 260px; height: 260px; }
}

/* --- GOOGLE MAPS --- */
.maps-wrap {
  margin-top: 56px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.maps-wrap iframe {
  display: block;
  filter: grayscale(1) invert(0.9) hue-rotate(175deg) brightness(0.85) contrast(0.9);
}
.maps-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(9,8,13,0.95) 0%, rgba(9,8,13,0.5) 60%, transparent 100%);
  padding: 24px 28px;
}
.maps-info {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
}
.maps-info svg { flex-shrink: 0; color: var(--accent-cyan); }
.maps-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.maps-addr {
  font-size: 0.82rem;
  margin-top: 2px;
}
.maps-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(200, 155, 60, 0.1);
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: 8px;
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
}
.maps-btn:hover {
  background: rgba(200, 155, 60, 0.2);
  color: #fff;
}
@media (max-width: 600px) {
  .maps-info { flex-wrap: wrap; }
  .maps-btn { margin-left: 0; }
}
