/* Pagina tutorial: player grande + lista delle lezioni (come un corso breve) */
.tp { font-family: 'Geist', system-ui, sans-serif; color: #111114; padding: 120px 0 100px; }
.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp__wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.tp__head h1 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.tp__head p { margin: 12px 0 0; font-size: 18px; line-height: 1.5; color: #45434B; max-width: 560px; }
.tp__prog { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14.5px; font-weight: 500; color: #45434B; }
.tp__bar { width: 160px; height: 6px; border-radius: 9px; background: #E7E5EF; overflow: hidden; }
.tp__bar i { display: block; height: 100%; width: 0; background: #4F46E5; border-radius: 9px; transition: width .5s cubic-bezier(.22,1,.36,1); }

.tp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; margin-top: 34px; align-items: start; }
.tp__player { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0f0d1f; box-shadow: 0 30px 60px -36px rgba(30,27,75,.55); }
.tp__player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tp__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tp__play { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; }
.tp__play span { position: absolute; right: 26px; top: 24px; width: 72px; height: 72px; border-radius: 50%; background: #fff; box-shadow: 0 18px 36px -12px rgba(10,6,40,.55); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.tp__play span::after { content: ''; position: absolute; left: 29px; top: 23px; border-left: 20px solid #111114; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.tp__play:hover span { transform: scale(1.07); }
.tp__info { padding: 20px 4px 0; }
.tp__k { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #45434B; }
.tp__k i, .tp-gh i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tp__info h2 { margin: 8px 0 0; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.tp__info p { margin: 8px 0 0; font-size: 16.5px; line-height: 1.55; color: #45434B; max-width: 640px; }
.tp__btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tp__btns button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; font: 600 15px/1 'Geist', sans-serif; cursor: pointer; }
.tp__go { background: #4F46E5; color: #fff; border: 0; }
.tp__next { background: #fff; color: #111114; border: 1.5px solid #D9D7E0; }
.tp__next:hover { border-color: #111114; }
.tp__btns [hidden] { display: none; }

.tp__side { position: sticky; top: 96px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; border: 1px solid #E7E5EF; border-radius: 20px; background: #fff; overflow: hidden; }
.tp__chips { display: flex; gap: 6px; padding: 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #EFEDF4; flex: none; }
.tp__chips::-webkit-scrollbar { display: none; }
.tp__chips button { flex: none; height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: #F3F2EF; font: 500 14px/1 'Geist', sans-serif; color: #2A2932; cursor: pointer; }
.tp__chips button span { color: #77757F; margin-left: 2px; }
.tp__chips button.on { background: #E5E0FF; color: #3A2FC4; } .tp__chips button.on span { color: #3A2FC4; }
.tp__list { list-style: none; margin: 0; padding: 6px 8px 12px; overflow-y: auto; }
.tp__list [hidden] { display: none; }
.tp-gh { display: flex; align-items: center; gap: 8px; padding: 14px 8px 6px; font-size: 13.5px; font-weight: 600; color: #45434B; }
.tp-row button { width: 100%; display: grid; grid-template-columns: 112px 1fr 22px; gap: 12px; align-items: center; padding: 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; font-family: inherit; color: inherit; }
.tp-row button:hover { background: #F6F5FA; }
.tp-row.is-on button { background: #EEEBFF; }
.tp-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #ddd; }
.tp-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-tx b { display: block; font-size: 14.5px; line-height: 1.3; font-weight: 600; }
.tp-tx small { display: block; margin-top: 3px; font-size: 13px; color: #6A6774; }
.tp-row.is-on .tp-tx small::before { content: 'In riproduzione · '; color: #4F46E5; font-weight: 600; }
.tp-st { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #D9D7E0; position: relative; }
.tp-row.is-seen .tp-st { background: #10B981; border-color: #10B981; }
.tp-row.is-seen .tp-st::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.tp__end { margin-top: 80px; padding: 40px 32px; border-radius: 28px; background: #F3F2EF; text-align: center; }
.tp__end h2 { margin: 0; font-size: 30px; letter-spacing: -.025em; font-weight: 600; }
.tp__end p { margin: 10px 0 22px; color: #45434B; font-size: 16px; }
.tp__cta { display: flex; justify-content: center; gap: 10px; }
.tp__cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15.5px; font-weight: 600; text-decoration: none; }
.tp__cta .p { background: #4F46E5; color: #fff; } .tp__cta .s { border: 1.5px solid #111114; color: #111114; }
.tp__more { margin: 22px 0 0 !important; font-size: 15px; }
.tp__more a { color: #4F46E5; font-weight: 600; }

@media (max-width: 999px) {
  .tp { padding: 100px 0 70px; }
  .tp__wrap { padding: 0 16px; }
  .tp__head p { font-size: 16.5px; }
  .tp__grid { grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
  .tp__player { border-radius: 16px; }
  .tp__play span { right: 14px; top: 14px; width: 56px; height: 56px; }
  .tp__play span::after { left: 22px; top: 18px; border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }
  .tp__info { padding-top: 14px; }
  .tp__info h2 { font-size: 23px; }
  .tp__info p { font-size: 15.5px; }
  .tp__btns button { flex: 1; justify-content: center; min-height: 48px; }
  .tp__side { position: static; max-height: none; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .tp__chips { padding: 0 0 8px; border: 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .tp__chips button { height: 40px; font-size: 15px; }
  .tp__list { padding: 0; overflow: visible; }
  .tp-gh { padding: 18px 2px 6px; font-size: 14.5px; }
  .tp-row button { grid-template-columns: 124px 1fr 22px; padding: 8px 4px; }
  .tp-tx b { font-size: 15.5px; }
  .tp__end { margin-top: 56px; padding: 30px 20px; } .tp__end h2 { font-size: 24px; }
  .tp__cta { flex-direction: column; } .tp__cta a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tp__bar i, .tp__play span { transition: none; } }
/* la fila dei filtri scorre dentro la colonna, non la allarga */
.tp__main, .tp__side { min-width: 0; }
@media (max-width: 999px) { .tp__grid { grid-template-columns: minmax(0, 1fr); } }
.tp__btns button { white-space: nowrap; }
/* il tasto play sta nell'angolo in basso a destra: non copre la scena della copertina */
.tp__play span { top: auto; bottom: 22px; }
@media (max-width: 999px) { .tp__play span { right: 12px; bottom: 12px; } }
.tp__player video.tp__prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; } .tp__player [hidden] { display: none !important; }

/* spazio sotto la barra in alto (anche quando sopra c'è la barra della promo) */
.tp { padding-top: 150px; }
@media (max-width: 999px) { .tp { padding-top: 118px; } }
