/* Temi delle sezioni: fondi profondi e accenti coordinati a Home e Academy. */
body[data-section-theme="blog"] {
  --section-color: #111a35;
  --section-rgb: 17, 26, 53;
  --section-mid: #202d4b;
  --section-accent: #344f80;
  --blue-dark: #0c1328;
  --blue-light: #adc0eb;
  --violet-light: #d9e2f6;
}

body[data-section-theme="guide"] {
  --section-color: #0e2238;
  --section-rgb: 14, 34, 56;
  --section-mid: #1c354c;
  --section-accent: #2b5a7c;
  --blue-dark: #0a192b;
  --blue-light: #a8cce3;
  --violet-light: #d6e8f3;
}

body[data-section-theme="esplora"] {
  --section-color: #0a1910;
  --section-rgb: 10, 25, 16;
  --section-mid: #172b20;
  --section-accent: #2a553b;
  --blue-dark: #07130c;
  --blue-light: #aacdb5;
  --violet-light: #d7e9dc;
}

body[data-section-theme="prodotti"] {
  --section-color: #101c34;
  --section-rgb: 16, 28, 52;
  --section-mid: #1e304b;
  --section-accent: #35547c;
  --blue-dark: #0b1427;
  --blue-light: #aac4e8;
  --violet-light: #d7e5f5;
}

body[data-section-theme="servizi"] {
  --section-color: #0f2632;
  --section-rgb: 15, 38, 50;
  --section-mid: #1e3a48;
  --section-accent: #326274;
  --blue-dark: #0a1b25;
  --blue-light: #aad0db;
  --violet-light: #d9edf2;

  /* Ricalcola gli alias locali con i colori ereditati dal tema di pagina. */
  --sv-ink: var(--dark);
  --sv-green: var(--blue);
  --sv-green-bright: var(--violet-light);
  --sv-navy: var(--dark-700);
}

body[data-section-theme="mentoring"] {
  --section-color: #0f222a;
  --section-rgb: 15, 34, 42;
  --section-mid: #22343b;
  --section-accent: #285563;
  --blue-dark: #0c1b22;
  --blue-light: #a2cfd9;
  --violet-light: #d1e9ed;
}

body[data-section-theme="academy"] {
  --section-color: #110f2a;
  --section-rgb: 17, 15, 42;
  --section-mid: #24223b;
  --section-accent: #41356d;
  --blue-dark: #0e0c22;
  --blue-light: #bcb0eb;
  --violet-light: #e0d9f6;
}

body[data-section-theme] {
  --blue: var(--section-color);
  --violet: var(--section-accent);
  --violet-dark: var(--blue-dark);
  --dark: var(--section-color);
  --dark-700: var(--section-mid);
  --gradient-primary: linear-gradient(135deg, var(--section-color) 0%, var(--section-accent) 100%);
  --gradient-hero: linear-gradient(135deg, var(--section-color) 0%, var(--section-mid) 50%, var(--section-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--section-color) 0%, var(--section-accent) 50%, var(--section-color) 100%);
  --gradient-text: linear-gradient(135deg, var(--section-color) 0%, var(--section-accent) 100%);
  --gradient-card: linear-gradient(145deg, rgba(var(--section-rgb), .05) 0%, rgba(var(--section-rgb), .02) 100%);
  --shadow-glow-blue: 0 0 20px rgba(var(--section-rgb), .3);
  --shadow-glow-violet: 0 0 20px rgba(var(--section-rgb), .3);
}

body[data-section-theme] .header {
  background: rgba(var(--section-rgb), .80);
}

body[data-section-theme] .header.scrolled {
  background: rgba(var(--section-rgb), .96);
}

body[data-section-theme] .mobile-nav {
  background: rgba(var(--section-rgb), .98);
}

body[data-section-theme] .footer {
  background: var(--section-color);
}

:where(body[data-section-theme]) .badge {
  background: rgba(var(--section-rgb), .08);
}

body[data-section-theme] .btn-primary:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(var(--section-rgb), .4);
}

body[data-section-theme] .cta-section::before {
  background: radial-gradient(circle, rgba(var(--section-rgb), .2) 0%, transparent 70%);
}

body[data-section-theme] .cta-section::after {
  background: radial-gradient(circle, rgba(var(--section-rgb), .15) 0%, transparent 70%);
}

body[data-section-theme="esplora"] .esplora-itinerario-meta {
  background: rgba(var(--section-rgb), .08);
}

body[data-section-theme="prodotti"] :is(.products-custom h2, .products-custom .agent-integration-copy, .agent-process-section .agent-story-title, .agent-process-section .agent-process p) {
  color: var(--dark);
}

body[data-section-theme="prodotti"] .products-practical-card,
body[data-section-theme="servizi"] .sv-practical-step {
  background: rgba(var(--section-rgb), .03);
  border-color: rgba(var(--section-rgb), .12);
}

body[data-section-theme="servizi"] .sv-service-icon {
  background: rgba(var(--section-rgb), .06);
}

body[data-section-theme="servizi"] .sv-service-card:hover {
  border-color: var(--blue-light);
}

body[data-section-theme="servizi"] .sv-process {
  background: var(--gradient-hero);
}

body[data-section-theme="servizi"] .sv-roadmap-marker {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 8px var(--section-mid);
}

body[data-section-theme="servizi"] .sv-roadmap::before {
  border-color: rgba(170, 208, 219, .42);
}

@media (max-width: 720px) {
  body[data-section-theme="servizi"] .sv-roadmap-marker {
    box-shadow: 0 0 0 6px var(--section-mid);
  }
}

/* Il percorso Academy segue la palette della sua pagina. */
body[data-section-theme="academy"] .academy-program {
  background: var(--gradient-hero);
}

body[data-section-theme="academy"] .academy-roadmap-marker {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 8px var(--section-mid);
}

body[data-section-theme="academy"] .academy-roadmap-step::before {
  border-color: rgba(188, 176, 235, .42);
}

@media (max-width: 720px) {
  body[data-section-theme="academy"] .academy-roadmap-marker {
    box-shadow: 0 0 0 6px var(--section-mid);
  }
}
