/* ============================================================
   Study&SocialHUB · IL TEAM (carosello di schede) — benvenuto e Il progetto
   ============================================================ */
.tc-pista { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px; outline: none; }
.tc-pista::-webkit-scrollbar { display: none; }
.tc-pista:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--marchio, #a3182a) 25%, transparent); border-radius: 16px; }
.tc-persona { position: relative; flex: 0 0 calc((100% - 20px) / 2); scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; align-items: stretch; padding: 26px 26px 22px; border-radius: 16px; background: #fff; border: 1px solid #f1e7e5; box-shadow: 0 10px 30px -22px rgba(90, 20, 30, 0.35); }
.tc-attesa { flex: 0 0 calc((100% - 20px) / 2); min-height: 210px; border-radius: 16px; background: linear-gradient(90deg, #f6efed 0%, #fbf8f7 50%, #f6efed 100%); background-size: 200% 100%; animation: tc-luccica 1.4s linear infinite; }
@keyframes tc-luccica { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.tc-foto { flex-shrink: 0; width: 88px; height: 88px; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f6e8ea; font: 500 26px 'Plus Jakarta Sans', sans-serif; letter-spacing: 0.04em; color: #8c6b70; }
.tc-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tc-testa { display: flex; align-items: center; gap: 18px; min-width: 0; }
.tc-testa h3 { margin: 0; min-width: 0; font: 800 19px/1.3 'Plus Jakarta Sans', sans-serif; color: #13213f; overflow-wrap: anywhere; }
.tc-badge { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.tc-badge.admin { color: #b4182e; background: #fde4e7; }
.tc-badge.studio { color: #2b5fc4; background: #e3edfd; }
.tc-badge.cultura { color: #1f7a43; background: #def3e5; }
.tc-badge.ripasso { color: #6b3fb0; background: #efe7fb; }
.tc-badge.qualita { color: #0f6e74; background: #dff3f4; }
.tc-desc { flex: 1; margin: 0; font-size: 16px; line-height: 1.6; color: #4b5568; white-space: pre-line; overflow-wrap: anywhere; }
.tc-contatto { align-self: flex-start; max-width: 100%; display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 16px; font-weight: 700; color: var(--marchio, #a3122a); text-decoration: none; }
.tc-contatto:hover { text-decoration: underline; text-underline-offset: 3px; }
.tc-in { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--marchio, #a3122a); }
.tc-in svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tc-contatto > svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.tc-contatto:hover > svg { transform: translateX(3px); }
.tc-frecce { display: flex; gap: 10px; }
.tc-freccia { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid #f0e4e2; background: #fff; color: var(--marchio, #a3122a); box-shadow: 0 8px 20px -14px rgba(90, 20, 30, 0.45); transition: transform 160ms ease, opacity 160ms ease; }
.tc-freccia:hover:not(:disabled) { transform: translateY(-1px); }
.tc-freccia:disabled { opacity: 0.4; cursor: default; }
.tc-freccia svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tc-statico .tc-frecce { visibility: hidden; }
.tc-puntini { display: flex; justify-content: center; gap: 8px; margin-top: 18px; min-height: 10px; }
.tc-puntini button { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; cursor: pointer; background: #ecdcdd; transition: background-color 160ms ease, width 200ms ease; }
.tc-puntini button.attivo { width: 24px; border-radius: 99px; background: var(--marchio, #a3122a); }
@media (max-width: 760px) {
  /* da telefono le schede scorrono fino al bordo dello schermo (non si tagliano al margine della pagina) */
  .tc-pista { gap: 14px; margin-left: calc(-1 * var(--bv-lato, 16px)); margin-right: calc(-1 * var(--bv-lato, 16px));
    padding-left: var(--bv-lato, 16px); padding-right: var(--bv-lato, 16px); scroll-padding-inline: var(--bv-lato, 16px); }
  .tc-persona, .tc-attesa { flex-basis: 100%; }
  .tc-persona { text-align: left; gap: 14px; padding: 24px 20px 22px; }
  .tc-foto { width: 72px; height: 72px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tc-pista { scroll-behavior: auto; } .tc-attesa { animation: none; } }
.tc-contatto-testo { min-width: 0; overflow-wrap: anywhere; }
.tc-persona > .tc-badge { position: absolute; top: -1px; right: -1px; padding: 6px 14px; border-radius: 0 16px 0 12px; }

/* Nome sopra e cognome sotto, senza andare a capo a metà (da telefono sì, se proprio non ci sta) */
.tc-nome-riga { display: block; white-space: nowrap; }
@media (max-width: 600px) { .tc-nome-riga { white-space: normal; overflow-wrap: anywhere; } }
