/* ─────────────────────────────────────────────────────────────
   Volley Control Center — Centro assistenza
   Tema chiaro, pulito, con gli accenti del brand (blu + gradiente V)
   ───────────────────────────────────────────────────────────── */

:root {
  /* Palette del sito vetrina volleycontrolcenter.it, declinata in tema chiaro */
  --blu: #4da3ff;
  --blu-scuro: #1D4ED8;
  --ciano: #38d5f5;
  --viola: #7c3aed;
  --magenta: #d946ef;
  --inchiostro: #0F172A;
  --testo: #1E293B;
  --testo-tenue: #64748B;
  --linea: #E2E8F0;
  --sfondo: #F8FAFC;
  --carta: #FFFFFF;
  --verde: #16A34A;
  --ambra: #D97706;
  --rosso: #DC2626;
  --raggio: 14px;
  --ombra: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  --gradiente: linear-gradient(120deg, #38d5f5 0%, #5b8bff 34%, #8b5cf6 66%, #d946ef 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--sfondo);
  color: var(--testo);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.sito-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.sito-header::after {
  content: ""; display: block; height: 2px;
  background: var(--gradiente); opacity: .9;
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 14px;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link img { width: 34px; height: 34px; }
.logo-testo { font-weight: 800; font-size: 17px; color: var(--inchiostro); letter-spacing: -.01em; }
.logo-testo .sub { display: block; font-size: 11.5px; font-weight: 600; color: var(--testo-tenue); letter-spacing: .04em; text-transform: uppercase; }
.header-nav { margin-left: auto; display: flex; gap: 20px; }
.header-nav a { color: var(--testo-tenue); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.header-nav a:hover { color: var(--blu-scuro); }

/* ── Hero (home) ── */
.hero { text-align: center; padding: 64px 24px 48px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; color: var(--inchiostro); letter-spacing: -.02em; }
.hero h1 .evidenzia {
  background: var(--gradiente);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin-top: 12px; font-size: 18px; color: var(--testo-tenue); max-width: 620px; margin-left: auto; margin-right: auto; }

/* ── Contenitori ── */
.contenitore { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }
.contenitore-articolo { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }

/* ── Griglie di card (home) ── */
.sezione-titolo { font-size: 22px; font-weight: 800; color: var(--inchiostro); margin: 40px 0 18px; letter-spacing: -.01em; }
.griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  display: block; background: var(--carta); border: 1px solid var(--linea);
  border-radius: var(--raggio); padding: 22px; text-decoration: none;
  box-shadow: var(--ombra); transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--ciano); }
.card .icona { font-size: 26px; line-height: 1; }
.card h3 { margin-top: 10px; font-size: 17px; font-weight: 700; color: var(--inchiostro); }
.card p { margin-top: 6px; font-size: 14.5px; color: var(--testo-tenue); line-height: 1.5; }
.card-ruolo { border-top: 3px solid transparent; border-image: var(--gradiente) 1; border-top-width: 3px; border-top-style: solid; }

/* ── Articolo guida ── */
.briciole { font-size: 13.5px; color: var(--testo-tenue); margin-bottom: 18px; }
.briciole a { color: var(--blu-scuro); text-decoration: none; }
article h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--inchiostro); letter-spacing: -.02em; line-height: 1.25; }
article .sottotitolo { margin-top: 10px; font-size: 17px; color: var(--testo-tenue); }
article h2 {
  margin: 40px 0 12px; padding-top: 8px; font-size: 21px; font-weight: 800; color: var(--inchiostro);
}
article h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--gradiente); }
article h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 700; color: var(--inchiostro); }
article p { margin: 10px 0; }
article ul, article ol { margin: 10px 0 10px 22px; }
article li { margin: 6px 0; }
article strong { color: var(--inchiostro); }

/* Percorso UI: Impostazioni → Stagione */
.percorso {
  display: inline-block; background: #EFF6FF; border: 1px solid #BFDBFE; color: var(--blu-scuro);
  border-radius: 7px; padding: 1px 8px; font-size: 14px; font-weight: 600; white-space: nowrap;
}

/* Badge ruolo/piano */
.badge {
  display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 12.5px; font-weight: 700;
  background: #EFF6FF; color: var(--blu-scuro); border: 1px solid #BFDBFE; vertical-align: 1px;
}
.badge.club { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.badge.pro { background: #ECFEFF; color: #0E7490; border-color: #A5F3FC; }

/* Callout */
.nota, .consiglio, .attenzione {
  margin: 18px 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; border: 1px solid;
}
.nota { background: #EFF6FF; border-color: #BFDBFE; }
.consiglio { background: #F0FDF4; border-color: #BBF7D0; }
.attenzione { background: #FFFBEB; border-color: #FDE68A; }
.nota::before { content: "ℹ️  "; }
.consiglio::before { content: "💡  "; }
.attenzione::before { content: "⚠️  "; }

/* Passi numerati */
.passi { counter-reset: passo; list-style: none; margin-left: 0 !important; }
.passi li {
  counter-increment: passo; position: relative; padding-left: 44px; margin: 14px 0 !important;
}
.passi li::before {
  content: counter(passo); position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradiente); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* Tabelle */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; background: var(--carta); border-radius: 12px; overflow: hidden; box-shadow: var(--ombra); }
th { background: #F1F5F9; text-align: left; font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--testo-tenue); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--linea); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* Guide correlate */
.correlate { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--linea); }
.correlate h2::after { display: none; }
.correlate ul { list-style: none; margin-left: 0; }
.correlate a { color: var(--blu-scuro); text-decoration: none; font-weight: 600; }
.correlate a:hover { text-decoration: underline; }

/* ── Footer ── */
.sito-footer { border-top: 1px solid var(--linea); background: var(--carta); }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 14px; color: var(--testo-tenue);
}
.footer-inner a { color: var(--blu-scuro); text-decoration: none; }

@media (max-width: 640px) {
  .header-nav { display: none; }
  body { font-size: 16px; }
}

/* Screenshot dell'app nelle guide */
.figura { margin: 22px auto; text-align: center; }
.figura img {
  max-width: min(320px, 88%); height: auto; border-radius: 22px;
  border: 1px solid var(--linea); box-shadow: var(--ombra);
}
.figura figcaption { margin-top: 8px; font-size: 13.5px; color: var(--testo-tenue); }
.figura-coppia { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.figura-coppia .figura { margin: 10px 0; }

/* ── Form di assistenza ── */
.form-assistenza { margin-top: 26px; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-size: 14px; font-weight: 700; color: var(--inchiostro); margin-bottom: 6px; }
.campo label .facoltativo { font-weight: 500; color: var(--testo-tenue); }
.campo input[type="text"], .campo input[type="email"], .campo select, .campo textarea {
  width: 100%; padding: 11px 14px; font-size: 15.5px; font-family: inherit;
  color: var(--testo); background: var(--carta);
  border: 1px solid var(--linea); border-radius: 10px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  border-color: var(--blu); box-shadow: 0 0 0 3px rgba(77, 163, 255, .18);
}
.campo textarea { min-height: 140px; resize: vertical; }
.campo .aiuto-campo { margin-top: 5px; font-size: 13px; color: var(--testo-tenue); }
.campo-riga { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .campo-riga { grid-template-columns: 1fr; } }

.allegati-lista { margin-top: 8px; font-size: 13.5px; color: var(--testo-tenue); }
.allegati-lista li { margin: 3px 0; }

.bottone-invia {
  display: inline-block; border: none; cursor: pointer;
  background: var(--gradiente); color: #fff;
  font-size: 16px; font-weight: 700; font-family: inherit;
  padding: 13px 30px; border-radius: 99px;
  box-shadow: 0 6px 18px rgba(124, 58, 237, .3);
  transition: transform .15s ease, opacity .15s ease;
}
.bottone-invia:hover { transform: translateY(-1px); }
.bottone-invia:disabled { opacity: .6; cursor: default; transform: none; }

.esito-ok, .esito-errore { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 12px; border: 1px solid; font-size: 15px; }
.esito-ok { background: #F0FDF4; border-color: #BBF7D0; }
.esito-errore { background: #FEF2F2; border-color: #FECACA; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
