/* programma.css — Programma Attività (calendario eventi settimanale, sola lettura) */

/* pill intervallo settimana nell'intestazione */
.prog-week{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow-sm);font-family:var(--fontH);font-weight:600;font-size:15px;color:var(--text);white-space:nowrap}
.prog-week svg{color:var(--r6)}

/* ---- barra filtri (giorni + categorie) ---- */
.prog-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:10px 12px;margin-bottom:22px}
.prog-days{display:flex;gap:6px;flex-wrap:wrap}
.prog-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:54px;padding:8px 12px 7px;border-radius:13px;background:var(--surface-2);border:1px solid var(--border);color:var(--muted);transition:.14s}
.prog-day:hover{color:var(--text);transform:translateY(-1px)}
.prog-day-lbl{font-family:var(--fontH);font-weight:700;font-size:13px}
.prog-day-num{font-size:11.5px;font-weight:800;color:var(--faint)}
.prog-day.is-on{background:var(--sp,var(--r4));border-color:var(--sp,var(--r4));color:#fff;box-shadow:0 4px 0 color-mix(in srgb,var(--sp,var(--r4)),#000 28%)}
.prog-day.is-on .prog-day-num{color:rgba(255,255,255,.85)}
.prog-day-today{position:absolute;top:-7px;right:-5px;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#fff;background:var(--r1);border-radius:20px;padding:1px 6px;box-shadow:0 0 0 2px var(--surface)}
.prog-day.is-on.is-today .prog-day-today{box-shadow:0 0 0 2px var(--sp,var(--r4))}

.prog-cats{display:flex;gap:7px;flex-wrap:wrap}
.prog-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:11px;background:var(--surface-2);border:1px solid var(--border);font-family:var(--fontH);font-weight:600;font-size:13px;color:var(--muted);transition:.14s}
.prog-chip:hover{color:var(--text)}
.prog-chip-dot{width:9px;height:9px;border-radius:3px;background:var(--c);transform:rotate(45deg);opacity:.4;transition:.14s}
.prog-chip.is-on{color:var(--text);background:color-mix(in srgb,var(--c) 12%,var(--surface));border-color:color-mix(in srgb,var(--c) 38%,transparent)}
.prog-chip.is-on .prog-chip-dot{opacity:1}

/* ---- layout giorno + sidebar ---- */
.prog-layout{display:grid;grid-template-columns:minmax(0,1fr) 316px;gap:20px;align-items:start;padding-bottom:40px}
.prog-main{display:flex;flex-direction:column;gap:14px;min-width:0}
.prog-dayhead{display:flex;align-items:baseline;gap:12px;margin:2px 2px 4px}
.prog-dayhead h2{font-family:var(--fontH);font-weight:700;font-size:21px;letter-spacing:-.01em;color:var(--text);text-transform:capitalize}
.prog-daycount{font-size:13px;font-weight:700;color:var(--muted);background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:3px 11px}
.hih[data-tone="dark"] .prog-dayhead h2{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.35),0 2px 14px rgba(0,0,0,.22)}
.hih[data-tone="light"] .prog-dayhead h2{color:#15233a;text-shadow:0 1px 2px rgba(255,255,255,.85),0 2px 10px rgba(255,255,255,.5)}

/* ---- card attività ---- */
.prog-list{display:flex;flex-direction:column;gap:12px}
.prog-act{display:grid;grid-template-columns:66px 4px minmax(0,1fr);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;transition:transform .14s,box-shadow .14s}
.prog-act:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.prog-act-time{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:16px 6px;background:var(--surface-2);text-align:center}
.prog-act-time b{font-family:var(--fontH);font-weight:700;font-size:18px;color:var(--text);letter-spacing:-.02em}
.prog-rec{display:inline-flex;align-items:center;gap:3px;font-size:9.5px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:var(--muted);line-height:1.1;text-align:center}
.prog-rec svg{color:var(--r4)}
.prog-act-spine{background:var(--c)}
.prog-act-main{padding:14px 16px 13px;min-width:0}
.prog-act-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:5px}
.prog-act-cat{font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--c);background:color-mix(in srgb,var(--c) 13%,transparent);border-radius:6px;padding:3px 8px}
.prog-act-top h3{font-family:var(--fontH);font-weight:600;font-size:16.5px;color:var(--text);letter-spacing:-.01em}
.prog-act-desc{margin:0 0 12px;font-size:13.5px;font-weight:600;color:var(--muted);line-height:1.45;text-wrap:pretty}

.prog-act-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:11px}
.prog-host{display:flex;align-items:center;gap:9px}
.prog-host img{width:34px;height:34px;border-radius:9px;background:var(--surface-2);object-fit:cover;object-position:center -2px;flex:0 0 auto}
.prog-host span{display:flex;flex-direction:column;line-height:1.2}
.prog-host small{font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--faint)}
.prog-host b{font-size:13.5px;font-weight:800;color:var(--text)}
.prog-host:hover b{color:var(--r6)}

/* premio in palio */
.prog-prize{display:inline-flex;align-items:center;gap:7px;padding:5px 11px 5px 9px;border-radius:11px;font-family:var(--fontH);font-weight:600;font-size:13px;border:1px solid var(--border);background:var(--surface-2);color:var(--text)}
.prog-prize svg{flex:0 0 auto}
.prog-prize.is-credits{color:#B07A00;background:color-mix(in srgb,#FFC83D 18%,var(--surface));border-color:color-mix(in srgb,#FFC83D 45%,transparent)}
.prog-prize.is-points{color:var(--r4);background:color-mix(in srgb,var(--r4) 12%,var(--surface));border-color:color-mix(in srgb,var(--r4) 35%,transparent)}
.prog-prize.is-furni{color:var(--r7);background:color-mix(in srgb,var(--r7) 12%,var(--surface));border-color:color-mix(in srgb,var(--r7) 32%,transparent)}
.prog-prize.is-badge{padding:3px 12px 3px 4px;gap:6px}
.prog-prize-badge{flex:0 0 auto}
.prog-prize.is-none{color:var(--faint);font-weight:700;background:transparent;border-style:dashed}

.prog-act-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:11px;border-top:1px solid var(--line)}
.prog-room{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--muted)}
.prog-room svg{color:var(--r5);flex:0 0 auto}
.prog-room-go{font-family:var(--fontH);font-weight:600;font-size:12px;color:var(--r6);background:color-mix(in srgb,var(--r6) 12%,transparent);border-radius:7px;padding:2px 8px}
.prog-room:not(.is-static):hover .prog-room-go{background:color-mix(in srgb,var(--r6) 22%,transparent)}
.prog-room.is-static{color:var(--faint)}
.prog-remind{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:10px;background:var(--surface-2);border:1px solid var(--border);font-family:var(--fontH);font-weight:600;font-size:12.5px;color:var(--muted);transition:.14s}
.prog-remind:hover{color:var(--text);border-color:var(--muted)}
.prog-remind svg{flex:0 0 auto}
.prog-remind.is-on{color:#fff;background:var(--r6);border-color:var(--r6)}
.prog-remind.is-on svg{color:#fff}

/* vuoto */
.prog-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:48px 20px;color:var(--faint);text-align:center;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius)}
.prog-empty p{margin:0;font-weight:700;font-size:14px}

/* ---- sidebar ---- */
.prog-side{display:flex;flex-direction:column;gap:20px}
.prog-legend{display:flex;flex-direction:column;gap:9px;padding:4px 16px 16px}
.prog-legend-row{display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:700;color:var(--muted)}
.prog-legend-dot{width:11px;height:11px;border-radius:4px;transform:rotate(45deg);flex:0 0 auto}
.prog-org{list-style:none;margin:0;padding:2px 10px 12px}
.prog-org li{display:flex;align-items:center;gap:10px;padding:8px 6px}
.prog-org li+li{border-top:1px solid var(--line)}
.prog-org-rank{width:20px;font-family:var(--fontH);font-weight:700;font-size:14px;color:var(--faint);text-align:center;flex:0 0 auto}
.prog-org-user{display:flex;align-items:center;gap:9px;flex:1;min-width:0}
.prog-org-user img{width:32px;height:32px;border-radius:9px;background:var(--surface-2);object-fit:cover;object-position:center -2px;flex:0 0 auto}
.prog-org-user b{font-size:13.5px;font-weight:800;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prog-org-user:hover b{color:var(--r6)}
.prog-org-n{font-size:11.5px;font-weight:800;color:var(--muted);background:var(--surface-2);border-radius:20px;padding:3px 9px;flex:0 0 auto;white-space:nowrap}

.prog-info-card{padding:16px 17px 17px}
.prog-info-card h4{display:flex;align-items:center;gap:8px;font-family:var(--fontH);font-weight:600;font-size:15px;color:var(--text);margin:0 0 7px}
.prog-info-card h4 svg{color:var(--c)}
.prog-info-card p{margin:0;font-size:13px;font-weight:600;color:var(--muted);line-height:1.5;text-wrap:pretty}

/* ---- mobile ---- */
.hih[data-mobile="true"] .prog-layout{grid-template-columns:1fr}
.hih[data-mobile="true"] .prog-bar{flex-direction:column;align-items:stretch;gap:11px}
.hih[data-mobile="true"] .prog-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.hih[data-mobile="true"] .prog-day{min-width:0;padding:7px 2px 6px}
.hih[data-mobile="true"] .prog-act-meta{gap:9px}
