/* ==========================================================================
   VINCI DANCE ACADEMY — Design System
   Mobile-first. Nessun framework. Custom properties.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand — campionato dai volantini ufficiali 2026 (oro su nero) */
  --gold:       #C9962C;
  --gold-light: #E8C877;
  --gold-deep:  #966E17;
  --brand:      #2E4E9E;
  --brand-deep: #16265A;
  --wine:       #16265A;
  --wine-deep:  #0B1330;
  --brand-tint: #FBF4E4;

  /* Base */
  --ink:        #080A12;
  --ink-soft:   #111524;
  --ink-line:   #1E2438;
  --cream:      #FBF9F5;
  --paper:      #FFFFFF;
  --muted:      #6A6266;
  --muted-soft: #7C7478;   /* alzato il 13/08: era troppo debole da leggere */
  --line:       #E7E2DA;

  /* Accenti per area — stessa codifica cromatica dei volantini */
  --ballo:       #4A73D0;
  --ballo-deep:  #2E4E9E;
  --fitness:     #C0392B;
  --fitness-deep:#8E2A1F;
  --benessere:   #3E7A4E;
  --benessere-deep:#2B5738;

  /* Accent corrente (sovrascritto per area) */
  --accent:      var(--ballo);
  --accent-deep: var(--ballo-deep);

  /* Tipografia */
  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Ridotto il 13/08: il titolo copriva la foto di gruppo, che e' la prova
     dell'appartenenza. Prima si percepiscono le persone, poi si legge. */
  --fs-hero:  clamp(2rem, 4.4vw, 3.6rem);
  --fs-h1:    clamp(2rem, 5.5vw, 3.4rem);
  --fs-h2:    clamp(1.5rem, 3.6vw, 2.3rem);
  --fs-h3:    clamp(1.15rem, 2.4vw, 1.45rem);
  --fs-lead:  clamp(1.05rem, 2.2vw, 1.3rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.76rem;

  /* Spazio */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 8px rgba(18,15,23,.06), 0 12px 32px rgba(18,15,23,.08);
  --shadow-lg: 0 4px 14px rgba(18,15,23,.10), 0 24px 60px rgba(18,15,23,.14);
}

/* --accent-glow: l'aura dietro la scheda dell'area. Alpha bassa di proposito:
   deve leggersi come profondita', non come un pannello colorato. */
[data-area="ballo"]      { --accent: var(--ballo);      --accent-deep: var(--ballo-deep);      --accent-glow: rgba(74,115,208,.30); }
[data-area="fitness"]    { --accent: var(--fitness);    --accent-deep: var(--fitness-deep);    --accent-glow: rgba(192,57,43,.26); }
[data-area="benessere"]  { --accent: var(--benessere);  --accent-deep: var(--benessere-deep);  --accent-glow: rgba(62,122,78,.28); }
[data-area="community"]  { --accent: var(--gold);       --accent-deep: #9C7B2E;                --accent-glow: rgba(201,150,44,.24); }

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 var(--sp-4); letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--sp-7); }
.section-lg { padding-block: var(--sp-8); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--paper { background: var(--paper); }
@media (min-width: 900px) {
  .section    { padding-block: var(--sp-8); }
  .section-lg { padding-block: var(--sp-9); }
}

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 720px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: rgba(251,248,244,.84); }

/* ---------- 4. ELEMENTI ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.9rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease;
  text-align: center; min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn--primaria  { background: var(--accent); color: #fff; }
.btn--primaria:hover { background: var(--accent-deep); }
.btn--secondaria{ background: var(--ink); color: var(--cream); }
.btn--secondaria:hover { background: var(--ink-soft); }
.btn--ghost     { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost,
.hero .btn--ghost,
.pagehero .btn--ghost { color: var(--cream); border-color: rgba(251,248,244,.35); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.pagehero .btn--ghost:hover { border-color: var(--cream); background: rgba(251,248,244,.08); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.card {
  background: var(--paper); border-radius: var(--radius-lg); padding: var(--sp-5);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__top { height: 4px; border-radius: 999px; background: var(--accent); width: 48px; }
.card h3 { margin: 0; }
.card p  { margin: 0; color: var(--muted); }
.card__meta { font-size: var(--fs-small); color: var(--muted-soft); }

.tag {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .04em;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-deep);
}
.tag--todo { background: #FFF3CD; color: #7A5B00; }

.todo {
  display: inline-block; padding: .15rem .5rem; border-radius: 5px;
  background: #FFF3CD; color: #7A5B00; font-size: var(--fs-micro);
  font-weight: 700; letter-spacing: .04em;
}

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,15,23,.94); backdrop-filter: blur(10px);
  color: var(--cream); border-bottom: 1px solid rgba(251,248,244,.10);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--sp-3); line-height: 1.05; }
.brand__logo { height: 42px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand__desc { font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.logo-slot {
  display: grid; place-items: center; min-height: 160px; border: 2px dashed var(--line);
  border-radius: var(--radius); background: var(--brand-tint); color: var(--brand-deep);
  font-weight: 700; text-align: center; padding: var(--sp-5);
}

.nav-toggle {
  background: none; border: 1px solid rgba(251,248,244,.25); color: var(--cream);
  border-radius: 10px; width: 46px; height: 42px; cursor: pointer; font-size: 1.2rem;
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.site-nav { display: none; }
.site-nav.is-open { display: block; }
@media (min-width: 1000px) { .site-nav { display: block !important; } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.site-nav a {
  display: block; padding: .7rem .2rem; font-weight: 600; font-size: .98rem;
  color: rgba(251,248,244,.85); border-bottom: 1px solid rgba(251,248,244,.08);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
@media (min-width: 1000px) {
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--sp-5); }
  .site-nav a { border: none; padding: .4rem 0; position: relative; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--gold); transform: scaleX(0); transition: transform .2s ease;
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}
.header-cta { display: none; }
@media (min-width: 1000px) { .header-cta { display: inline-flex; } }
.mobile-panel { padding-bottom: var(--sp-5); }
@media (min-width: 1000px) { .mobile-panel .btn-row { display: none; } }

/* ---------- 6. HERO ---------- */
.hero {
  background:
    radial-gradient(1200px 700px at 82% -12%, rgba(78,17,25,.92), transparent 66%),
    radial-gradient(900px 520px at 6% 110%, rgba(201,150,44,.22), transparent 62%),
    var(--ink);
  color: var(--cream);
  padding-block: var(--sp-8) var(--sp-8);
  position: relative; overflow: hidden;
}
@media (min-width: 900px) { .hero { padding-block: var(--sp-9); } }
.hero h1 { font-size: var(--fs-hero); margin-bottom: var(--sp-5); max-width: 20ch; }
.hero__lead { font-size: var(--fs-lead); color: rgba(251,248,244,.88); max-width: 54ch; margin-bottom: var(--sp-6); }
.hero__meta { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-5); font-size: var(--fs-small); color: rgba(251,248,244,.76); }
.hero__meta strong { color: var(--gold); display: block; font-size: 1.4rem; font-family: var(--font-display); }

/* Hero secondario (pagine interne) */
.pagehero {
  background:
    radial-gradient(900px 500px at 85% -30%, rgba(78,17,25,.85), transparent 62%),
    var(--ink);
  color: var(--cream); padding-block: var(--sp-7);
}
.pagehero h1 { max-width: 20ch; }
.pagehero .lead { color: rgba(251,248,244,.75); }

/* ---------- 7. AREE ---------- */
.area-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: var(--sp-6) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.area-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent); }
.area-card h3 { font-size: 1.6rem; margin: 0; }
.area-card__more { margin-top: auto; font-weight: 700; color: var(--accent); }

/* ---------- 8. TABELLA ORARI ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: #F4EFE8; font-weight: 700; font-size: var(--fs-small); letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: none; }

/* ---------- 9. FORM ---------- */
.form { display: grid; gap: var(--sp-5); }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); background: var(--paper); margin: 0; }
.fieldset legend { font-weight: 800; font-size: var(--fs-h3); padding-inline: var(--sp-2); font-family: var(--font-display); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: var(--fs-small); color: var(--muted); }
.field .req { color: var(--ballo); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  font: inherit; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); width: 100%; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } .field-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.check input { margin-top: .3rem; width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.check label { font-weight: 500; font-size: .95rem; }
.signature-box {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: var(--sp-6);
  text-align: center; color: var(--muted); background: #FCFAF7;
}

.notice {
  border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--paper));
  padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem;
}
.notice--todo { border-color: #E0A800; background: #FFF9E6; }
.notice strong { display: block; margin-bottom: var(--sp-1); }

/* ---------- 10. PAGAMENTI ---------- */
.pay-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .pay-grid { grid-template-columns: repeat(2, 1fr); } }
.pay-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
}
.pay-card__price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.pay-card__price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.pay-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); font-size: .95rem; }
.pay-card li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.pay-card .btn { margin-top: auto; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- 11. BREADCRUMB ---------- */
.breadcrumb { font-size: var(--fs-small); color: var(--muted); padding-block: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: var(--sp-2); color: var(--muted-soft); }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 12. FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(251,248,244,.80); padding-block: var(--sp-7) var(--sp-5); font-size: .95rem; }
.site-footer h4 { color: var(--cream); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(251,248,244,.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; font-size: var(--fs-small); color: rgba(251,248,244,.64);
}
.social-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.social-row a { border: 1px solid rgba(251,248,244,.22); border-radius: 999px; padding: .35rem .9rem; font-size: var(--fs-small); }

/* ---------- 13. SHARE ---------- */
.share { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: var(--fs-small); }
.share span { color: var(--muted); font-weight: 600; }
.share a { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; }
.share a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 14. UTILITY ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink);
  padding: .7rem 1.2rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
