/* pallavolo.me — foglio di stile del sito istituzionale.
   Palette chiara, coerente con i portali regionali (#f5f7fb, #ffffff):
   il sito ombrello non deve sembrare un altro prodotto. */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --line: #d8e1ee;
  --text: #12233a;
  --muted: #5a6b81;
  --blue: #1c4f8f;
  --blue-dim: #7da2cc;
  --green: #1f7a55;
  --gold: #a8761c;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* testata */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 247, 251, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; letter-spacing: -.02em; font-size: 1.06rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: 0 0 auto; }
.brand .me { color: var(--blue); }

.nav { display: flex; gap: 1.15rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: .94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .nav-cta { color: #fff; background: var(--blue); font-weight: 650; padding: .42rem .9rem; border-radius: 999px; }
.nav .nav-cta:hover { background: #17406f; color: #fff; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .35rem .6rem; font-size: 1.1rem; }

/* sezioni */
section { padding: clamp(2.6rem, 6vw, 4.4rem) 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding-top: clamp(2.8rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero p.lead { font-size: 1.14rem; max-width: 46ch; }

.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn { display: inline-block; padding: .7rem 1.25rem; border-radius: 999px; font-weight: 650; border: 1px solid transparent; font-size: .97rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #17406f; text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue-dim); text-decoration: none; }

/* scheda dei tre livelli */
.flow { display: grid; gap: .5rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flow-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.flow-row .ico { width: 30px; height: 30px; flex: 0 0 auto; color: var(--blue); }
.flow-row .lbl { font-size: .9rem; font-weight: 600; color: var(--text); }
.flow-row .sub { font-size: .78rem; color: var(--muted); }
.flow-arrow { text-align: center; color: var(--blue-dim); line-height: 1; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 26px; height: 26px; color: var(--blue); margin-bottom: .7rem; }
.card-num { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }

.steps { counter-reset: passo; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: start; }
.step::before { counter-increment: passo; content: counter(passo); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--blue-dim); color: var(--blue); font-weight: 700; font-size: .95rem; }
.step h3 { margin-bottom: .15rem; }
.step p { margin-bottom: 0; }

table.spec { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .94rem; }
table.spec th, table.spec td { text-align: left; padding: .62rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { color: var(--muted); font-weight: 600; width: 30%; }
table.spec td { color: var(--text); }

.note { border-left: 3px solid var(--gold); background: rgba(168, 118, 28, .07); padding: .8rem 1rem; border-radius: 0 8px 8px 0; margin: 1.2rem 0; }
.note p:last-child { margin-bottom: 0; }

.cta-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: clamp(2.4rem, 5vw, 3.4rem) 1rem; }
.cta-band p { max-width: 54ch; margin-inline: auto; }
.cta-band .actions { justify-content: center; }

.site-footer { padding: 2.2rem 0 2.6rem; color: var(--muted); font-size: .86rem; }
.site-footer .cols { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: grid; gap: .3rem; }
.site-footer a { color: var(--muted); }
.site-footer .fine { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: .7rem; text-align: center; }
}

@media print {
  .site-header, .cta-band, .actions { display: none; }
  body { background: #fff; }
}
