/* GSA Pallavolo – stile condiviso. Nessun JavaScript, nessun font esterno. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); }

:root {
  --forest: #0e4d33; --green: #17a455; --gold: #f6b81c; --ground: #f4f6f3; --paper: #ffffff;
  --ink: #0b1410; --muted: #3f5247; --hairline: #c9d6ce; --control: #7e9186;
  --red: #8a1c16; --red-bg: #fde8e6; --green-bg: #e3f3ea; --gold-bg: #fff4d1;
  --radius: 4px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.45 'Barlow', system-ui, sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, .display { font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: 34px; }
h2 { font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--forest); text-underline-offset: 3px; }
/* focus da tastiera: inchiostro sui fondi chiari, bianco sui fondi scuri (regole più sotto) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--gold); padding: 8px 12px; z-index: 10; }

/* ---- Guscio segreteria: menu laterale ---- */
.eyebrow { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.adm { display: flex; flex-wrap: wrap; min-height: 100vh; }
.adm-side { flex: 0 0 248px; background: var(--forest); color: #fff; padding: 24px 0; display: flex; flex-direction: column; gap: 24px; }
.adm-brand { display: flex; align-items: center; gap: 12px; padding: 0 24px; color: #fff; text-decoration: none; }
.adm-brand b { display: block; font: 800 italic 32px/32px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.adm-brand small { display: block; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.adm-side nav { display: flex; flex-direction: column; gap: 4px; }
.adm-side nav a { display: block; padding: 12px 24px; color: #fff; text-decoration: none; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.adm-side nav a.sub { padding-left: 40px; }
.adm-side nav a.gap { margin-top: 8px; }
.adm-side nav a:hover { background: rgba(255,255,255,.1); }
.adm-side nav a[aria-current="page"] { background: var(--gold); color: var(--ink); }
.adm-head { padding: 16px 24px 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.adm-out { margin: auto 0 0; padding: 0 24px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.adm-out .who { opacity: .85; overflow-wrap: anywhere; }
.adm-side a:focus-visible, .adm-side button:focus-visible { outline-color: #fff; }
.adm-main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 24px; }
.adm-main > * { margin-top: 0; margin-bottom: 0; }
.adm-main .card, .adm-main .kpis, .adm-main fieldset, .adm-main .notice { margin-bottom: 0; }
.adm-main h1 { font-size: 52px; line-height: 50px; }
.linklike { background: none; border: 0; color: #fff; font: inherit; font-weight: 600; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pagehead p { margin: 6px 0 0; max-width: 700px; }
.pagehead .eyebrow { display: block; margin-bottom: 6px; }

/* ---- Guscio app (famiglie e atleti): intestazione, striscia, barra in basso ---- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-head { background: var(--forest); color: #fff; }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 640px; margin: 0 auto; }
.app-brand { display: flex; align-items: center; gap: 12px; flex: 1; color: #fff; text-decoration: none; }
.app-brand span { font: 800 italic 26px/28px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.app-right { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.stripe { height: 8px; background: repeating-linear-gradient(135deg, var(--gold) 0 12px, var(--forest) 12px 24px); }
.app-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 16px 100px; display: flex; flex-direction: column; gap: 24px; }
.app-main h1 { font-weight: 700; font-size: 36px; line-height: 38px; }
.app-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; background: #fff; border-top: 1px solid var(--hairline); padding-bottom: env(safe-area-inset-bottom); }
.app-nav a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; padding: 8px 2px; text-decoration: none; color: var(--muted); border-top: 4px solid transparent; margin-top: -1px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.app-nav a[aria-current="page"] { background: var(--forest); color: #fff; border-top-color: var(--gold); }
.app-nav a[aria-current="page"] svg { color: var(--gold); }
.app-nav a:focus-visible { outline-color: var(--ink); outline-offset: -4px; }
.count { background: var(--red); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; margin-left: 4px; letter-spacing: 0; }
.pub-min { background: var(--forest); padding: 10px 16px; }
.pub-min .app-brand { max-width: 640px; margin: 0 auto; }
main.plain { max-width: 640px; margin: 0 auto; padding: 20px 16px 64px; }

/* Schede e liste */
.card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card.tight { padding: 0; }
.card h2 { margin-bottom: 8px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Messaggi */
.flash { border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; border: 1px solid; font-weight: 600; }
.flash.ok { background: var(--green-bg); border-color: #9fd3b4; color: var(--forest); }
.flash.err { background: var(--red-bg); border-color: #e7a9a4; color: var(--red); }
.flash.warn { background: var(--gold-bg); border-color: #e8c566; color: #5c4300; }
.notice { background: var(--gold-bg); border-left: 5px solid var(--gold); padding: 10px 14px; border-radius: 2px; margin-bottom: 14px; }

/* Etichette */
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 2px; background: var(--green-bg); color: var(--forest); white-space: nowrap; }
.badge.gold { background: var(--gold-bg); color: #5c4300; }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.grey { background: #e9eeea; color: var(--muted); }

/* Form */
label { display: block; font-weight: 700; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=file], input[type=date], input[type=time], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--control); border-radius: 2px; padding: 9px 12px; min-height: 46px;
}
textarea { min-height: 150px; resize: vertical; }
input[type=file] { padding: 8px; }
fieldset { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px 14px 4px; margin: 0 0 14px; background: #fff; }
legend { font-weight: 700; padding: 0 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; margin: 0 0 8px; padding: 4px 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--forest); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 14px; }
.btn { display: inline-block; font: 700 17px/1 'Barlow', sans-serif; background: var(--forest); color: #fff; border: 2px solid var(--forest); border-radius: 2px; padding: 13px 20px; min-height: 46px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: #0a3b27; }
.btn.secondary { background: #fff; color: var(--forest); border-color: var(--control); }
.btn.secondary:hover { background: var(--green-bg); }
.btn.danger { background: var(--red-bg); color: var(--red); border-color: #e7a9a4; }
.btn.small { padding: 9px 14px; min-height: 38px; font-size: 15px; }
.btn.block { display: block; width: 100%; }

/* Tabelle */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfa; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Accesso */
.login { max-width: 420px; margin: 40px auto 0; }
.login .logo { display: block; width: 160px; height: auto; margin: 0 auto 8px; } /* stemma della società */
.login h1 { text-align: center; font-size: 30px; }
.login .motto { text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 20px; }
/* il motto della home del sito (.motto, più sotto) è grande e posato sulla foto: qui no */
.login p.motto { position: static; font-family: inherit; font-size: 16px; font-style: normal; line-height: 1.4; text-transform: none; text-shadow: none; pointer-events: auto; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px 14px; }
.kpi b { display: block; font: 800 italic 34px/1 'Barlow Condensed', sans-serif; }
.kpi span { color: var(--muted); font-size: 14px; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; word-break: break-all; }
.linkbox { background: #fafbfa; border: 1px dashed var(--control); padding: 10px 12px; border-radius: 2px; }
details > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
ul.clean { margin: 0; padding-left: 20px; } ul.clean li { margin-bottom: 4px; }

@media (min-width: 760px) { body { font-size: 18px; } }
@media (max-width: 820px) {
  .adm-side { flex-basis: auto; width: 100%; padding: 14px 0; gap: 12px; }
  .adm-side nav { flex-direction: row; flex-wrap: wrap; gap: 0; padding: 0 12px; }
  .adm-side nav a, .adm-side nav a.sub { padding: 10px 12px; }
  .adm-side nav a.gap { margin-top: 0; }
  .adm-head { display: none; }
  .adm-out { flex-direction: row; gap: 12px; align-items: center; margin: 0; }
  .adm-main { padding: 20px 16px 48px; }
  .adm-main h1 { font-size: 40px; line-height: 40px; }
}
@media print { .adm-side, .app-nav, .app-head, .pub-head, .btn, form { display: none !important; } body { background: #fff; } }

/* ================= Componenti condivisi ================= */
.gold-text { color: var(--gold); }
.tag { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; background: var(--green-bg); color: var(--forest); white-space: nowrap; }
.tag.gold { background: var(--gold); color: var(--ink); }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.grey { background: var(--hairline); color: var(--ink); }
.tag.line { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.tag.inv { background: rgba(255,255,255,.18); color: #fff; }
.row .tag { align-self: center; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cardhead.pad { padding: 12px 16px 0; margin-bottom: 0; }
.pad { padding: 0 16px 12px; }
.total { font: 800 italic 34px/1 'Barlow Condensed', sans-serif; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
ul.plain > li:last-child { border-bottom: 0; }
.card.tight ul.plain > li { padding: 12px 16px; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #e3a70f; }
.btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.14); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 9px 14px; min-height: 44px; display: inline-flex; align-items: center; border: 2px solid var(--control); border-radius: 2px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.chips a[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.seg { display: flex; }
.seg a { flex: 1; text-align: center; padding: 12px 8px; min-height: 48px; border: 2px solid var(--forest); color: var(--forest); background: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.seg a + a { border-left: 0; }
.seg a[aria-current="true"] { background: var(--forest); color: #fff; }
.datebox { flex: 0 0 52px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 2px; background: var(--hairline); color: var(--ink); }
.datebox.gold { background: var(--gold); }
.datebox.past { background: var(--hairline); opacity: .8; }
.datebox span { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.datebox b { font: 800 italic 28px/28px 'Barlow Condensed', sans-serif; }
.evlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ev { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.ev.is-past { background: #fafbfa; color: var(--muted); }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-title { font: 700 22px/24px 'Barlow Condensed', sans-serif; }
.ev .game { margin-top: 4px; }
.ev-status { margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
h3.month { margin: 20px 0 8px; font: 700 20px 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hero-card { background: var(--forest); color: #fff; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hero-card .eyebrow { color: var(--gold); }
.hero-card a { color: #fff; }
.hero-time { font: 800 italic 44px/44px 'Barlow Condensed', sans-serif; }
.hero-time.none { font-size: 32px; line-height: 34px; opacity: .9; }
.hero-title { font: 800 italic 30px/32px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.hero-title span { font-weight: 700; opacity: .7; font-size: 22px; }
.hero-when { font-size: 20px; font-weight: 700; }
.kids { display: flex; gap: 8px; }
.kids a { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 8px 12px; border: 2px solid var(--forest); border-radius: 2px; background: #fff; color: var(--ink); text-decoration: none; }
.kids a b { font: 700 22px/24px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.kids a span { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.kids a[aria-current="true"] { background: var(--forest); color: #fff; }
.todo { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.todo a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.todo .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--forest); color: #fff; border-radius: 2px; }
.todo .ic.gold { background: var(--gold); color: var(--ink); }
.todo .grow b { display: block; font: 700 22px/24px 'Barlow Condensed', sans-serif; }
.todo .grow .small { display: block; }
.app-main section > h2 { font-weight: 800; font-style: italic; font-size: 28px; line-height: 30px; margin-bottom: 8px; }
.weeknav { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.weeknav .mid { flex: 1; text-align: center; }
.weeknav .mid b { display: block; font: 800 italic 22px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.weeknav a.nav, .weeknav span.nav { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--control); border-radius: 2px; background: #fff; text-decoration: none; font-weight: 700; font-size: 22px; color: var(--ink); }
.weeknav span.nav { opacity: .35; }
.app-foot { margin-top: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.app-foot form { margin: 0; }
.linklike.dark { color: var(--forest); }
.notices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kpis.two { grid-template-columns: 1fr 1fr; }
.bigpos { display: flex; align-items: baseline; gap: 12px; } .bigpos b { font: 800 italic 64px/1 'Barlow Condensed', sans-serif; } .bigpos span { color: var(--muted); }
table.standing th[scope=row] { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); background: none; white-space: normal; }
table.standing tr.me > * { background: var(--gold-bg); font-weight: 700; }
.steps { list-style: none; display: flex; gap: 8px; margin: 12px 0 8px; padding: 0; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.steps li span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--control); display: grid; place-items: center; font-size: 13px; flex: none; }
.steps li.done { color: var(--forest); } .steps li.done span { background: var(--forest); border-color: var(--forest); color: #fff; }
dl.bank { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0 14px; } dl.bank dt { color: var(--muted); font-weight: 600; } dl.bank dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.reqrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--hairline); flex-wrap: wrap; } .reqrow > span { flex: 1 1 140px; font-weight: 600; } .reqrow select { width: auto; min-height: 44px; }

/* ================= Sito pubblico: colonna verde del menu a sinistra, corpo bianco (04/11, sul modello di Trentino Volley) ================= */
body.is-public { background: #fff; }
.pub-in { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.btn.big { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; font: 700 14px/16px 'Barlow', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.btn.dark.big { min-height: 56px; padding: 0 28px; }
.btn.dark:hover { background: #26362d; }
.pub-head a:focus-visible, .pub-head button:focus-visible, .pub-head summary:focus-visible, .pub-foot a:focus-visible, .slider a:focus-visible, .slider button:focus-visible,
.app-head a:focus-visible, .app-head button:focus-visible, .pub-min a:focus-visible, .hero-card a:focus-visible, .hero-card button:focus-visible,
.pubbar :focus-visible, .sendbar :focus-visible, .app-nav a[aria-current="page"]:focus-visible { outline-color: #fff; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 2px; background: transparent; color: #fff; cursor: pointer; }
.stripe.thin { height: 6px; background: repeating-linear-gradient(135deg, var(--gold) 0 10px, var(--forest) 10px 20px); }

/* struttura: colonna del menu (fissa mentre si scorre) e contenuto */
.site { display: flex; min-height: 100vh; }
.side { flex: 0 0 260px; box-sizing: border-box; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--forest); color: #fff; display: flex; flex-direction: column; gap: 28px; padding: 28px 0; }
.side-top { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; }
.side-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; text-decoration: none; text-align: center; }
/* logo originale della società: uno stemma bianco (logo-gsa.webp, 480×296) */
.side-brand img { flex: none; display: block; width: 200px; height: auto; }
/* il logo ha già la scritta GSA: sotto, come «TRENTINO VOLLEY», il nome della società (GSA scritto torna sul telefono) */
.side-brand b { display: none; font: 800 italic 28px/28px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.side-brand small { display: block; font-size: 13px; line-height: 17px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { flex: 1 1 auto; display: flex; flex-direction: column; }
.side-grp summary, .side-link { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 24px; color: #fff; text-decoration: none; list-style: none; cursor: pointer; font: 700 20px/22px 'Barlow Condensed', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.side-grp summary::-webkit-details-marker { display: none; }
.side-grp summary::after { content: '›'; color: var(--gold); font-size: 24px; line-height: 1; transition: transform .15s ease; }
.side-grp[open] summary::after { transform: rotate(90deg); }
.side-grp summary:hover, .side-link:hover, .side-grp li a:hover { background: rgba(255,255,255,.08); }
.side-grp ul { list-style: none; margin: 0 0 8px; padding: 0; }
.side-grp li a, .side-grp li .nav-off { display: flex; align-items: center; min-height: 40px; padding: 0 24px 0 40px; color: #fff; text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 600; }
/* voce della sezione aperta: oro e un po' più grande, così si vede dove si è (anche il gruppo diventa oro) */
.side-grp li a, .side-link { transition: color .2s ease, font-size .2s ease; }
.side-nav a[aria-current] { background: rgba(255,255,255,.14); box-shadow: inset 4px 0 0 var(--gold); color: var(--gold); }
.side-grp li a[aria-current] { font-size: 18px; font-weight: 700; }
.side-link[aria-current] { font-size: 23px; }
.side-grp:has(a[aria-current]) > summary { color: var(--gold); }
.side-cta { margin-top: auto; padding: 24px 24px 0; display: flex; flex-direction: column; gap: 12px; }
.side-cta .cta { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; background: var(--gold); color: var(--ink); text-decoration: none; border-radius: 4px; font: 800 italic 22px/24px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.side-cta .cta:hover { background: #e3a70f; }
.side-app { color: #fff; font-size: 14px; line-height: 20px; }
.site-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.site-body > main { flex: 1 0 auto; }
@media (prefers-reduced-motion: reduce) { .side-grp summary::after, .side-grp li a, .side-link { transition: none; } }

/* apertura: foto a scorrimento con il riquadro della prossima gara in casa */
/* apertura come Trentino: foto a tutta altezza, titolo in basso a destra direttamente sulla foto, frecce sotto, trattini al centro */
.slider { --box: min(620px, calc(100% - 128px)); position: relative; height: 100vh; height: 100svh; min-height: 560px; background: #1d2420; color: #fff; overflow: hidden; }
.slide { position: absolute; inset: 0; }
.slide[hidden] { display: none; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,20,16,.6), rgba(11,20,16,0) 34%), linear-gradient(to top, rgba(11,20,16,.85), rgba(11,20,16,.45) 38%, rgba(11,20,16,0) 62%); pointer-events: none; }
/* il motto della società in alto a sinistra, fisso mentre le foto scorrono (come nella home di prima) */
.motto { position: absolute; z-index: 2; top: 48px; left: 64px; right: 64px; margin: 0; color: #fff; font: 800 italic clamp(56px, 7.2vw, 116px)/.9 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0; text-shadow: 0 2px 18px rgba(0,0,0,.35); pointer-events: none; }
.motto em { display: block; color: var(--gold); font-style: italic; }
.slide-box { position: absolute; z-index: 1; right: 64px; bottom: 112px; width: var(--box); box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.slide-box .eyebrow { color: var(--gold); font: 700 26px/28px 'Barlow Condensed', sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.slide-box h2 { color: #fff; font: 800 italic clamp(48px, 5.2vw, 78px)/.94 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.slide-box p { margin: 0; font-size: 20px; line-height: 28px; }
.slide-box .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
/* prima foto con le due prime squadre: la prima a sinistra, la seconda a destra (anche su una foto divisa a metà); le frecce sotto quella di destra */
.slider:has(.slide.duo:not([hidden])) { --box: calc(50% - 96px); }
.slide-duo { position: absolute; z-index: 1; left: 64px; right: 64px; bottom: 112px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.slide-duo .slide-box { position: static; width: auto; }
.slide-duo .slide-box .eyebrow { font-size: 22px; line-height: 24px; }
.slide-duo .slide-box h2 { font-size: clamp(34px, 3.4vw, 56px); }
.slide-duo .slide-box p { font-size: 18px; line-height: 26px; }
.sl-btn { display: none; position: absolute; z-index: 2; bottom: 40px; width: 48px; height: 48px; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.85); border-radius: 24px; background: transparent; color: #fff; cursor: pointer; }
.sl-btn:hover { background: rgba(255,255,255,.16); }
.js .sl-btn { display: flex; }
.sl-btn.prev { right: calc(64px + var(--box) - 48px); } .sl-btn.prev svg { transform: rotate(180deg); }
.sl-btn.next { right: calc(64px + var(--box) - 108px); }
.sl-dots { display: none; position: absolute; z-index: 2; left: 50%; bottom: 8px; transform: translateX(-50%); gap: 0; }
.js .sl-dots { display: flex; }
.sl-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sl-dots span { display: block; width: 34px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.5); }
.sl-dots button[aria-pressed="true"] span { background: #fff; }

/* sezioni della home: bianco, titoli con la barretta verde */
.sec2 { padding: 56px 48px; border-top: 1px solid #e1e8e3; display: flex; flex-direction: column; gap: 24px; }
.slider + .sec2 { border-top: 0; }
.s-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.s-head .eyebrow { color: var(--forest); font-weight: 700; }
.s-head h2 { margin-top: 6px; font: 800 italic clamp(38px, 4vw, 52px)/1 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0; }
.s-head h2::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 12px; background: var(--green); }
.s-links { display: flex; flex-wrap: wrap; gap: 8px; }
.s-links { gap: 4px 20px; }
.s-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* prime squadre: le prossime partite in carte */
.mcard { background: #fff; border: 1px solid var(--hairline); border-top: 4px solid var(--green); border-radius: 6px; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }

/* gare della settimana */
.cal .chips { gap: 8px; }
.cal .chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cal .chips a[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.cal > p { margin: 0; }
ul.wk2 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.wk2 li { display: flex; align-items: center; gap: 12px 20px; padding: 14px 18px; background: var(--ground); border-radius: 6px; }
ul.wk2 .datebox { flex: 0 0 60px; height: 60px; background: #fff; }
ul.wk2 .datebox.gold { background: var(--gold); }
.wk2 .wk-body { flex: 1 1 auto; min-width: 0; }
.wk2 .eyebrow { color: var(--forest); font-weight: 700; }
.wk-time { font: 700 26px/28px 'Barlow Condensed', sans-serif; }

/* calendario nella pagina di una squadra */
ul.wk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ul.wk li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 16px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
ul.wk .datebox { flex: 0 0 64px; }
/* pagina squadra: per ogni campionato classifica e poi calendario; con due campionati, su computer, uno accanto all'altro (05/11) */
.champ-st, .champ-cal { margin-bottom: 8px; }
@media (min-width: 961px) {
  .champs.multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); grid-auto-rows: auto; gap: 0 40px; align-items: start; }
  .champs.multi .champ { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
  .champs.multi .champ > h2 { margin-top: 24px; }
}
.wk-body { flex: 1 1 320px; min-width: 0; }
.wk-match { font: 700 22px/26px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
h3.st-h { margin: 20px 0 8px; font-size: 18px; }

/* settore giovanile */
.youth { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.youth > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.youth h3 { font-size: 14px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ycards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ycards a { box-sizing: border-box; height: 100%; min-height: 72px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--hairline); border-radius: 6px; color: var(--ink); text-decoration: none; }
.ycards a:hover { border-color: var(--forest); }
.ycards b { display: block; font: 800 italic 23px/24px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ycards small { display: block; font-size: 14px; line-height: 18px; color: var(--muted); }
.ycards svg { flex: none; color: var(--green); }

/* invito a giocare e sponsor */
.join { background: var(--gold); color: var(--ink); padding: 52px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.join > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.join h2 { font: 800 italic clamp(40px, 4.4vw, 52px)/1 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0; }
.join p { margin: 0; max-width: 640px; font-size: 19px; line-height: 27px; }
.join a:focus-visible { outline-color: var(--ink); }
.partners .splogos { margin: 0; }

/* piè di pagina verde, come la colonna del menu */
.pub-foot { background: var(--forest); color: #fff; }
.pub-foot a { color: #fff; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 56px; padding: 44px 48px 28px; }
.foot-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.foot-logo { display: flex; align-items: center; gap: 12px; }
.foot-logo img { display: block; width: 91px; height: auto; }
.foot-logo span { font: 800 italic 26px/26px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.foot-brand p { margin: 0; font-size: 14px; line-height: 21px; }
.foot-social { display: flex; gap: 6px; margin-left: -9px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.foot-social a:hover { color: var(--gold); background: rgba(255,255,255,.08); }
.foot-social svg { display: block; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.foot-cols > div { min-width: 140px; display: flex; flex-direction: column; }
.foot-title { margin-bottom: 6px; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.foot-link { display: inline-flex; align-items: center; min-height: 34px; font-size: 15px; }
.foot-legal { padding: 16px 48px; border-top: 1px solid rgba(255,255,255,.22); font-size: 13px; line-height: 20px; }

/* pagine interne del sito (squadra, pagine di testo, app, privacy) */
.sec { padding: 56px 0; }
.narrowcol { max-width: 800px; }
h1.pagetitle { font-size: clamp(44px, 6vw, 72px); line-height: 1; margin: 6px 0 20px; }
.narrowcol h2 { margin: 32px 0 10px; font-size: 28px; }
.narrowcol .back { font-weight: 700; }
.prose p, .prose li { max-width: 680px; font-size: 17px; line-height: 26px; }
/* schede delle pagine a elenco (organigramma, palmarès, staff, roster) */
.prose ul.cards { list-style: none; margin: 12px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.prose ul.cards li { max-width: none; margin: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--hairline); border-top: 4px solid var(--green); border-radius: 6px; display: flex; flex-direction: column; gap: 4px; }
/* pagine interne (05/11): fascia del titolo; su computer contenuto più largo e colonna a destra (sul telefono resta tutto com'era) */
.ihead { padding: 56px 0 0; }
.ihead h1.pagetitle { margin-bottom: 0; }
.ihead + .sec { padding-top: 20px; }
.page-aside { display: none; }
.aside-card { background: #fff; border: 1px solid var(--hairline); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.aside-card h2 { margin: 0 0 4px; }
.aside-card p { margin: 0; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid #e1e8e3; color: var(--ink); text-decoration: none; font-weight: 600; }
.aside-card li:last-child a { border-bottom: 0; }
.aside-card li a svg { flex: none; color: var(--green); }
.aside-card li a:hover { color: var(--forest); }
.aside-card li a[aria-current] { color: var(--forest); font-weight: 800; box-shadow: inset 3px 0 0 var(--green); padding-left: 12px; }
.aside-card .more { font-weight: 700; }
.aside-games li a { display: block; min-height: 0; padding: 10px 0; }
.aside-games small { display: block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.aside-games b { display: block; margin-top: 2px; font: 700 18px/22px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.aside-cta { background: var(--forest); color: #fff; border-radius: 6px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.aside-cta h2 { margin: 0; color: #fff; font: 800 italic 30px/30px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.aside-cta p { margin: 0; font-size: 16px; line-height: 23px; }
.aside-cta .btn { align-self: flex-start; }
.aside-cta a:focus-visible { outline-color: #fff; }
@media (min-width: 961px) {
  .ihead { background: var(--ground); border-bottom: 1px solid #e1e8e3; padding: 22px 0 20px; }
  .ihead p { margin: 0 0 4px; font-size: 14px; }
  .ihead h1.pagetitle { font-size: clamp(40px, 3.4vw, 54px); margin-top: 2px; }
  /* a tutta larghezza come la home (05/11: sugli schermi grandi restava troppo bianco ai lati) */
  .ihead .pub-in, .pub-in.pagegrid { max-width: none; padding: 0 48px; box-sizing: border-box; }
  .ihead + .sec { padding-top: 48px; }
  .pagegrid .prose p, .pagegrid .prose li { max-width: 820px; font-size: 18px; line-height: 29px; }
}
/* la colonna a destra solo sugli schermi larghi: sotto i 1360 px il testo resterebbe troppo stretto */
@media (min-width: 1360px) {
  .pub-in.pagegrid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 19vw, 420px); gap: 56px; align-items: start; }
  .pub-in.pagegrid.solo { grid-template-columns: minmax(0, 1fr); }
  .page-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 32px; }
  .pagegrid .toc { display: none; }
  .pagegrid .prose p, .pagegrid .prose li { max-width: none; }
}
@media (min-width: 1600px) {
  .pagegrid .prose p, .pagegrid .prose li { font-size: 19px; line-height: 31px; }
}
@media (min-width: 2100px) {
  .pagegrid .prose p, .pagegrid .prose li { font-size: 21px; line-height: 34px; }
  .spgrid.title { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
  .spgrid.main { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
  .spgrid.golden { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .spgrid.sponsor { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
.cards .c-top { font: 800 italic 26px/28px 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--forest); overflow-wrap: anywhere; }
.cards .c-main { font-size: 18px; line-height: 24px; font-weight: 700; }
.cards .c-sub { font-size: 15px; line-height: 21px; color: var(--muted); }

/* tablet e telefono: il menu diventa una barra in alto con il pulsante */
@media (max-width: 960px) {
  .site { flex-direction: column; }
  .side { position: static; flex: none; height: auto; overflow: visible; gap: 0; padding: 12px 0; }
  .side-top { justify-content: space-between; padding: 0 16px; }
  .side-brand { flex-direction: row; gap: 12px; text-align: left; }
  .side-brand img { width: 84px; }
  .side-brand b { display: block; }
  .side-brand small { font-size: 11px; line-height: 14px; letter-spacing: .08em; }
  .slider { height: calc(100svh - 76px); }
  .motto { top: 32px; left: 32px; right: 32px; }
  .js .menu-btn { display: flex; }
  .side-nav { padding-top: 12px; }
  .js .pub-head:not(.open) .side-nav { display: none; }
  .side-grp summary, .side-link { padding: 0 16px; }
  .side-grp li a, .side-grp li .nav-off { padding: 0 16px 0 32px; }
  .side-cta { padding: 16px 16px 4px; }
  .sec2 { padding: 40px 24px; }
  .join { padding: 40px 24px; }
  .foot-in { padding: 32px 24px 20px; }
  .foot-legal { padding: 14px 24px; }
}
@media (max-width: 640px) {
  .pub-in { padding: 0 16px; }
  .ihead { padding-top: 32px; }
  .sec { padding: 32px 0; }
  .slider { --box: calc(100% - 32px); }
  .motto { top: 20px; left: 16px; right: 16px; font-size: 54px; }
  .slide-box { right: 16px; bottom: 92px; gap: 10px; }
  .slide-box .eyebrow { font-size: 20px; line-height: 22px; }
  .slide-box h2 { font-size: 44px; }
  .slide-box p { font-size: 17px; line-height: 24px; }
  .slide-box .btn.big { flex: 1 1 100%; }
  .slide-duo { left: 16px; right: 16px; bottom: 92px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .slide-duo > :empty { display: none; }
  .slide-duo .slide-box { gap: 6px; }
  .slide-duo .slide-box .eyebrow { font-size: 17px; line-height: 20px; }
  .slide-duo .slide-box h2 { font-size: 28px; }
  .slide-duo .slide-box p { font-size: 15px; line-height: 20px; }
  .slide-duo .slide-box .row { gap: 8px; }
  .slide-duo .slide-box .btn.big { flex: 0 0 auto; min-height: 44px; padding: 0 16px; }
  .sl-btn { bottom: 28px; width: 44px; height: 44px; }
  .sl-btn.prev { right: auto; left: 16px; } .sl-btn.next { right: auto; left: 72px; }
  .sl-dots { left: auto; right: 8px; bottom: 28px; transform: none; }
  .sec2 { padding: 32px 16px; gap: 20px; }
  ul.wk2 li { flex-wrap: wrap; gap: 10px 14px; padding: 12px; }
  ul.wk2 .datebox { flex-basis: 52px; height: 52px; }
  .wk2 .wk-body { flex: 1 1 180px; }
  .wk-match { font-size: 19px; line-height: 22px; }
  .ycards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ycards a { min-height: 60px; padding: 10px 12px; }
  .ycards b { font-size: 20px; line-height: 22px; }
  .ycards svg { display: none; }
  .join { padding: 32px 16px; }
  .join .btn { width: 100%; }
  .foot-in { padding: 28px 16px 16px; gap: 20px; }
  .foot-legal { padding: 12px 16px; }
}

/* ---- tabelle di inserimento e righe evidenziate ---- */
tr.hl > td { background: var(--gold-bg); }
table.inputs input { min-height: 40px; width: 72px; text-align: right; padding: 4px 8px; }
table.inputs th[scope=row] { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); background: none; white-space: normal; }
.adm-main .chips a { min-height: 40px; padding: 6px 12px; }
.adm-main .stack > * + * { margin-top: 0; } .adm-main .stack { display: flex; flex-direction: column; gap: 16px; }

/* ---- Magazzino ---- */
.seg.wide { max-width: 520px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qty-chip { padding: 2px 10px; border-radius: 2px; font-weight: 700; font-size: 13px; }
.qty-chip.ok, .qty.ok { background: var(--green-bg); color: var(--forest); }
.qty-chip.low, .qty.low { background: var(--gold-bg); color: #5c4300; }
.qty-chip.out, .qty.out { background: var(--red-bg); color: var(--red); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sz { display: flex; flex-direction: column; gap: 4px; } .sz > span { font-weight: 700; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 4px; border-radius: 2px; border: 1px solid var(--hairline); }
.qty form { margin: 0; } .qty b { min-width: 34px; text-align: center; font: 800 italic 22px 'Barlow Condensed', sans-serif; }
.qty button { width: 40px; height: 40px; border: 2px solid var(--control); background: #fff; border-radius: 2px; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--green-bg); }
.tablewrap form { margin: 0; }
.w-sm { width: 120px; } .w-auto { width: auto; }

/* ---- Atleti e famiglie: due parti ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: #fff; border: 2px solid var(--hairline); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.tile b { font: 800 italic 36px/1 'Barlow Condensed', sans-serif; } .tile span { font-size: 14px; font-weight: 600; color: var(--muted); }
.tile[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: #fff; } .tile[aria-current="true"] span { color: #fff; }
.split { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: start; }
.split-list { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; min-height: 0; }
.split-detail > * + * { margin-top: 16px; } .split-detail .card { margin-bottom: 0; }
.filters .field { margin-bottom: 8px; }
.alist { list-style: none; margin: 0 -16px -16px; padding: 0; overflow-y: auto; border-top: 1px solid var(--hairline); }
.alist li a { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 10px 16px; border-bottom: 1px solid var(--hairline); color: var(--ink); text-decoration: none; }
.alist li a > span:last-child { grid-column: 1 / -1; } .alist li a:hover { background: #fafbfa; }
.alist li a[aria-current="true"] { background: var(--gold-bg); box-shadow: inset 5px 0 0 var(--gold); }
.pad2 { padding: 16px; } h4 { margin: 8px 0 4px; font-size: 16px; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } .split-list { position: static; max-height: 420px; } }

/* ================= App famiglie e atleti: rifiniture secondo il progetto ================= */
.pill { display: inline-block; padding: 4px 10px; background: var(--gold); color: var(--ink); border-radius: 2px; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.app-main section.hero-card > h2.eyebrow, .hero-card .hc-top h2.eyebrow { font: 600 13px/16px 'Barlow', sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; margin: 0; color: var(--gold); }
.hero-card { gap: 8px; padding: 16px; }
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hc-top .row { display: flex; gap: 6px; }
.hc-title { font: 800 italic 44px/42px 'Barlow Condensed', sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.hc-title.two { font-size: 40px; line-height: 38px; }
.hc-title.two span { display: block; font-size: 28px; line-height: 30px; font-weight: 700; }
.hc-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 17px; line-height: 24px; }
.hc-line span, .hc-line b { display: inline-flex; align-items: center; gap: 8px; }
.hc-note { font-size: 14px; line-height: 20px; font-weight: 700; margin: 0; }
.hc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 4px; border: 2px solid #fff; border-radius: 2px; color: #fff; text-decoration: none; font: 700 14px/16px 'Barlow', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.hc-btn:hover { background: rgba(255,255,255,.12); }
.hc-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-underline-offset: 4px; }
.hero-time { font-size: 44px; line-height: 44px; }
.app-main h1 { font-size: 36px; line-height: 38px; }
.app-main .sub { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: var(--muted); }

/* striscia dei giorni (atleta) e in sintesi */
.daystrip { display: flex; gap: 3px; }
.daystrip a { flex: 1 1 0; min-width: 0; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 0; border: 2px solid var(--forest); border-radius: 2px; background: #fff; color: var(--ink); text-decoration: none; }
.daystrip a span { font-size: 11px; line-height: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.daystrip a b { font: 800 italic 22px/22px 'Barlow Condensed', sans-serif; }
.daystrip a i { width: 7px; height: 7px; background: transparent; }
.daystrip a i.on { background: var(--forest); } .daystrip a i.g { background: var(--ink); }
.daystrip a[aria-current="true"] { background: var(--forest); color: #fff; }
.daystrip a[aria-current="true"] i.on, .daystrip a[aria-current="true"] i.g { background: var(--gold); }
.daycard { display: flex; flex-direction: column; gap: 8px; }
.day-ev { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.day-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.day-time { font: 800 italic 44px/44px 'Barlow Condensed', sans-serif; }
.day-place { font: 700 22px/24px 'Barlow Condensed', sans-serif; }
.brief { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.brief a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.brief .datebox { flex: 0 0 52px; height: 52px; }
.brief .datebox b { font-size: 24px; line-height: 24px; }
.brief .t { display: block; font: 700 22px/24px 'Barlow Condensed', sans-serif; }
.brief .s { display: block; font-size: 14px; line-height: 20px; color: var(--muted); }
.ev-title { font-size: 26px; line-height: 28px; }

/* avvisi */
.notices { gap: 8px; }
.notice { background: #fff; border: 1px solid var(--hairline); border-left: 6px solid var(--hairline); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.notice.unread { border-left-color: var(--forest); }
.notice-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice-top .when { margin-left: auto; font-size: 14px; color: var(--muted); }
.kindtag { padding: 2px 8px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kindtag.imp { background: var(--gold); border-color: var(--gold); }
.newflag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); }
.newflag::before { content: ''; width: 10px; height: 10px; background: var(--forest); }
.notice h2 { font: 700 28px/30px 'Barlow Condensed', sans-serif; text-transform: none; letter-spacing: 0; margin: 0; }
.notice h2 a { color: var(--ink); text-decoration: none; }
.notice .aud { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.notice .nbody p { margin: 0 0 .6em; }
.notice form { margin: 4px 0 0; }
.notice .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }

/* La stagione */
.chips.eq a { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 4px; text-align: center; border-color: var(--forest); color: var(--forest); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.chips.eq a[aria-current="true"] { background: var(--forest); color: #fff; }
.app-main h3.month { margin: 18px 0 8px; font: 800 italic 24px/26px 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0; color: var(--forest); }
.fx { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--hairline); border-left: 6px solid var(--forest); border-radius: var(--radius); }
.fx.next { border-left-color: var(--gold); }
.fx.is-past { border-left-color: var(--hairline); background: #fafbfa; color: var(--muted); }
.fx .datebox { flex: 0 0 56px; height: 64px; background: #e6ede8; }
.fx.next .datebox { background: var(--gold); }
.fx.is-past .datebox { background: var(--hairline); }
.fx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-title { font: 700 22px/24px 'Barlow Condensed', sans-serif; color: var(--ink); }
.fx-tag { align-self: flex-start; }
.tag.home { background: var(--forest); color: #fff; }
.tag.away { background: #fff; color: var(--forest); border: 1px solid var(--forest); }

/* Segreteria (famiglie) */
.paysum { background: #fff; border: 1px solid var(--hairline); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.paysum-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.paysum-top h2 { font: 600 13px/16px 'Barlow', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.paysum-top b { font: 800 italic 44px/44px 'Barlow Condensed', sans-serif; color: var(--forest); }
.paysum ul { list-style: none; margin: 0; padding: 0; }
.paysum li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.paysum li b { display: block; font: 700 20px/22px 'Barlow Condensed', sans-serif; }
.paysum li .small { display: block; }
.paysum .zero { color: var(--muted); }
.mini { display: inline-block; padding: 3px 9px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; font-size: 13px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.mini.fill { background: var(--forest); border-color: var(--forest); color: #fff; }
.mini.gold { background: var(--gold); border-color: var(--gold); }
.mini.red { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.steps { margin: 14px 0 8px; gap: 8px; }
.steps li { flex-direction: column; justify-content: flex-start; gap: 6px; text-align: center; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.steps li span { width: 40px; height: 40px; border-radius: 2px; background: #fff; color: var(--ink); font: 700 20px/1 'Barlow Condensed', sans-serif; }
.steps li.done span { background: var(--forest); border-color: var(--forest); color: #fff; }
.steps li.cur span { background: var(--gold); border-color: var(--ink); }
.steps li.cur { color: var(--ink); }
.famtotal { background: var(--forest); color: #fff; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.famtotal .ft-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.famtotal b { font: 800 italic 44px/44px 'Barlow Condensed', sans-serif; }
.famtotal .eyebrow { color: var(--gold); }
.famtotal p { margin: 0; font-size: 14px; }
.progress { height: 14px; background: #fff; border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); }
.ratecard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.ratecard b { display: block; font: 700 22px/24px 'Barlow Condensed', sans-serif; }
.who-line { margin: 12px 0 -4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.paybox { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; }
.paybox h3 { font: 700 22px/24px 'Barlow Condensed', sans-serif; text-transform: uppercase; margin-bottom: 8px; }
.paybox dl.bank { margin: 8px 0 12px; }
.paybox .btn { display: block; width: 100%; }
.mtiles { display: flex; gap: 8px; }
.mtiles > div { flex: 1 1 0; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px; font-size: 13px; line-height: 16px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.mtiles span { width: 26px; height: 26px; display: grid; place-items: center; background: var(--forest); color: #fff; border-radius: 2px; font: 700 16px/1 'Barlow Condensed', sans-serif; }
.mtiles > div:last-child span { background: var(--gold); color: var(--ink); }
.minilabel { margin: 4px 0 -8px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.reqlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reqlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.reqlist b { display: block; font: 700 22px/24px 'Barlow Condensed', sans-serif; }
.prod { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.prod .stripe { height: 8px; }
.prod form { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.prod-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prod-top b { font: 700 28px/28px 'Barlow Condensed', sans-serif; }
.prod-top .price { font: 800 italic 30px/30px 'Barlow Condensed', sans-serif; color: var(--forest); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.sizes legend { position: absolute; left: -999px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 46px; padding: 0 12px; border: 2px solid var(--forest); border-radius: 2px; background: #fff; font: 700 18px/1 'Barlow Condensed', sans-serif; color: var(--forest); }
.sizes input:checked + span { background: var(--forest); color: #fff; }
.sizes input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.prod .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #fff; color: var(--forest); border-color: var(--forest); }
.prod .btn:hover { background: var(--green-bg); }
progress.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 14px; border: 0; border-radius: 2px; background: #fff; overflow: hidden; }
progress.bar::-webkit-progress-bar { background: #fff; }
progress.bar::-webkit-progress-value { background: var(--green); }
progress.bar::-moz-progress-bar { background: var(--green); }
.fx-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notice .btn { font: 700 14px/16px 'Barlow', sans-serif; letter-spacing: .06em; text-transform: uppercase; min-height: 48px; }
.app-main section.stk { display: flex; flex-direction: column; gap: 12px; }
.app-main section.stk > h2 { margin-bottom: 0; }
.app-main section.stk > .weeknav { margin-bottom: 0; }
.minilabel { margin: 6px 0 -2px; }
.reqlist .mini { font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; }
.prod .btn { font: 700 14px/16px 'Barlow', sans-serif; letter-spacing: .06em; text-transform: uppercase; min-height: 48px; }
.app-main section.stk > .minilabel { margin-bottom: -6px; }

/* ---- Gare e classifica (atleta) ---- */
.app-main .seg { margin: 0; }
ul.gl { gap: 12px; }
ul.gl .fx { border-left: 1px solid var(--hairline); }
.datebox.with-month { gap: 0; }
.datebox.with-month b { font-size: 26px; line-height: 26px; }
.datebox.with-month .mo { font-size: 11px; line-height: 14px; }
.fx .datebox.with-month { background: #c9d6ce; }
.fx.hot { background: var(--forest); border-color: var(--forest); color: #fff; }
.fx.hot .datebox { background: var(--gold); color: var(--ink); }
.fx.hot .eyebrow, .fx.hot .fx-title, .fx.hot .small { color: #fff; }
.fx.hot .eyebrow { opacity: .9; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.duo .card { margin: 0; }
.tile-pos { background: var(--forest); color: #fff; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 88px; }
.tile-pos b { font: 800 italic 48px/44px 'Barlow Condensed', sans-serif; }
.tile-pos span { color: var(--gold); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.duo .card h2.eyebrow, .app-main section.card > h2.eyebrow { font: 600 13px/16px 'Barlow', sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lastres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 18px; }
.lastres b { font-weight: 700; margin-right: 4px; } .lastres b.w { color: var(--forest); } .lastres b.l { color: var(--red); }
.opp { font: 700 24px/28px 'Barlow Condensed', sans-serif; text-transform: none; margin: 0 0 2px; }
table.standing tr.me > * { background: var(--forest); color: #fff; font-weight: 700; }
table.standing tr.me > td.num:last-child b { color: var(--gold); }
table.standing thead th { background: #fff; border-bottom: 2px solid var(--ink); }
table.standing th.num, table.standing td.num { width: 34px; padding-left: 6px; padding-right: 6px; text-align: center; }
table.standing td.num:first-child, table.standing th.num:first-child { width: 28px; }
table.standing tbody th[scope=row] { padding-left: 4px; }
.app-main .cardhead { margin-bottom: 8px; }
.app-main section > .cardhead > h2 { font-weight: 800; font-style: italic; font-size: 28px; line-height: 30px; margin: 0; }

/* ================= Segreteria: pagine come nel progetto ================= */
.adm-main .notice { display: block; background: var(--gold-bg); border: 0; border-left: 5px solid var(--gold); padding: 12px 16px; }
.adm-main .pagehead .eyebrow { display: block; margin-bottom: 8px; }
.adm-main .pagehead h1 { text-transform: uppercase; }
.adm-main .pagehead p { font-size: 16px; line-height: 24px; max-width: 540px; }
.cond { font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 700; font-size: 20px; line-height: 22px; }
.btn.upper, .adm-main .btn.small.upper { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.asec { display: flex; flex-direction: column; gap: 12px; }
.sechead { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.adm-main .sechead h2 { font-weight: 800; font-style: italic; font-size: 34px; line-height: 36px; letter-spacing: .01em; }
.adm-main .card h2 { font-size: 22px; line-height: 24px; }

/* passaggi */
.pstepper { list-style: none; display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
.pstepper li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pstepper li span { width: 32px; height: 32px; display: grid; place-items: center; background: #fff; border: 2px solid var(--control); border-radius: 2px; font: 800 18px/1 'Barlow Condensed', sans-serif; color: var(--ink); }
.pstepper li.done, .pstepper li.cur { color: var(--ink); }
.pstepper li.done span { background: var(--forest); border-color: var(--forest); color: #fff; }
.pstepper li.cur span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pstepper li.ln { flex: 0 0 44px; height: 2px; background: var(--control); opacity: .6; }

/* scheda del file */
.filecard { display: flex; align-items: center; gap: 16px; padding: 16px 24px; color: var(--forest); }
.filecard svg { flex: none; }
.fc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.fc-main .cond { font-size: 24px; line-height: 26px; text-transform: uppercase; overflow-wrap: anywhere; }
.fc-ok { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; background: var(--forest); color: #fff; border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.fc-ok.warn { background: var(--gold); color: var(--ink); }

/* riquadri grandi */
.kpis.k3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kpi.big { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 18px; }
.kpi.big .eyebrow { font-size: 12px; }
.kpi.big b { display: block; font: 800 italic 56px/52px 'Barlow Condensed', sans-serif; color: var(--ink); }
.goldcard { background: var(--gold); color: var(--ink); border-radius: var(--radius); padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.goldcard .eyebrow { color: var(--ink); font-size: 12px; }
.goldcard p { margin: 0; font-size: 14px; line-height: 20px; }
.gold-num { font: 800 italic 48px/48px 'Barlow Condensed', sans-serif; }
.goldcard details summary { cursor: pointer; font-weight: 700; }

/* tabelle di controllo */
table.pt thead th { background: #fff; border-bottom: 2px solid var(--ink); color: var(--muted); font-size: 12px; padding: 12px 16px 10px; }
table.pt td, table.pt th { padding: 10px 16px; vertical-align: middle; }
table.pt td { font-size: 15px; }
table.pt td .cond { font-size: 20px; }
table.pt tbody tr:last-child td { border-bottom: 0; }
.daysel { margin-bottom: -4px; }
.daysel a { min-height: 36px; padding: 4px 12px; font-size: 14px; }

/* barra di pubblicazione */
.pubbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--forest); color: #fff; border-radius: var(--radius); padding: 20px 24px; }
.pubbar > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.pubbar b { font: 800 italic 28px/30px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.pubbar span { font-size: 14px; }
.pb-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pb-actions form { margin: 0; }
.pb-actions .btn { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.pb-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* carica il file */
.upload .upload-in { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; color: var(--forest); }
.upload h2 { color: var(--ink); text-transform: none; margin-bottom: 4px; }
.upload p { margin: 0; }
.upload input[type=file] { width: 100%; padding: 14px; border: 2px dashed var(--control); border-radius: 2px; background: #fafbfa; font: inherit; }
@media (max-width: 900px) { .kpis.k3 { grid-template-columns: 1fr; gap: 12px; } .filecard { flex-wrap: wrap; } }

table.pt th.num, table.pt td.num { text-align: left; }

/* ---- Calendari campionato ---- */
.head-actions { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; position: relative; }
.btn.gold-line { background: var(--gold); border-color: var(--ink); color: var(--ink); display: inline-flex; align-items: center; gap: 10px; list-style: none; font-size: 13px; letter-spacing: .06em; min-height: 46px; padding: 0 20px; }
.btn.gold-line:hover { background: #e3a70f; }
.btn.gold-line::-webkit-details-marker { display: none; }
.head-actions .btn.upper { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-color: var(--forest); color: var(--ink); font-size: 13px; }
.impbox > summary { cursor: pointer; }
.impbox[open] > form { position: absolute; right: 0; top: calc(100% + 8px); width: min(520px, 90vw); z-index: 5; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.kpi.big b small { font: 700 italic 24px/1 'Barlow Condensed', sans-serif; color: var(--muted); }
.kpi.big progress { width: 100%; height: 8px; border: 0; border-radius: 4px; background: var(--hairline); accent-color: var(--forest); appearance: none; margin-top: 8px; }
.kpi.big progress::-webkit-progress-bar { background: var(--hairline); border-radius: 4px; }
.kpi.big progress::-webkit-progress-value { background: var(--forest); border-radius: 4px; }
.kpi.big progress::-moz-progress-bar { background: var(--forest); border-radius: 4px; }
.kpi.big.gold { background: var(--gold); border-color: var(--gold); }
.kpi.big.gold .eyebrow { color: var(--ink); }
.sechead.spread { justify-content: space-between; align-items: center; }
.chips.caps a { min-height: 44px; padding: 0 18px; border-color: var(--forest); color: var(--forest); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.chips.caps a[aria-current="true"] { background: var(--forest); color: #fff; }
table.cal td { vertical-align: middle; padding-top: 14px; padding-bottom: 14px; }
table.cal tr.imported > td { background: #eef3ef; }
.teamlink { font: 700 24px/26px 'Barlow Condensed', sans-serif; color: var(--forest); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
table.cal .tag.state { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 3px 8px; }
table.cal .num b.cond { font-size: 24px; }
table.cal td.act { text-align: right; white-space: nowrap; }
table.cal td.act .btn { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot { max-width: 900px; line-height: 20px; }
@media (max-width: 1100px) { .kpis.k4 { grid-template-columns: repeat(2, 1fr); } }

/* ---- Calendario di una squadra ---- */
.crumbs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.crumbs .btn.back { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-color: var(--forest); color: var(--forest); }
.tagrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tagrow .tag { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 3px 8px; }
.adm-main h2.plain-h2 { font-weight: 800; font-style: normal; font-size: 34px; line-height: 36px; text-transform: uppercase; }
table.gares td { vertical-align: middle; }
table.gares .cond.big { font-size: 26px; font-style: italic; }
table.gares td.act { text-align: right; white-space: nowrap; }
table.pt.gares .tag.state { font-size: 11px; padding: 1px 6px; letter-spacing: .06em; text-transform: uppercase; }
.bottom-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; position: relative; }
.bottom-actions .btn.upper, .bottom-actions summary.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-color: var(--forest); color: var(--forest); font-size: 13px; }
.bottom-actions summary { list-style: none; cursor: pointer; }
.bottom-actions summary::-webkit-details-marker { display: none; }
.impbox.up[open] > form { top: auto; bottom: calc(100% + 8px); right: auto; left: 0; }
.impbox.up { position: relative; }
table.gares td:nth-child(2), table.gares td:nth-child(3) { white-space: nowrap; }
table.gares tr.editing td { background: var(--gold-bg); }
.varbox { margin-top: 16px; background: #fff; border: 3px solid var(--forest); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 16px; }
.varbox h3 { font: 700 28px/30px 'Barlow Condensed', sans-serif; text-transform: none; letter-spacing: 0; margin-top: 4px; }
.stepgrid { display: flex; gap: 40px; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.stepper b { font: 800 italic 30px/32px 'Barlow Condensed', sans-serif; min-width: 96px; text-align: center; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--forest); border-radius: var(--radius); background: #fff; color: var(--forest); font: 700 26px/1 'Barlow', sans-serif; text-decoration: none; }
.sbtn:hover { background: var(--green-bg); }
.varact { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.varact .btn { min-height: 48px; }

/* ---- Comunicazioni: pagina unica ---- */
.js-only { display: none; } .js .js-only { display: inline-flex; }
.comm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 32px; align-items: start; }
.comm-form { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.disp, .adm-main h2.disp { font: 800 italic 34px/36px 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.comm-form .lbl, .lbl { display: block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cf-sec { display: flex; flex-direction: column; }
.lblrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lblrow .lbl { margin-bottom: 8px; }
.quick { gap: 22px; margin-bottom: 8px; }
.linkbtn { background: none; border: 0; padding: 0; font: 700 12px/16px 'Barlow', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.cchip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.cchip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cchip > span, a.cchip { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; background: #fff; border: 2px solid var(--forest); border-radius: 2px; color: var(--forest); font: 700 13px/16px 'Barlow', sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.cchip input:checked + span, a.cchip.on { background: var(--forest); color: #fff; }
.cchip.gold > span { border-color: var(--ink); color: var(--ink); }
.cchip.gold input:checked + span { background: var(--gold); color: var(--ink); }
.cchip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.cchip.sm > span { min-height: 36px; padding: 0 12px; font: 700 15px/16px 'Barlow Condensed', sans-serif; letter-spacing: 0; text-transform: none; }
.listbox { background: #eff3ef; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 14px 14px 16px; margin-bottom: 16px; }
.listbox .cchip > span { border-color: var(--ink); color: var(--ink); background: #fff; }
.listbox .cchip input:checked + span { background: var(--ink); color: #fff; }
.teamcols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.tgroup { border: 0; padding: 0; margin: 0; min-width: 0; }
.tgroup legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 10px; font: 800 italic 22px/24px 'Barlow Condensed', sans-serif; text-transform: uppercase; float: none; }
.tgroup legend::before { content: ''; width: 12px; height: 12px; background: var(--ink); }
.tgroup legend.f::before { background: var(--green); }
.tgroup legend.m::before { background: var(--forest); }
.segr { display: inline-flex; border: 2px solid var(--forest); border-radius: 2px; align-self: flex-start; }
.segr label { position: relative; margin: 0; display: block; cursor: pointer; }
.segr label + label { border-left: 2px solid var(--forest); }
.segr input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segr span { display: block; padding: 14px 22px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); background: #fff; }
.segr input:checked + span { background: var(--forest); color: #fff; }
.segr input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: -3px; }
.segr input:checked:focus-visible + span { outline-color: #fff; }
.comm-form .hint { margin: 8px 0 0; }
.comm-form .field { margin: 0; }
.comm-form input[type=text], .comm-form textarea { font-weight: 600; }
.cf-checks { gap: 28px; }
.sendbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--forest); color: #fff; border-radius: var(--radius); padding: 18px 20px; }
.sendbar > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sendbar b { font: 800 italic 28px/30px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.sendbar span { font-size: 13px; line-height: 18px; }
.sendbar .btn { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.comm-prev { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.phone { border: 12px solid var(--ink); border-radius: 4px; background: #f3f5f2; overflow: hidden; }
.ph-head { background: var(--forest); color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.ph-head b { font: 800 italic 22px/24px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ph-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pv { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pv-top .when { font-size: 12px; color: var(--muted); }
.pv h3 { font: 700 26px/28px 'Barlow Condensed', sans-serif; overflow-wrap: anywhere; }
.pv p { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; max-height: 9.5em; overflow: hidden; }
.pv-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--forest); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 2px; }
.pv-btn[hidden] { display: none; }
.center { text-align: center; margin: 0; }
.kindtag.imp { background: var(--gold); border-color: var(--ink); }
.readbar { display: flex; align-items: center; gap: 12px; }
.readbar span { font: 700 14px/16px 'Barlow', sans-serif; white-space: nowrap; }
progress.bar.mini { width: 100%; max-width: 280px; height: 10px; border-radius: 5px; background: var(--hairline); }
progress.bar.mini::-webkit-progress-bar { background: var(--hairline); border-radius: 5px; }
progress.bar.mini::-webkit-progress-value { background: var(--forest); border-radius: 5px; }
progress.bar.mini::-moz-progress-bar { background: var(--forest); border-radius: 5px; }
table.pt a.cond { color: var(--ink); text-decoration: none; font-size: 20px; }
table.pt a.cond:hover { text-decoration: underline; }
@media (max-width: 1100px) { .comm-grid { grid-template-columns: 1fr; } .comm-prev { position: static; } }
@media (max-width: 600px) { .teamcols { grid-template-columns: 1fr; } }
.cf-checks { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.cf-checks .check { margin: 0; width: auto; display: inline-flex; align-items: center; gap: 10px; }
.pv-top { flex-wrap: nowrap; } .pv-top .when { font-size: 11px; white-space: nowrap; }

/* ---- Visite e quote ---- */
.tag.red-line { background: #fff; color: var(--red); border: 1px solid var(--red); }
table.pt .tag.state, .legend .tag { font-size: 12px; line-height: 16px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 3px 8px; }
.filterbar { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; padding: 16px 20px; }
.filterbar .field { margin: 0; }
.filterbar select { min-width: 220px; }
.chips.caps a b.n { font: 800 italic 20px/16px 'Barlow Condensed', sans-serif; margin-left: 8px; letter-spacing: 0; }
.legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legend .eyebrow { margin-right: 6px; font-size: 12px; }
.kpi.big.red { background: var(--red-bg); border-color: #e7a9a4; }
.kpi.big.red b { color: var(--red); }
.kpi.big.red .eyebrow { color: var(--red); }
table.pt td.act { text-align: right; vertical-align: top; }
table.pt td.act form { margin: 0; display: inline-block; }
.rowdet { margin-top: 6px; text-align: left; }
.rowdet > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; list-style: none; display: inline-block; }
.rowdet > summary.btn { text-decoration: none; }
.rowdet > summary::-webkit-details-marker { display: none; }
.rowdet-body { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding: 12px; background: #fafbfa; border: 1px solid var(--hairline); border-radius: var(--radius); min-width: 280px; }
.rowdet-body.wide { min-width: 420px; }
.rowdet-body p { margin: 0; }
.mcard .rowdet-body { min-width: 0; } .mcard .rowdet-body .btn { white-space: normal; text-align: left; } /* elimina l'articolo: dentro la scheda del catalogo */
/* Sito e impostazioni → Palestre (07/11 b): «Nel sito», poi Modifica / Elimina sotto */
ul.plain > li:has(.gym-acts) { align-items: flex-start; }
.gym-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gym-acts .rowdet-body { min-width: 0; width: min(440px, 66vw); } .gym-acts .rowdet-body .rowdet-body { width: auto; }
.ath-rates + .ath-rates { border-top: 1px solid var(--hairline); padding-top: 10px; }
.ath-rates ul.plain { margin: 6px 0; }
.ath-rates ul.plain li { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 4px 0; }
.ath-rates li > details.rata-edit { flex-basis: 100%; }
.ath-rates li > details.rata-edit .row { margin-top: 6px; align-items: flex-end; }
.ath-rates form { margin: 0; }

/* ---- Segreteria: Materiale ---- */
.kpi.big .sub { display: block; font-size: 14px; line-height: 20px; margin-top: 2px; }
.kpi.big.gold .sub { color: var(--ink); }
.kpi.big.forest { background: var(--forest); border-color: var(--forest); color: #fff; }
.kpi.big.forest .eyebrow, .kpi.big.forest .sub { color: #fff; }
.kpi.big.forest b { color: #fff; }
.ordbox { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.ordtop { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ordtop a { color: var(--forest); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.ordgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ord { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.ord .q { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--forest); color: #fff; border-radius: 2px; font: 800 italic 24px/1 'Barlow Condensed', sans-serif; }
.ord.need .q { background: var(--gold); color: var(--ink); }
.ord .cond { display: block; font-size: 20px; line-height: 22px; }
.ord .meta { font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.ord .st { font-size: 13px; line-height: 16px; color: var(--forest); }
.ord .st.bad { color: var(--red); }
.ordfoot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
table.pt td .acts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* un articolo alla volta (02/12): l'articolo a sinistra, i suoi pulsanti a destra */
.one-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.one-item + .one-item { padding-top: 10px; border-top: 1px solid var(--hairline); }
.one-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
table.pt td .acts form, table.pt td > form { margin: 0; }
.closed { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.linklike.small { font-size: 13px; }
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.mcard .mbody { flex: 1; }
.mcard .mfoot { margin-top: auto; padding-top: 6px; }
.mcard { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mcard.off { opacity: .8; }
.mcard .stripes { height: 76px; background: repeating-linear-gradient(135deg, var(--forest) 0 14px, var(--gold) 14px 28px); }
.mcard.off .stripes { background: repeating-linear-gradient(135deg, var(--control) 0 14px, var(--hairline) 14px 28px); }
.mbody { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.mbody h3 { margin: 0; font-size: 26px; line-height: 28px; }
.mbody p { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.mfoot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.mfoot .price { font: 800 italic 34px/34px 'Barlow Condensed', sans-serif; color: var(--forest); }
.mfoot .price.none { font: 600 14px/20px 'Barlow', sans-serif; color: var(--muted); font-style: normal; }
.mfoot .sizes-r { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.medit { margin-top: 4px; border-top: 1px solid var(--hairline); padding-top: 4px; }
.medit > summary { font-size: 13px; font-weight: 600; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.medit > summary::-webkit-details-marker { display: none; }
.medit form { padding-top: 10px; }
.mcard.add { border-style: dashed; border-color: var(--control); background: transparent; }
.mcard.add > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 16px; color: var(--forest); font: 700 22px/24px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.mcard.add > summary::-webkit-details-marker { display: none; }
.mcard.add .plus { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--forest); border-radius: 2px; font: 700 28px/1 'Barlow', sans-serif; }
.mcard.add[open] { background: #fff; border-style: solid; }
.mcard.add[open] > summary { min-height: 0; flex-direction: row; justify-content: flex-start; background: var(--green-bg); }
@media (max-width: 1100px) { .ordgrid { grid-template-columns: repeat(2, 1fr); } .catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .ordgrid, .catgrid { grid-template-columns: 1fr; } }

/* ---- Segreteria: Atleti e famiglie (elenco a sinistra, scheda a destra) ---- */
.adm-main h2.stephead { margin: 0; font: 700 13px/16px 'Barlow', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ftiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ftile { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 92px; padding: 14px 16px; background: #fff; border: 2px solid var(--forest); border-radius: var(--radius); color: var(--forest); text-decoration: none; }
.ftile b { font: 800 italic 44px/40px 'Barlow Condensed', sans-serif; }
.ftile span { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ftile:hover { background: var(--green-bg); }
.ftile[aria-current="true"] { background: var(--forest); color: #fff; }
.asplit { display: grid; grid-template-columns: minmax(340px, 5fr) 6fr; gap: 24px; align-items: start; }
.asplit-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.asearch label { margin-bottom: 6px; }
.searchrow { display: flex; gap: 8px; }
.searchbox { position: relative; flex: 1; min-width: 0; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbox input { width: 100%; min-height: 48px; padding-left: 42px; }
.chips.sm a { min-height: 34px; padding: 0 12px; font-size: 12px; }
.acards { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.acard { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); color: var(--ink); text-decoration: none; }
.acards li:last-child .acard { border-bottom: 0; }
.acard:hover { background: #fafbfa; }
.acard[aria-current="true"] { background: var(--gold-bg); box-shadow: inset 5px 0 0 var(--gold); }
.acard .an { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.acard .an .cond { font-size: 22px; line-height: 24px; }
.acard .an .at { font: 700 16px/20px 'Barlow Condensed', sans-serif; color: var(--forest); text-align: right; }
.acard .tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.asplit-detail { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.scheda { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.scheda.empty p { margin: 0; color: var(--muted); }
.sch-head { border-bottom: 2px solid var(--ink); padding-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.sch-head .eyebrow, .ssec .eyebrow { margin: 0; font-size: 12px; }
.sch-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sch-name h2 { margin: 0; font: 800 italic 42px/44px 'Barlow Condensed', sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.sch-name .cond { font-size: 22px; line-height: 24px; color: var(--forest); }
.ssec { display: flex; flex-direction: column; gap: 10px; }
.ssec + .ssec { border-top: 1px solid var(--hairline); padding-top: 14px; }
.ssec p { margin: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.srows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.srows li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.srows li > div:first-child { flex: 1 1 240px; min-width: 0; }
.srows .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.srows .rt .rowdet-body { min-width: 0; width: min(300px, 80vw); }
.ssec > .rowdet { margin-top: 0; }
/* Elenco allenatori (segreteria) */
.coachrows { list-style: none; margin: 0; padding: 0; }
.coachrows > li { padding: 14px 16px; }
.coachrows > li + li { border-top: 1px solid var(--hairline); }
.coachrows .chipset { margin-top: 8px; }
.coachrows .rowdet-body.wide { min-width: 0; max-width: 720px; }
/* Squadre (segreteria) */
.teamrows { list-style: none; margin: 0; padding: 0; }
.teamrows > li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; }
.teamrows > li + li { border-top: 1px solid var(--hairline); }
.teamrows > li.off .tr-main > div:first-child b { color: var(--muted); }
.tr-order { display: flex; flex-direction: column; gap: 4px; }
.tr-order .btn { min-width: 40px; padding: 0 10px; }
.tr-order .btn[disabled] { opacity: .35; cursor: default; }
.tr-main { flex: 1 1 auto; min-width: 0; }
.teamrows .rowdet-body.wide { min-width: 0; max-width: 760px; }
.tgroup-h { display: flex; align-items: center; gap: 8px; }
.tgroup-h::before { content: ''; width: 12px; height: 12px; background: var(--ink); }
.tgroup-h.f::before { background: var(--green); } .tgroup-h.m::before { background: var(--forest); }
@media (max-width: 1200px) { .ftiles { grid-template-columns: repeat(3, 1fr); } .asplit { grid-template-columns: 1fr; } .asplit-detail { position: static; max-height: none; } }
@media (max-width: 700px) { .ftiles { grid-template-columns: repeat(2, 1fr); } }

/* ---- Segreteria: Magazzino ---- */
.mtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--ink); }
.mtabs a { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 2px 2px 0 0; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mtabs a b { font: 800 italic 22px/22px 'Barlow Condensed', sans-serif; letter-spacing: 0; }
.mtabs a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.legrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.legend .sw { display: inline-block; width: 16px; height: 16px; border-radius: 2px; vertical-align: -3px; margin-right: 8px; }
.legend .sw.low { background: var(--gold); border: 1px solid var(--gold); }
.legend .sw.out { background: var(--red-bg); border: 1px solid var(--red); }
.legend span { display: inline-flex; align-items: center; }
.legend { gap: 8px 20px; }
.addbox { background: #fff; border: 2px solid var(--forest); border-radius: var(--radius); padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.addbox .field { margin: 0; flex: 1 1 280px; }
.addbox .kindset { border: 0; margin: 0; padding: 0; display: flex; gap: 18px; align-items: center; min-height: 48px; }
.addbox .acts-row { display: flex; gap: 8px; }
div.stk { display: inline-flex; align-items: stretch; border: 1px solid var(--control); border-radius: 2px; background: #fff; }
div.stk form { margin: 0; display: flex; }
div.stk button { width: 32px; min-height: 36px; padding: 0; border: 0; background: #fff; color: var(--forest); font-size: 20px; line-height: 20px; font-weight: 700; cursor: pointer; }
div.stk button:hover:not(:disabled) { background: var(--green-bg); }
div.stk button:disabled { color: var(--control); cursor: default; }
div.stk b { min-width: 44px; display: flex; align-items: center; justify-content: center; font: 700 22px/24px 'Barlow Condensed', sans-serif; }
div.stk.low { border-color: var(--gold); }
div.stk.low b { background: var(--gold); color: var(--ink); }
div.stk.out { border-color: var(--red); }
div.stk.out b { background: var(--red-bg); color: var(--red); }
div.stk.zero b { background: #e6ede8; color: var(--control); }
table.stock th.c, table.stock td.c { text-align: center; }
table.stock th.r, table.stock td.r { text-align: right; }
table.stock td { padding-top: 8px; padding-bottom: 8px; }
table.stock .tot { font: 800 italic 28px/28px 'Barlow Condensed', sans-serif; color: var(--forest); }
table.stock td.c .cond { font-size: 22px; line-height: 24px; }
table.stock tfoot td, table.stock tfoot th { background: #e6ede8; padding: 12px 16px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-align: left; border-bottom: 0; }
table.stock tfoot td.c { text-align: center; } table.stock tfoot td.r { text-align: right; }
.gymgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.gymcard { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.stripes.thin { height: 8px; background: repeating-linear-gradient(135deg, var(--gold) 0 14px, var(--forest) 14px 28px); }
.gymhead { padding: 16px 20px 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gymhead h3 { margin: 0; font-size: 30px; line-height: 32px; text-transform: uppercase; }
.gymhead .up { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.gymrows { list-style: none; margin: 0; padding: 0 20px 16px; }
.gymrows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid #e6ede8; }
.gymrows li.zero > span { color: var(--control); }
table.stock th, table.stock td { padding-left: 6px; padding-right: 6px; }
table.stock th:first-child, table.stock td:first-child { padding-left: 16px; min-width: 210px; }
table.stock th:last-child, table.stock td:last-child { padding-right: 16px; }
table.stock div.stk b { min-width: 38px; }
/* casella del numero di pezzi (si scrive e si salva con Invio o uscendo dal campo) */
div.stk .q input { width: 56px; min-height: 36px; padding: 0 2px; border: 0; border-left: 1px solid #e6ede8; border-right: 1px solid #e6ede8; border-radius: 0; background: #fff; color: var(--ink); text-align: center; font: 700 22px/24px 'Barlow Condensed', sans-serif; -moz-appearance: textfield; appearance: textfield; }
div.stk .q input::-webkit-outer-spin-button, div.stk .q input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
div.stk.low .q input { background: var(--gold); color: var(--ink); }
div.stk.out .q input { background: var(--red-bg); color: var(--red); }
div.stk.zero .q input { background: #e6ede8; color: var(--control); }
table.stock div.stk .q input { width: 50px; }

/* ---- Segreteria: Pannello ---- */
.card.dofirst { border-left: 6px solid var(--gold); display: flex; flex-direction: column; gap: 12px; }
.card.dofirst.ok { border-left-color: var(--forest); }
.card.dofirst h2 { margin: 0; }
.todolist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.todolist li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.todolist li:first-child { border-top: 0; }

/* ---------- Foto del certificato medico ---------- */
.block { display: block; }
.certup { margin-top: 14px; }
.certup > summary { cursor: pointer; font-weight: 700; color: var(--forest); padding: 8px 0; }
.certup[open] > summary { margin-bottom: 8px; }
.certform { display: flex; flex-direction: column; gap: 12px; }
.certform .check { font-weight: 500; font-size: 14px; line-height: 1.4; margin: 0; }
.certform .check a { color: var(--forest); font-weight: 700; }
.certform .check span { min-width: 0; }
.certform .small { margin: 0; }
.certform .camerabtn { display: flex; width: 100%; cursor: pointer; }
.certform .camerabtn span { min-width: 0; overflow-wrap: anywhere; }
.certform .filepick { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.js .certform .sendbtn { display: none; }
.js .certform .sendbtn.show { display: block; }
.certlist { margin-top: 14px; }
.certlist ul.plain > li { align-items: center; padding: 10px 0; }
.certlist ul.plain > li > span { display: flex; flex-direction: column; gap: 2px; }
.certlist ul.plain > li > form { margin: 0; }
.certfiles { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--hairline); }
.certfiles ul.plain > li { padding: 6px 0; border-bottom: 0; }
.certfiles ul.plain > li > span { display: flex; flex-direction: column; gap: 2px; }
.certfiles p { margin: 0; }

/* l'attributo hidden vince sempre sugli stili dei componenti */
[hidden] { display: none !important; }

/* Invito a installare l'app (telefono) */
.installbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px; border: 2px solid var(--forest); border-radius: var(--radius); background: var(--green-bg); }
.installbar p { flex: 1 1 100%; margin: 0; }
.installbar span { color: var(--muted); }
.narrowcol h3 { margin: 22px 0 6px; font-size: 20px; }

/* ---- famiglie: calendario con un tocco, pulsante negli avvisi, risultato delle gare, carrello del materiale ---- */
.hero-card form { margin: 0; }
button.hc-btn { width: 100%; background: transparent; cursor: pointer; }
.hc-cal { margin: 0; font-size: 13px; line-height: 18px; }
.nlink { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--forest); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-underline-offset: 4px; }
.fx-res { display: flex; align-items: center; gap: 10px; }
.fx-res b { font: 800 italic 36px/36px 'Barlow Condensed', sans-serif; }
.fx-res .tag { border: 1px solid var(--ink); }
.cart { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.prod-in { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.pqty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pqty select { width: auto; min-width: 96px; font-weight: 700; }
.cartbar { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; background: var(--forest); color: #fff; border-top: 4px solid var(--gold); border-radius: var(--radius); }
.cartbar p { margin: 0; }
.cartbar .btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; min-height: 52px; background: var(--gold); border-color: var(--gold); color: var(--ink); font: 700 14px/16px 'Barlow', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cartbar .btn:hover { background: #e3a70f; }
.cartbar [data-cart-total] { white-space: nowrap; font: 800 italic 24px/24px 'Barlow Condensed', sans-serif; }

/* ---- atleti: nome di battesimo, messaggio dentro la scheda, ritorno alla scheda ---- */
.acard .fn, .sch-name .fn { font-weight: 600; color: var(--muted); }
.sch-name h2 .fn { font-size: 32px; }
.scheda > .flash { margin: 0; }
#scheda { scroll-margin-top: 16px; }
#sch-t:focus { outline: none; }
#sch-t:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---- segreteria: elenco pronto spiegato, pulsante in fondo agli avvisi, promemoria della visita inviato ---- */
.listnote { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.listnote .hint { margin: 0; }
.listnote .check { margin: 0; }
.cf-link { border: 0; padding: 0; margin: 0; min-width: 0; }
.cf-link legend { padding: 0; float: none; }
.cf-linkrow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
@media (max-width: 600px) { .cf-linkrow { grid-template-columns: 1fr; } }
.pv-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; color: var(--forest); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.pv-link svg { flex: none; }
.sentbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; background: var(--forest); color: #fff; border-radius: 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* ---- calendari: anteprima dell'importazione e squadra in attesa del PDF ---- */
table.calimp td { vertical-align: middle; }
table.calimp td.file { font-weight: 600; overflow-wrap: anywhere; min-width: 220px; }
table.calimp td.file svg { vertical-align: -6px; margin-right: 8px; color: var(--forest); }
table.calimp .tag.state { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 4px 10px; }
table.calimp tr.has-sub > td { border-bottom: 0; }
table.calimp tr.sub > td { padding-top: 0; padding-left: 46px; }
table.calimp tr.sub li { margin-bottom: 2px; }
table.calimp td.act { text-align: right; white-space: nowrap; }
table.calimp td.act form { margin: 0; }
.waitbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 24px; border-left: 6px solid var(--gold); }
.waitbox > div { flex: 1 1 380px; }
.adm-main .waitbox h2 { font: 700 italic 26px/28px 'Barlow Condensed', sans-serif; text-transform: uppercase; margin: 0 0 4px; }
.waitbox p { margin: 0; font-size: 15px; line-height: 22px; }
.waitbox form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0; }
.waitbox .field { margin: 0; }

/* ---- calendari: anteprima dell'importazione a larghezza telefono ---- */
@media (max-width: 600px) {
  table.calimp td.file { min-width: 130px; }
  table.calimp tr.sub > td { padding-left: 16px; }
  table.calimp tr.sub ul { position: sticky; left: 16px; max-width: calc(100vw - 64px); }
}
/* ---- famiglie: contorno di focus leggibile sulla barra verde del carrello ---- */
.cartbar :focus-visible { outline-color: #fff; }

/* ---- Pagine di testo del sito (Chi siamo, Vieni a giocare, Dove siamo, Sponsor, Contatti) ---- */
.prose h2 { font-size: 30px; line-height: 32px; margin: 36px 0 10px; }
.prose ul:not([class]) { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.previewbar { background: var(--gold); color: var(--ink); padding: 10px 16px; text-align: center; font-size: 15px; line-height: 22px; }
.previewbar a { color: var(--ink); font-weight: 700; }
.gymlist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
/* video di una pagina (11/11 g): verticale o orizzontale, mai più alto dello schermo */
.pagevideo { margin: 0 0 24px; }
.pagevideo video { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; background: #000; border-radius: var(--radius); }
.gymlist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.gymlist b { display: block; font: 700 24px/26px 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.gymlist span { display: block; color: var(--muted); font-size: 16px; line-height: 22px; }
.gymlist .btn { display: inline-flex; align-items: center; gap: 8px; }
.contactbox { margin: 24px 0 0; padding: 4px 18px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.contactbox > div { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.contactbox > div:last-child { border-bottom: 0; }
.contactbox dt { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contactbox dd { margin: 0; font-size: 19px; line-height: 26px; }
.spgrid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.spgrid li, .splogos li { margin: 0; }
.spgrid a, .spgrid .sp-static { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 150px; padding: 16px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--ink); text-decoration: none; text-align: center; }
.spgrid a:hover { border-color: var(--forest); }
.spgrid img { display: block; max-width: 100%; max-height: 80px; object-fit: contain; }
/* tre categorie di sponsor (05/11): title grandi, golden medi, sponsor più piccoli */
.sp-tier .spgrid { margin-top: 12px; }
.spgrid.title { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
/* title sponsor: la riga d'oro in alto come i golden e una piccola corona d'alloro nell'angolo, appoggiata sulla riga (05/11) */
.spgrid.title a, .spgrid.title .sp-static { position: relative; min-height: 240px; border-top: 4px solid var(--gold); }
.laurel { position: absolute; top: -19px; right: 14px; padding: 0 5px; background: #fff; color: #c9971c; line-height: 0; }
.laurel svg { width: 52px; height: auto; }
.spgrid.title img { max-height: 140px; }
.spgrid.title .sp-text { font-size: 34px; line-height: 36px; }
/* main sponsor (11/11 i): tra title e golden, con la riga d'oro */
.spgrid.main { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.spgrid.main a, .spgrid.main .sp-static { min-height: 200px; border-top: 4px solid var(--gold); }
.spgrid.main img { max-height: 120px; }
.spgrid.main .sp-text { font-size: 28px; line-height: 30px; }
.spgrid.golden { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.spgrid.golden a, .spgrid.golden .sp-static { min-height: 170px; border-top: 4px solid var(--gold); }
.spgrid.golden img { max-height: 100px; }
.spgrid.sponsor { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.spgrid.sponsor a, .spgrid.sponsor .sp-static { min-height: 120px; }
.spgrid.sponsor img { max-height: 64px; }
.sp-name { font-size: 15px; line-height: 20px; font-weight: 600; }
.sp-text { font: 700 24px/26px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.splogos { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.splogos a, .splogos .sp-static { display: flex; align-items: center; justify-content: center; min-width: 96px; min-height: 56px; color: var(--ink); text-decoration: none; }
.splogos img { display: block; max-height: 56px; max-width: 160px; object-fit: contain; }
.sp-admin > li { align-items: flex-start; flex-wrap: wrap; }
/* foto della home in Pagine del sito: miniature, non la foto intera */
.ph-admin > li { flex-wrap: wrap; }
.ph-thumb { flex: 0 0 auto; width: 240px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #1d2420; }
.sp-thumb { flex: 0 0 120px; height: 80px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.sp-thumb img { max-width: 108px; max-height: 68px; object-fit: contain; }
.sp-edit { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sp-edit .row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.sp-edit .field { margin: 0; }
.sp-edit .row form { margin: 0; }
@media (max-width: 640px) {
  .prose h2 { font-size: 26px; line-height: 28px; }
  .contactbox dd { font-size: 18px; }
  .gymlist .btn { width: 100%; justify-content: center; }
}

/* Atleti e famiglie: pulsanti in testata (nuovo atleta, nuovo genitore, importa) e credenziali dell'atleta appena create */
.headbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.creds { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0; background: #fafbfa; border: 1px dashed var(--control); padding: 10px 12px; border-radius: 2px; }
.creds dt { color: var(--muted); }
.creds dd { margin: 0; font-weight: 700; font-size: 18px; letter-spacing: .03em; user-select: all; }
@media (max-width: 640px) { .headbtns { width: 100%; } .headbtns .btn { flex: 1 1 auto; } .creds { grid-template-columns: 1fr; } .creds dd { margin-bottom: 6px; } }

/* Stagione: ogni gara si apre con un tocco e mostra il riquadro completo (come "Prossima gara") */
.fxd > summary { list-style: none; cursor: pointer; }
.fxd > summary::-webkit-details-marker { display: none; }
.fxd > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fx-chev { flex: 0 0 auto; display: inline-flex; color: var(--muted); transition: transform .15s ease; }
.fxd[open] > summary .fx-chev { transform: rotate(90deg); }
.fxd[open] > summary.fx { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.fx-more { background: var(--forest); color: #fff; padding: 16px; display: flex; flex-direction: column; gap: 8px; border-radius: 0 0 var(--radius) var(--radius); }
.fx-more a { color: #fff; }
.fx-more .hc-title { font-size: 34px; line-height: 34px; }
.fx-more .hc-title.two { font-size: 32px; line-height: 32px; }
.fx-more .hc-title.two span { font-size: 24px; line-height: 26px; }
.fx-code { margin: 0; opacity: .8; }
/* convocazioni (12/11): elenco di caselle grandi da toccare, le altre squadre chiuse finché non servono */
.cv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px; }
.cv-ath { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: var(--radius); background: #fff; cursor: pointer; }
.cv-ath input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--forest); }
.cv-ath:has(input:checked) { border-color: var(--forest); background: #eef5f1; font-weight: 600; }
.cv-team { border-top: 1px solid var(--hairline); padding: 10px 0 4px; }
.cv-team summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.cv-team .cv-list { margin-top: 8px; }
.fx-cal { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-cal .hc-btn { flex: 1 1 0; min-width: 0; min-height: 44px; margin: 0; padding: 0 8px; text-align: center; }
/* palestra, indirizzo e Maps (anche nel riquadro "Prossima gara") */
.fx-place { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 21px; }
.fx-place > svg { flex: 0 0 auto; margin-top: 2px; }
.fx-place > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.fx-place a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 36px; font-weight: 700; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .fx-chev { transition: none; } }
.annbox { margin: 0 0 16px; }
.annbox p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Barra in basso: il numero degli avvisi da leggere è un pallino sull'icona (con 5 voci la scritta non va a capo) */
.app-nav a { position: relative; }
.app-nav a > span { white-space: nowrap; }
.app-nav .count { position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.app-nav a[aria-current="page"] .count { box-shadow: 0 0 0 2px var(--forest); }
.push-err { flex: 1 1 100%; margin: 0; color: var(--red); font-weight: 700; }
.push-result { margin: 8px 0 0; padding: 10px 12px; background: var(--green-bg); border-radius: 2px; }
/* Tutte le comunicazioni: colonna delle caselle da spuntare */
.pt th.ck, .pt td.ck { width: 44px; text-align: center; }
.pt td.ck input { width: 22px; height: 22px; accent-color: var(--forest); }
.archform { display: flex; flex-direction: column; gap: 16px; }
/* Planning: barra verde di pubblicazione. Testo a sinistra, i due pulsanti allineati a destra (stessa altezza),
   sotto, su tutta la larghezza e separata da una riga, la casella della notifica (fa parte del modulo "Pubblica"). */
.pubbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; }
.pb-text { display: flex; flex-direction: column; gap: 2px; }
.pubbar .pb-actions { flex-wrap: nowrap; }
.pubbar .pb-actions .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.pb-notify { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; }
.pb-notify input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--gold); }
@media (max-width: 1180px) { .pubbar { grid-template-columns: 1fr; } } /* schermo medio: testo sopra, pulsanti sotto in fila */
@media (max-width: 760px) {
  .pubbar .pb-actions { flex-direction: column-reverse; align-items: stretch; }
  .pubbar .pb-actions form, .pubbar .pb-actions .btn { width: 100%; }
  .pb-notify { align-items: flex-start; }
}
/* Planning su telefono: i tre passaggi in alto vanno a capo invece di uscire dallo schermo */
@media (max-width: 640px) { .pstepper { flex-wrap: wrap; gap: 8px; } .pstepper li.ln { flex-basis: 16px; } .pstepper li { font-size: 12px; letter-spacing: .03em; } }
.red-text { color: var(--red); font-weight: 700; }
/* Telefono: i riquadri «Modifica…» della scheda non escono più dallo schermo */
@media (max-width: 640px) { .rowdet-body, .rowdet-body.wide { min-width: 0; } .rowdet-body .grid2 { grid-template-columns: 1fr; } }
/* Scheda atleta: Archivia ed Elimina affiancati; pagina di conferma dell'eliminazione */
.ssec.archrow { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.dellink { font-size: 13px; font-weight: 600; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.dellink:hover { color: #8f1d14; }
.delcard { max-width: 760px; border-left: 4px solid var(--red); }
.delcard ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.delcard p { margin: 0 0 12px; }
.warnline { color: var(--red); }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Allenamenti condivisi (allenatore e atleti) */
.trn { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 16px; }
.trn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trn-top .eyebrow { margin: 0; }
.trn-title { margin: 0; font-size: 20px; }
.trn-note { margin: 0; white-space: pre-line; }
.trn-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.trn-imgs a { display: block; border: 1px solid var(--hairline); border-radius: 2px; overflow: hidden; background: #f4f6f5; }
.trn-imgs img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: top; }
.trn-imgs a:only-child { grid-column: 1 / -1; }
.trn-imgs a:only-child img { height: auto; max-height: 520px; object-fit: contain; }
.trn-pdfs { display: flex; flex-wrap: wrap; gap: 8px; }
.trn-pdfs .btn { gap: 8px; }
.trn .rowdet { margin-top: 0; }
.trnform fieldset { border: 0; padding: 0; margin: 0; }
.trnform textarea { width: 100%; }
.trnform input[type="file"] { width: 100%; }
.stk > .card + .card { margin-top: 12px; }
.trn-title a { color: inherit; text-decoration: none; }
.ev-trn { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.trn-open { gap: 8px; }
.trn-in-notice { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.trn-in-notice p { margin: 0; }
/* Scheda atleta: modulo dell'anagrafica su 3 colonne con etichette corte, campi allineati */
.regform { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 16px; align-items: end; }
.regform .field { margin: 0; min-width: 0; }
.regform label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.regform input, .regform select { width: 100%; height: 48px; box-sizing: border-box; }
@media (max-width: 640px) { .regform { grid-template-columns: 1fr; } }
.reghint { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
/* Calendari: riquadro dell'aggiornamento dal portale del Comitato */
.portalbox { margin-bottom: 20px; }
.portal-top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.portal-top > div { flex: 1 1 420px; min-width: 0; }
.portal-top p { margin: 4px 0 0; }
.portal-top ul { margin: 6px 0 0; }
.portal-top .plain-h2 { margin: 0; }
.fx-score { font-size: 14px; letter-spacing: .02em; }

/* ---- Materiale: foto degli articoli (catalogo della segreteria e carrello delle famiglie) ---- */
.mcard .mphoto, .prod .prod-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-bottom: 1px solid var(--hairline); }
.prod .prod-photo { max-height: 240px; }
.mphoto-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.prod .prod-desc { margin: 2px 0 6px; }

/* Richieste di materiale: la famiglia le corregge o annulla finché non sono ordinate */
.reqlist li { flex-wrap: wrap; }
.reqlist .rowdet { flex-basis: 100%; margin-top: 0; }
.reqlist .rowdet-body { min-width: 0; }

/* ---------- calendario gare della segreteria (06/11) ---------- */
/* tavolozza delle squadre: --tc sfondo, --tf testo */
.tc-blunotte { --tc: #12355b; --tf: #fff; }
.tc-blu { --tc: #2a45b8; --tf: #fff; }
.tc-indaco { --tc: #4b3fa8; --tf: #fff; }
.tc-azzurro { --tc: #49b3e6; --tf: #0b1410; }
.tc-celeste { --tc: #a8d8f5; --tf: #0b1410; }
.tc-petrolio { --tc: #1f5f6b; --tf: #fff; }
.tc-turchese { --tc: #14a3a3; --tf: #0b1410; }
.tc-menta { --tc: #7fdcc0; --tf: #0b1410; }
.tc-viola { --tc: #8e44c7; --tf: #fff; }
.tc-lavanda { --tc: #b3a4ec; --tf: #0b1410; }
.tc-lilla { --tc: #d7b8f5; --tf: #0b1410; }
.tc-magenta { --tc: #b5176f; --tf: #fff; }
.tc-fucsia { --tc: #e64ccf; --tf: #0b1410; }
.tc-rosa { --tc: #e8559e; --tf: #0b1410; }
.tc-bordeaux { --tc: #7a1f3d; --tf: #fff; }
.tc-rosso { --tc: #c62828; --tf: #fff; }
.tc-corallo { --tc: #ff7a6b; --tf: #0b1410; }
.tc-pesca { --tc: #ffc196; --tf: #0b1410; }
.tc-arancio { --tc: #f08a24; --tf: #0b1410; }
.tc-ocra { --tc: #c8962a; --tf: #0b1410; }
.tc-giallo { --tc: #f6c40f; --tf: #0b1410; }
.tc-sabbia { --tc: #e8d6a4; --tf: #0b1410; }
.tc-lime { --tc: #c4dd2a; --tf: #0b1410; }
.tc-verdechiaro { --tc: #7cc242; --tf: #0b1410; }
.tc-verde { --tc: #237a23; --tf: #fff; }
.tc-smeraldo { --tc: #0c7a54; --tf: #fff; }
.tc-oliva { --tc: #8a9a1b; --tf: #0b1410; }
.tc-marrone { --tc: #7b4b2a; --tf: #fff; }
.tc-cioccolato { --tc: #4e2c1a; --tf: #fff; }
.tc-grigio { --tc: #6b7280; --tf: #fff; }
.tc-ardesia { --tc: #3f4f5f; --tf: #fff; }
.tc-nero { --tc: #1a1a1a; --tf: #fff; }
.swatch { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--tc); vertical-align: -2px; }
.swatch.big { width: 32px; height: 32px; border-radius: 4px; }
.gc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.gc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.gc-nav h2 { margin: 0 6px 0 8px; font-size: 30px; line-height: 32px; }
.gc-nav .btn { min-width: 44px; justify-content: center; }
.gc-views { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.gc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.gc-filter { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.gc-teams { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-teams legend { padding: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gc-t { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; cursor: pointer; }
.gc-t input { margin: 0; width: 18px; height: 18px; }
.gc { display: block; padding: 2px 6px; border-radius: 3px; font-size: 12px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.gc.home { background: var(--tc); color: var(--tf); }
.gc.away { background: #fff; color: var(--ink); border: 1px solid var(--hairline); box-shadow: inset 4px 0 0 var(--tc); padding-left: 9px; }
.gc:hover { filter: brightness(1.08); text-decoration: underline; }
.gc b { font-weight: 800; } .gc-team { font-weight: 700; } .gc i { font-style: normal; font-weight: 700; text-transform: uppercase; font-size: 10px; }
.gc-legend .gc { display: inline-block; vertical-align: middle; }
.gc-month { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); background: #fff; border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.gc-dh, .gc-wk, .gc-day { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.gc-dh { padding: 6px 4px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gc-wk { padding: 8px 4px; text-align: center; font-size: 12px; color: var(--muted); }
.gc-day { min-width: 0; min-height: 120px; padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.gc-day.we { background: #f3f8f5; } .gc-day.out { background: #f7f8f7; } .gc-day.out .gc-num { color: var(--control); }
.gc-day.today, .gc-col.today { background: var(--gold-bg); }
.gc-num { align-self: flex-end; padding: 0 4px; font-size: 13px; color: var(--muted); text-decoration: none; }
.gc-num:hover { text-decoration: underline; } .gc-dname { display: none; }
.gc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.gc-col { min-width: 0; min-height: 240px; padding: 8px; background: #fff; border: 1px solid var(--hairline); border-radius: 6px; display: flex; flex-direction: column; gap: 4px; }
.gc-col.we { background: #f3f8f5; }
.gc-colh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.gc-colh .gc-num { align-self: auto; padding: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.gc-col .gc { white-space: normal; }
.gc-daylist h3 { margin: 18px 0 8px; font-size: 22px; }
.gc-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gc-row { display: flex; align-items: flex-start; gap: 14px; padding: 10px 14px; background: #fff; border: 1px solid var(--hairline); border-radius: 6px; box-shadow: inset 5px 0 0 var(--tc); }
.gc-row.home { background: linear-gradient(90deg, var(--tc) 0 5px, #fff 5px); }
.gc-time { flex: 0 0 52px; font: 700 22px/26px 'Barlow Condensed', sans-serif; padding-left: 4px; }
.gc-match { font: 700 19px/23px 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.gc-match:hover { text-decoration: underline; }
@media (max-width: 1100px) { .gc-layout { grid-template-columns: minmax(0, 1fr); } .gc-filter { position: static; order: 2; } .gc-teams { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; } }
/* telefono: il mese diventa un elenco dei soli giorni con gare */
@media (max-width: 760px) {
  .gc-month { display: block; border: 0; background: none; }
  .gc-dh, .gc-wk { display: none; }
  .gc-day { min-height: 0; border: 0; padding: 6px 0 10px; background: none !important; }
  .gc-day:not(:has(.gc)) { display: none; }
  .gc-num { align-self: flex-start; padding: 0; font-weight: 700; font-size: 15px; color: var(--ink); } .gc-dname { display: inline; }
  .gc { white-space: normal; font-size: 14px; line-height: 19px; padding: 6px 8px; }
  .gc-week { grid-template-columns: minmax(0, 1fr); } .gc-col { min-height: 0; }
}

/* calendario gare: griglia oraria di settimana e giorno (06/11 b); righe da 15 minuti, una gara = 8 righe (2 ore) */
.tg-wrap { overflow-x: auto; }
.tg { --slot: 12px; display: grid; grid-template-columns: 52px repeat(var(--days), minmax(0, 1fr)); background: #fff; border: 1px solid var(--hairline); min-width: 0; }
.tg-week { --days: 7; } .tg-day { --days: 1; --slot: 14px; }
.tg-corner, .tg-ntl { border-bottom: 1px solid var(--hairline); }
.tg-ntl { padding: 6px 4px; font-size: 11px; color: var(--muted); text-align: right; }
.tg-dh { display: flex; justify-content: space-between; align-items: baseline; padding: 8px; border-left: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.tg-dh .gc-num { align-self: auto; padding: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.tg-dh.we { background: #f3f8f5; } .tg-dh.today { background: var(--gold-bg); }
.tg-nt { display: flex; flex-direction: column; gap: 3px; padding: 4px; border-left: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.tg-hours { display: grid; grid-template-rows: repeat(15, calc(var(--slot) * 4)); }
.tg-hours span { padding-right: 6px; font-size: 11px; line-height: 12px; color: var(--muted); text-align: right; transform: translateY(-6px); }
.tg-hours span:first-child { transform: none; }
.tg-col { --lanes: 1; display: grid; grid-template-rows: repeat(60, var(--slot)); grid-template-columns: repeat(var(--lanes), minmax(0, 1fr)); column-gap: 2px; padding: 0 2px; border-left: 1px solid var(--hairline);
  background-image: repeating-linear-gradient(to bottom, #e3eae5 0 1px, transparent 1px calc(var(--slot) * 4)); }
.tg-col.we { background-color: #f3f8f5; } .tg-col.today { background-color: var(--gold-bg); }
.lanes-2 { --lanes: 2; } .lanes-3 { --lanes: 3; } .lanes-4 { --lanes: 4; } .lanes-5 { --lanes: 5; } .lanes-6 { --lanes: 6; } .lanes-7 { --lanes: 7; } .lanes-8 { --lanes: 8; }
.gr-1 { grid-row: 1 / span 8; } .gr-2 { grid-row: 2 / span 8; } .gr-3 { grid-row: 3 / span 8; } .gr-4 { grid-row: 4 / span 8; } .gr-5 { grid-row: 5 / span 8; } .gr-6 { grid-row: 6 / span 8; } .gr-7 { grid-row: 7 / span 8; } .gr-8 { grid-row: 8 / span 8; } .gr-9 { grid-row: 9 / span 8; } .gr-10 { grid-row: 10 / span 8; } .gr-11 { grid-row: 11 / span 8; } .gr-12 { grid-row: 12 / span 8; } .gr-13 { grid-row: 13 / span 8; } .gr-14 { grid-row: 14 / span 8; } .gr-15 { grid-row: 15 / span 8; } .gr-16 { grid-row: 16 / span 8; } .gr-17 { grid-row: 17 / span 8; } .gr-18 { grid-row: 18 / span 8; } .gr-19 { grid-row: 19 / span 8; } .gr-20 { grid-row: 20 / span 8; } .gr-21 { grid-row: 21 / span 8; } .gr-22 { grid-row: 22 / span 8; } .gr-23 { grid-row: 23 / span 8; } .gr-24 { grid-row: 24 / span 8; } .gr-25 { grid-row: 25 / span 8; } .gr-26 { grid-row: 26 / span 8; } .gr-27 { grid-row: 27 / span 8; } .gr-28 { grid-row: 28 / span 8; } .gr-29 { grid-row: 29 / span 8; } .gr-30 { grid-row: 30 / span 8; } .gr-31 { grid-row: 31 / span 8; } .gr-32 { grid-row: 32 / span 8; } .gr-33 { grid-row: 33 / span 8; } .gr-34 { grid-row: 34 / span 8; } .gr-35 { grid-row: 35 / span 8; } .gr-36 { grid-row: 36 / span 8; } .gr-37 { grid-row: 37 / span 8; } .gr-38 { grid-row: 38 / span 8; } .gr-39 { grid-row: 39 / span 8; } .gr-40 { grid-row: 40 / span 8; } .gr-41 { grid-row: 41 / span 8; } .gr-42 { grid-row: 42 / span 8; } .gr-43 { grid-row: 43 / span 8; } .gr-44 { grid-row: 44 / span 8; } .gr-45 { grid-row: 45 / span 8; } .gr-46 { grid-row: 46 / span 8; } .gr-47 { grid-row: 47 / span 8; } .gr-48 { grid-row: 48 / span 8; } .gr-49 { grid-row: 49 / span 8; } .gr-50 { grid-row: 50 / span 8; } .gr-51 { grid-row: 51 / span 8; } .gr-52 { grid-row: 52 / span 8; } .gr-53 { grid-row: 53 / span 8; }
.gl-1 { grid-column-start: 1; } .gl-2 { grid-column-start: 2; } .gl-3 { grid-column-start: 3; } .gl-4 { grid-column-start: 4; } .gl-5 { grid-column-start: 5; } .gl-6 { grid-column-start: 6; } .gl-7 { grid-column-start: 7; } .gl-8 { grid-column-start: 8; }
.gs-1 { grid-column-end: span 1; } .gs-2 { grid-column-end: span 2; } .gs-3 { grid-column-end: span 3; } .gs-4 { grid-column-end: span 4; } .gs-5 { grid-column-end: span 5; } .gs-6 { grid-column-end: span 6; } .gs-7 { grid-column-end: span 7; } .gs-8 { grid-column-end: span 8; }
.tg-col .gc { margin: 1px 0; white-space: normal; font-size: 11.5px; line-height: 15px; }
.tg-day .tg-col .gc { font-size: 13px; line-height: 18px; padding: 4px 8px; } .gc-place { display: block; font-weight: 400; opacity: .85; }
.gc[draggable="true"] { cursor: grab; } .gc.dragging { opacity: .45; }
.drop-on { outline: 2px dashed var(--forest); outline-offset: -2px; }
.gc-legend { margin: -8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.gc-dlg { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 8px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.gc-dlg::backdrop { background: rgba(11, 20, 16, .45); }
.gc-dlg h2 { margin: 0; } .gc-dlg-what { margin: 0; font-weight: 700; } .gc-dlg-when { margin: 0; font-size: 18px; }
@media (max-width: 760px) { .tg-week { grid-template-columns: 44px repeat(7, 150px); } }

/* calendario gare (06/11 c): palestra non disponibile a strisce grigie (nella griglia per la sua fascia di ore, sotto le gare),
   gara in casa in una palestra non disponibile con il bordo rosso, filtro palestra, amichevoli e tornei */
.gc.gc-off { color: #39443e; background: repeating-linear-gradient(135deg, #e3e8e5 0 6px, #f6f8f7 6px 12px); border: 1px dashed #93a29a; font-weight: 600; }
.tg-col .gc.gc-off { grid-column: 1 / -1; margin: 0 -2px; border-radius: 0; font-size: 11px; line-height: 14px; align-self: stretch; }
.tg-col .gc:not(.gc-off) { position: relative; z-index: 1; }
.tg-col .gc-off.ok-1 { padding-top: 18px; } .tg-col .gc-off.ok-2 { padding-top: 34px; } .tg-col .gc-off.ok-3 { padding-top: 50px; }
.cr-1 { grid-row-start: 1; } .cr-2 { grid-row-start: 2; } .cr-3 { grid-row-start: 3; } .cr-4 { grid-row-start: 4; } .cr-5 { grid-row-start: 5; } .cr-6 { grid-row-start: 6; } .cr-7 { grid-row-start: 7; } .cr-8 { grid-row-start: 8; } .cr-9 { grid-row-start: 9; } .cr-10 { grid-row-start: 10; } .cr-11 { grid-row-start: 11; } .cr-12 { grid-row-start: 12; } .cr-13 { grid-row-start: 13; } .cr-14 { grid-row-start: 14; } .cr-15 { grid-row-start: 15; } .cr-16 { grid-row-start: 16; } .cr-17 { grid-row-start: 17; } .cr-18 { grid-row-start: 18; } .cr-19 { grid-row-start: 19; } .cr-20 { grid-row-start: 20; } .cr-21 { grid-row-start: 21; } .cr-22 { grid-row-start: 22; } .cr-23 { grid-row-start: 23; } .cr-24 { grid-row-start: 24; } .cr-25 { grid-row-start: 25; } .cr-26 { grid-row-start: 26; } .cr-27 { grid-row-start: 27; } .cr-28 { grid-row-start: 28; } .cr-29 { grid-row-start: 29; } .cr-30 { grid-row-start: 30; } .cr-31 { grid-row-start: 31; } .cr-32 { grid-row-start: 32; } .cr-33 { grid-row-start: 33; } .cr-34 { grid-row-start: 34; } .cr-35 { grid-row-start: 35; } .cr-36 { grid-row-start: 36; } .cr-37 { grid-row-start: 37; } .cr-38 { grid-row-start: 38; } .cr-39 { grid-row-start: 39; } .cr-40 { grid-row-start: 40; } .cr-41 { grid-row-start: 41; } .cr-42 { grid-row-start: 42; } .cr-43 { grid-row-start: 43; } .cr-44 { grid-row-start: 44; } .cr-45 { grid-row-start: 45; } .cr-46 { grid-row-start: 46; } .cr-47 { grid-row-start: 47; } .cr-48 { grid-row-start: 48; } .cr-49 { grid-row-start: 49; } .cr-50 { grid-row-start: 50; } .cr-51 { grid-row-start: 51; } .cr-52 { grid-row-start: 52; } .cr-53 { grid-row-start: 53; } .cr-54 { grid-row-start: 54; } .cr-55 { grid-row-start: 55; } .cr-56 { grid-row-start: 56; } .cr-57 { grid-row-start: 57; } .cr-58 { grid-row-start: 58; } .cr-59 { grid-row-start: 59; } .cr-60 { grid-row-start: 60; }
.ce-2 { grid-row-end: 2; } .ce-3 { grid-row-end: 3; } .ce-4 { grid-row-end: 4; } .ce-5 { grid-row-end: 5; } .ce-6 { grid-row-end: 6; } .ce-7 { grid-row-end: 7; } .ce-8 { grid-row-end: 8; } .ce-9 { grid-row-end: 9; } .ce-10 { grid-row-end: 10; } .ce-11 { grid-row-end: 11; } .ce-12 { grid-row-end: 12; } .ce-13 { grid-row-end: 13; } .ce-14 { grid-row-end: 14; } .ce-15 { grid-row-end: 15; } .ce-16 { grid-row-end: 16; } .ce-17 { grid-row-end: 17; } .ce-18 { grid-row-end: 18; } .ce-19 { grid-row-end: 19; } .ce-20 { grid-row-end: 20; } .ce-21 { grid-row-end: 21; } .ce-22 { grid-row-end: 22; } .ce-23 { grid-row-end: 23; } .ce-24 { grid-row-end: 24; } .ce-25 { grid-row-end: 25; } .ce-26 { grid-row-end: 26; } .ce-27 { grid-row-end: 27; } .ce-28 { grid-row-end: 28; } .ce-29 { grid-row-end: 29; } .ce-30 { grid-row-end: 30; } .ce-31 { grid-row-end: 31; } .ce-32 { grid-row-end: 32; } .ce-33 { grid-row-end: 33; } .ce-34 { grid-row-end: 34; } .ce-35 { grid-row-end: 35; } .ce-36 { grid-row-end: 36; } .ce-37 { grid-row-end: 37; } .ce-38 { grid-row-end: 38; } .ce-39 { grid-row-end: 39; } .ce-40 { grid-row-end: 40; } .ce-41 { grid-row-end: 41; } .ce-42 { grid-row-end: 42; } .ce-43 { grid-row-end: 43; } .ce-44 { grid-row-end: 44; } .ce-45 { grid-row-end: 45; } .ce-46 { grid-row-end: 46; } .ce-47 { grid-row-end: 47; } .ce-48 { grid-row-end: 48; } .ce-49 { grid-row-end: 49; } .ce-50 { grid-row-end: 50; } .ce-51 { grid-row-end: 51; } .ce-52 { grid-row-end: 52; } .ce-53 { grid-row-end: 53; } .ce-54 { grid-row-end: 54; } .ce-55 { grid-row-end: 55; } .ce-56 { grid-row-end: 56; } .ce-57 { grid-row-end: 57; } .ce-58 { grid-row-end: 58; } .ce-59 { grid-row-end: 59; } .ce-60 { grid-row-end: 60; } .ce-61 { grid-row-end: 61; }
.gc.clash { outline: 3px solid #d32f2f; outline-offset: -3px; box-shadow: inset 0 0 0 5px #fff; } /* bordo rosso con un filo bianco: si vede anche sulle squadre rosse */
.gc-alert { display: inline-block; width: 15px; height: 15px; margin-right: 4px; border-radius: 50%; background: #d32f2f; color: #fff; box-shadow: 0 0 0 1.5px #fff; font: 800 11px/15px sans-serif; text-align: center; vertical-align: 1px; }
.head-actions .btn.upper.gc-new { color: #fff; }
.gc .gc-warn { color: #9b1c1c; background: #fff; padding: 0 3px; border-radius: 2px; }
.gc-row.clash { border-color: #c62828; } div.gc-warn { color: #9b1c1c; font-weight: 700; }
.gc-row.gc-offrow { background: repeating-linear-gradient(135deg, #eef1ef 0 8px, #fff 8px 16px); box-shadow: none; border-style: dashed; }
.gc-legend .gc.gc-off { padding: 2px 6px; }
.gc-gym select { width: 100%; }
.gc-offs h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: inherit; }
.gc-offs ul { display: flex; flex-direction: column; gap: 6px; }
.gc-kind { border: 0; padding: 0; margin: 0; min-width: 0; } .gc-kind legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
.gc-dlg-warn { margin: 0; padding: 8px 12px; border-radius: 4px; background: var(--red-bg); color: var(--red); font-weight: 700; }
/* allenatore e direttore sportivo (07/11 c): le squadre DS sotto le sue, in Stagione; nella pagina Allenatori della segreteria */
.ds-chips { display: flex; flex-direction: column; gap: 6px; } .ds-chips .eyebrow { margin: 0; }
.ds-row { align-items: center; margin-top: 6px; }
/* 09/11: foto della squadra in cima alla sua pagina del sito; anteprima e promemoria del consenso nella pagina Squadre; risultati nuovi dal portale */
.team-photo { margin: 0 0 36px; }
/* misure massime fisse (09/11 b): con lo zoom del browser la foto si rimpicciolisce e si ingrandisce come le scritte;
   larga quanto la colonna, ma al massimo 1280 × 900 (prima 100% e 82vh: rimpicciolendo la pagina la colonna si allargava e la foto cresceva) */
.team-photo img { display: block; width: 100%; max-width: 1280px; height: auto; max-height: 900px; object-fit: cover; border-radius: 4px; background: #e8ece9; }
/* schermi grandi ad alta risoluzione (10/11 d), per esempio un 4K ingrandito al 150% da Windows: la foto riempie la colonna
   fino a 1800 × 1265. Vale solo con almeno 1,2 pixel dello schermo per pixel della pagina, cioè non quando si rimpicciolisce
   con lo zoom del browser: così rimpicciolendo la foto continua a diventare più piccola, come le scritte. */
@media (min-width: 2200px) and (min-resolution: 1.2dppx) { .team-photo img { max-width: 1800px; max-height: 1265px; } }
.team-photo + .roster { margin-bottom: 40px; }
.team-thumb { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 3px; }
.warn-text { color: #7a5200; background: var(--gold-bg); padding: 6px 10px; border-radius: 3px; }
.portal-list { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.portal-list .tag { vertical-align: 1px; }

/* ---- Scout delle partite (09/11): elenco, preparazione, report ---- */
.sc-list > li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-acts { display: flex; flex-wrap: wrap; gap: 6px; }
/* «Modifica o elimina» (10/11 e): nell'elenco su una riga sua sotto la partita, nella pagina della partita sotto la data */
.sc-list > li { flex-wrap: wrap; row-gap: 0; } .sc-list > li > div { flex: 1 1 0; } /* partita e pulsanti restano sulla stessa riga */
.sc-list > li > .sc-edit { flex-basis: 100%; margin-top: 2px; }
.sc-edit > .rowdet-body { max-width: 620px; }
.sc-go { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
textarea.sc-roster { font: 500 16px/1.5 ui-monospace, 'Cascadia Mono', Menlo, monospace; }
.sc-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
table.sc-tab { font-size: 14px; width: auto; min-width: 100%; }
table.sc-tab th, table.sc-tab td { padding: 5px 7px; }
table.sc-tab .sep { border-left: 1px solid var(--hairline); }
table.sc-tab tr.tot > td { font-weight: 700; background: var(--ground); }
table.sc-tab tfoot td { border-bottom: 0; white-space: nowrap; }
.sc-report h3 { margin: 18px 0 6px; }
.sc-sets { white-space: nowrap; }
.sc-box { display: inline-block; width: 22px; height: 22px; margin-right: 2px; border: 1px solid var(--control); border-radius: 2px; text-align: center; font-size: 13px; line-height: 20px; font-weight: 700; vertical-align: middle; }
.sc-box.none { border-color: transparent; }
.sc-box.start { background: var(--green-bg); }
.sc-tag { font-size: 12px; color: var(--muted); }
/* tabellino largo: nell'app dell'allenatore la colonna è stretta (640 px), qui servono le tabelle intere */
.app-main:has(.sc-report) { max-width: 1240px; }
/* report a schede (10/11 f): filtri, campetti con frecce, zone di ricezione */
.sc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.sc-rf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 6px 0 14px; }
.sc-rf .field { margin: 0; min-width: 140px; } .sc-rf select { min-height: 40px; padding: 6px 10px; }
.sc-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.sc-figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sc-figs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .sc-figs, .sc-figs.three, .sc-figs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-fig { margin: 0; } .sc-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 2px; }
svg.sc-ch { display: block; width: 100%; height: auto; } svg.sc-ch.half { max-width: 320px; }
.sc-ch .court { fill: #f1d6b4; stroke: #6b5a45; stroke-width: .06; } .sc-ch .ln { stroke: #fff; stroke-width: .06; fill: none; }
.sc-ch .zn { stroke: rgba(0,0,0,.25); stroke-width: .03; stroke-dasharray: .2 .15; fill: none; } .sc-ch .net { stroke: #0b1410; stroke-width: .14; }
.sc-ch .ar { stroke-width: .07; } .sc-ch .dot { stroke: none; } .sc-ch .dot.kpt { fill: #0b1410; } .sc-ch .dot.kerr { fill: #c0392b; } .sc-ch .dot.kok { fill: #1e8a4c; }
.sc-ch .mk { font: 700 .7px/1 sans-serif; text-anchor: middle; dominant-baseline: central; } .sc-ch .mk.kok { fill: #1e8a4c; } .sc-ch .mk.kerr { fill: #c0392b; }
.sc-ch .ring { fill: none; stroke: #555; stroke-width: .06; }
.sc-ch .hi { fill: rgba(246,184,28,.25); stroke: #c08a00; stroke-width: .08; }
.sc-ch .zt { font: 700 .85px/1 sans-serif; text-anchor: middle; fill: #0b1410; } .sc-ch .zs { font: .55px/1 sans-serif; text-anchor: middle; fill: #444; }
.sc-multi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; } .sc-multi p { margin: 0; }
.sc-pick { display: inline-flex; margin-right: 8px; vertical-align: -3px; } .sc-pick input { width: 20px; height: 20px; }
@media print { .sc-tabs, .sc-rf { display: none !important; } .sc-figs { break-inside: avoid; } }
@media print { .sc-filter, .eyebrow { display: none !important; } table.sc-tab { font-size: 11px; } }

/* ---- Scout sul tablet: pagina a tutto schermo ---- */
body.is-scout { height: 100dvh; overflow: hidden; overscroll-behavior: none; background: #10261b; }
.sc { height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; color: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation; font-size: 15px; }
.sc-msg { margin: 24px; color: #fff; }
.sc-msg a { color: var(--gold); }
.sc button { font: 700 15px/1 'Barlow', sans-serif; min-height: 42px; padding: 0 12px; border: 0; border-radius: 4px; background: #2c4437; color: #fff; cursor: pointer; }
.sc button.on { background: var(--gold); color: var(--ink); }
.sc button:disabled { opacity: .4; }
.sc button small { font-size: 13px; opacity: .85; margin-left: 4px; }
.sc button:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.sc-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; background: var(--forest); }
.sc-x { color: #fff; font-size: 34px; line-height: 1; text-decoration: none; padding: 0 6px; }
.sc-tm { min-width: 0; font: 700 19px/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.sc-tm > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-tm.R { text-align: right; }
.sc-tm small { display: block; font: 600 12px/1.3 'Barlow', sans-serif; text-transform: none; opacity: .85; }
.sc-tm.L .srv::before { content: '●'; color: var(--gold); margin-right: 6px; }
.sc-tm.R .srv::after { content: '●'; color: var(--gold); margin-left: 6px; }
.sc-sc { display: flex; align-items: center; gap: 8px; }
.sc-pts { min-width: 58px; text-align: center; font: 800 36px/1 'Barlow Condensed', sans-serif; background: #fff; color: var(--ink); border-radius: 4px; padding: 4px 6px; }
.sc-setn { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); text-align: center; }
.sc-tools { display: flex; align-items: center; gap: 6px; }
.sc-net { font-size: 12px; max-width: 120px; line-height: 1.2; opacity: .9; }
.sc-net.offline, .sc-net.dirty { color: var(--gold); }
.sc-net.conflict, .sc-net.login, .sc-net.error { color: #ffb3ab; font-weight: 700; }
.sc-banner { margin: 0; padding: 8px 12px; background: var(--gold-bg); color: var(--ink); font-size: 14px; }
.sc .sc-link { min-height: 0; padding: 2px 4px; background: none; color: inherit; text-decoration: underline; font-weight: 700; }
.sc-mid { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; min-height: 0; }
.sc-side { display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; }
.sc-side button { flex: 1 1 0; min-height: 44px; }
.sc-side.is-gsa button { background: #1d6b46; }
.sc-side.is-opp button { background: #6d2a24; }
.sc-rot { text-align: center; font: 800 26px/1 'Barlow Condensed', sans-serif; padding: 6px 0; color: var(--gold); }
.sc-court { display: block; width: 100%; height: 100%; touch-action: none; }
.sc-court .free { fill: #1c3f2e; }
.sc-court .court { fill: #e7b97f; stroke: #fff; stroke-width: .08; }
.sc-court .ln { stroke: #fff; stroke-width: .06; fill: none; }
.sc-court .zn { stroke: rgba(255,255,255,.55); stroke-width: .035; stroke-dasharray: .25 .2; fill: none; }
.sc-court .net { stroke: #0b1410; stroke-width: .18; }
.sc-court .band { fill: rgba(246,184,28,.45); }
.sc-court .ar { stroke: #0b1410; stroke-width: .09; }
.sc-court .ar.s { stroke-dasharray: .35 .2; }
/* 10/11 f: frecce colorate per voto (nero punto, rosso errore o murato, verde il resto), battute precedenti più chiare */
.ar.kpt { stroke: #0b1410; } .ar.kerr { stroke: #c0392b; } .ar.kok { stroke: #1e8a4c; }
.sc-court .ar.old { stroke-width: .07; opacity: .75; }
.sc-dlg.wide { width: min(1180px, 100%); }
.sc-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.sc-mini { margin: 0; } .sc-mini svg { display: block; width: 100%; height: auto; } .sc-mini figcaption { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sc-mini .court { fill: #e9c29a; stroke: #fff; stroke-width: .08; } .sc-mini .net { stroke: #0b1410; stroke-width: .12; } .sc-mini .ln { stroke: #fff; stroke-width: .05; fill: none; } .sc-mini .ar { stroke-width: .12; }
.sc-setend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; background: var(--gold-bg); border-radius: 4px; } .sc-setend p { margin: 0; flex-basis: 100%; }
.sc-setend label { display: flex; align-items: center; gap: 6px; font-size: 14px; } .sc-setend input { width: 90px; min-height: 40px; }
.sc-court .ah { fill: #0b1410; }
.sc-court .mk { fill: var(--gold); stroke: #0b1410; stroke-width: .08; }
.sc-court .pl .bd { stroke: #fff; stroke-width: .07; }
.sc-court .pl.is-gsa .bd { fill: var(--forest); }
.sc-court .pl.is-opp .bd { fill: #9b2a20; }
.sc-court .pl.lib .bd { fill: #f4f6f3; }
.sc-court .pl.lib text { fill: var(--ink); }
.sc-court .pl text { fill: #fff; font: 700 .82px 'Barlow', sans-serif; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.sc-court .pl.dim { opacity: .55; }
.sc-court .pl.sel .bd, .sc-court .pl.srv .bd, .sc-court .pl.rcv .bd { stroke: var(--gold); stroke-width: .2; }
.sc-court .rech { fill: rgba(246,184,28,.2); }
.sc-court .phl { fill: var(--gold); font: 800 1.1px 'Barlow Condensed', sans-serif; letter-spacing: .1px; text-transform: uppercase; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.sc-court .pl .ring { fill: none; stroke: var(--gold); stroke-width: .16; transform-box: fill-box; transform-origin: center; animation: sc-pulse 1.1s ease-out infinite; pointer-events: none; }
@keyframes sc-pulse { from { transform: scale(1); opacity: .95; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-court .pl .ring { animation: none; transform: scale(1.22); opacity: .9; } }
.sc-court .pl .hd { pointer-events: none; }
.sc-court .pl .hdb { fill: #fff; stroke: #0b1410; stroke-width: .05; }
.sc-court .pl .hd path { fill: none; stroke: #0b1410; stroke-width: .1; stroke-linecap: round; stroke-linejoin: round; }
.sc-court .pl .hdp { fill: var(--gold); stroke: #0b1410; stroke-width: .035; }
.sc-court .pl .pb { fill: var(--gold); stroke: #0b1410; stroke-width: .04; }
.sc-court .pl .pbt { fill: var(--ink); font-size: .4px; }
.sc-bar { background: #0b1a12; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.sc-hint { margin: 0; font-size: 15px; min-height: 22px; }
.sc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sc-lab { min-width: 150px; font-weight: 700; }
.sc-lab.is-gsa { color: #8fe0b2; }
.sc-lab.is-opp { color: #ffb3ab; }
.sc-sep { margin: 0 2px 0 10px; font-size: 13px; opacity: .85; }
.sc .sc-v { min-width: 52px; font-size: 22px; }
.sc .sc-v0 { background: #111; } .sc .sc-v1 { background: #2f7d4f; } .sc .sc-v2 { background: #5b7d2f; } .sc .sc-v3 { background: #7d6a2f; } .sc .sc-v4 { background: #8a4b1f; } .sc .sc-v5 { background: #9b2a20; }
.sc .sc-v.on { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.sc-log { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow: hidden; font: 600 13px/1 ui-monospace, Menlo, monospace; }
.sc-log li { padding: 5px 6px; border-radius: 3px; background: #1d3328; white-space: nowrap; }
.sc-log li.is-opp { background: #3d1f1c; }
.sc-log li.p { background: #000; color: var(--gold); }
.sc-ov { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0,0,0,.6); padding: 12px; }
.sc-dlg { background: #fff; color: var(--ink); border-radius: 6px; padding: 16px; width: min(820px, 100%); max-height: calc(100dvh - 24px); overflow: auto; user-select: text; }
.sc-dlg h2 { margin-bottom: 8px; }
.sc-dlg .btn { min-height: 46px; }
.sc-dlg .btn.secondary { background: #fff; color: var(--forest); border: 2px solid var(--control); }
.sc-lugrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 10px 0; }
.sc-luteam { border: 2px solid var(--hairline); border-radius: 4px; padding: 8px 12px 12px; margin: 0; }
.sc-luteam.is-gsa { border-color: var(--forest); }
.sc-luteam.is-opp { border-color: #9b2a20; }
.sc-luteam legend { font-weight: 700; padding: 0 4px; }
.sc-net-l { margin: 0 0 4px; text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 3px solid var(--ink); }
.sc-lu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sc-cell { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted); }
/* numeri a due cifre interi anche sul tablet (10/11 f): niente spazio ai lati né freccia dell'elenco */
.sc-cell input { width: 100%; max-width: 88px; min-height: 48px; font-size: 22px; text-align: center; padding: 4px 2px; }
.sc-dlg input::-webkit-calendar-picker-indicator { display: none !important; }
.sc-lurot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.sc-pp { flex-basis: 100%; min-height: 1.4em; font-size: 14px; font-weight: 700; color: var(--forest); } /* stessa altezza anche vuoto: le due squadre restano allineate */
.sc-lu2 { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 14px; }
.sc-lu2 label { display: flex; flex-direction: column; gap: 2px; }
.sc-lu2 input { width: 110px; min-height: 40px; font-size: 18px; }
.sc-svf { border: 0; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sc-svf legend { font-weight: 700; margin-bottom: 4px; }
.sc-err { color: var(--red); background: var(--red-bg); padding: 8px 10px; border-radius: 3px; font-weight: 600; }
.sc-dlg .sc-acts, .sc-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sc-final { font-size: 22px; }
@media (max-width: 760px) { .sc-mid { grid-template-columns: 70px minmax(0, 1fr) 70px; } .sc-tm { font-size: 15px; } .sc-pts { font-size: 28px; min-width: 44px; } .sc-net { display: none; } .sc .sc-v { min-width: 44px; } .sc-lab { min-width: 0; width: 100%; } }
/* telefono in orizzontale: pulsanti più bassi, così il campo resta grande */
@media (max-height: 520px) { .sc button { min-height: 34px; font-size: 14px; } .sc .sc-v { font-size: 18px; min-width: 40px; } .sc-hint { font-size: 13px; min-height: 0; } .sc-bar { gap: 4px; padding-top: 4px; } .sc-log { display: none; } .sc-pts { font-size: 26px; min-width: 40px; padding: 2px 4px; } .sc-top { padding: 3px 8px; } .sc-side { gap: 4px; padding: 4px; } .sc-side button { font-size: 13px; padding: 0 4px; } .sc-rot { font-size: 18px; padding: 2px 0; } }
/* menu dell'app con 6 voci (allenatore che è anche DS): scritte più strette */
.app-nav a:first-child:nth-last-child(n+6), .app-nav a:first-child:nth-last-child(n+6) ~ a { letter-spacing: 0; font-size: 11px; }
.app-nav a:first-child:nth-last-child(n+6) > span, .app-nav a:first-child:nth-last-child(n+6) ~ a > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ---- Invito alle notifiche a tutto schermo (10/11 c) e testi da copiare ---- */
.pushgate { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(11,20,16,.6); overflow-y: auto; }
.pushgate[hidden] { display: none; }
.pushgate-card { width: min(460px, 100%); background: #fff; border-top: 6px solid var(--gold); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pushgate-card h2 { margin-bottom: 2px; }
.pushgate-card p, .pushgate-card ol, .pushgate-card ul { margin: 0; }
.pushgate-card ol, .pushgate-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.pushgate-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.pushgate-acts .btn { flex: 1 1 auto; }
textarea.copytext { width: 100%; font: 400 15px/1.45 'Barlow', system-ui, sans-serif; background: var(--ground); }
.cf-reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
/* accesso (10/11 g): «Primo accesso o password dimenticata» sotto il modulo di accesso */
.login-alt { margin: 14px 0 6px; font-weight: 700; } .login-alt a { color: var(--forest); }
/* news del sito (14/11): schede in home e nella pagina News, pagina della news, gestione in segreteria */
.ncards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ncards a { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; color: var(--ink); text-decoration: none; }
.ncards a:hover { border-color: var(--forest); }
.ncards img, .ncard-ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ground); }
.ncard-ph { display: grid; place-items: center; background: var(--forest); }
.ncard-ph img { width: 84px; height: auto; aspect-ratio: auto; background: none; opacity: .9; }
.ncard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.ncard-body small { color: var(--forest); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.ncard-body b { font: 800 italic 23px/1.05 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.ncard-body span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.pager { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.news-date { color: var(--forest); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.news-cover { margin: 0 0 20px; }
.news-cover img { display: block; width: 100%; max-height: 640px; object-fit: contain; background: var(--ground); border-radius: 6px; }
.news-gallery { list-style: none; margin: 20px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.news-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.news-admin li { align-items: center; gap: 14px; }
.news-admin .ph-thumb { width: 96px; aspect-ratio: 4 / 3; }
.ph-thumb.empty { display: block; background: var(--ground); border: 1px dashed var(--hairline); }
.news-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.news-photos li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.news-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--ground); }
summary.h2like { cursor: pointer; font: 800 italic 26px/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
details[open] > summary.h2like { margin-bottom: 14px; }
.err-line { color: var(--red); }

/* ---- Conteggio dei palloni (18/11) ---- */
.bc-det { margin: 10px 0 0; border: 1px solid var(--hairline); border-radius: 2px; background: #fff; }
.bc-det > summary { cursor: pointer; padding: 10px 12px; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.bc-det > summary::-webkit-details-marker { display: none; }
.bc-det > summary::after { content: "Apri"; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--forest); text-decoration: underline; }
.bc-det[open] > summary::after { content: "Chiudi"; }
.bc-det .bc-body { padding: 0 12px 12px; }
.bc-det .bc-body > p:first-child { margin: 0 0 4px; }
.bc-bad { color: var(--red); font-weight: 700; }
.bc-xs { margin-top: 12px; }
.bc-xs > p { margin: 0; }
.bc-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.bc-ph { flex: 0 0 56px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bc-line .bc-shot { margin: 0; }
.bc-n { font-size: 18px; }
.bc-res { margin: 8px 0 0; padding: 10px 12px; font-weight: 700; border-radius: 2px; }
.bc-res.ok { background: var(--green-bg); color: var(--forest); }
.bc-res.bad { background: var(--red-bg); color: var(--red); }
.bc-shot label.busy, .bc-extra label.busy { opacity: .7; pointer-events: none; }
.bc-extra summary { cursor: pointer; font-weight: 700; }
.bc-extra form { margin-top: 12px; }
.bc-photo { position: relative; margin: 12px 0 0; background: #000; line-height: 0; }
.bc-photo img { display: block; width: 100%; height: auto; }
.bc-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bc-photo circle { stroke: #fff; stroke-width: 4; }
.bc-photo .bc-a { fill: rgba(23, 164, 85, .85); }
.bc-photo .bc-m { fill: rgba(246, 184, 28, .95); }
.bc-photo.tappable svg { cursor: crosshair; touch-action: manipulation; }
.bc-help { margin: 8px 0 0; }
.bc-num { max-width: 140px; font-size: 24px; font-weight: 700; }
.bc-acts { margin: 12px 0; }
.bc-tbl tr.bad td { background: var(--red-bg); }
.adm-out a.who { color: inherit; }
.bc-fix { margin: 8px 0 0; padding: 10px 12px; background: var(--gold-bg); border-left: 4px solid var(--gold); }
.adm-main .bc-photo { max-width: 560px; }

/* ---- Menu del sito (21/11): voci che per ora non portano da nessuna parte (Ginnastica) ---- */
.side-grp li .nav-off { color: rgba(255,255,255,.6); cursor: default; }
.foot-link.nav-off { opacity: .6; cursor: default; }
.foot-link.nav-off:hover { text-decoration: none; }

/* ---- Pagine dei settori del giovanile (22/11): le squadre con la foto in piccolo ---- */
.scards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.scards a { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; color: var(--ink); text-decoration: none; position: relative; }
.scards a:hover { border-color: var(--forest); }
.scards img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e8ece9; }
.scards .scard-ph { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--forest); }
.scards .scard-ph img { width: 84px; height: auto; aspect-ratio: auto; background: none; }
.scards .scard-txt { display: flex; flex-direction: column; gap: 4px; padding: 12px 40px 14px 16px; }
.scards b { font: 800 italic 22px/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.scards small { color: var(--muted); font-size: 14px; line-height: 18px; }
.scards a > svg { position: absolute; right: 12px; bottom: 16px; color: var(--forest); }

/* ---- Presidente (27/11): tabellone della settimana (squadre × giorni) e schede delle squadre ---- */
.tw-wrap { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 6px 4px; }
.tw { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; }
.tw th, .tw td { padding: 0; vertical-align: top; }
.tw thead th { font-size: 12px; line-height: 14px; font-weight: 700; text-transform: uppercase; color: var(--muted); text-align: center; }
.tw thead th a { display: block; padding: 4px 0; color: inherit; text-decoration: none; border-radius: 2px; }
.tw thead th a b { display: block; font: 800 italic 20px/22px 'Barlow Condensed', sans-serif; color: var(--ink); }
.tw thead th.today a { background: var(--gold); color: var(--ink); }
.tw .tw-team { width: 70px; text-align: left; }
.tw thead .tw-team { vertical-align: bottom; padding: 0 2px 6px; }
.tw tbody th.tw-team { white-space: normal; text-transform: none; letter-spacing: 0; }
.tw tbody th.tw-team a { display: block; padding: 3px 2px; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--forest); overflow-wrap: anywhere; }
.tw .tw-sec th { padding: 10px 2px 2px; text-align: left; font: 700 15px/18px 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tw td a { display: flex; flex-direction: column; gap: 2px; min-height: 24px; text-decoration: none; }
.tw-a, .tw-c, .tw-t { display: block; border: 1px solid var(--forest); border-radius: 2px; font-size: 12px; line-height: 20px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.tw-a { background: var(--ground); color: var(--muted); border-color: var(--hairline); }
.tw-c { background: var(--forest); color: #fff; }
.tw-t { background: #fff; color: var(--forest); }
.tw-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 0; }
.tw-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.tw-legend .tw-a, .tw-legend .tw-c, .tw-legend .tw-t { padding: 0 6px; }
.pteam-list { list-style: none; margin: 0; padding: 0; }
a.card.pteam { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.pteam-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pteam-head b { font-size: 18px; color: var(--forest); }
.pteam-w { color: var(--forest); }
.pteam-l { color: var(--red); }
