/* 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: #64748b;
}

.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: #64748b;
  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: #64748b;
}

.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: #64748b;
  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);
}

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