/* Meeting Beach Volley — colori dal logo, titoli Anton, testo Manrope */
:root {
  --navy: #121A4F; --navy-2: #1C2768; --navy-3: #3B4791; --blue: #2B3A97; --link: #1E6FB0;
  --cyan: #19B4E6; --cyan-2: #7FD4F1; --sun: #FFD21F; --sand: #F5EEDF; --sand-2: #EFE7D6; --line: #D9CFB9;
  --muted: #4A5280; --warn: #B2470E; --radius: 18px; --nav-h: 72px;
  --display: Anton, 'Sofia Sans Extra Condensed', Impact, 'Arial Narrow', sans-serif; --body: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--navy); background: var(--sand); line-height: 1.45; }
body.is-dark { background: var(--navy); }
img { max-width: 100%; display: block; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--navy); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
main { outline: none; padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }

/* Tipografia */
/* greco: Anton non ha quelle lettere, il carattere di riserva si alza fino alle sue maiuscole */
:root[lang="el"] :is(.display, legend, caption) { font-size-adjust: cap-height from-font; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .3px; text-transform: uppercase; line-height: 1; }
h1.display, h2.display { margin: 0; }
h2.display { font-size: 22px; margin-top: 8px; }
.display.lg { font-size: clamp(34px, 8vw, 52px); }
.display.xl { font-size: clamp(48px, 13vw, 84px); line-height: .95; }
.eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.blue { color: var(--link); } .cyan { color: var(--cyan); } .sun { color: var(--sun); }
.small { font-size: 13px; } .muted { color: var(--muted); } .muted-light { color: #C9CDE6; font-size: 13px; }
.code { font-family: var(--display); letter-spacing: 4px; color: var(--navy); }
.code.big { font-size: 48px; }

/* Struttura */
.page { max-width: 1080px; margin: 0 auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.page.narrow { max-width: 560px; }
.page.dark { color: #fff; }
.page.dark a:not(.btn):not(.card):not(.tabs a) { color: var(--cyan-2); }
main:focus-visible { outline: none; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-2.tight { gap: 8px; }
.avviso-bar { display: block; margin: 0; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; padding: 12px 16px; text-align: center; text-decoration: none; }
.avviso-bar[hidden] { display: none; }
.demo-bar { margin: 0; background: var(--sun); color: var(--navy); font-size: 13px; font-weight: 700; padding: 8px 16px; text-align: center; }

/* Hero con foto */
.hero { position: relative; height: 56vh; min-height: 340px; max-height: 520px; overflow: hidden; color: #fff; }
.hero-sm { height: 32vh; min-height: 220px; max-height: 340px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,26,79,.45) 0%, rgba(18,26,79,0) 35%, rgba(18,26,79,0) 50%, rgba(18,26,79,.88) 100%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.hero-text p { margin: 0; opacity: .92; }
/* date del camp: la prima cosa che si legge */
.hero-text .hero-date { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 12px; border-radius: 14px; background: var(--sun); color: var(--navy); opacity: 1; text-transform: uppercase; box-shadow: 0 6px 20px rgba(18,26,79,.35); }
.hero-date span { font-size: 13px; font-weight: 800; letter-spacing: .6px; }
.hero-date b { font: 400 clamp(30px, 4.6vw, 60px)/1.08 var(--display); letter-spacing: .5px; white-space: pre-line; }
.hero:not(.hero-sm) { min-height: 430px; } /* spazio per logo, date e titolo */
:root[lang="el"] .hero-date b { font-size-adjust: cap-height from-font; }
.hero-sm .hero-shade { background: linear-gradient(180deg, rgba(18,26,79,.25) 0%, rgba(18,26,79,.55) 45%, rgba(18,26,79,.92) 100%); }
.hero-logo { position: absolute; top: 16px; left: 16px; width: clamp(120px, 34vw, 190px); background: rgba(255,255,255,.94); border-radius: 18px; padding: 8px 10px; box-shadow: 0 6px 20px rgba(18,26,79,.25); }

/* Elementi */
.tag { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.tag-sun { background: var(--sun); color: var(--navy); }
.tag-dark { background: var(--navy); color: #fff; }
.tag-warn { background: var(--sun); color: var(--navy); }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; font: 800 15px var(--body); text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.card { background: #fff; border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: var(--navy); text-decoration: none; box-shadow: 0 2px 10px rgba(18,26,79,.06); }
.card.link:hover { box-shadow: 0 6px 18px rgba(18,26,79,.14); }
.card.row { flex-direction: row; align-items: center; gap: 12px; }
.card span { color: var(--muted); font-size: 14px; }
.card.row:has(> .scheda) { align-items: flex-start; } .card.row > svg { flex: none; }
.scheda { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.luoghi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.luogo { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid #1E6FB0; background: #fff; color: #1B639E; font-size: 13px; font-weight: 700; text-decoration: none; }
.luogo:hover, .luogo:focus-visible { background: #1E6FB0; color: #fff; }
.sun-card { background: var(--sun); } .sun-card span { color: var(--navy); }
.dark-card { background: var(--navy-2); color: #fff; box-shadow: none; } .dark-card span { color: #DCE0F5; }
.page:not(.dark) .dark-card { background: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: var(--navy); border-radius: var(--radius); padding: 14px 10px; color: #fff; text-align: center; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.stats span { font-size: 12px; opacity: .85; }
.stats b small { font: 800 13px var(--body); vertical-align: middle; }
.stats.cinque { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 14px; }
.stats.cinque > * { grid-column: span 2; } .stats.cinque > :is(:nth-child(3), :nth-child(5)) { grid-column: span 3; order: 1; }
@media (min-width: 700px) { .stats.cinque { grid-template-columns: repeat(5, minmax(0, 1fr)); } .stats.cinque > :nth-child(n) { grid-column: auto; order: 0; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts div { background: #fff; border-radius: 14px; padding: 10px 12px; }
.facts span { display: block; font-size: 12px; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-weight: 600; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 2px; }
.pack p { margin: 0; font-size: 14px; }
.star { color: #C2410C; font-weight: 800; margin-left: 2px; }
.item .star { color: inherit; font-size: 1.15em; }
.galleria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 700px) { .galleria { grid-template-columns: repeat(5, 1fr); } }
.foto-mini { padding: 0; border: 0; background: var(--sand-2); border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.foto-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album + .album { margin-top: 24px; }
iframe.drive { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 40, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lb-chiudi, .lb-freccia { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 26px; cursor: pointer; }
.lb-chiudi { top: 14px; right: 14px; font-size: 20px; }
.lb-prima { left: 10px; } .lb-dopo { right: 10px; }
.foto-admin { position: relative; }
.foto-admin button { position: absolute; top: 4px; right: 4px; }
.badge-top { align-self: flex-start; display: inline-block; background: var(--sun); color: var(--navy); font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; margin-bottom: 4px; }
.pack-top, .choice-top { border: 2px solid var(--sun); box-shadow: 0 6px 20px rgba(247, 201, 72, .35); }
.pack-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pack-head .display { font-size: 24px; }
.level { display: flex; gap: 14px; align-items: flex-start; background: var(--navy-2); border-radius: var(--radius); padding: 14px 16px; }
.level p { margin: 4px 0 0; font-size: 14px; opacity: .88; }
.level p { white-space: pre-line; }
.level-lungo { grid-column: 1 / -1; }
.level .display { font-size: 24px; }
.level-n { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; color: var(--navy); font-family: var(--display); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--cyan); color: var(--navy); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.avatar-lg { width: 56px; height: 56px; }
.dark-av { background: var(--navy); color: var(--sun); }
.person { display: flex; align-items: center; gap: 10px; background: var(--navy-2); border-radius: 14px; padding: 8px 10px; font-size: 14px; font-weight: 700; }
.person-lg { flex-direction: row; align-items: center; gap: 14px; }
.person-lg .display { font-size: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.chip { padding: 9px 14px; border-radius: 20px; background: var(--sand-2); color: var(--navy); font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }
.chip.on { background: var(--navy); color: #fff; }
.page:not(.dark) .chips .chip:not(.on) { background: #fff; }
.tabs, .segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tabs a, .segmented a { min-height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; text-decoration: none; border: 1.5px solid var(--line); color: var(--navy); }
.page.dark .tabs a { border-color: var(--navy-3); color: #fff; }
.tabs a.on, .segmented a.on, .page.dark .tabs a.on { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px; }
.days a { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy); text-decoration: none; }
.days a.on { background: var(--navy); border-color: var(--navy); color: var(--sun); }
.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.agenda li { display: flex; gap: 12px; }
.when { width: 88px; flex-shrink: 0; font-weight: 800; font-size: 13px; padding-top: 13px; }
.item { flex: 1; background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.item span { font-size: 13px; color: var(--muted); }
.item-train { border-left: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--cyan); }
.item-sun { background: var(--sun); } .item-cyan { background: var(--cyan); } .item-sand { background: var(--sand-2); }
.item-dark { background: var(--navy); color: #fff; } .item-dark span { color: #DCE0F5; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; font-weight: 700; font-size: 14px; }
.checklist label, .check { display: flex; align-items: center; gap: 10px; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--navy); flex-shrink: 0; }
.phrase { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--sand-2); }
.phrase:last-child { border-bottom: 0; }
.phrase span { font-size: 13px; }

/* Moduli */
fieldset { border: 0; margin: 0; padding: 16px; background: #fff; border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-family: var(--display); text-transform: uppercase; font-size: 20px; }
.field, .label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]), select { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 0 12px; font: 600 16px var(--body); color: var(--navy); width: 100%; }
input:focus, select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(25,180,230,.35); }
form.tried :invalid { border-color: var(--warn); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--navy); background: #FFF7D1; }
.choice span { display: flex; flex-direction: column; font-size: 14px; }
.choice small { color: var(--muted); font-size: 12px; }
.code-input { height: 72px !important; text-align: center; font-family: var(--display) !important; font-size: 40px !important; letter-spacing: 18px; text-transform: uppercase; }
.error { color: var(--warn); font-weight: 700; margin: 0; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Pass */
.pass { background: var(--sand); color: var(--navy); border-radius: 22px; overflow: hidden; }
.pass-head { background: var(--sun); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pass-head .display { font-size: 20px; }
.pass-body { padding: 16px; display: flex; gap: 16px; align-items: center; }
.qr { background: #fff; padding: 8px; border-radius: 12px; width: 140px; flex-shrink: 0; }
.qr svg { width: 100%; height: auto; display: block; }
.pass dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pass dt { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.pass dd { margin: 0; font-weight: 800; }
.pass-foot { border-top: 2px dashed var(--line); padding: 10px 16px; font-size: 13px; color: var(--muted); }

/* Navigazione: barra in basso sul telefono, menu laterale da tablet in su */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #E6DDC9; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); z-index: 5; }
.bottom-nav a, .side-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: #6B7099; text-decoration: none; }
.bottom-nav a.on, .side-nav a.on { color: var(--navy); }
.side { display: none; }

@media (max-width: 899px) {
  /* barra in alto sul telefono: logo a sinistra, lingua a destra */
  .side { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 6;
    padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid #E6DDC9; }
  .brand img { height: 54px; width: auto; }
  .side .side-nav { display: none; }
  .demo-bar { font-size: 12px; }
}
@media (max-width: 420px) {
  .checks, .checklist, .choices { grid-template-columns: 1fr; }
  .grid-2:not(.tight) { grid-template-columns: 1fr; }
  .page .grid-2 .btn { min-width: 0; }
}
@media (min-width: 900px) {
  .bottom-nav { display: none; }
  main { padding-bottom: 40px; }
  .shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
  .side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; padding: 20px 16px; background: #fff; border-right: 1px solid #E6DDC9; }
  .brand img { width: 150px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .side-nav a { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 10px 12px; border-radius: 12px; }
  .side-nav a.on { background: var(--sand); }
  .page { padding: 32px 40px; }
  .hero-text { padding: 32px 40px; }
  .hero:not(.hero-sm) .hero-text { left: 230px; max-width: none; align-items: center; text-align: center; } /* a destra del logo, verso il centro */
  .hero:not(.hero-sm) .hero-text > * { align-self: center; }
  .grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page.narrow .grid-2, fieldset .grid-2, .pass ~ .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack:has(> .level), .stack:has(> .pack) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page > .btn { align-self: flex-start; min-width: 320px; }
}

/* Area staff */
#sez { display: flex; flex-direction: column; gap: 14px; }
.page.wide { max-width: 1240px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-between.wrap { flex-wrap: wrap; align-items: flex-end; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nowrap { white-space: nowrap; }
.self-start { align-self: flex-start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 6px; background: var(--sand-2); color: var(--navy); white-space: nowrap; }
.pill-admin { background: var(--navy); color: #fff; } .pill-capoAllenatore { background: var(--sun); }
.pill-allenatore { background: var(--cyan); } .pill-supervisor { background: #7A3FB8; color: #fff; }
.pill-sun { background: var(--sun); }
.pill-courtManager { background: #1E8C6E; color: #fff; }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.counters div { background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 12px; }
.counters b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--sun); }
.counters span, .card .counters span { font-size: 12px; color: inherit; opacity: .9; }
.email-lista { max-height: 220px; overflow: auto; } .progresso { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; } .progresso i { display: block; height: 100%; background: var(--sun); }
.scarica { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; } .scarica > span { margin-right: auto; color: var(--muted); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--sand-2); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--sand-2); vertical-align: top; }
.tbl td small { display: block; color: var(--muted); font-size: 12px; }
.tbl select { height: 40px; }
.btn-small { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font: 800 12px var(--body); cursor: pointer; white-space: nowrap; }
.btn-small.danger { border-color: var(--warn); color: var(--warn); }
.btn-ghost-dark { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.toggle { min-height: 40px; min-width: 96px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 800 13px var(--body); cursor: pointer; }
.toggle.on { background: var(--sun); border-color: var(--sun); }
.ok-msg { margin: 0; padding: 10px 12px; border-radius: 12px; background: #E3F6EC; color: #145A3C; font-weight: 700; }
.staff-row { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.staff-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.staff-actions, .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
fieldset.plain { padding: 0; background: none; }
.athlete { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--sand-2); }
.tick { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: transparent; font-weight: 900; font-size: 20px; cursor: pointer; }
.tick.on { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.nota-form { background: var(--sand); border-radius: 12px; padding: 12px; }
.badge { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--sun); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.badge-nome { width: auto; min-width: 32px; max-width: 45%; height: auto; min-height: 32px; padding: 4px 8px; text-align: center; overflow-wrap: anywhere; }
.court { border-top: 6px solid var(--cyan); }
.court-da-sistemare { border-top-color: var(--warn); } .court-in-uso { border-top-color: var(--sun); } .court-libero { border-top-color: var(--line); }
.court .display { font-size: 22px; }
.court select { height: 40px; width: auto; }
.checkin-row { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.days button { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: transparent; font: 800 15px var(--body); color: var(--navy); cursor: pointer; }
.days button.on { background: var(--navy); border-color: var(--navy); color: var(--sun); }
@media (max-width: 700px) {
  .filters, .grid-3 { grid-template-columns: 1fr; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; border-bottom: 1px solid var(--sand-2); }
  .tbl td { border: 0; padding: 4px 12px; display: flex; gap: 10px; align-items: baseline; }
  .tbl td[data-l]::before { content: attr(data-l); width: 82px; flex-shrink: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
  .tbl td small { display: inline; margin-left: 4px; }
}
/* Pagamenti */
.pay-pagato { background: var(--sun); border-color: var(--sun); }
.pay-parziale { background: #FFE9A8; border-color: #E8C34A; }
.pay-da-pagare { background: #fff; }
.tbl tr.open td { background: #FFFBEA; }
.pay-row td { padding: 0 !important; background: #FFFBEA; }
.pay-panel { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--sun); }
.pay-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.pay-head > div:first-child { display: flex; flex-direction: column; }
.pay-head .quota { width: 160px; }
.pay-sum { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.pay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pay-list li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 10px; }
.pay-list small { display: block; color: var(--muted); }
.pay-list .grow { display: block; }
.pay-form { display: grid; grid-template-columns: 150px 120px 160px minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 900px) { .pay-form { grid-template-columns: 1fr 1fr; } .pay-form .nota, .pay-form button { grid-column: 1 / -1; } }
@media (max-width: 700px) { .tbl tr.pay-row { display: block; } .pay-row td { display: block; } }

/* Edizione */
textarea { border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 10px 12px; font: 600 16px var(--body); color: var(--navy); width: 100%; resize: vertical; }
textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(25,180,230,.35); }
button.chip { border: 0; cursor: pointer; font-family: var(--body); }
.ed-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ed-3 { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; }
.ed-save { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); background: var(--sand); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.ed-save .btn:disabled, .btn-small:disabled { opacity: .45; cursor: default; }
summary { cursor: pointer; font-weight: 800; }
@media (max-width: 700px) { .ed-2, .ed-3 { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .ed-save { bottom: 0; } }
.posti { font-weight: 800; color: var(--warn) !important; }
.choice:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.testo p, .testo ul { margin: 0; line-height: 1.6; } .testo ul { padding-left: 20px; }
.turno { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; align-items: center; }
.turno input:not([type=checkbox]) { height: 42px; }
/* Torneo */
.partite { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.partita.mia { box-shadow: inset 0 0 0 3px var(--sun); }
.lato { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 30px; }
.card .lato span { color: var(--navy); font-size: 15px; } .lato.vince span:first-child { font-weight: 800; }
.punti { display: flex; gap: 8px; } .punti b { font-family: var(--display); font-weight: 400; font-size: 22px; min-width: 24px; text-align: right; }
.lato:not(.vince) .punti b { opacity: .75; }
.set-riga { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 8px; align-items: center; }
.btn-small.forte { background: var(--navy); color: #fff; }
.tbl-girone caption { text-align: left; padding: 10px 12px 0; font-family: var(--display); text-transform: uppercase; font-size: 18px; }
.tbl-girone tr.mia td { background: #FFF7D1; }
.lista-coppie { padding-left: 34px; }
.turno-torneo { flex-direction: row; align-items: center; gap: 8px; }
.turno-torneo input { height: 40px; width: 110px !important; flex-shrink: 0; } .turno-torneo input[data-campo] { width: 74px !important; }
@media (max-width: 700px) {
  .tbl-girone thead { display: table-header-group; } .tbl-girone tr { display: table-row; } .tbl-girone td { display: table-cell; padding: 8px 6px; border-bottom: 1px solid var(--sand-2); }
  .tbl-girone th { padding: 8px 6px; font-size: 10px; }
  .turno-torneo { flex-wrap: wrap; } .turno-torneo .grow { flex-basis: 100%; }
}
.coppia { flex-wrap: wrap; } .coppia .grow { min-width: 160px; }
.check small { color: var(--muted); }
.page:not(.dark) .card .chips .chip:not(.on) { background: var(--sand-2); }
.tr-it { white-space: pre-line; }

/* scelta del camp: senza il menu di un camp */
.senza-menu #nav, .senza-menu #side-nav { display: none; }
.camp-card { padding: 20px; gap: 6px; } .camp-card .display { font-size: 24px; }

/* passaggio rapido da un camp all'altro */
.camps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.camps[hidden] { display: none; }
.camps a { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid #E1D8C3; background: #fff; color: #121A4F; text-decoration: none; min-width: 0; }
.camps a b { font-size: 15px; line-height: 1.2; } .camps a span { font-size: 12px; color: #4A5280; line-height: 1.25; }
.camps a:hover { border-color: #121A4F; }
.camps a.on { background: #FFD21F; border-color: #FFD21F; } .camps a.on span { color: #121A4F; }
.camps-side { display: none; } .camps-top { padding: 10px 16px; background: #fff; border-bottom: 1px solid #E6DDC9; }
@media (min-width: 900px) { .camps-top { display: none; } .camps-side:not([hidden]) { display: grid; grid-auto-flow: row; } }

.chips.scroll .eyebrow { align-self: center; flex: none; min-width: 84px; }
.chips.generale { border-bottom: 1px solid #E1D8C3; padding-bottom: 12px; }

/* arrivi e partenze: azzurro chi arriva, giallo chi parte */
.viaggi-griglia { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .viaggi-griglia.due { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.viaggi { --c: #1E6FB0; --cx: #fff; --cs: #E3F1FB; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; box-shadow: 0 2px 10px rgba(18,26,79,.06); min-width: 0; }
.viaggi.par { --c: #FFD21F; --cx: #121A4F; --cs: #FFF6CC; }
.viaggi > header { margin: 0 -16px; padding: 14px 16px; background: var(--c); color: var(--cx); display: flex; align-items: center; gap: 12px; }
.viaggi > header h2 { margin: 0; font-size: 26px; flex: 1; color: inherit; } .viaggi .quanti { font-size: 24px; } .viaggi .quanti small { font-size: 14px; opacity: .85; }
.viaggi-filtri { display: flex; flex-direction: column; gap: 10px; }
.viaggi-filtri select { width: 100%; }
.giorni { display: flex; flex-wrap: wrap; gap: 6px; }
.giorni button { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 700 13px var(--body); cursor: pointer; }
.giorni button small { color: var(--muted); font-weight: 800; } .giorni button[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--cx); } .giorni button[aria-pressed="true"] small { color: inherit; }
.viaggi .giorno { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 0; padding-bottom: 6px; border-bottom: 3px solid var(--c); font: 800 17px var(--body); color: var(--navy); } .viaggi .giorno small { font-size: 13px; color: var(--muted); }
.fascia { display: grid; grid-template-columns: 78px minmax(0, 1fr); border-radius: 14px; overflow: hidden; background: #FBF7EC; }
.fascia .ora { background: var(--cs); color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; text-align: center; } .fascia .ora b { font-size: 18px; } .fascia .ora small { font-size: 11px; line-height: 1.2; }
.fascia ul, ul.fascia { list-style: none; margin: 0; padding: 0 12px; } ul.fascia.sola { display: block; }
.fascia li { display: flex; align-items: center; gap: 10px; padding: 10px 0; } .fascia li + li { border-top: 1px solid #E9E0CC; } .fascia li .grow { min-width: 0; display: flex; flex-direction: column; } .fascia li .small { color: var(--muted); }
.fascia .tel { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--navy); color: var(--navy); font-size: 12px; font-weight: 800; text-decoration: none; background: #fff; }
.viaggi .senza { background: #FBEFE6; border-radius: 12px; padding: 10px 12px; } .viaggi .senza summary { font-weight: 700; cursor: pointer; } .viaggi .senza p { margin: 6px 0 0; }
.viaggi-vista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.viaggi-vista button { min-height: 52px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--navy); font: 800 14px var(--body); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 4px 8px; }
.viaggi-vista button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; } .viaggi-vista .arr[aria-pressed="true"] { background: #1E6FB0; border-color: #1E6FB0; } .viaggi-vista .par[aria-pressed="true"] { background: #FFD21F; border-color: #FFD21F; color: #121A4F; }
@media (max-width: 520px) { .viaggi-vista .aereo { display: none; } .viaggi-vista button { font-size: 13px; } .fascia { grid-template-columns: 66px minmax(0, 1fr); } }

/* profilo dell'iscritto */
.nome-profilo { font-weight: 800; color: var(--navy); text-decoration: underline; text-decoration-color: #19B4E6; text-underline-offset: 3px; display: inline-block; } .nome-profilo:hover { color: #1E6FB0; }
.indietro { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; text-decoration: none; min-height: 40px; }
.prof-testa { background: linear-gradient(120deg, #121A4F, #2B3A97); color: #fff; border-radius: 22px; padding: 22px; display: flex; gap: 18px; align-items: center; }
.prof-testa h1 { color: #fff; margin: 2px 0 10px; overflow-wrap: anywhere; } .prof-testa .grow { min-width: 0; }
.prof-av { width: 84px; height: 84px; font-size: 28px; background: var(--sun); }
.pill-ok { background: #BDEBD0; color: #0F4A30; } .pill-no { background: #FFE0CC; color: #7A2E06; }
.prof-griglia { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .prof-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prof-largo { grid-column: 1 / -1; } }
.prof { gap: 12px; padding: 18px; min-width: 0; } .prof h2 { margin: 0; display: flex; align-items: center; gap: 8px; font: 800 17px var(--body); color: #1E6FB0; } .prof h3 { margin: 8px 0 0; font: 800 15px var(--body); } .prof p { margin: 0; overflow-wrap: anywhere; }
.prof-grande { font-size: 20px; }
.prof dl { margin: 0; display: grid; gap: 10px; } .prof dl div { display: grid; grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); gap: 10px; } .prof dt { color: var(--muted); font-size: 14px; } .prof dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.prof-soldi, .prof-gruppo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .prof-soldi > div, .prof-gruppo > div { background: #F5EEDF; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; } .prof-soldi span, .prof-gruppo span { font-size: 12px; } .prof-soldi b { font-size: 20px; } .prof-gruppo b { overflow-wrap: anywhere; }
.prof-lista, .prof-orari { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .prof-lista li { display: flex; gap: 12px; align-items: baseline; }
.prof-orari li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #FBF7EC; border-radius: 14px; padding: 10px 12px; } .prof-orari li > div { display: flex; flex-direction: column; min-width: 0; } .prof-orari li.ora { background: #FFF6CC; box-shadow: inset 0 0 0 2px #FFD21F; } .prof-orari em { font: 800 11px var(--body); background: var(--navy); color: #fff; border-radius: 6px; padding: 4px 8px; }
.prof-staff { border: 2px dashed #C9BFA4; } .prof-form { display: flex; flex-direction: column; gap: 12px; } .prof-nota { white-space: pre-wrap; }
@media (max-width: 520px) { .prof-testa { padding: 16px; gap: 12px; } .prof-av { width: 60px; height: 60px; font-size: 20px; } .prof-orari li { grid-template-columns: 92px minmax(0, 1fr); } .prof-orari em { grid-column: 2; justify-self: start; } .prof-gruppo { grid-template-columns: 1fr; } }
.prof-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
a.btn-small { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* schede dei campi: nomi anche lunghi, tante colonne quante ci stanno */
.grid-2.courts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.courts .row-between { flex-wrap: wrap; gap: 8px; } .courts .row-between > b { overflow-wrap: anywhere; } .courts select { max-width: 100%; width: auto; }
