/* Tutorial (tutorial.html): tour animato con scene finte, solo decorative (il testo è nella didascalia). */
.tut{ max-width: 980px; margin: 0 auto; padding: var(--s-10) var(--s-5) var(--s-16); }
.tut .page-title, .tut .page-lead{ text-align: center; }
.tut .page-lead{ margin: 0 auto var(--s-8); }
.player{ background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.stage{ background: var(--bg); min-height: 360px; padding: var(--s-6); display: flex; align-items: center; justify-content: center; }
.stage > div{ width: 100%; max-width: 760px; }
.prog{ height: 4px; background: var(--border); }
.prog i{ display: block; height: 100%; width: 0; background: var(--primary); }
.cap{ padding: var(--s-4) var(--s-6); border-top: 1px solid var(--border); }
.cap__n{ font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.cap h2{ font-size: var(--fs-xl); margin: 4px 0 6px; }
.cap p{ color: var(--text-muted); font-size: var(--fs-md); max-width: 75ch; }
.ctrl{ display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border); flex-wrap: wrap; }
.dots{ display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.dots button{ width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.dots button[aria-current="step"]{ background: var(--primary-solid); border-color: var(--primary-solid); color: var(--on-primary); }
.tut-cta{ display: flex; gap: var(--s-3); justify-content: center; align-items: center; flex-wrap: wrap; margin-top: var(--s-8); color: var(--text-muted); }

/* Elementi delle scene */
.s{ animation: pop .5s both; animation-delay: var(--d, 0s); }
@keyframes pop{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: none; } }
.m-two{ display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-5); }
.m-lbl{ font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin: var(--s-3) 0 6px; }
.m-chip{ display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); padding: 6px 11px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); color: var(--text-muted); background: var(--surface-1); margin: 0 6px 6px 0; }
.m-phrase{ border-left: 3px solid var(--normal); color: var(--text); }
.m-phrase--abn{ border-left-color: var(--abnormal); }
.hl{ animation: pop .5s both, hl .4s both; animation-delay: var(--d, 0s), calc(var(--d, 0s) + .9s); }
@keyframes hl{ to{ background: var(--primary-soft); border-color: var(--primary); color: var(--text); font-weight: 600; } }
.m-doc{ background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); font-size: var(--fs-sm); line-height: 1.7; min-height: 120px; }
.m-card{ background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-2); font-size: var(--fs-sm); }
.m-card--abn{ border-left: 3px solid var(--abnormal); }
.m-doc--line{ min-height: 0; }
.m-gap{ margin: var(--s-3) 0; }
.m-card--row{ display: flex; justify-content: space-between; gap: var(--s-3); }
.m-btn{ display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--border-strong); color: var(--text); border-radius: var(--r-sm); padding: 6px 12px; background: var(--surface-1); }
.m-btn--primary{ background: var(--primary-solid); border-color: var(--primary-solid); color: var(--on-primary); }
.m-btn--danger{ border-color: var(--danger); color: var(--danger); }
.m-row{ display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.m-center{ display: flex; align-items: center; gap: var(--s-5); justify-content: center; flex-wrap: wrap; }
.m-mic{ width: 56px; height: 56px; border-radius: 50%; background: var(--danger-solid); color: #fff; display: flex; align-items: center; justify-content: center; animation: pulse 1.2s infinite; }
.m-mic .icon{ width: 26px; height: 26px; }
@keyframes pulse{ 0%{ box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 100%{ box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); } }
.m-wave{ display: flex; gap: 4px; align-items: center; height: 40px; }
.m-wave i{ width: 5px; background: var(--primary); border-radius: 3px; height: 100%; animation: wave .8s infinite ease-in-out; }
.m-wave i:nth-child(2n){ animation-delay: .2s; }
.m-wave i:nth-child(3n){ animation-delay: .4s; }
@keyframes wave{ 0%, 100%{ transform: scaleY(.2); } 50%{ transform: scaleY(1); } }
.type{ display: block; overflow: hidden; white-space: nowrap; width: 0; animation: typ 2.2s steps(40) both; animation-delay: var(--d, 0s); }
@keyframes typ{ to{ width: 100%; } }
.m-tabs{ display: flex; gap: 6px; margin-bottom: var(--s-3); }
.m-tab{ position: relative; width: 30px; height: 30px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface-1); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm); }
.m-tab--on{ background: var(--primary-solid); border-color: var(--primary-solid); color: var(--on-primary); }
.m-tab--dot::after{ content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg); }
.m-bub{ max-width: 75%; padding: 9px 13px; border-radius: 12px; font-size: var(--fs-sm); margin-bottom: var(--s-2); background: var(--surface-1); border: 1px solid var(--border); }
.m-bub--me{ margin-left: auto; background: var(--primary-solid); border-color: var(--primary-solid); color: var(--on-primary); }
.m-paper{ background: var(--paper); color: var(--paper-text); border-radius: var(--r-sm); padding: 0 0 var(--s-4); font-size: var(--fs-xs); max-width: 320px; margin: 0 auto; box-shadow: var(--shadow); }
.m-paper__head{ border-bottom: 2px solid #0369a1; color: #0369a1; padding: 12px 16px; font-weight: 700; }
.m-paper p{ margin: 10px 16px 0; }
.m-note{ margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--abnormal); display: flex; gap: 6px; align-items: center; justify-content: center; }
.m-muted{ color: var(--text-muted); }

@media (max-width: 700px){
  .m-two{ grid-template-columns: 1fr; }
  .dots{ margin-left: 0; }
  .stage{ min-height: 420px; padding: var(--s-4); }
}
