:root {
  --bg-page: #f4f5fb;
  --bg-card: #ffffff;
  --accent: #1a73e8;
  --accent-soft: #e3f2fd;
  --accent-strong: #0f5fd4;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --tag-bg: #eef2ff;
  --radius-card: 14px;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
  --transition-fast: 0.18s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(
    circle at top left,
    #e0edff 0,
    #f4f5fb 45%,
    #fdfdfd 100%
  );
  color: var(--text-main);
}

.wrap-categoria {
  max-width: 1000px;
  margin: 2.5rem auto;
  padding: 0 1rem 3rem;
}

.card-categoria {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 2.4rem 2.3rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Header categoria */

.categoria-header h1 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 2rem;
  margin: 0 0 0.3rem;
}

.categoria-icona {
  font-size: 2rem;
}

.categoria-header .lead {
  margin-top: 0.25rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Sezioni */

.lista-servizi {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--border-soft);
}

.lista-servizi h2 {
  font-size: 1.2rem;
  margin: 0 0 0.8rem;
}

.lista-servizi.sezione-evidenza h2 {
  font-weight: 600;
}

.lista-servizi.sezione-tutti h2 {
  font-weight: 500;
}

.empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Liste servizi */

.servizi-elenco {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.servizi-elenco li a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: background-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast),
    color var(--transition-fast);
}

/* Evidenza leggermente più “card-like” */

.servizi-evidenza li a {
  background: linear-gradient(135deg, #f9fafb 0, #eef2ff 100%);
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.servizi-tutti li a {
  background: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Hover effetti */

.servizi-elenco li a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  background: #eef2ff;
  color: var(--accent-strong);
}

/* Icona e testo */

.servizio-icona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #e5edff;
  flex-shrink: 0;
}

.servizio-icona .material-symbols-outlined {
  font-size: 1.2rem;
}

.servizio-testo {
  font-size: 0.96rem;
}

/* Responsive */

@media (max-width: 640px) {
  .card-categoria {
    padding: 1.8rem 1.5rem;
  }

  .categoria-header h1 {
    font-size: 1.6rem;
  }
}
