/* Officina35mm — Scheda persona unica. Stesso linguaggio delle schede Cassa (sempre scura, palette tenue a RGB).
   Contenuto a sinistra, menu delle sezioni a destra; su telefono il menu diventa una tendina sotto l'intestazione. */
.psx-dlg {
    --psx-sheet: #2c3648; --psx-line: rgba(248, 250, 252, 0.12); --psx-soft: rgba(248, 250, 252, 0.07); --psx-tile: rgba(248, 250, 252, 0.035);
    --psx-text: #f8fafc; --psx-text-2: #e2e8f0; --psx-muted: #a3afc2; --psx-faint: #8592a8; --psx-link: #7dd3fc;
    --psx-ease: cubic-bezier(0.32, 0.72, 0, 1);
    --rgb-blue: 125, 211, 252; --rgb-green: 134, 239, 172; --rgb-red: 253, 164, 175; --rgb-amber: 253, 230, 138;
    --rgb-purple: 196, 181, 253; --rgb-orange: 253, 186, 116; --rgb-teal: 153, 246, 228; --rgb-slate: 203, 213, 225; --rgb-pink: 249, 168, 212;
    --text-heading: #f8fafc;
    /* variabili usate dai pezzi presi dalla sezione Instagram (scelta foto) */
    --x-line: var(--psx-line); --x-line-soft: var(--psx-soft); --x-text: var(--psx-text); --x-text-2: var(--psx-text-2); --x-muted: var(--psx-muted); --x-faint: var(--psx-faint); --x-pink: #f9a8d4; --x-ease: var(--psx-ease); --x-font: inherit;
    position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px;
    background: rgba(10, 14, 22, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    font-family: var(--shell-font, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
    color: var(--psx-text-2);
}
.psx-dlg[hidden] { display: none; }
html.psx-aperta, html.psx-aperta body { overflow: hidden; }
.psx-dlg :is(h2, h3, h4) { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; margin: 0; }
.psx-dlg .t-blue { --t: var(--rgb-blue); } .psx-dlg .t-green { --t: var(--rgb-green); } .psx-dlg .t-red { --t: var(--rgb-red); } .psx-dlg .t-amber { --t: var(--rgb-amber); }
.psx-dlg .t-purple { --t: var(--rgb-purple); } .psx-dlg .t-orange { --t: var(--rgb-orange); } .psx-dlg .t-teal { --t: var(--rgb-teal); } .psx-dlg .t-slate { --t: var(--rgb-slate); } .psx-dlg .t-pink { --t: var(--rgb-pink); } .psx-dlg .t-wa { --t: 74, 222, 128; }

.psx-box { position: relative; width: min(1200px, 100%); height: min(92vh, 940px); display: grid; grid-template-columns: minmax(0, 1fr) 292px; background: var(--psx-sheet); border: 1px solid var(--psx-line); border-radius: 26px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4); overflow: hidden; animation: psx-in .3s var(--psx-ease); }
@keyframes psx-in { from { opacity: 0; transform: translateY(12px) scale(.99); } }
.psx-main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.psx-main__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; padding: 18px 22px 14px; border-bottom: 1px solid var(--psx-soft); }
.psx-top__dx { display: grid; gap: 8px; justify-items: end; }
.psx-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 28px; scrollbar-gutter: stable; }
.psx-main__h { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; }
.psx-main__h h3 { font-size: 20px; font-weight: 800; color: var(--psx-text) !important; letter-spacing: -.02em; }
.psx-main__h p { margin: 2px 0 0; font-size: 13px; color: var(--psx-muted); }
.psx-h__ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; flex: none; background: rgba(var(--t), .12); border: 1px solid rgba(var(--t), .2); color: rgba(var(--t), .95); }
.psx-body { display: grid; gap: 12px; min-width: 0; animation: psx-fade .22s var(--psx-ease); }
@keyframes psx-fade { from { opacity: 0; } }

/* Menu a destra */
.psx-side { display: flex; flex-direction: column; gap: 10px; padding: 18px 12px; border-left: 1px solid var(--psx-soft); background: rgba(15, 23, 42, 0.18); overflow-y: auto; min-height: 0; }
.psx-menu { display: grid; gap: 2px; align-content: start; }
.psx-item { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 46px; padding: 4px 10px; border-radius: 13px; border: 0; background: none; color: var(--psx-muted); font: 700 13.5px/1.25 inherit; font-family: inherit; text-align: left; cursor: pointer; transition: background-color .2s, color .2s; }
.psx-item > i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: rgba(var(--t), .85); background: rgba(var(--t), .08); transition: background-color .2s; }
.psx-item span { min-width: 0; }
.psx-item small { display: block; font-size: 11.5px; font-weight: 600; color: var(--psx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx-item em { font-style: normal; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: rgba(248, 250, 252, .08); color: var(--psx-text-2); }
.psx-item[aria-current="true"] { background: rgba(var(--t), .12); color: var(--psx-text); }
.psx-item[aria-current="true"] > i { background: rgba(var(--t), .2); color: rgba(var(--t), 1); }
.psx-item[aria-current="true"]::after { content: ""; position: absolute; right: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px 0 0 3px; background: rgba(var(--t), .95); }
@media (hover: hover) and (pointer: fine) { .psx-item:hover:not([aria-current="true"]) { background: rgba(248, 250, 252, .05); color: var(--psx-text-2); } }
.psx-da { margin: auto 0 0; padding: 8px 10px 0; font-size: 12px; color: var(--psx-faint); display: flex; gap: 6px; align-items: center; }
.psx-mob { display: none; }

/* Identità e azioni */
.psx-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.psx-id h2 { margin: 0 0 6px !important; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.03em; color: var(--psx-text) !important; line-height: 1.12; overflow-wrap: anywhere; }
.psx-id__t { min-width: 0; }
.psx-av { position: relative; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font-size: 21px; font-weight: 800; color: #0f172a; background: #bfdbfe; flex: none; overflow: hidden; }
.psx-av.is-est { background: #fed7aa; }
.psx-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.psx-av--sm { width: 34px; height: 34px; border-radius: 12px; font-size: 12px; }
.psx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.psx-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(var(--t), .12); color: rgba(var(--t), .98); border: 1px solid rgba(var(--t), .2); }
.psx-quick, .psx-pnav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.psx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--psx-line); background: rgba(248, 250, 252, .06); color: var(--psx-text-2); font: 700 13px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: none; transition: background-color .2s, transform .15s var(--psx-ease), opacity .2s; }
.psx-btn:active { transform: scale(.97); }
.psx-btn--sm { min-height: 32px; padding: 0 12px; font-size: 12px; }
.psx-btn--icon { width: 34px; min-height: 34px; padding: 0; }
.psx-btn--icon span { display: none; }
.psx-btn--go { color: #e0f2fe; background: rgba(var(--rgb-blue), .18); border-color: rgba(var(--rgb-blue), .4); }
.psx-back.is-off { opacity: .35; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .psx-btn:hover { background: rgba(248, 250, 252, .12); } .psx-btn--go:hover { background: rgba(var(--rgb-blue), .28); } }
.psx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--psx-line); background: rgba(248, 250, 252, .04); color: var(--psx-text-2); font: 650 12.5px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.psx-chip.is-on { background: rgba(var(--rgb-blue), .16); border-color: rgba(var(--rgb-blue), .38); color: var(--psx-text); }
.psx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.psx-link { all: unset; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--psx-link); }

/* Blocchi */
.psx-card { background: var(--psx-tile); border: 1px solid var(--psx-soft); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.psx-h { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 0 0 10px !important; font-size: 11.5px !important; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--psx-muted) !important; }
.psx-h > i { font-size: 15px; }
.psx-h__dx { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--psx-text); font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.psx-legend { gap: 6px !important; font-size: 11.5px !important; font-weight: 650 !important; color: var(--psx-faint) !important; }
.psx-legend i { width: 9px; height: 9px; border-radius: 3px; background: rgba(var(--t), .85); display: inline-block; margin-left: 6px; }
.psx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.psx-empty { margin: 0; font-size: 13px; color: var(--psx-faint); }
.psx-muted { color: var(--psx-faint); font-size: 12.5px; }
.psx-p { margin: 0; font-size: 13.5px; color: var(--psx-text-2); line-height: 1.5; }
.psx-ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--psx-text-2); }
.psx-quote { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(var(--rgb-pink), .08); color: var(--psx-text-2); font-size: 13px; }
.psx-kvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.psx-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--psx-soft); font-size: 13.5px; align-items: baseline; }
.psx-kv > span:first-child { color: var(--psx-muted); font-weight: 600; }
.psx-kv > span:last-child { color: var(--psx-text); font-weight: 650; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.psx-miss { color: rgba(var(--rgb-amber), .85); font-style: normal; font-weight: 600; }
.psx-chart { position: relative; width: 100%; min-width: 0; }
.psx-chart canvas { position: absolute; inset: 0; }

/* Numeri */
.psx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.psx-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.psx-tile { --t: var(--rgb-slate); display: grid; gap: 2px; text-align: left; padding: 14px; border-radius: 18px; background: var(--psx-tile); border: 1px solid var(--psx-soft); color: var(--psx-text-2); font-family: inherit; min-width: 0; }
button.psx-tile { cursor: pointer; transition: background-color .2s, border-color .2s; }
@media (hover: hover) and (pointer: fine) { button.psx-tile:hover { background: rgba(var(--t), .08); border-color: rgba(var(--t), .24); } }
.psx-tile__ico { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 6px; background: rgba(var(--t), .12); color: rgba(var(--t), .95); }
.psx-tile b { font-size: 22px; font-weight: 800; color: var(--psx-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx-tile span { font-size: 12.5px; font-weight: 700; color: rgba(var(--t), .95); }
.psx-tile small { font-size: 11.5px; color: var(--psx-faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Avvisi */
.psx-alerts { display: grid; gap: 8px; }
.psx-alert, .psx-big { --t: var(--rgb-slate); display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(var(--t), .07); border: 1px solid rgba(var(--t), .2); }
.psx-alert > i, .psx-big > i { font-size: 20px; color: rgba(var(--t), .95); flex: none; }
.psx-alert > span, .psx-big > span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.psx-alert b, .psx-big b { color: var(--psx-text); font-size: 13.5px; font-weight: 750; }
.psx-alert small, .psx-big small { color: var(--psx-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.psx-big { padding: 16px; }
.psx-big b { font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.psx-big__img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; flex: none; }

/* Righe */
.psx-rows { display: grid; gap: 6px; }
.psx-row { --t: var(--rgb-slate); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 13px; background: rgba(248, 250, 252, .035); border: 1px solid var(--psx-soft); text-align: left; color: var(--psx-text-2); font-family: inherit; font-size: inherit; width: 100%; box-shadow: none; }
button.psx-row { cursor: pointer; transition: background-color .2s; }
@media (hover: hover) and (pointer: fine) { button.psx-row:hover { background: rgba(248, 250, 252, .08); } }
.psx-row__ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; background: rgba(var(--t), .12); color: rgba(var(--t), .95); border: 1px solid rgba(var(--t), .18); }
.psx-row__t { min-width: 0; display: grid; gap: 1px; }
.psx-row__t b { font-size: 13.5px; color: var(--psx-text); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx-row__t small { font-size: 12px; color: var(--psx-faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx-row__v { font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--psx-text); }
.psx-row__v.is-in { color: #86efac; } .psx-row__v.is-out { color: #fda4af; } .psx-row__v.is-warn { color: #fde68a; }

.psx-bar { --t: var(--rgb-slate); display: block; height: 6px; border-radius: 999px; background: rgba(248, 250, 252, .08); overflow: hidden; }
.psx-bar > span { display: block; height: 100%; border-radius: 999px; background: rgba(var(--t), .78); transition: width .5s var(--psx-ease); }
.psx-films { display: grid; gap: 4px; }
.psx-film { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; border: 0; background: none; color: var(--psx-text); font: 650 13.5px/1.2 inherit; font-family: inherit; text-align: left; cursor: pointer; }
.psx-film > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psx-film > i { color: var(--psx-faint); }
@media (hover: hover) and (pointer: fine) { .psx-film:hover { background: rgba(248, 250, 252, .06); } }
.psx-film__q { min-width: 30px; height: 22px; padding: 0 6px; border-radius: 8px; display: inline-grid; place-items: center; background: rgba(var(--rgb-teal), .12); color: rgba(var(--rgb-teal), .95); font-size: 11.5px; font-weight: 800; }

/* Inaffidabilità */
.psx-gauge { --t: var(--rgb-slate); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 22px; align-items: center; padding: 16px 18px; border-radius: 20px; background: rgba(var(--t), .06); border: 1px solid rgba(var(--t), .2); }
.psx-gauge__n { display: grid; } .psx-gauge__n b { font-size: 40px; font-weight: 800; color: rgba(var(--t), .98); letter-spacing: -.03em; line-height: 1; } .psx-gauge__n span { font-size: 12px; color: var(--psx-muted); font-weight: 600; margin-top: 4px; }
.psx-gauge > .psx-bar { height: 10px; }
.psx-gauge__m { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }

/* Previsioni */
.psx-prev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 40%); gap: 14px; align-items: center; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px dashed var(--psx-soft); background: none; color: inherit; font-family: inherit; text-align: left; cursor: pointer; }
.psx-prev__t { display: grid; min-width: 0; } .psx-prev__t b { color: var(--psx-text); font-size: 14px; } .psx-prev__t small { color: var(--psx-faint); font-size: 12px; }
.psx-prev__p { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 10px; align-items: center; } .psx-prev__p b { color: var(--psx-text); text-align: right; font-variant-numeric: tabular-nums; }

/* Badge */
.psx-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.psx-badge { display: grid; gap: 6px; justify-items: center; padding: 12px 8px; border-radius: 16px; background: rgba(var(--rgb-orange), .07); border: 1px solid rgba(var(--rgb-orange), .2); color: var(--psx-text); font: 700 12px/1.25 inherit; font-family: inherit; cursor: pointer; text-align: center; }
.psx-badge img { width: 54px; height: 54px; object-fit: contain; }
.psx-badge i { font-size: 30px; color: rgba(var(--rgb-orange), .95); }

/* Attività */
.psx-month h4 { margin: 10px 0 6px !important; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--psx-faint) !important; display: flex; gap: 6px; align-items: baseline; }
.psx-month h4 small { font-weight: 700; letter-spacing: 0; }
.psx-month:first-child h4 { margin-top: 0 !important; }
.psx-actrow { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.psx-actrow--top { margin-top: 0; justify-content: flex-start; }

/* Ricerca rapida */
.psx-cerca { position: absolute; inset: 0; z-index: 5; background: rgba(15, 23, 42, .55); display: grid; place-items: start center; padding: 10vh 16px 16px; }
.psx-cerca[hidden] { display: none; }
.psx-cerca__box { width: min(520px, 100%); background: var(--psx-sheet); border: 1px solid var(--psx-line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .4); }
.psx-cerca__in { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--psx-soft); color: var(--psx-muted); }
.psx-cerca__in input { flex: 1; min-width: 0; border: 0; background: none; color: var(--psx-text); font: 600 15px/1 inherit; font-family: inherit; outline: none; box-shadow: none; padding: 0; margin: 0; }
.psx-cerca kbd { font: 700 10.5px/1 inherit; font-family: inherit; padding: 3px 5px; border-radius: 6px; border: 1px solid var(--psx-line); color: var(--psx-faint); }
.psx-cerca__l { display: grid; gap: 4px; padding: 8px; max-height: 52vh; overflow: auto; }
.psx-cerca__l .psx-row { grid-template-columns: 34px minmax(0, 1fr); }

/* Telefono e tablet: una schermata, il menu diventa una tendina */
@media (max-width: 860px) {
    .psx-dlg { padding: 0; place-items: stretch; }
    .psx-box { width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; display: flex; flex-direction: column; animation-name: psx-up; }
    @keyframes psx-up { from { transform: translateY(24px); opacity: 0; } }
    .psx-main { display: contents; }
    .psx-main__top { order: 1; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; }
    .psx-top__dx { display: contents; }
    .psx-pnav { order: -1; justify-content: flex-end; }
    .psx-back.is-off { display: none; }
    .psx-quick { justify-content: flex-start; }
    .psx-quick .psx-btn span { display: none; }
    .psx-quick .psx-btn { width: 38px; padding: 0; }
    .psx-cerca-btn span { display: none; } .psx-cerca-btn { width: 34px; padding: 0; min-height: 34px; }
    .psx-side { order: 2; position: relative; flex: none; padding: 8px 12px; border-left: 0; border-bottom: 1px solid var(--psx-soft); overflow: visible; background: rgba(15, 23, 42, .25); }
    .psx-mob { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--psx-line); background: rgba(var(--t), .1); color: var(--psx-text); font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; }
    .psx-mob > i:first-child { color: rgba(var(--t), .95); font-size: 18px; }
    .psx-mob em { margin-left: auto; font-style: normal; color: var(--psx-faint); font-size: 12px; font-weight: 600; }
    .psx-menu { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% - 2px); z-index: 4; max-height: 62vh; overflow: auto; padding: 6px; border-radius: 16px; background: #323d52; border: 1px solid var(--psx-line); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
    .psx-menu.is-open { display: grid; }
    .psx-item[aria-current="true"]::after { display: none; }
    .psx-da { display: none; }
    .psx-scroll { order: 3; flex: 1; min-height: 0; padding: 14px 14px max(24px, env(safe-area-inset-bottom)); }
    .psx-cols, .psx-kvs, .psx-gauge__m { grid-template-columns: 1fr; }
    .psx-tiles, .psx-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .psx-av { width: 50px; height: 50px; border-radius: 17px; font-size: 17px; }
    .psx-prev { grid-template-columns: 1fr; gap: 6px; }
    .psx-main__h { margin-bottom: 12px; }
    .psx-main__h p { display: none; }
}
@media (prefers-reduced-motion: reduce) { .psx-box, .psx-body { animation: none; } .psx-btn, .psx-item, .psx-bar > span { transition: none; } }

/* Link alla scheda persona nelle altre pagine */
[data-off35-persona] { cursor: pointer; }
.stat-ev-prow__link { text-decoration: underline dotted rgba(125, 211, 252, .55); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { [data-off35-persona]:hover { filter: brightness(1.15); } .stat-ev-prow__link:hover { color: #7dd3fc; } }


/* ===== Barre di scorrimento scure (niente barra bianca) ===== */
.psx-dlg, .psx-dlg * { scrollbar-width: thin; scrollbar-color: rgba(248, 250, 252, 0.18) transparent; }
.psx-dlg ::-webkit-scrollbar { width: 10px; height: 10px; }
.psx-dlg ::-webkit-scrollbar-track { background: transparent; }
.psx-dlg ::-webkit-scrollbar-thumb { background: rgba(248, 250, 252, 0.14); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
.psx-dlg ::-webkit-scrollbar-thumb:hover { background-color: rgba(248, 250, 252, 0.26); }
.psx-dlg ::-webkit-scrollbar-corner { background: transparent; }

/* ===== Colori: icone dei riquadri nella tinta della sezione, azioni colorate ===== */
.psx-body .psx-h > i { color: rgba(var(--t), .9); }
.psx-btn--t { background: rgba(var(--t), .12); border-color: rgba(var(--t), .3); color: var(--psx-text); }
.psx-btn--t i { color: rgba(var(--t), 1); }
@media (hover: hover) and (pointer: fine) { .psx-btn--t:hover { background: rgba(var(--t), .22); } }
.psx-btn--red { color: #ffe4e6; border-color: rgba(var(--rgb-red), .3); background: rgba(var(--rgb-red), .08); }
.psx-star.is-on { color: #fde68a; border-color: rgba(var(--rgb-amber), .45); background: rgba(var(--rgb-amber), .14); }
.psx-pnav__g { display: inline-flex; gap: 4px; }
.psx-chip--t { background: rgba(var(--t), .1); border-color: rgba(var(--t), .28); }
.psx-chip--t i { color: rgba(var(--t), 1); }
.psx-chip small { color: var(--psx-faint); font-weight: 600; }
.psx-legend__off { background: none !important; border: 1px dashed rgba(248, 250, 252, .35); }
.psx-body.t-red .psx-row__ico.t-red, .psx-body .psx-row__ico.t-red { box-shadow: inset 0 0 0 1px rgba(var(--rgb-red), .1); }

/* ===== Calendario presenze ===== */
.psx-cal { display: grid; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.psx-cal__m, .psx-cal__g { display: grid; gap: 3px; min-width: 560px; }
.psx-cal__m { font-size: 10.5px; font-weight: 700; color: var(--psx-faint); }
.psx-cal__g { grid-template-rows: repeat(7, 1fr); }
.psx-cal__d { aspect-ratio: 1; border-radius: 3px; background: rgba(248, 250, 252, .05); }
.psx-cal__d.is-altro { background: transparent; box-shadow: inset 0 0 0 1px rgba(248, 250, 252, .22); }
.psx-cal__d.is-ev { background: rgba(var(--t), .85); cursor: pointer; }
.psx-cal__d.is-oggi { box-shadow: 0 0 0 1.5px #f8fafc; }
@media (hover: hover) and (pointer: fine) { .psx-cal__d.is-ev:hover { transform: scale(1.35); } }

/* ===== Esce spesso con ===== */
.psx-mates { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; margin-bottom: 8px; }
.psx-mate { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 13px; border: 1px solid var(--psx-soft); background: rgba(248, 250, 252, .035); color: var(--psx-text-2); font-family: inherit; text-align: left; cursor: pointer; min-width: 0; }
.psx-mate span:nth-child(2) { min-width: 0; display: grid; } .psx-mate b { font-size: 13px; color: var(--psx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .psx-mate small { font-size: 11.5px; color: var(--psx-faint); }
.psx-mate em { font-style: normal; font-size: 12px; font-weight: 800; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: rgba(var(--rgb-amber), .16); color: #fef3c7; }
@media (hover: hover) and (pointer: fine) { .psx-mate:hover { background: rgba(248, 250, 252, .08); } }

/* ===== Rinnovo previsto ===== */
.psx-ren { --t: var(--rgb-slate); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.psx-ren > b { font-size: 30px; font-weight: 800; color: rgba(var(--t), 1); letter-spacing: -.02em; }
.psx-ren > div { display: grid; gap: 6px; } .psx-ren small { font-size: 12.5px; color: var(--psx-muted); }

/* ===== Instagram unico ===== */
.psx-igps { display: grid; gap: 6px; margin-bottom: 10px; }
.psx-igp { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 13px; background: rgba(var(--rgb-pink), .06); border: 1px solid rgba(var(--rgb-pink), .16); }
.psx-igp__u { display: inline-flex; gap: 6px; align-items: center; color: var(--psx-text); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx-igp__u i { color: #f9a8d4; } .psx-igp__u small { color: var(--psx-faint); font-weight: 600; }
.psx-igp .psx-tags { min-width: 0; }
.psx-quote { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.psx-quote i { color: #f9a8d4; } .psx-quote small { color: var(--psx-faint); }
.psx-igcs { display: grid; gap: 6px; }
.psx-igc { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 13px; background: rgba(248, 250, 252, .035); border: 1px solid var(--psx-soft); text-decoration: none; color: var(--psx-text-2); }
.psx-igc__img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: rgba(var(--rgb-pink), .08); color: rgba(var(--rgb-pink), .7); font-size: 18px; }
.psx-igc__t { min-width: 0; display: grid; gap: 2px; } .psx-igc__t small { font-size: 11.5px; color: var(--psx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .psx-igc__t b { font-size: 13.5px; color: var(--psx-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.psx-igc time { font-size: 11.5px; color: var(--psx-faint); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .psx-igc:hover { background: rgba(248, 250, 252, .07); } }
.psx-iglk { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.psx-iglk__p { display: grid; gap: 4px; text-decoration: none; text-align: center; min-width: 0; }
.psx-iglk__img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: rgba(var(--rgb-pink), .08); color: rgba(var(--rgb-pink), .7); font-size: 20px; border: 1px solid rgba(var(--rgb-pink), .14); }
.psx-iglk__p small { font-size: 11px; color: var(--psx-faint); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .psx-iglk__p:hover .psx-iglk__img { border-color: rgba(var(--rgb-pink), .5); } }
.psx-igfoto .igx-foto__l { gap: 8px; } .psx-igfoto .igx-lab { display: none; } .psx-igfoto .igx-note-s, .psx-igfoto .igx-muted { font-size: 12px; color: var(--psx-faint); margin: 6px 0 0; }
.psx-igfoto .igx-foto__o { width: 96px; }
.psx-tl { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.psx-tl li { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 7px 0 7px 14px; font-size: 13px; border-left: 2px solid rgba(var(--rgb-pink), .25); }
.psx-tl li::before { content: ""; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: #f9a8d4; }
.psx-tl time { color: var(--psx-faint); font-weight: 650; font-size: 12px; } .psx-tl span { color: var(--psx-text-2); }

/* ===== Attività: accessi a comparsa ===== */
.psx-acc { border-radius: 18px; border: 1px solid var(--psx-soft); background: var(--psx-tile); }
.psx-acc > summary { list-style: none; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; }
.psx-acc > summary::-webkit-details-marker { display: none; }
.psx-acc__car { color: var(--psx-faint); transition: transform .2s var(--psx-ease); }
.psx-acc[open] .psx-acc__car { transform: rotate(180deg); }
.psx-acc > .psx-rows { padding: 0 12px 12px; max-height: 340px; overflow-y: auto; }

/* ===== Ricerca: gruppi ===== */
.psx-cerca__l h5 { margin: 6px 6px 2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--psx-faint); display: flex; gap: 6px; align-items: center; }
.psx-cerca__l h5 .ph-star { color: #fde68a; }

/* ===== Righe e riquadri: niente uscite dai bordi ===== */
.psx-row__v { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.psx-row__v .psx-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.psx-tile { overflow: hidden; }
.psx-kv > span:first-child { flex: none; max-width: 48%; }
.psx-card { overflow: hidden; }

@media (max-width: 860px) {
    .psx-igp { grid-template-columns: minmax(0, 1fr) auto; } .psx-igp .psx-tags { grid-column: 1 / -1; grid-row: 2; }
    .psx-igc { grid-template-columns: 44px minmax(0, 1fr); } .psx-igc__img { width: 44px; height: 44px; } .psx-igc time { grid-column: 2; }
    .psx-pnav__g { display: none; }
}
