:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #8e8e93;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .7);
  --hair: rgba(60, 60, 67, .13);
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .2);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, .12);
  --green: #1f9d45;
  --green-soft: rgba(52, 199, 89, .16);
  --orange: #c26a00;
  --orange-soft: rgba(255, 149, 0, .16);
  --red: #e0352b;
  --red-soft: rgba(255, 59, 48, .13);
  --shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 12px 32px -12px rgba(30, 40, 80, .18);
  --shadow-lg: 0 24px 60px -20px rgba(20, 30, 70, .3);
  --r-s: 11px;
  --r-m: 16px;
  --r-l: 22px;
  --mesh-1: rgba(90, 170, 255, .34);
  --mesh-2: rgba(180, 140, 255, .26);
  --mesh-3: rgba(80, 220, 200, .22);
  --side: 248px;
  --tip-bg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #8e8e93;
    --glass: rgba(44, 44, 46, .56);
    --glass-strong: rgba(44, 44, 46, .78);
    --glass-edge: rgba(255, 255, 255, .1);
    --hair: rgba(235, 235, 245, .13);
    --fill: rgba(120, 120, 128, .22);
    --fill-2: rgba(120, 120, 128, .34);
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, .22);
    --green: #4cd964;
    --green-soft: rgba(48, 209, 88, .2);
    --orange: #ffb340;
    --orange-soft: rgba(255, 159, 10, .2);
    --red: #ff6961;
    --red-soft: rgba(255, 69, 58, .2);
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .9);
    --mesh-1: rgba(10, 100, 220, .36);
    --mesh-2: rgba(110, 60, 200, .3);
    --mesh-3: rgba(0, 130, 120, .26);
    --tip-bg: #2c2c2e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.006em;
}
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 44vmax at 88% -8%, var(--mesh-1), transparent 70%),
    radial-gradient(52vmax 42vmax at -6% 22%, var(--mesh-2), transparent 70%),
    radial-gradient(56vmax 42vmax at 62% 108%, var(--mesh-3), transparent 70%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 32px/1.12 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.024em; }
h2 { font-size: 20px; font-weight: 650; letter-spacing: -.016em; line-height: 1.25; }
h3 { font-size: 15px; font-weight: 600; }
code { font: 12.500px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: .5px solid var(--glass-edge);
  box-shadow: var(--shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---- Navigazione ---- */
.nav { position: fixed; z-index: 40; display: flex; }
.nav .brand { font: 700 17px/1 -apple-system, "SF Pro Display", sans-serif; letter-spacing: -.02em; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.nav .brand:hover { text-decoration: none; }
.brand-dot { width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.nav-item { display: flex; align-items: center; gap: 11px; color: var(--ink); padding: 9px 11px; border-radius: var(--r-s); font-weight: 500; font-size: 14px; background: none; border: 0; cursor: pointer; font-family: inherit; width: 100%; white-space: nowrap; }
.nav-item:hover { background: var(--fill); text-decoration: none; }
.nav-item.on { background: var(--accent); color: #fff; }
.nav-links { display: flex; flex-direction: column; gap: 2px; }
.nav-foot form { margin: 0; }

.nav.side { left: 12px; top: 12px; bottom: 12px; width: var(--side); border-radius: var(--r-l); flex-direction: column; padding: 18px 12px 12px; gap: 18px; overflow-y: auto; }
.nav.side .brand { padding: 0 9px; }
.nav.side .nav-links { flex: 1; }
.nav.side .nav-foot { border-top: .5px solid var(--hair); padding-top: 9px; }
.who { padding: 4px 11px 9px; }
.who b { display: block; font-size: 13.500px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav.top { left: 50%; transform: translateX(-50%); top: 12px; width: min(1040px, calc(100% - 24px)); border-radius: 999px; align-items: center; justify-content: space-between; padding: 7px 8px 7px 18px; gap: 16px; }
.nav.top .nav-links { flex-direction: row; gap: 3px; margin-left: auto; }
.nav.top .nav-item { border-radius: 999px; padding: 8px 14px; width: auto; }
.nav.top .nav-foot .who { display: none; }

.main { max-width: 1120px; margin: 0 auto; padding: 84px 20px 64px; display: flex; flex-direction: column; gap: 22px; }
body.has-side .main { max-width: none; margin-left: calc(var(--side) + 12px); padding: 34px 34px 64px; }
body.bare .main { padding-top: 40px; }

@media (max-width: 900px) {
  .nav.side, .nav.top {
    left: 50%; right: auto; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    width: auto; max-width: calc(100% - 20px); border-radius: 26px; flex-direction: row; padding: 6px; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .nav .brand, .nav .who { display: none; }
  .nav.side .nav-links, .nav.top .nav-links { flex-direction: row; flex: none; gap: 0; margin: 0; }
  .nav.side .nav-foot { border: 0; padding: 0; }
  .nav .nav-item, .nav.top .nav-item { flex-direction: column; gap: 3px; font-size: 10.500px; padding: 7px 11px; min-width: 62px; border-radius: 20px; width: auto; }
  .main, body.has-side .main { margin-left: auto; padding: calc(22px + env(safe-area-inset-top)) 16px calc(100px + env(safe-area-inset-bottom)); }
  h1 { font-size: 28px; }
}

/* ---- Blocchi ---- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 5px; font-size: 15px; }
.crumb { font-size: 13px; font-weight: 500; display: inline-block; margin-bottom: 6px; }
.card { border-radius: var(--r-l); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); }
.stat { border-radius: var(--r-m); padding: 15px 16px; display: block; color: inherit; }
a.stat:hover { text-decoration: none; transform: translateY(-1px); }
a.stat.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.stat .n { font: 650 28px/1.1 -apple-system, "SF Pro Display", sans-serif; letter-spacing: -.02em; display: block; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12.500px; color: var(--muted); margin-top: 3px; display: block; }

.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--muted); white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--accent-soft); color: var(--accent); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } * { transition: none !important; } }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---- Pulsanti e moduli ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--fill); color: var(--accent); font: 590 14px/1.2 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s, filter .15s; }
.btn:hover { background: var(--fill-2); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--red); background: var(--red-soft); }
.btn.big { min-height: 48px; font-size: 16px; padding: 12px 24px; }
.btn.sm { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form { margin: 0; }
form.form { display: flex; flex-direction: column; gap: 13px; }
form.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
table.t form.inline { flex-wrap: nowrap; }
table.t form.inline select, table.t form.inline input { width: 128px !important; min-height: 34px !important; padding-top: 5px !important; padding-bottom: 5px !important; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.field > span, .label { font-size: 12.500px; font-weight: 550; color: var(--muted); }
.field .hint { font-weight: 400; font-size: 12px; color: var(--faint); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 170px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--fill); border: 0; border-radius: var(--r-s); padding: 10px 12px; min-height: 42px; appearance: none; -webkit-appearance: none;
}
@media (min-width: 901px) { input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { font-size: 14.500px; } }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%238e8e93' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.500 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; padding-right: 30px; }
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=file] { font: inherit; font-size: 13.500px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.checks { display: grid; gap: 7px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-height: 240px; overflow: auto; }
.search { position: relative; flex: 1 1 240px; display: block; }
.search .icon { position: absolute; left: 12px; top: 11px; color: var(--faint); }
.search input { padding-left: 38px !important; border-radius: 999px !important; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; flex: 1 1 140px; border-radius: 999px; }
.segmented { display: inline-flex; background: var(--fill); border-radius: 11px; padding: 2px; }
.segmented a { padding: 6px 14px; border-radius: 9px; color: var(--ink); font-size: 13px; font-weight: 550; white-space: nowrap; }
.segmented a:hover { text-decoration: none; }
.segmented a.on { background: var(--glass-strong); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
details.more > summary { cursor: pointer; font-weight: 590; color: var(--accent); list-style: none; font-size: 14px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 12px; }

/* ---- Avvisi ---- */
.flash { border-radius: var(--r-m); padding: 12px 16px; font-size: 14px; display: flex; flex-direction: column; gap: 7px; }
.flash.ok { background: var(--green-soft); }
.flash.error { background: var(--red-soft); }
.flash.notice { background: var(--accent-soft); }
.flash .link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.empty .icon { width: 30px; height: 30px; color: var(--faint); }
.empty h3 { color: var(--ink); }
.callout { border-radius: var(--r-m); padding: 14px 16px; background: var(--fill); font-size: 14px; }
.callout.blue { background: var(--accent-soft); }
.callout.orange { background: var(--orange-soft); }
.callout.green { background: var(--green-soft); }

/* ---- Liste e tabelle ---- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 13px; padding: 12px 0; color: inherit; min-width: 0; }
.list-item + .list-item { border-top: .5px solid var(--hair); }
a.list-item:hover { text-decoration: none; opacity: .75; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 560; font-size: 15px; }
.list-item .meta { color: var(--muted); font-size: 13px; }
.tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.tile.orange { background: var(--orange-soft); color: var(--orange); }
.tile.red { background: var(--red-soft); color: var(--red); }
.tile.green { background: var(--green-soft); color: var(--green); }
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; font-weight: 550; color: var(--muted); padding: 0 12px 9px 0; white-space: nowrap; }
table.t td { padding: 11px 12px 11px 0; border-top: .5px solid var(--hair); vertical-align: middle; }
table.t tr:hover td { background: color-mix(in srgb, var(--fill) 45%, transparent); }
.nowrap { white-space: nowrap; }

/* ---- Card video ---- */
.vcard { border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: transform .2s; }
a.vcard:hover { text-decoration: none; transform: translateY(-2px); }
.thumb { aspect-ratio: 16/9; background: linear-gradient(140deg, #243b55, #141e30); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vcard .body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; }
.vcard .t1 { font-weight: 600; font-size: 15px; line-height: 1.3; }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 5px; border: 0; border-radius: 99px; overflow: hidden; background: var(--fill-2); display: block; }
progress::-webkit-progress-bar { background: var(--fill-2); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.lesson-card { border-radius: var(--r-l); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; color: inherit; transition: transform .2s; }
a.lesson-card:hover { text-decoration: none; transform: translateY(-2px); }
.lesson-card > .badge { align-self: flex-start; }
.lesson-card .t1 { font-weight: 600; font-size: 16px; letter-spacing: -.012em; }
.live-hero { border-radius: var(--r-l); padding: 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(135deg, color-mix(in srgb, var(--red) 15%, var(--glass)), var(--glass)); }

.flags { display: flex; flex-direction: column; gap: 10px; }
.flags-head, .flag { display: flex; align-items: center; gap: 8px; position: relative; }
.flag .check { align-items: center; }
.flag .check input { margin-top: 0; }
.tip-btn { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--fill-2); color: var(--muted); font: 700 12px/1 inherit; font-family: inherit; cursor: help; flex: none; position: relative; }
.tip-btn::after { content: ""; position: absolute; inset: -11px; }
.tip-btn:hover, .tip-btn:focus { background: var(--accent); color: #fff; }
.tip-box { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 8px); width: min(380px, 100%); display: flex; flex-direction: column; gap: 5px; padding: 13px 15px; border-radius: var(--r-m); background: var(--tip-bg); border: .5px solid var(--hair); box-shadow: var(--shadow-lg); color: var(--ink); font-size: 13.500px; line-height: 1.4; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.tip-box b { font-size: 14px; }
.tip:hover .tip-box, .tip:focus-within .tip-box { opacity: 1; visibility: visible; transform: none; }

fieldset.quiz-q { border: 0; margin: 0; }
fieldset.quiz-q legend { float: left; width: 100%; font-size: 17px; line-height: 1.35; margin-bottom: 10px; }
@media print { .nav, .flash { display: none !important; } .main, body.has-side .main { margin: 0; padding: 0; } .certificate { box-shadow: none; } }

.waha-link { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; border-bottom: .5px solid var(--hair); }
.waha-qr { background: #fff; border-radius: var(--r-m); padding: 12px; width: fit-content; }
.waha-qr img { display: block; }
.waha-link ol { margin: 0; padding-left: 18px; }

/* ---- Comunicazioni ---- */
.composer-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .composer-grid { grid-template-columns: minmax(0, 1fr); } }
.var-chip { border: 0; border-radius: 999px; padding: 7px 12px; min-height: 34px; background: var(--accent-soft); color: var(--accent); font: 590 13px/1 inherit; font-family: inherit; cursor: pointer; }
.var-chip:hover { background: var(--fill-2); }
.preview { background: var(--fill); border-radius: var(--r-m); padding: 16px; min-height: 180px; display: flex; flex-direction: column; gap: 8px; }
.preview p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.preview.wa { background: var(--green-soft); border-radius: 18px 18px 18px 5px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.segmented-input { display: inline-flex; background: var(--fill); border-radius: 11px; padding: 2px; }
.segmented-input input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-input span { display: block; padding: 7px 15px; border-radius: 9px; font-size: 13px; font-weight: 550; cursor: pointer; }
.segmented-input input:checked + span { background: var(--accent); color: #fff; }
.segmented-input input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---- Docenti ---- */
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font: 600 19px/1 -apple-system, "SF Pro Display", sans-serif; color: #fff; background: linear-gradient(145deg, #8e9eab, #5e6b7a); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .5); }
.avatar.lg { width: 96px; height: 96px; font-size: 32px; }
.person { display: flex; flex-direction: row; align-items: center; gap: 16px; min-width: 0; }
.person .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person-v { align-items: center; text-align: center; padding: 26px 18px; }
.teacher { max-width: 760px; }
.tag-x { border: 0; cursor: pointer; font-family: inherit; }

/* ---- Accesso ---- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(410px, 100%); border-radius: 28px; padding: 34px 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-lg); }
.auth-card .brand-dot { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto; }
.auth-card h1 { text-align: center; font-size: 26px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-top: -10px; }
.demo-list { display: flex; flex-direction: column; gap: 8px; }
.demo-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-m); background: var(--fill); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .12s, background .15s; }
.demo-btn:hover { background: var(--fill-2); }
.demo-btn:active { transform: scale(.98); }
.demo-btn .grow { display: flex; flex-direction: column; min-width: 0; }
.demo-btn b { font-weight: 600; }
.legal { display: flex; justify-content: center; gap: 14px; font-size: 12.500px; flex-wrap: wrap; }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.prose h2 { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; }

/* ---- Player ---- */
.player { position: relative; background: #000; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-lg); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.player:fullscreen, .player:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player.pseudo-fs { position: fixed; inset: 0; z-index: 100; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100dvh; }
.wm { position: absolute; color: rgba(255, 255, 255, .34); font-size: clamp(11px, 1.7vw, 15px); font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); pointer-events: none; white-space: nowrap; transition: left 1.200s ease, top 1.200s ease; z-index: 2; }
.big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; border: .5px solid rgba(255, 255, 255, .35); background: rgba(40, 40, 44, .5); color: #fff; -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); display: grid; place-items: center; cursor: pointer; z-index: 3; }
.big-play svg { width: 36px; height: 36px; fill: currentColor; margin-left: 5px; }
.spinner { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .9s linear infinite; z-index: 3; }
@keyframes spin { to { transform: rotate(360deg); } }
.controls { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; border-radius: 18px; padding: 8px 12px 9px; color: #fff; display: flex; flex-direction: column; gap: 4px; background: rgba(35, 35, 38, .58); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); border: .5px solid rgba(255, 255, 255, .16); transition: opacity .25s, transform .25s; }
.player.idle .controls { opacity: 0; transform: translateY(8px); pointer-events: none; }
.player.idle { cursor: none; }
.c-row { display: flex; align-items: center; gap: 2px; }
.c-spacer { flex: 1; }
.c-time { font-size: 12.500px; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; }
.c-btn { background: none; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; padding: 0; font: 600 12px inherit; font-family: inherit; }
.c-btn:hover { background: rgba(255, 255, 255, .14); }
.c-btn svg { width: 24px; height: 24px; fill: currentColor; }
.c-btn .seek-label { font-size: 11px; font-weight: 700; }
.c-select { background: rgba(255, 255, 255, .12) !important; background-image: none !important; color: #fff !important; border-radius: 9px !important; min-height: 30px !important; padding: 3px 8px !important; font-size: 12.500px !important; width: auto !important; margin-left: 4px; }
.c-select option { color: #000; }
input.seek { width: 100%; margin: 0; height: 22px; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; --p: 0%; }
input.seek::-webkit-slider-runnable-track { height: 5px; border-radius: 9px; background: linear-gradient(to right, #fff var(--p), rgba(255, 255, 255, .3) var(--p)); }
input.seek::-moz-range-track { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .3); }
input.seek::-moz-range-progress { height: 5px; border-radius: 9px; background: #fff; }
input.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; margin-top: -5px; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
input.seek::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; }
.p-msg { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; color: #fff; background: rgba(10, 10, 12, .74); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.p-msg h3 { font-size: 18px; }
.p-msg p { color: rgba(255, 255, 255, .78); max-width: 420px; font-size: 14px; }
.flash-seek { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; padding: 12px 18px; border-radius: 99px; background: rgba(40, 40, 44, .6); color: #fff; font-weight: 700; font-size: 14px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.flash-seek.left { left: 12%; } .flash-seek.right { right: 12%; }
.flash-seek.show { opacity: 1; }
[hidden] { display: none !important; }
@media (max-width: 560px) {
  .player:not(.pseudo-fs):not(:fullscreen) { border-radius: var(--r-m); }
  .controls { left: 6px; right: 6px; bottom: 6px; border-radius: 15px; padding: 3px 7px 4px; }
  .c-btn { width: 36px; height: 36px; }
  .c-time { padding: 0 4px; font-size: 11.500px; }
  .big-play { width: 66px; height: 66px; } .big-play svg { width: 28px; height: 28px; }
}

/* ---- Caricamenti ---- */
.upload-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: .5px solid var(--hair); }
