/* Caratteri serviti dal portale (non da Google Fonts). Inter e Space Grotesk, licenza SIL OFL 1.1: vedi LICENSE-*.txt */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/space-grotesk-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/space-grotesk-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ground: #F6F7F5;
  --card: #FFFFFF;
  --ink: #14181F;
  --muted: #4A5260;
  --line: #E3E6E2;
  --line-soft: #EEF0ED;
  --field: #C9CFC8;
  --accent: #1F6B47;
  --accent-ink: #FFFFFF;
  --ok-bg: #DCEBE2; --ok-ink: #14422C;
  --warn-bg: #FDF1D6; --warn-ink: #6B4A00;
  --ko-bg: #FBE3CF; --ko-ink: #7A3410;
  --nav: #14181F; --nav-ink: #C9CFD8; --nav-active: #2A303A;
  --c-socio: #DCEBE2; --c-socio-ink: #14422C;
  --c-non: #FBE3CF; --c-non-ink: #7A3410;
  --c-corso: #DDE6F3; --c-corso-ink: #1D3A63;
  --c-lezione: #E9E1F3; --c-lezione-ink: #452A6B;
  --c-bloccato: #E6E6E3; --c-bloccato-ink: #3A3F47;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
h1, h2, h3 { margin: 0; }
h1 { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 700; }
a { color: inherit; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; }
.right { text-align: right; }

/* Bottoni e campi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--field); background: var(--card); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { min-height: 52px; font-size: 16px; width: 100%; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.danger { color: var(--ko-ink); border-color: #E7B48F; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

label.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--field); background: var(--card); width: 100%;
}
textarea { padding: 10px 12px; min-height: 80px; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
input:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px;
}
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

/* Superfici */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.pad { padding: 14px 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.ko { background: var(--ko-bg); color: var(--ko-ink); }
.pill.neutral { background: var(--line-soft); color: var(--muted); }

.banner { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.banner.ok { background: var(--ok-bg); color: var(--ok-ink); }
.banner.warn { background: var(--warn-bg); color: var(--warn-ink); }
.banner.ko { background: var(--ko-bg); color: var(--ko-ink); }

.demo-bar {
  background: #2A303A; color: #E8EBEF; font-size: 12.5px; padding: 6px 16px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.demo-bar a { color: #FFFFFF; }

/* ---------------- App del socio e del maestro (telefono) ---------------- */
.phone { max-width: 480px; margin: 0 auto; min-height: calc(100vh - 30px); display: flex; flex-direction: column; background: var(--ground); }
.phone-head { background: var(--accent); color: #FFFFFF; padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.phone-head .sub { color: rgba(255, 255, 255, .88); font-size: 14px; }
.phone-head .tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-weight: 600; }
.phone-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; padding-bottom: 6px; }
.phone-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.phone-bottom { position: sticky; bottom: 0; z-index: 5; }
.phone-foot { background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.tabbar { background: var(--card); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; font-size: 12px; color: var(--muted); text-decoration: none; }
.tabbar a.on { color: var(--accent); font-weight: 600; }
.tabbar svg { width: 22px; height: 22px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.days a {
  flex: 0 0 auto; width: 56px; min-height: 64px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--ink);
}
.days a .d { font-size: 12px; color: var(--muted); }
.days a .n { font-size: 18px; font-weight: 700; }
.days a.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.days a.on .d { color: var(--nav-ink); }

.slots { display: grid; gap: 6px; }
.slots .hrow { display: grid; grid-template-columns: 52px repeat(var(--cols), minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.slots .hlabel { font-size: 13px; color: var(--muted); display: flex; align-items: center; }
.slots .chead { font-size: 12px; font-weight: 600; text-align: center; color: var(--muted); }
.slot {
  min-height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; text-decoration: none; text-align: center; padding: 2px 4px;
}
a.slot.free { border: 1px solid var(--field); background: var(--card); color: var(--accent); }
a.slot.free:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, white); }
.slot.busy { background: var(--line-soft); color: #8A929E; font-size: 11px; overflow: hidden; }
.slot.mine { background: var(--accent); color: #FFFFFF; }
.slot.past { background: transparent; color: #B4BAC2; border: 1px dashed var(--line); }
.slot.short { background: transparent; color: #B4BAC2; border: 1px solid var(--line-soft); }
.slots .hrow .slot { min-height: 34px; }
.slots .hrow.half .hlabel { visibility: hidden; }
.slots { gap: 4px; }
.slots .hrow { gap: 4px; }
a.slot.free { font-size: 11.5px; font-weight: 500; }
.choice.disabled { opacity: .5; cursor: not-allowed; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--sw); border: 1px solid var(--swb, transparent); }

.checklist { display: flex; flex-direction: column; }
.checklist .item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.checklist .item:last-child { border-bottom: 0; }
.dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex: 0 0 auto; }
.dot.ok { background: var(--ok-bg); color: var(--ok-ink); }
.dot.ko { background: var(--ko-bg); color: var(--ko-ink); }
.dot.warn { background: var(--warn-bg); color: var(--warn-ink); }

.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 12px; background: var(--card); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }

.list .li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.list .li:first-child { border-top: 0; }

.member-card { background: var(--nav); color: #FFFFFF; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.member-card .muted { color: var(--nav-ink); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }

/* ---------------- Segreteria (computer) ---------------- */
.desk { display: flex; flex-wrap: wrap; min-height: calc(100vh - 30px); align-items: stretch; }
.sidenav { flex: 1 1 220px; max-width: 100%; background: var(--nav); color: #FFFFFF; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.sidenav .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-weight: 600; font-size: 14px; }
.marchio { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; letter-spacing: .02em; }
img.marchio { object-fit: contain; background: #FFFFFF; }
.sidenav .ico { display: flex; align-items: center; gap: 12px; }
.sidenav .ico svg { flex-shrink: 0; opacity: .9; }
.sidenav .logo { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.sidenav a { padding: 11px 12px; border-radius: 8px; color: var(--nav-ink); text-decoration: none; font-size: 14.5px; display: flex; justify-content: space-between; gap: 8px; }
.sidenav a:hover { color: #FFFFFF; }
.sidenav a.on { background: var(--nav-active); color: #FFFFFF; font-weight: 600; }
.sidenav .count { align-self: center; background: var(--warn-bg); color: var(--warn-ink); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; }
.main { flex: 999 1 560px; min-width: 0; padding: 26px 30px 40px; display: flex; flex-direction: column; gap: 18px; }
.pagehead { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi .num { font-size: 26px; }
.kpi.alert { background: #FFF4EC; border-color: #F2C9A8; color: var(--ko-ink); }
.kpi a { text-decoration: none; }

.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) td { background: #FAFBF9; }
table.data tbody tr:hover td { background: #F1F4EF; }
table.data td.right, table.data th.right { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap.lunga { max-height: 72vh; overflow: auto; }
.tablewrap.lunga table.data thead th { position: sticky; top: 0; background: var(--card); z-index: 1; box-shadow: 0 1px 0 var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--accent); }
.chip .c { font-size: 12px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--line-soft); color: var(--muted); text-align: center; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.chip.on .c { background: rgba(255, 255, 255, .22); color: #FFFFFF; }
table.data td.right, table.data th.right { white-space: nowrap; }
table.data tfoot td { border-top: 1px solid var(--line); font-weight: 700; }
table.data input { min-height: 38px; width: 84px; padding: 0 8px; }
table.data input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; }

.planner { display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(130px, 1fr)); grid-template-rows: auto repeat(var(--rows), 30px); min-width: 640px; }
.planner .ph { padding: 10px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 2; }
.planner .ph .muted { font-weight: 400; font-size: 12px; }
.planner .tl { padding: 2px 8px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.planner .tl.half { border-top-style: dashed; }
.planner .cell { border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); padding: 2px 3px; min-height: 0; overflow: hidden; }
.bk { display: block; height: 100%; border-radius: 8px; padding: 4px 8px; font-size: 12px; line-height: 1.3; text-decoration: none; overflow: hidden; position: relative; z-index: 1; }
.bk b { font-weight: 600; margin-right: 6px; }
.bk .t { font-variant-numeric: tabular-nums; opacity: .85; }
a.bk.free { font-size: 11.5px; padding: 0 8px; }
.bk.socio { background: var(--c-socio); color: var(--c-socio-ink); }
.bk.non_socio { background: var(--c-non); color: var(--c-non-ink); }
.bk.corso { background: var(--c-corso); color: var(--c-corso-ink); }
.bk.lezione { background: var(--c-lezione); color: var(--c-lezione-ink); }
.bk.bloccato { background: repeating-linear-gradient(135deg, var(--c-bloccato) 0 8px, #F1F1EE 8px 16px); color: var(--c-bloccato-ink); }
a.bk.free { color: transparent; border: 1px dashed transparent; }
a.bk.free:hover { color: var(--accent); border-color: var(--field); display: flex; align-items: center; justify-content: center; }
.bk { border-left: 4px solid transparent; transition: box-shadow .12s, transform .12s; }
.bk:not(.free):hover { box-shadow: 0 4px 14px rgba(20, 24, 31, .16); transform: translateY(-1px); z-index: 4; }
.bk.socio { border-left-color: var(--c-socio-ink); } .bk.non_socio { border-left-color: var(--c-non-ink); }
.bk.corso { border-left-color: var(--c-corso-ink); } .bk.lezione { border-left-color: var(--c-lezione-ink); }
.bk.bloccato { border-left-color: var(--c-bloccato-ink); }
.bk .bk-top { display: flex; align-items: center; gap: 5px; min-width: 0; }
.bk .bk-top svg { flex-shrink: 0; }
.bk .bk-top b, .bk .bk-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bk .bk-top b { margin-right: 0; }
.bk .bk-sub { display: block; }
.bk.alta .bk-sub { white-space: normal; }
.euro { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #C7861B; color: #FFFFFF; font-size: 10.5px; font-weight: 700; }
.bk .euro { position: absolute; top: 4px; right: 5px; }
.bk.unpaid { padding-right: 24px; }
.leg-euro::before { display: none !important; }
.leg-euro .euro { margin-right: 4px; vertical-align: -3px; }
.planner .cell.past { background: #FAFAF8; }
.ora-adesso { position: relative; height: 0; border-top: 2px solid #C2410C; z-index: 5; pointer-events: none; align-self: start; }
.ora-adesso span { position: absolute; left: 4px; top: -10px; background: #C2410C; color: #FFFFFF; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { flex: 1 1 220px; }
.filters .field.narrow { flex: 0 1 240px; }

.split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.split > .wide { flex: 999 1 520px; min-width: 0; }
.split > .side { flex: 1 1 280px; }

dialog { border: 0; border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(20, 24, 31, .25); }
dialog::backdrop { background: rgba(20, 24, 31, .45); }

/* Ricevute dei compensi sportivi */
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.meter.over span { background: #C7861B; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; background: var(--ground); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.calc .v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .tot { font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }
.calc .full { grid-column: 1 / -1; }
.sheetbox { overflow-x: auto; }
.sheet {
  background: #FFFFFF; color: #14181F; width: 100%; max-width: 794px; margin: 0 auto; box-sizing: border-box;
  padding: 7% 8%; font-size: 12px; line-height: 1.5; font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 8px 30px rgba(20, 30, 45, .1); display: flex; flex-direction: column; gap: 14px;
}
.sheet .hd { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 3px solid var(--accent); padding-bottom: 10px; }
.sheet .hd .tit { display: flex; gap: 12px; align-items: center; }
.sheet h1 { font-size: 16px; line-height: 1.25; }
.sheet .nr { text-align: right; font-weight: 600; white-space: nowrap; }
.sheet .nr .sub { font-weight: 400; color: #4A5260; }
.sheet .parts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sheet .lab { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #4A5260; margin-bottom: 2px; }
.sheet .who { font-weight: 700; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet td { padding: 5px 0; border-bottom: 1px solid #E3E6E2; vertical-align: top; }
.sheet td.v { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.sheet tr.net td { font-weight: 700; border-bottom: 2px solid #14181F; font-size: 13px; }
.sheet .legal { font-size: 10px; color: #3A4250; display: flex; flex-direction: column; gap: 4px; }
.sheet .decl { font-size: 11px; }
.sheet .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 18px; }
.sheet .bollo { border: 1px dashed #8A929E; padding: 8px 10px; font-size: 10px; text-align: center; color: #4A5260; }
.sheet .sign { width: 45%; text-align: center; font-size: 11px; color: #4A5260; }
.sheet .sign .ln { border-bottom: 1px solid #14181F; height: 36px; margin-bottom: 4px; }
.print-page { background: #E9EBE8; padding: 16px; }
.print-bar { max-width: 794px; margin: 0 auto 12px; display: flex; gap: 8px; }
.stack-print { display: flex; flex-direction: column; gap: 24px; align-items: center; }
@media print {
  @page { size: A4; margin: 0; }
  .stack-print { display: block; }
  .stack-print .sheet { break-after: page; page-break-after: always; }
  .stack-print .sheet:last-child { break-after: auto; page-break-after: auto; }
  .print-page { background: #FFFFFF; padding: 0; }
  .print-bar, .demo-bar { display: none; }
  .sheet { box-shadow: none; max-width: none; padding: 18mm 16mm; font-size: 11pt; }
}

/* Pagina di accesso: a sinistra il circolo, a destra il modulo */
.accesso { display: flex; min-height: calc(100vh - 30px); background: var(--ground); }
.accesso .lato { flex: 0 0 46%; background: var(--accent); color: #FFFFFF; padding: 48px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.accesso .lato > * { position: relative; }
.accesso .club { display: flex; align-items: center; gap: 14px; }
.accesso .club strong { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 21px; display: block; }
.accesso .club span { font-size: 14px; opacity: .85; }
.accesso .lato h1 { font-size: 40px; line-height: 1.1; max-width: 420px; }
.accesso .lato p { font-size: 17px; max-width: 400px; opacity: .92; }
.accesso .campo-disegno { position: absolute; right: -70px; top: 18%; width: 300px; height: 520px; transform: rotate(-12deg); border: 3px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .12); }
.campo-disegno i { position: absolute; border-color: rgba(255, 255, 255, .45); border-style: solid; border-width: 0; }
.campo-disegno .side { left: 34px; right: 34px; top: 0; bottom: 0; border-left-width: 2px; border-right-width: 2px; }
.campo-disegno .s1 { left: 34px; right: 34px; top: 138px; border-top-width: 2px; }
.campo-disegno .s2 { left: 34px; right: 34px; bottom: 138px; border-top-width: 2px; }
.campo-disegno .mid { left: 50%; top: 138px; bottom: 138px; border-left-width: 2px; }
.campo-disegno .rete { left: -14px; right: -14px; top: 258px; border-top-width: 4px; border-color: rgba(255, 255, 255, .9); }
.campo-disegno .palla { left: 196px; top: 214px; width: 20px; height: 20px; border-radius: 50%; background: #E8F25A; }
.accesso .modulo { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; padding: 40px 24px; }
.accesso form, .accesso .piede { width: 100%; max-width: 420px; }
.accesso .piede { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
@media (max-width: 820px) {
  .accesso { flex-direction: column; }
  .accesso .lato { flex: none; padding: 24px 20px; gap: 14px; }
  .accesso .lato h1 { font-size: 26px; }
  .accesso .lato p, .accesso .campo-disegno { display: none; }
  .accesso .modulo { justify-content: flex-start; padding: 24px 16px 40px; }
}

/* Segreteria: pagina Oggi */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpis .card { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.kpis .lab { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpis .num { font-size: 28px; }
.oggi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.todo { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); text-decoration: none; }
.todo:hover { border-color: var(--field); }
.todo .n { min-width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: 18px; }
.todo .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.todo .t span { font-size: 13px; color: var(--muted); }
.n.warn { background: var(--warn-bg); color: var(--warn-ink); } .n.ko { background: var(--ko-bg); color: var(--ko-ink); }
.n.corso { background: var(--c-corso); color: var(--c-corso-ink); } .n.lezione { background: var(--c-lezione); color: var(--c-lezione-ink); }
.campi-ora { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.campi-ora a { border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 3px; min-height: 84px; box-sizing: border-box; text-decoration: none; font-size: 13px; }
.campi-ora strong { font-size: 14px; }
.campi-ora .libero { background: var(--line-soft); color: var(--ink); }
.t-socio { background: var(--c-socio); color: var(--c-socio-ink); } .t-non_socio { background: var(--c-non); color: var(--c-non-ink); }
.t-corso { background: var(--c-corso); color: var(--c-corso-ink); } .t-lezione { background: var(--c-lezione); color: var(--c-lezione-ink); }
.t-bloccato { background: var(--c-bloccato); color: var(--c-bloccato-ink); }

/* Corsi: griglia dei pagamenti mensili */
.corso-griglia th.mese, .corso-griglia td.mese { text-align: center; padding-left: 4px; padding-right: 4px; width: 44px; }
.corso-griglia th.mese.ora { color: var(--ink); text-decoration: underline; }
.corso-griglia td.fuori { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line-soft) 6px 8px) !important; }
.stato { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; text-decoration: none; }
.stato.ok { background: var(--ok-bg); color: var(--ok-ink); }
.stato.ok:hover { outline: 2px solid var(--ok-ink); }
.stato.ko { background: var(--ko-bg); color: var(--ko-ink); }
.stato.futuro { color: var(--muted); }
.legend .stato { width: 20px; height: 20px; font-size: 11px; margin: 0 2px 0 8px; }
dialog.finestra { border: 0; border-radius: 16px; padding: 20px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(20, 24, 31, .3); }
dialog.finestra::backdrop { background: rgba(20, 24, 31, .45); }
details.azioni { position: relative; display: inline-block; }
details.azioni > summary { list-style: none; }
details.azioni > summary::-webkit-details-marker { display: none; }
details.azioni .pop { margin-top: 8px; width: 300px; text-align: left; box-shadow: 0 6px 20px rgba(20, 24, 31, .12); }
details.azioni[open] > summary { border-color: var(--accent); }
.chip.giorno { cursor: pointer; }
.chip.giorno input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent); }
.chip.giorno:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); font-weight: 600; }
.scelte { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.scelta { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.scelta input { width: 18px; height: 18px; min-height: 0; margin: 0; }

/* Aspetto del circolo */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.swatches label { position: relative; height: 52px; border-radius: 12px; cursor: pointer; display: block; }
.swatches input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatches label:has(input:checked) { outline: 3px solid var(--ink); outline-offset: 3px; }
.swatches label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.dropzone { border: 2px dashed var(--field); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; }

/* Login demo */
.login { max-width: 860px; margin: 0 auto; padding: 32px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.who .card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.who form { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 720px) {
  .main { padding: 18px 16px 32px; }
  .sidenav { flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .sidenav .brand { width: 100%; padding-bottom: 6px; }
  .sidenav a { padding: 8px 10px; font-size: 13.5px; }
  h1 { font-size: 22px; }
}

/* Icone sui pulsanti principali */
.btn[class*=" i-"]::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.i-piu { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.i-importa { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E"); }
.i-stampa { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 18H4v-7h16v7h-2M8 14h8v7H8z'/%3E%3C/svg%3E"); }
.i-esporta { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3M7 8l5-5 5 5M5 21h14'/%3E%3C/svg%3E"); }
.i-cestino { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E"); }
.i-matita { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
