/* Pagine di contenuto v3: Glossario e Percorsi di apprendimento.
   Riusano la scena e l'hero di site-policies.css; qui solo le parti specifiche. */

/* ---------------------------------------------------------------- Glossario */
.glossary-controls {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.glossary-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(10, 14, 22, 0.72);
}

.glossary-search svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #00ff9c;
  stroke-width: 2;
  stroke-linecap: round;
}

.glossary-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #f1f5f9;
  font: 1rem/1.4 ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
}

.glossary-count {
  font: 0.72rem/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
  color: #94a3b8;
  white-space: nowrap;
}

.glossary-index {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.glossary-index a {
  min-width: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font: 600 0.78rem ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.glossary-index a:hover,
.glossary-index a:focus-visible {
  background: rgba(0, 255, 156, 0.12);
  border-color: rgba(0, 255, 156, 0.4);
  color: #fff;
}

.glossary-index a[aria-disabled="true"] {
  opacity: 0.3;
  pointer-events: none;
}

.glossary-list {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.glossary-group {
  margin-bottom: 1.75rem;
}

.glossary-group__letter {
  font: 700 1.4rem/1 Georgia, "Palatino Linotype", serif;
  color: #00ff9c;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(0, 255, 156, 0.22);
}

.glossary-entry {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.glossary-entry:last-child {
  border-bottom: 0;
}

.glossary-term {
  margin: 0 0 0.3rem;
  font: 600 1.02rem ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.glossary-def {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #b6c2d2;
}

.glossary-empty {
  text-align: center;
  color: #94a3b8;
  padding: 2rem 0;
}

/* ---------------------------------------------------------------- Percorsi */
.paths-grid {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.path-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(12, 17, 27, 0.72);
  padding: 1.5rem 1.4rem;
  overflow: hidden;
  position: relative;
}

.path-card--cyan { --pc: #7dd3fc; }
.path-card--amber { --pc: #fbbf24; }
.path-card--green { --pc: #00ff9c; }

.path-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.path-card__num {
  font: 700 2.2rem/1 Georgia, serif;
  color: transparent;
  -webkit-text-stroke: 1px var(--pc);
}

.path-card__time {
  font: 600 0.68rem ui-monospace, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pc);
}

.path-card__level {
  font: 600 0.66rem ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.path-card h2 {
  font: 400 1.5rem Georgia, "Palatino Linotype", serif;
  margin: 0.5rem 0 0.4rem;
  color: #f8fafc;
}

.path-card__desc {
  color: #aab6c6;
  font-size: 0.9rem;
  margin: 0 0 1.1rem;
}

.path-steps {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.path-steps li {
  position: relative;
  padding-left: 2.4rem;
}

.path-steps li::before {
  content: attr(data-n);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.78rem ui-monospace, Consolas, monospace;
  color: #06120c;
  background: var(--pc);
}

.path-steps a {
  font-weight: 600;
  color: #e6edf5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.path-steps a:hover {
  color: var(--pc);
  border-color: var(--pc);
}

.path-steps small {
  display: block;
  color: #8290a1;
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.path-card__goal {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
  font-size: 0.82rem;
  color: #aab6c6;
}

.path-card__goal strong {
  color: var(--pc);
}

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

/* note a piè pagina sui contenuti */
.content-note {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
  font-size: 0.85rem;
  color: #aab6c6;
  text-align: center;
}
.content-note a { color: #00ff9c; text-decoration: none; }
.content-note a:hover { color: #fbbf24; }

.policy-note-small {
  font-size: 0.82rem !important;
  opacity: 0.8;
  margin-top: 1rem;
}
