/* Stile comune di chesscoachplanner. Idea: carta e verde scacchiera, un solo accento. */
:root {
  --bg: #f4f6f3; --fg: #17201b; --muted: #566159; --line: #d5ddd6; --card: #ffffff;
  --accent: #2f6b45; --accent-fg: #ffffff; --chiara: #e4ebe2; --scura: #a9c2b0; --errore: #b3412e;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121715; --fg: #e7ede9; --muted: #9aa8a0; --line: #2b3630; --card: #1a211e;
    --accent: #7cc28c; --accent-fg: #10140f; --chiara: #1d2923; --scura: #35503f; --errore: #e7836f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--sans);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.contenitore { max-width: 1040px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
a { color: var(--accent); }
.sotto { color: var(--muted); }
.etichetta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.bottone {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); border-radius: 8px; padding: 11px 20px;
}
.bottone.secondario { background: transparent; color: var(--accent); }
.bottone:disabled { opacity: .55; cursor: default; }
.bottone:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.testata { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.marchio { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.marchio i {
  width: 22px; height: 22px; border-radius: 3px; flex: none;
  background: conic-gradient(var(--accent) 25%, var(--scura) 0 50%, var(--accent) 0 75%, var(--scura) 0) 0 0 / 22px 22px;
}
.fascia-scacchi { height: 32px; background: conic-gradient(var(--scura) 25%, var(--chiara) 0 50%, var(--scura) 0 75%, var(--chiara) 0) 0 0 / 64px 64px; }

/* ----- pagina di accesso e account ----- */
.centrale { min-height: 100svh; display: flex; flex-direction: column; padding-block: 24px 48px; }
.pannello { width: 100%; max-width: 420px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 20px; }
.scheda { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.schede { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.schede button { font: inherit; font-weight: 600; background: transparent; color: var(--muted); border: 0; padding: 10px; cursor: pointer; }
.schede button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
label small { font-weight: 400; color: var(--muted); }
input {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%;
}
.messaggio { font-size: .95rem; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--chiara); }
.messaggio.errore { border-color: var(--errore); color: var(--errore); background: transparent; }
.riga { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.distintivo { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--accent); color: var(--accent); border-radius: 99px; padding: 2px 10px; }
.elenco-link { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.elenco-link li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.elenco-link li:first-child { border-top: 0; padding-top: 0; }

@media (prefers-reduced-motion: no-preference) { .bottone { transition: filter .15s; } .bottone:hover:not(:disabled) { filter: brightness(1.08); } }

[hidden] { display: none !important; }
