/* Fold — timeline provvisoria (motore continuo, v8). Prefisso tm- (tl- e' della pagina della
   fonte, fonti.css). Brutta ma usabile: il run 3 (interfaccia-timeline) la rifa. Mobile first,
   niente overflow orizzontale a 390 px: le schede scorrono dentro la loro fascia. */

.tm-schede {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter)) var(--sp-3);
  padding: 0 var(--gutter) var(--sp-1);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tm-schede::-webkit-scrollbar { display: none; }

.tm-scheda {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  color: var(--inchiostro-2);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.tm-scheda:hover { border-color: var(--muto); color: var(--inchiostro); }
.tm-scheda-attiva {
  background: var(--accento-tenue);
  border-color: var(--accento);
  color: var(--accento);
}
.tm-conta {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accento);
  color: var(--carta);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tm-testa-fonte { margin: var(--sp-2) 0 var(--sp-3); }
.tm-titolo-fonte { margin: 0; font-size: 1.5rem; line-height: 1.2; overflow-wrap: anywhere; }

.tm-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-3);
}
.tm-stato { margin: 0; font-family: var(--font-ui); font-size: 14px; }
.tm-letto { min-height: 44px; white-space: nowrap; }

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

.tm-riga {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) 0 var(--sp-4) 10px;
  border-top: 1px solid var(--linea);
  border-left: 3px solid transparent;
  margin-left: -10px;
  min-width: 0;
}
.tm-riga.tm-nuovo { border-left-color: var(--accento); }

.tm-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accento-tenue);
  color: var(--accento);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
}

.tm-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.tm-testa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 0;
  color: var(--muto);
  font-family: var(--font-ui);
  font-size: 13px;
}
.tm-testa .punto::before { content: "·"; }
.tm-fonte { color: var(--inchiostro-2); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tm-fonte:hover { text-decoration: underline; }
.tm-badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accento-tenue);
  color: var(--accento);
  font-size: 12px;
  font-weight: 600;
}

.tm-notizia { display: flex; gap: var(--sp-3); align-items: flex-start; min-width: 0; }
.tm-testo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-titolo {
  font-family: var(--font-testo);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--inchiostro);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.tm-titolo:hover { text-decoration: underline; }
.tm-testo .riga { color: var(--inchiostro-2); font-size: 0.98rem; line-height: 1.45; overflow-wrap: anywhere; }
.tm-miniatura {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-s);
  background: var(--carta-2);
}

.tm-anche-su { margin: 0; font-family: var(--font-ui); font-size: 13px; overflow-wrap: anywhere; }
.tm-meta { margin: 0; font-family: var(--font-ui); font-size: 13px; display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.tm-riga .ed-approf-zona { min-width: 0; overflow-wrap: anywhere; }
.tm-riga .ix-barra { max-width: 100%; }

.tm-piu-vecchie { text-align: center; margin: var(--sp-5) 0 0; }

@media (min-width: 720px) {
  .tm-schede { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .tm-miniatura { width: 96px; height: 96px; }
}
