/* RustWheel — struttura di redazione, portale dei club e area riservata.
   Barra laterale scura a sinistra, contenuto chiaro a destra.
   Si carica DOPO editor.css e ne cambia i colori. */

body.sh {
  --paper: #F4F3F0;
  --paper-2: #F4F3F0;
  --card: #FFFFFF;
  --ink: #141210;
  --ink-2: #4F4A44;
  --ink-3: #6A645C;
  --rust: #141210;          /* pulsanti principali: neri */
  --rust-dark: #2A2622;
  --rule: #E0DCD4;
  --gold: #C9A867;
  --gold-light: #D9BE86;
  --accent: #8C6A2F;
  --danger: #9B2C1E;
  --display: "Bodoni Moda", Georgia, serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  color-scheme: light;
}
body.sh a { color: var(--accent); }
body.sh a:hover { color: #5E4720; }
body.sh .link-btn.danger { color: var(--danger); }
body.sh .btn { border-radius: 8px; min-height: 42px; }
body.sh .btn.gold { background: var(--gold); border-color: var(--gold); color: #141210; }
body.sh .btn.gold:hover { background: var(--gold-light); }
body.sh .btn.danger { color: var(--danger); }
body.sh .btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
body.sh .editor:focus { outline: 2px solid var(--gold); outline-offset: 1px; }   /* campi: vedi "Moduli" in fondo */
body.sh :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.sh .ed-head h1, body.sh h1.sh-h1 { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.12; margin: 0; }
body.sh .badge.pub { background: #E0EEE3; color: #245433; }
body.sh .badge.draft { background: #F1EBDD; color: #6B5426; }
body.sh .toolbar { background: #141210; }
body.sh .ed-row-main strong { font-family: var(--display); }

/* ===== Struttura ===== */

.sh-wrap { display: flex; min-height: 100vh; }

.sh-side {
  flex: 0 0 272px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #141210;
  color: #D8D1C6;
  padding: 20px 12px 24px;
  display: flex;
  flex-direction: column;
}
.sh-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sh-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 14px 16px; text-decoration: none; min-width: 0; }
body.sh .sh-brand, body.sh .sh-brand:hover { color: #F4F3F0; }
.sh-logo { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 23px; color: #F4F3F0; }
.sh-section { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--gold); line-height: 1.3; overflow-wrap: anywhere; }
.sh-section:empty { display: none; }
.sh-menu-btn { display: none; }
.sh-nav-wrap { display: flex; flex-direction: column; flex: 1; }

.sh-ident {
  margin: 0 2px 6px;
  padding: 14px;
  border: 1px solid #2E2A26;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.sh-ident-logo {
  width: 48px; height: 48px; flex: none; border-radius: 10px; overflow: hidden;
  background: #F4F3F0; color: #141210; font-family: var(--display); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.sh-ident-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.sh-ident-logo.round { border-radius: 999px; background: var(--gold); font-family: var(--sans); font-size: 15px; }
.sh-ident-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sh-ident-txt b { color: #FFFFFF; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.sh-ident-txt span, .sh-ident-txt a { font-size: 12.5px; }
body.sh .sh-ident-txt a { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.sh-dot { width: 7px; height: 7px; border-radius: 999px; background: #7DBB8C; flex: none; }
.sh-dot.wait { background: #E6A15A; }

.sh-side-h { margin: 22px 14px 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A69D92; }
.sh-nav { display: flex; flex-direction: column; gap: 2px; }
.sh-nav-wrap > .sh-nav:first-of-type { margin-top: 10px; }
.sh-item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; box-sizing: border-box;
  border-radius: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none;
}
body.sh .sh-item { color: #D8D1C6; }
body.sh .sh-item:hover { background: #2A2622; color: #FFFFFF; }
body.sh .sh-item.on, body.sh .sh-item.on:hover { background: var(--gold); color: #141210; }
.sh-item svg { flex: none; }
.sh-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-count { font-size: 12px; font-weight: 600; color: #A69D92; }
.sh-item.on .sh-count { color: #3A332A; }
.sh-arr { color: #A69D92; }
body.sh .sh-item.off, body.sh .sh-item.off:hover { color: #8A8279; background: transparent; cursor: default; }
.sh-soon { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #4A443D; border-radius: 999px; padding: 2px 8px; color: #A69D92; }

.sh-foot { margin-top: auto; padding: 22px 14px 0; border-top: 1px solid #2E2A26; display: flex; flex-direction: column; gap: 12px; }
.sh-nav-wrap > .sh-foot { margin-top: 28px; }
@media (min-width: 901px) { .sh-nav-wrap > .sh-foot { margin-top: auto; } .sh-nav-wrap { min-height: 0; } }
/* Spazio sotto "Esci": scorrendo la barra fino in fondo non resta attaccato al bordo. */
.sh-nav-wrap > .sh-foot { padding-bottom: 56px; }
.sh-user { display: flex; align-items: center; gap: 12px; }
.sh-avatar { width: 36px; height: 36px; flex: none; border-radius: 999px; background: var(--gold); color: #141210; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.sh-user-txt { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; min-width: 0; }
.sh-user-txt b { color: #FFFFFF; overflow-wrap: anywhere; }
body.sh .sh-foot a { color: var(--gold); font-size: 13.5px; }
.sh-logout { margin: 0; }
.sh-logout button {
  min-height: 40px; padding: 0 14px; border: 1px solid #3A352F; border-radius: 8px;
  background: transparent; color: #D8D1C6; font: 600 13.5px var(--sans); cursor: pointer;
}
.sh-logout button:hover { color: #FFFFFF; border-color: #6A645C; }

.sh-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 28px; background: #FFFFFF; border-bottom: 1px solid var(--rule);
}
.sh-crumb { margin: 0; font-size: 13.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.sh-crumb b { color: var(--ink); }
.sh-top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-main { padding: 28px; width: 100%; max-width: 1180px; box-sizing: border-box; }
.sh-main.narrow { max-width: 900px; }

/* Su telefono: barra in alto con il pulsante Menu. */
@media (max-width: 900px) {
  .sh-wrap { flex-direction: column; }
  .sh-side { position: static; height: auto; flex: none; padding: 10px 12px; overflow: visible; }
  .sh-brand { padding: 6px 4px; }
  .sh-menu-btn {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    border: 1px solid #3A352F; border-radius: 8px; background: transparent; color: #F4F3F0;
    font: 600 14px var(--sans); cursor: pointer;
  }
  .sh-nav-wrap { display: none; padding: 8px 0 40px; }
  .sh-nav-wrap.open { display: flex; }
  .sh-top { padding: 12px 16px; }
  .sh-main { padding: 20px 16px 60px; }
}

/* ===== Pezzi comuni ===== */

.sh-stack { display: flex; flex-direction: column; gap: 24px; }
.sh-kicker { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sh-hello { margin: 6px 0 0; font-family: var(--display); font-size: 38px; line-height: 1.1; overflow-wrap: anywhere; }
.sh-lead { margin: 6px 0 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.5; max-width: 75ch; }
.sh-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }

.sh-card { background: #FFFFFF; border: 1px solid var(--rule); border-radius: 10px; }
.sh-pad { padding: 20px; }
.sh-card h2, .sh-h2 { margin: 0; font-size: 16px; font-family: var(--sans); font-weight: 700; }
.sh-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; }

.sh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.sh-stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
body.sh a.sh-stat { color: var(--ink); }
body.sh a.sh-stat:hover { border-color: var(--accent); color: var(--ink); }
.sh-stat-n { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
.sh-stat-l { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }

.sh-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sh-cols > .wide { flex: 2 1 420px; min-width: 0; }
.sh-cols > .narrow { flex: 1 1 300px; min-width: 0; }
.sh-cols > .half { flex: 1 1 360px; min-width: 0; }

.sh-list-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid #EEEAE3;
  text-decoration: none;
}
body.sh a.sh-list-row { color: var(--ink); }
body.sh a.sh-list-row:hover { background: #FAF8F4; color: var(--ink); }
.sh-list-row.on { background: #F4EFE4; }
.sh-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sh-list-main b { font-size: 15px; overflow-wrap: anywhere; }
.sh-list-main span { font-size: 13px; color: var(--ink-3); }
.sh-date { width: 52px; flex: none; text-align: center; line-height: 1.1; }
.sh-date b { display: block; font-family: var(--display); font-size: 24px; }
.sh-date span { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; font-weight: 700; }
.sh-empty { margin: 0; padding: 18px 20px; border-top: 1px solid #EEEAE3; color: var(--ink-3); font-size: 14px; }
.sh-more { display: block; padding: 12px 20px; border-top: 1px solid #EEEAE3; font-size: 13.5px; font-weight: 600; }

.sh-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.sh-badge.ok { background: #E0EEE3; color: #245433; }
.sh-badge.info { background: #E1EAF4; color: #244A70; }
.sh-badge.warn { background: #FBE8D3; color: #8A4A0C; }
.sh-badge.draft { background: #F1EBDD; color: #6B5426; }
.sh-badge.grey { background: #EEECE8; color: #4F4A44; }
.sh-badge.dark { background: #141210; color: var(--gold); }

.sh-seg { display: inline-flex; border: 1px solid #D6D0C6; border-radius: 8px; overflow: hidden; background: #FFFFFF; }
.sh-seg a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
body.sh .sh-seg a { color: var(--ink-2); }
body.sh .sh-seg a.on { background: #141210; color: #FFFFFF; }

.sh-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sh-search input[type=search] { flex: 1 1 220px; min-height: 42px; padding: 0 14px; font: 400 15px var(--sans); border: 1px solid #D6D0C6; border-radius: 8px; background: #FFFFFF; box-sizing: border-box; }

.sh-dark-card { background: #141210; color: #F4F3F0; border-radius: 12px; padding: 24px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.sh-dark-card .sh-kicker { color: var(--gold); }
.sh-dark-title { margin: 6px 0 0; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.sh-dark-sub { margin: 6px 0 0; font-size: 14.5px; color: #D8D1C6; }
.sh-dark-card .btn.line { background: transparent; color: #F4F3F0; border-color: #4A443D; }
.sh-poster { width: 180px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #2A2622; flex: none; }
.sh-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sh-bar { height: 8px; border-radius: 999px; background: #EEEAE3; overflow: hidden; margin-top: 8px; }
.sh-bar span { display: block; height: 100%; background: var(--gold); }
.sh-dark-card .sh-bar { background: #3A332A; }

.sh-check { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #EEEAE3; font-size: 14.5px; }
.sh-check i { width: 22px; height: 22px; flex: none; border-radius: 999px; border: 2px solid #D6D0C6; display: flex; align-items: center; justify-content: center; box-sizing: border-box; color: transparent; }
.sh-check.done i { background: #245433; border-color: #245433; color: #FFFFFF; }
.sh-check.done span { color: var(--ink-3); text-decoration: line-through; }
body.sh .sh-check a { color: var(--ink); }

.sh-kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #EEEAE3; font-size: 14.5px; flex-wrap: wrap; }
.sh-kv > span:first-child { color: var(--ink-3); }

.sh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sh-tile { padding: 18px; display: flex; gap: 14px; align-items: center; text-decoration: none; }
body.sh a.sh-tile { color: var(--ink); }
body.sh a.sh-tile:hover { border-color: var(--accent); color: var(--ink); }
.sh-tile-logo { width: 52px; height: 52px; flex: none; border-radius: 10px; background: #141210; color: var(--gold); font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sh-tile-logo img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; padding: 4px; box-sizing: border-box; }

.sh-cover { aspect-ratio: 16 / 9; background: #EEEAE3; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #8A8279; }
.sh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Calendario ===== */

.cal { overflow: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: #FAF8F4; border-bottom: 1px solid var(--rule); }
.cal-cell { min-height: 108px; padding: 8px; border-right: 1px solid #EEEAE3; border-bottom: 1px solid #EEEAE3; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: #FAF8F4; color: #A69D92; }
.cal-day { font-size: 13px; font-weight: 700; }
.cal-cell.today .cal-day { background: var(--gold); color: #141210; border-radius: 999px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.chip { display: block; font-size: 12px; line-height: 1.3; padding: 4px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
body.sh .chip.pub { background: #E0EEE3; color: #245433; }
body.sh .chip.ev { background: #E1EAF4; color: #244A70; }
body.sh .chip.evdraft { background: #F1EBDD; color: #6B5426; }
.cal-legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cal-legend .chip { display: inline-block; }
@media (max-width: 760px) {
  .cal-cell { min-height: 64px; padding: 4px; }
  .chip { font-size: 10px; padding: 2px 3px; }
  .cal-wd { padding: 8px 2px; font-size: 10px; letter-spacing: 0; text-align: center; }
}

/* ===== Elenco articoli ===== */
.art-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 20px; border-top: 1px solid #EEEAE3; text-decoration: none; }
body.sh a.art-row { color: var(--ink); }
body.sh a.art-row:hover { background: #FAF8F4; color: var(--ink); }
.art-row .ed-thumb { width: 72px; height: 54px; }
.art-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) {
  .art-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .art-row .ed-thumb { width: 56px; height: 44px; }
  .art-badges { grid-column: 2; justify-content: flex-start; }
}

/* ===== Pagina del club: anteprima ===== */
.club-prev-hero { background: #141210; color: #F4F3F0; padding: 24px; display: flex; gap: 18px; align-items: center; border-radius: 10px 10px 0 0; }
.club-prev-hero .sh-ident-logo { width: 64px; height: 64px; }
.club-prev-hero .k { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.club-prev-hero .n { margin: 4px 0 0; font-family: var(--display); font-size: 26px; font-weight: 700; overflow-wrap: anywhere; }
.club-prev-hero .c { margin: 2px 0 0; font-size: 14px; color: #D8D1C6; }
.club-prev-body { padding: 18px 22px; font-size: 15px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }

/* ===== Accesso (pagina divisa in due) ===== */
.lg-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; }
.lg-hero { flex: 1 1 420px; box-sizing: border-box; background: #141210; color: #F4F3F0; padding: 44px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.lg-hero h1 { margin: 0; font-family: var(--display); font-size: 42px; line-height: 1.1; max-width: 14em; }
.lg-hero p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: #D8D1C6; max-width: 32em; }
.lg-hero .sh-brand { padding: 0; }
.lg-hero small { color: #A69D92; font-size: 13px; }
.lg-form-side { flex: 1 1 420px; box-sizing: border-box; padding: 44px 24px; display: flex; align-items: center; justify-content: center; }
.lg-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.lg-box h2 { margin: 0; font-family: var(--display); font-size: 32px; }
.lg-box form { display: flex; flex-direction: column; gap: 14px; }
.lg-box form .btn { width: 100%; min-height: 50px; font-size: 15px; }
.lg-check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 44px; font-weight: 400; }
.lg-check input { width: 18px; height: 18px; }
.lg-alt { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.lg-alt .sh-card { padding: 16px; display: flex; gap: 14px; align-items: center; font-size: 14px; line-height: 1.45; }
.lg-alt .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #141210; color: var(--gold); display: flex; align-items: center; justify-content: center; }
.lg-alt .ico.light { background: #F1EBDD; color: #6B5426; }
.lg-alt .txt { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .lg-hero { padding: 28px 20px; gap: 18px; flex-basis: 100%; }
  .lg-hero h1 { font-size: 30px; }
  .lg-hero p { font-size: 15px; margin-top: 10px; }
  .lg-hero small { display: none; }
  .lg-form-side { padding: 28px 16px 48px; }
}
.sh-badge.bad { background: #F8DDD6; color: #7A1E12; }
body.sh a.btn, body.sh a.btn:hover { color: var(--ink); }
body.sh a.btn.primary, body.sh a.btn.primary:hover { color: #FFFFFF; }
body.sh a.btn.gold, body.sh a.btn.gold:hover { color: #141210; }
body.sh .sh-dark-card a.btn.line { color: #F4F3F0; }
.sh-stats.tiles { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sh-stats.tiles .sh-stat-n { font-size: 28px; }

/* ===== Uscita programmata (modulo articolo) ===== */
body.sh .badge.sched { background: #E1EAF4; color: #244A70; }
.sched-box { margin: 0; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 10px; background: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.sched-box.on { border-color: #9DB6D3; background: #F5F8FC; }
.sched-box legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.sched-box .ed-help { margin: 0; }
.sched-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.sched-fields .fld { flex: 1 1 180px; }
body.sh .chip.prog { background: #FFFFFF; color: #244A70; border: 1px dashed #7FA6CF; }

/* ===== Cartelle della redazione (albero nella barra) ===== */
.sh-side-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
body.sh .sh-side-h a { color: var(--gold); font-size: 11px; letter-spacing: .08em; text-decoration: none; border: 1px solid #3A352F; border-radius: 999px; padding: 2px 8px; }
body.sh .sh-side-h a:hover { color: #FFFFFF; border-color: #6A645C; }
.sh-tree { display: flex; flex-direction: column; gap: 1px; }
.sh-tree-row { display: flex; align-items: center; min-height: 38px; border-radius: 6px; list-style: none; }
.sh-tree-row::-webkit-details-marker { display: none; }
summary.sh-tree-row { cursor: pointer; }
.sh-tree-row.sub { padding-left: 18px; }
.sh-tree-sp, .sh-tree-tog { width: 26px; flex: none; display: flex; align-items: center; justify-content: center; }
.sh-tree-tog::before { content: ""; width: 6px; height: 6px; border-right: 2px solid #A69D92; border-bottom: 2px solid #A69D92; transform: rotate(-45deg); transition: transform .15s; }
details[open] > summary .sh-tree-tog::before { transform: rotate(45deg); }
.sh-tree-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 38px; padding-right: 10px; border-radius: 6px; font-size: 14px; text-decoration: none; }
body.sh .sh-tree-link { color: #D8D1C6; }
body.sh .sh-tree-link svg { color: var(--gold); flex: none; }
body.sh .sh-tree-row:hover, body.sh .sh-tree-link:hover { background: #2A2622; color: #FFFFFF; }
body.sh .sh-tree-link.on { background: #3A332A; color: #FFFFFF; }
.sh-tree-link .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-tree-empty { margin: 4px 14px; font-size: 13px; color: #A69D92; line-height: 1.45; }
body.sh .sh-tree-empty a { color: var(--gold); }

/* Pagina "Cartelle" */
.fold-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid #EEEAE3; flex-wrap: wrap; }
.fold-row.sub { padding-left: 48px; }
.fold-row .sh-list-main { flex: 1 1 200px; }
.fold-row form { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fold-row input[type=text] { padding: 8px 10px; font-size: 14px; }
.fold-row select { width: auto; padding: 8px 10px; font-size: 14px; }
.fold-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fold-actions details > summary { list-style: none; cursor: pointer; }
.fold-actions details > summary::-webkit-details-marker { display: none; }
.fold-actions details[open] { flex-basis: 100%; }
.fold-edit { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 4px; }
.stage-pick { margin: 0; padding: 0; border: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stage-pick legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; width: 100%; }
.stage-pick label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #D6D0C6; border-radius: 999px; background: #FFFFFF; font-size: 14px; cursor: pointer; }
.stage-pick label:has(input:checked) { background: #141210; border-color: #141210; color: #FFFFFF; }
.stage-pick input { width: auto; margin: 0; accent-color: var(--gold); }
.sh-seg { max-width: 100%; overflow-x: auto; }
.sh-seg a { white-space: nowrap; }
.fold-row:has(details[open]) .fold-actions { flex: 1 1 100%; justify-content: flex-end; }
.fold-actions details[open] { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fold-edit { width: 100%; padding: 12px 16px; background: #FAF8F4; border: 1px solid #EEEAE3; border-radius: 8px; box-sizing: border-box; }
.fold-edit form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; width: 100%; }
.fold-edit .fld { flex: 1 1 200px; }
.fold-edit input[type=text], .fold-edit select { width: 100%; min-height: 40px; box-sizing: border-box; }
.fold-edit > form + form, .fold-edit > form + .ed-help { align-self: flex-start; }

/* "Chi scrive" (anteprima nella redazione; sul sito lo stile è in site.css) */
body.sh .author-box { display: flex; gap: 18px; align-items: flex-start; margin: 0; padding: 20px 22px; border-top: 2px solid #141210; background: #FFFFFF; border-radius: 0 0 8px 8px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
body.sh .author-photo { width: 72px; height: 72px; flex: none; border-radius: 999px; object-fit: cover; }
body.sh .author-photo.initials { display: flex; align-items: center; justify-content: center; background: #141210; color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 24px; }
body.sh .author-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.sh .author-txt p { margin: 6px 0 0; font-family: "Source Serif 4", Georgia, serif; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
body.sh .author-k { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
body.sh .author-n { font-family: var(--display); font-size: 22px; }
body.sh .author-t { font-size: 13.5px; color: var(--ink-3); }

/* ===== Bacheca di redazione ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.note { display: flex; gap: 12px; align-items: flex-start; }
.note-ini { width: 34px; height: 34px; flex: none; border-radius: 999px; background: #F1EBDD; color: #6B5426; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.note-body { flex: 1; min-width: 0; }
.note-meta { margin: 0; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.note-meta b { color: var(--ink); }
.note-del { margin: 0; display: inline; }
.note-del .link-btn { font-size: 12.5px; color: var(--ink-3); }
.note-text { margin: 3px 0 0; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.note-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; border-top: 1px solid #EEEAE3; padding-top: 14px; }
.note-form textarea { min-height: 46px; }

/* ===== Account e privacy ===== */
.priv-row > span { flex: 1 1 220px; color: var(--ink); line-height: 1.45; }
.priv-row small { color: var(--ink-3); font-size: 13px; }
.priv-row form { margin: 0; }
.priv-list { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.55; }
body.sh .btn.danger-fill { background: #9B2C1E; border-color: #9B2C1E; color: #FFFFFF; }
body.sh .btn.danger-fill:hover { background: #7A1E12; }
.priv-row > span b { color: var(--ink); }

/* ===== Direzione: registro delle decisioni ===== */
.dec-list { display: flex; flex-direction: column; }
.dec { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #EEEAE3; }
.dec .sh-date span { font-size: 11px; }
.car-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px 4px 0; }
.car-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }

/* ===== Selettore degli spazi e percorso in alto ===== */
.sh-spaces { margin: 4px 2px 14px; padding: 10px; border-radius: 10px; background: #1F1C19; display: flex; flex-direction: column; gap: 4px; }
.sh-spaces-h { margin: 0 6px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A69D92; }
.sh-space { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
body.sh .sh-space { color: #D8D1C6; }
body.sh .sh-space:hover { background: #2A2622; color: #FFFFFF; }
body.sh .sh-space.on { border-color: var(--gold); color: #FFFFFF; background: #2A2622; }
body.sh .sh-space.on svg { color: var(--gold); }
.sh-space span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sh-where { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.sh-back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px; border: 1px solid #D6D0C6; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
body.sh .sh-back, body.sh .sh-back:hover { color: var(--ink); }
body.sh .sh-back:hover { border-color: var(--accent); }
.sh-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 13.5px; color: var(--ink-3); min-width: 0; }
body.sh .sh-crumb a { color: var(--ink-3); text-decoration: none; }
body.sh .sh-crumb a:hover { color: var(--ink); text-decoration: underline; }
.sh-crumb b { color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 900px) { .sh-crumb a, .sh-crumb span { display: none; } }

/* In evidenza (modulo articolo) */
.featured-pick { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #E6D9BC; border-radius: 10px; background: #FBF6EA; }
.featured-pick label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.featured-pick input { width: auto; margin: 0; accent-color: #A88442; }
.featured-pick small { color: #6B6258; font-size: 12.5px; }
.sh-badge.gold { background: #F3E6C6; color: #6B4E14; }

/* ===== Portale › Soci e quote ===== */
body.sh .soci-dpa { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: #FFF6DE; border: 1px solid #E8D193; border-radius: 10px; padding: 16px 18px; margin-top: 14px; }
body.sh .soci-dpa span { font-size: 14px; line-height: 1.5; color: #5C5146; }
body.sh .soci-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: 16px 0 14px; flex-wrap: wrap; }
body.sh .soci-tab { padding: 10px 14px; font-weight: 600; color: var(--ink-3); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
body.sh .soci-tab.on { color: var(--ink); font-weight: 800; border-bottom-color: var(--gold, #C9A867); }
body.sh .soci-req { align-items: flex-start; flex-wrap: wrap; }
body.sh .soci-req .ed-row-main { text-decoration: none; color: inherit; min-width: 240px; }
body.sh .soci-msg { font-size: 13.5px; color: var(--ink-2); }
body.sh .soci-accept { display: flex; gap: 6px; align-items: center; }
body.sh .soci-accept label { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); }
body.sh .soci-accept input { width: 120px; padding: 4px 8px; }
body.sh .soci-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
body.sh .soci-year { display: flex; align-items: center; gap: 8px; }
body.sh .fee { border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
body.sh .fee.paid { border: 1px solid #A9D3AC; background: #E6F4E7; color: #24612A; }
body.sh .fee.due { border: 1px solid #E8C2BB; background: #FBEAE7; color: #9A2E22; }
body.sh .fee-row { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
body.sh .fee-row b { width: 48px; }
body.sh .soci-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
body.sh .soci-docs figure { margin: 0; border: 1px solid var(--rule); border-radius: 10px; padding: 12px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
body.sh .soci-docs figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
body.sh .soci-docs figcaption span { font-size: 12.5px; color: var(--ink-3); }
body.sh .soci-doc-imgs { display: flex; flex-direction: column; gap: 8px; }
body.sh .soci-doc-imgs img { width: 100%; border-radius: 6px; display: block; -webkit-user-select: none; user-select: none; }
body.sh .soci-dpa-text h3 { font-size: 15px; margin: 16px 0 4px; }
body.sh .soci-dpa-text p, body.sh .soci-dpa-text li { font-size: 14px; line-height: 1.55; }
body.sh .req-docs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
body.sh .req-docs .ed-check { font-weight: 400; }

/* ===== Portale del club: Panoramica e calendario (27/11) ===== */
.pc-sec { margin-bottom: 10px; }
.pc-muted { margin: 6px 0 10px; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.pc-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pc-card-h h2 { font-family: var(--display); font-size: 21px; }
.pc-card-h > a { font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pc-link { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; text-decoration: none; }

/* Da fare */
.pc-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.pc-todo-item { display: flex; flex-direction: column; gap: 6px; padding: 18px; text-decoration: none; }
body.sh a.pc-todo-item { color: var(--ink); }
body.sh a.pc-todo-item:hover { border-color: var(--accent); color: var(--ink); }
.pc-todo-item.hot { border-color: #E4C98F; background: #FFFBF2; }
.pc-n { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1; }
.pc-todo-item b { font-size: 15px; }
.pc-t { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; overflow-wrap: anywhere; }
.pc-go { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.pc-allok { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.pc-allok svg { color: #245433; flex: none; }

.pc-grid2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* Calendario piccolo */
.pc-mnav { display: flex; align-items: center; gap: 6px; }
.pc-mnav b { font-family: var(--display); font-size: 17px; min-width: 8.5em; text-align: center; }
.pc-mnav .btn.sm { padding: 0 10px; }
.pc-mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.pc-wd { font-size: 11px; font-weight: 700; color: var(--ink-3); padding: 4px 0; }
.pc-md { min-height: 44px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 14px; text-decoration: none; }
body.sh a.pc-md { color: var(--ink); }
body.sh a.pc-md:hover { background: #F4F1EA; color: var(--ink); }
body.sh a.pc-md.out { color: #B9B2A7; }
body.sh a.pc-md.today { background: #141210; color: var(--gold); font-weight: 700; }
.pc-dots { display: flex; gap: 3px; height: 6px; justify-content: center; }
.pc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.pc-md.today .pc-dots i { box-shadow: 0 0 0 1.5px var(--gold); }
.pc-week { border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 12px; }
.pc-week h3 { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pc-erow { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; text-decoration: none; }
body.sh a.pc-erow { color: var(--ink); }
.pc-erow + .pc-erow { border-top: 1px solid #EEEAE3; }
.pc-erow > i, .pc-dayev > i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; margin-top: 6px; }
.pc-erow b { display: block; font-size: 14px; font-weight: 600; }
.pc-erow small { color: var(--ink-3); font-size: 12.5px; }

/* Prossimi eventi */
.pc-ev { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #EEEAE3; }
.pc-ev:first-of-type { border-top: 0; padding-top: 0; }
.pc-ev .sh-date { border: 1px solid var(--rule); border-radius: 8px; padding: 6px 0; }
.pc-ev-main { flex: 1; min-width: 0; }
.pc-ev-main a { text-decoration: none; }
body.sh .pc-ev-main a b { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
body.sh .pc-ev-main a:hover b { color: var(--accent); }
.pc-meta { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }

/* Soci */
.pc-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.pc-kpi b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; }
.pc-kpi span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.pc-meter { height: 10px; }
.pc-meter-l { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* Ultime attività */
.pc-feed { list-style: none; margin: 0; padding: 0; }
.pc-feed li { padding: 10px 0; border-top: 1px solid #EEEAE3; font-size: 14px; overflow-wrap: anywhere; }
.pc-feed li:first-child { border-top: 0; padding-top: 0; }
.pc-feed small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* Calendario per i soci */
.pc-copy { display: flex; gap: 8px; margin: 4px 0 8px; }
.pc-copy input { flex: 1; min-width: 0; min-height: 42px; border: 1px solid var(--rule); border-radius: 8px; padding: 0 12px; font: 400 13.5px var(--sans); background: #FAF8F4; color: var(--ink-2); box-sizing: border-box; }
.pc-share-act { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-how { margin: 8px 0 14px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }

/* Eventi: calendario grande */
.pc-calbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-mtitle { font-size: 22px !important; min-width: 9em !important; }
.pc-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -10px; }
.pc-legend a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 999px; background: #FFFFFF; font-size: 12.5px; text-decoration: none; }
body.sh .pc-legend a { color: var(--ink-2); }
.pc-legend a i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.pc-legend a.off { opacity: .5; text-decoration: line-through; }
.pc-evlayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: -8px; }
.pc-evmain { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pc-month { overflow: hidden; }
.pc-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pc-mwd { padding: 9px 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); background: #FAF8F4; border-bottom: 1px solid var(--rule); }
.pc-cell { min-height: 112px; padding: 6px; border-right: 1px solid #EEEAE3; border-bottom: 1px solid #EEEAE3; display: flex; flex-direction: column; gap: 3px; text-decoration: none; min-width: 0; box-sizing: border-box; }
body.sh a.pc-cell { color: var(--ink); }
body.sh a.pc-cell:hover { background: #FBFAF7; color: var(--ink); }
.pc-cell:nth-child(7n) { border-right: 0; }
.pc-cell.out { background: #FAF8F4; }
body.sh a.pc-cell.out { color: #A69D92; }
.pc-cell.sel { box-shadow: inset 0 0 0 2px #141210; }
.pc-cday { font-size: 13px; font-weight: 700; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.pc-cell.today .pc-cday { background: #141210; color: var(--gold); }
.pc-chip { display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
  background: color-mix(in srgb, var(--c) 14%, #FFFFFF); color: color-mix(in srgb, var(--c) 72%, #000000); }
.pc-chip.draft { background: #FFFFFF; border: 1px dashed var(--c); }
.pc-chip.multi { border-radius: 0; }
.pc-more { font-size: 11.5px; color: var(--ink-3); padding-left: 6px; }
.pc-cell .pc-dots { display: none; }
.pc-note { margin: -6px 0 0; font-size: 13px; color: var(--ink-3); }
.pc-tdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.pc-list { overflow: hidden; }
.pc-list .sh-card-head { border-bottom: 0; }
.pc-past summary { cursor: pointer; list-style: none; }
.pc-past summary::-webkit-details-marker { display: none; }
.pc-past summary .pc-muted { margin: 0; }

/* Giorno scelto */
.pc-day { position: sticky; top: 20px; }
.pc-day-h { font-family: var(--display) !important; font-size: 20px !important; }
.pc-dayev { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid #EEEAE3; }
.pc-dayev > div { flex: 1; min-width: 0; }
.pc-dayev b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.pc-dayev small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.pc-badges { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.pc-dayact { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.pc-addday { width: 100%; margin-top: 12px; justify-content: center; box-sizing: border-box; }

/* Importa .ics */
.pc-upload { display: flex; flex-direction: column; gap: 10px; }
.pc-upload input[type=file] { font: 400 15px var(--sans); padding: 10px; border: 1.5px dashed #CFC8BB; border-radius: 10px; background: #FAF8F4; }
.pc-imp { overflow: hidden; }
.pc-imp-head, .pc-imp-row { display: grid; grid-template-columns: 64px 140px minmax(0, 1fr) 190px; gap: 12px; align-items: center; padding: 10px 16px; }
.pc-imp-head { background: #FAF8F4; border-bottom: 1px solid var(--rule); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.pc-imp-row { border-top: 1px solid #EEEAE3; }
.pc-imp-row.dup { background: #FBFAF7; }
.pc-imp-pick { display: flex; justify-content: center; }
.pc-imp-pick input { width: 20px; height: 20px; accent-color: #141210; margin: 0; }
.pc-imp-date b, .pc-imp-main b { display: block; font-size: 14px; }
.pc-imp-date small, .pc-imp-main small { display: block; color: var(--ink-3); font-size: 12.5px; }
.pc-imp-main b { overflow-wrap: anywhere; }
.pc-dup { color: #8A4A0C !important; font-weight: 700; }
.pc-imp-type select { width: 100%; min-height: 38px; }
.pc-imp-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; bottom: 12px; box-shadow: 0 6px 20px rgba(20, 18, 16, .08); }

@media (max-width: 1100px) {
  .pc-grid2, .pc-evlayout { grid-template-columns: minmax(0, 1fr); }
  .pc-grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pc-day { position: static; }
}
@media (max-width: 760px) {
  .pc-grid3 { grid-template-columns: minmax(0, 1fr); }
  .pc-cell { min-height: 58px; align-items: center; padding: 4px 2px; }
  .pc-cell .pc-chip, .pc-cell .pc-more { display: none; }
  .pc-cell .pc-dots { display: flex; }
  .pc-mwd { padding: 7px 0; text-align: center; font-size: 11px; }
  .pc-imp-head { display: none; }
  .pc-imp-row { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; align-items: start; }
  .pc-imp-pick { grid-row: span 3; padding-top: 2px; }
  .pc-imp-type { grid-column: 2; }
}

/* Redazione › Post e storie app: ordine delle schede (29/11) */
.seq-order { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.seq-order li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; }
.seq-order img { width: 72px; height: 128px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.seq-order li > div, .seq-order .btn { min-width: 36px; }
.fld[hidden], [data-show-when][hidden] { display: none; }

/* Anteprima di post e storie RustWheel (30/11), come nell'app */
.pv-compose { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 12px; }
@media (max-width: 860px) { .pv-compose { grid-template-columns: minmax(0, 1fr); } }
.pv-caption { margin: 0 0 6px; font-size: 12px; color: var(--ink-3); }
.pv-phone { position: relative; width: 300px; background: #171411; color: #F1E8D9; border-radius: 26px; border: 6px solid #2A251F; overflow: hidden; font-size: 13px; }
.pv-head { display: flex; gap: 8px; align-items: center; padding: 10px 12px; }
.pv-av { width: 30px; height: 30px; border-radius: 50%; background: #000; border: 1.5px solid #C1A16B; object-fit: cover; }
.pv-who { display: flex; flex-direction: column; line-height: 1.2; }
.pv-who span { font-size: 11px; color: #B9AD96; }
.pv-media { position: relative; aspect-ratio: 4 / 5; background: #24201B; display: flex; align-items: center; justify-content: center; }
.pv-media img { width: 100%; height: 100%; object-fit: contain; }
.pv-count { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); border-radius: 10px; padding: 2px 8px; font-size: 11px; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #F1E8D9; font-size: 20px; cursor: pointer; }
.pv-nav:disabled { opacity: .25; cursor: default; }
.pv-prev { left: 8px; } .pv-next { right: 8px; }
.pv-dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0 0; }
.pv-dots span { width: 6px; height: 6px; border-radius: 50%; background: #5A5146; }
.pv-dots span.on { background: #C1A16B; }
.pv-actions { padding: 8px 12px 0; font-size: 11px; color: #B9AD96; }
.pv-text { margin: 6px 12px 14px; white-space: pre-wrap; line-height: 1.4; }
.pv-empty { color: #8C7A5C; font-size: 12px; padding: 40px 0; }
.pv-story { aspect-ratio: 9 / 16; background: #000; display: flex; align-items: center; justify-content: center; }
.pv-story .pv-head { position: absolute; top: 12px; left: 0; right: 0; z-index: 2; }
.pv-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pv-bars { position: absolute; top: 6px; left: 8px; right: 8px; display: flex; gap: 3px; z-index: 2; }
.pv-bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.3); }
.pv-bars span.on { background: #F1E8D9; }
.pv-caption-story { position: absolute; left: 16px; right: 16px; bottom: 74px; margin: 0; text-align: center; font-size: 15px; text-shadow: 0 1px 3px #000; z-index: 2; }
.pv-button { position: absolute; left: 16px; right: 16px; bottom: 18px; background: #C1A16B; color: #171411; font-weight: 700; text-align: center; border-radius: 22px; padding: 11px 8px; z-index: 3; }
.pv-tap { position: absolute; top: 40px; bottom: 70px; width: 50%; background: transparent; border: 0; cursor: pointer; z-index: 2; }
.pv-tap-l { left: 0; } .pv-tap-r { right: 0; }

/* ===== Moduli (02/12/2026): campi più curati in redazione, portale dei club e area riservata =====
   :where() tiene bassa la specificità, così le regole dei singoli componenti restano valide. */
body.sh .fld { gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
body.sh .fld > small { order: 3; font-size: 12.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-top: -2px; }
body.sh .fld > :where(input, select, textarea) { order: 2; }

body.sh :where(input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
  input[type=time], input[type=datetime-local], input[type=tel], input[type=url], input[type=search], select, textarea) {
  box-sizing: border-box;
  min-height: 46px;
  padding: 11px 14px;
  font: 400 15.5px var(--sans);
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid #DAD4C9;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(20, 18, 16, .04);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.sh :where(input, select, textarea):hover:not(:disabled):not(:focus) { border-color: #BDB4A6; }
body.sh :where(input, select, textarea):focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 103, .28); }
body.sh :where(input, select, textarea):disabled { background: #F1EEE8; color: var(--ink-3); cursor: not-allowed; }
body.sh :where(input, textarea)::placeholder { color: #A39B90; }
body.sh :where(textarea) { line-height: 1.55; min-height: 96px; }
body.sh :where(input[type=date], input[type=time], input[type=datetime-local]) { font-variant-numeric: tabular-nums; }
body.sh :where(input[type=date], input[type=time], input[type=datetime-local])::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

/* Tendine: freccia dorata al posto di quella di sistema */
body.sh :where(select:not([multiple])) {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238C6A2F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  cursor: pointer;
}

/* Caselle e scelte: colori del sito */
body.sh :where(input[type=checkbox], input[type=radio]) { width: 18px; height: 18px; margin: 0; accent-color: #141210; cursor: pointer; flex: none; }
/* Gruppi di caselle (fieldset): ogni scelta è una "pillola" */
body.sh :where(fieldset) > label:has(> input[type=checkbox], > input[type=radio]) {
  display: inline-flex !important; align-items: center; gap: 8px !important;
  min-height: 40px; padding: 0 14px; box-sizing: border-box;
  background: #FFFFFF; border: 1px solid #DAD4C9; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
body.sh :where(fieldset) > label:has(> input:checked) { background: #F6EFE0; border-color: var(--gold); }
body.sh :where(fieldset) > label:has(> input:focus-visible) { box-shadow: 0 0 0 3px rgba(201, 168, 103, .28); }
body.sh :where(fieldset) { gap: 8px !important; }
body.sh :where(fieldset) > legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 8px; }

/* Caricamento file */
body.sh :where(input[type=file]) { font: 400 14px var(--sans); color: var(--ink-3); max-width: 100%; }
body.sh :where(input[type=file])::file-selector-button {
  margin-right: 12px; min-height: 40px; padding: 0 16px;
  font: 600 14px var(--sans); color: var(--ink);
  background: #FFFFFF; border: 1px solid #DAD4C9; border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
body.sh :where(input[type=file])::file-selector-button:hover { border-color: var(--gold); background: #FBF7EE; }

/* Campi sbagliati dopo l'invio */
body.sh :where(input, select, textarea):user-invalid { border-color: #C0574A; box-shadow: 0 0 0 3px rgba(155, 44, 30, .12); }
body.sh input[name=title] { font: 800 22px var(--display); }   /* titolo dell'articolo */
body.sh .btn { border-radius: 10px; }
