/* Persistenza ed evasione — editoriale EVIL */

.mt-page {
  --mt-amber: #f59e0b;
  --mt-rose: #fb7185;
  --mt-coral: #f97316;
  --mt-emerald: #34d399;
  --mt-serif: Georgia, "Palatino Linotype", serif;
  --mt-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --mt-glass: rgba(9, 14, 24, 0.82);
  --mt-border: rgba(255, 255, 255, 0.1);
}

.mt-page main {
  position: relative;
  z-index: 2;
}

.mt-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mt-scene__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 45% at 12% 18%, rgba(251, 113, 133, 0.09), transparent 55%),
    radial-gradient(ellipse 45% 40% at 88% 72%, rgba(249, 115, 22, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(245, 158, 11, 0.05), transparent 45%);
}

.mt-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem) 3rem;
}

.mt-hero {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px dashed var(--mt-border);
}

.mt-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--mt-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mt-amber);
}

.mt-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--mt-serif);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 400;
  color: #f8fafc;
  line-height: 1.2;
}

.mt-hero__lead {
  margin: 0 auto 1.25rem;
  max-width: 44em;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
}

.mt-hero__lead a {
  color: var(--mt-emerald);
}

.mt-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.mt-nav-links a {
  font-family: var(--mt-mono);
  font-size: 0.72rem;
  color: #fda4af;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 6px;
  transition: background 0.25s, border-color 0.25s;
}

.mt-nav-links a:hover {
  background: rgba(251, 113, 133, 0.1);
  border-color: var(--mt-rose);
}

.mt-callout {
  margin: 1.75rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--mt-rose);
  background: rgba(251, 113, 133, 0.08);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.mt-callout a {
  color: var(--mt-emerald);
}

.mt-callout strong {
  color: #fecdd3;
}

.mt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.mt-stat {
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: var(--mt-glass);
  border: 1px solid var(--mt-border);
  border-radius: 10px;
}

.mt-stat__val {
  display: block;
  font-family: var(--mt-serif);
  font-size: 1.5rem;
  color: #f8fafc;
}

.mt-stat__lbl {
  font-family: var(--mt-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c8aa0;
}

.mt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.mt-search {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--mt-border);
  border-radius: 8px;
  background: var(--mt-glass);
  color: #f1f5f9;
  font-size: 0.9rem;
}

.mt-search:focus {
  outline: none;
  border-color: rgba(251, 113, 133, 0.45);
  box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.12);
}

.mt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mt-filter-btn {
  font-family: var(--mt-mono);
  font-size: 0.68rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--mt-border);
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mt-filter-btn:hover {
  border-color: rgba(251, 113, 133, 0.4);
  color: #fecdd3;
}

.mt-filter-btn.is-active {
  background: rgba(251, 113, 133, 0.15);
  border-color: var(--mt-rose);
  color: #fecdd3;
}

.mt-section-title {
  font-family: var(--mt-serif);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 400;
  color: #f8fafc;
  margin: 2rem 0 1rem;
}

.mt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.15rem;
}

.mt-empty {
  text-align: center;
  color: #7c8aa0;
  padding: 2rem;
  grid-column: 1 / -1;
}

.mt-empty[hidden] {
  display: none;
}

.mt-card {
  background: var(--mt-glass);
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  transition: border-color 0.25s;
}

.mt-card:hover {
  border-color: rgba(251, 113, 133, 0.35);
}

.mt-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.mt-chip {
  font-family: var(--mt-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.mt-chip--persistence {
  background: rgba(251, 113, 133, 0.15);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.mt-chip--evasion {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.mt-mitre {
  font-family: var(--mt-mono);
  font-size: 0.72rem;
  color: var(--mt-amber);
}

.mt-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #f8fafc;
}

.mt-card__mitre-name {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #7c8aa0;
}

.mt-card__desc {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.mt-card__label {
  margin: 0.65rem 0 0.35rem;
  font-family: var(--mt-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mt-amber);
}

.mt-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mt-list li {
  position: relative;
  padding: 0.22rem 0 0.22rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
}

.mt-list--ioc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--mt-rose);
}

.mt-list--mit li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mt-emerald);
  font-size: 0.75rem;
}

.mt-compare {
  margin-top: 0.5rem;
  background: var(--mt-glass);
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  overflow: hidden;
}

.mt-compare-scroll {
  overflow-x: auto;
}

.mt-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.mt-compare thead {
  background: rgba(251, 113, 133, 0.08);
  border-bottom: 1px solid var(--mt-border);
}

.mt-compare th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--mt-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fda4af;
  white-space: nowrap;
}

.mt-compare td {
  padding: 0.7rem 1rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mt-compare tbody th {
  font-weight: 600;
  font-size: 0.84rem;
  text-transform: none;
  letter-spacing: 0;
  color: #f1f5f9;
}

.mt-table-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: #7c8aa0;
  margin-top: 0.15rem;
}

.mt-level {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.mt-level--low {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.mt-level--med {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
}

.mt-level--high {
  background: rgba(251, 113, 133, 0.15);
  color: #fda4af;
}

.mt-cta {
  margin: 2.5rem 0 1rem;
  text-align: center;
  padding: 1.75rem;
  border: 1px dashed var(--mt-border);
  border-radius: 12px;
}

.mt-cta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--mt-serif);
  font-size: 1.25rem;
  color: #f8fafc;
}

.mt-cta p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

.mt-cta a {
  color: var(--mt-emerald);
}

/* Introduzione e scheda del modulo */
.mt-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin-top: 1.5rem;
}

.mt-intro__text .mt-section-title {
  margin-top: 0.5rem;
}

.mt-intro__text p,
.mt-legend p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 68ch;
}

.mt-intro__text a,
.mt-legend a,
.mt-facts a {
  color: var(--mt-emerald);
}

.mt-intro__text strong,
.mt-legend strong {
  color: #f8fafc;
}

.mt-facts {
  padding: 1.15rem 1.25rem;
  background: var(--mt-glass);
  border: 1px solid var(--mt-border);
  border-top: 3px solid var(--mt-amber);
  border-radius: 10px;
}

.mt-facts__title {
  margin: 0 0 0.75rem;
  font-family: var(--mt-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mt-amber);
}

.mt-facts__list,
.mt-legend__list {
  margin: 0;
}

.mt-facts__list > div {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mt-facts__list dt,
.mt-legend__list dt {
  font-family: var(--mt-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c8aa0;
}

.mt-facts__list dd {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.mt-facts__subtitle {
  margin: 0.9rem 0 0.4rem;
  font-family: var(--mt-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c8aa0;
}

.mt-facts__goals {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.mt-facts__goals li + li {
  margin-top: 0.3rem;
}

/* Legenda dei valori */
.mt-legend {
  margin-top: 2.25rem;
}

.mt-legend__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mt-legend__list > div {
  padding: 0.85rem 1rem;
  background: var(--mt-glass);
  border: 1px solid var(--mt-border);
  border-radius: 10px;
}

.mt-legend__list dt {
  color: #fda4af;
}

.mt-legend__list dd {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #cbd5e1;
}

/* Rilevamento e livelli nella scheda */
.mt-card__label--det {
  color: #7dd3fc;
}

.mt-card__label--mit {
  color: var(--mt-emerald);
}

.mt-list--det li::before {
  content: '◉';
  position: absolute;
  left: 0;
  color: #7dd3fc;
  font-size: 0.65rem;
  top: 0.32rem;
}

.mt-card__levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mt-card__levels dt {
  font-family: var(--mt-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c8aa0;
}

.mt-card__levels dd {
  margin: 0.15rem 0 0;
}

.mt-compare td:last-child {
  min-width: 14rem;
}

.mt-compare tbody th {
  white-space: normal;
  min-width: 11rem;
  font-family: inherit;
}

@media (max-width: 860px) {
  .mt-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .mt-stats {
    grid-template-columns: 1fr;
  }
}
