/* ============================================================
   PORTALE GLV — Design System (tema chiaro, stile e-learning)
   portale.grecolatinovivo.it
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-base:        #f4f4f4;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f9f9f9;
  --bg-nav:         #ffffff;
  --bg-section:     #eeeeee;
  --accent:         #a01a36;
  --accent-hover:   #c02040;
  --accent-light:   rgba(160,26,54,0.08);
  --text-primary:   #232323;
  --text-secondary: #4a4a4a;    /* era #555, contrasto migliorato */
  --text-muted:     #666666;    /* era #888, contrasto 5.2:1 su bg-base (WCAG AA) */
  --border:         #e0e0e0;
  --border-light:   #eeeeee;
  --gold:           #d4a017;
  --success:        #2ecc71;
  --dark-btn:       #232323;
  --nav-height:     64px;

  /* Categoria colori (le thumbnail rimangono a contrasto sul chiaro) */
  --latino-a:    #7b0d1e;
  --latino-b:    #a01a36;
  --greco-a:     #1a237e;
  --greco-b:     #3f51b5;
  --egiziano-a:  #bf360c;
  --egiziano-b:  #e64a19;
  --ebraico-a:   #1b5e20;
  --ebraico-b:   #388e3c;
  --didattica-a: #4a148c;
  --didattica-b: #7b1fa2;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;           /* era 15px — WCAG 1.4.4 */
  line-height: 1.65;         /* era 1.6 — leggibilità migliorata */
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Accessibility — Focus Visibile (WCAG 2.4.7) ──────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Rimuovi outline di default solo quando non serve */
:focus:not(:focus-visible) { outline: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 600; } /* era 15px — stesso del body, nessuna gerarchia */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 4px;
  font-family: 'Montserrat', sans-serif; font-size: 13px;
  font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(160,26,54,.3); }
.btn-secondary {
  background: var(--dark-btn); color: #fff;
}
.btn-secondary:hover { background: #3a3a3a; transform: translateY(-1px); }
.btn-outline {
  border: 2px solid var(--accent); color: var(--accent); background: transparent;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); }
.btn-lg { padding: 16px 40px; font-size: 14px; }
.btn-sm { padding: 8px 18px; font-size: 11px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Navbar ─────────────────────────────────────────────────── */
.glv-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex; align-items: center;
  padding: 0 48px;
  transition: box-shadow .3s;
}
.glv-nav.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.nav-logo {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 18px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); flex-shrink: 0;
}
.nav-logo span { color: var(--text-primary); }
.nav-links { display: flex; gap: 28px; margin-left: 40px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-search-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 16px; transition: color .2s;
}
.nav-search-btn:hover { color: var(--text-primary); }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; cursor: pointer;
}
.nav-badge {
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .5px;
}

/* ── Hero Billboard (dashboard) ────────────────────────────── */
.hero-billboard {
  position: relative; height: 52vh; min-height: 360px;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-height) + 40px) 48px 40px;
  overflow: hidden;
}
.hero-billboard-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--latino-a) 0%, var(--latino-b) 100%);
}
.hero-billboard-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 70%, transparent 100%);
}
.hero-billboard-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(0deg, var(--bg-base) 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-badge {
  display: inline-block; margin-bottom: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255,255,255,.6);
  padding: 4px 10px; border-radius: 2px;
}
.hero-title { margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,.4); color: #fff; }
.hero-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.hero-meta span { font-size: 13px; color: rgba(255,255,255,.8); }
.hero-meta .dot { color: rgba(255,255,255,.4); }
.hero-description { color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 440px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Landing Hero ───────────────────────────────────────────── */
.landing-hero {
  min-height: 88vh; display: flex; align-items: center;
  padding: calc(var(--nav-height) + 60px) 48px 80px;
  position: relative; overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.landing-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #fff 0%, #fdf0f3 50%, #fff 100%);
}
.landing-hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}
.landing-hero-content { position: relative; z-index: 2; max-width: 600px; }
.landing-hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.landing-hero-eyebrow::after {
  content: ''; flex: 1; max-width: 60px; height: 1px; background: var(--accent);
}
.landing-hero h1 { margin-bottom: 20px; color: var(--text-primary); }
.landing-hero h1 em { font-style: normal; color: var(--accent); }
.landing-hero p { font-size: 17px; color: var(--text-secondary); margin-bottom: 40px; max-width: 520px; line-height: 1.8; }
.landing-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.landing-hero-stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat-item { text-align: center; }
.stat-value { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.landing-hero-preview {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  width: 480px; z-index: 2;
}

/* ── Course Rows (scroll orizzontale) ───────────────────────── */
.section-row { padding: 0 48px 40px; }
.section-row + .section-row { padding-top: 0; }
.row-header {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 14px;
}
.row-title {
  font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--text-primary);
}
.row-explore {
  font-size: 12px; color: var(--accent); font-weight: 600;
  opacity: 0; transition: opacity .2s; letter-spacing: .5px; text-transform: uppercase;
}
.section-row:hover .row-explore { opacity: 1; }
.courses-row {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 8px 4px 20px;
  scrollbar-width: none;
}
.courses-row::-webkit-scrollbar { display: none; }

/* ── Course Card ────────────────────────────────────────────── */
.course-card {
  flex-shrink: 0; width: 220px; border-radius: 8px;
  overflow: visible; position: relative;
  cursor: pointer; transition: transform .25s, box-shadow .25s, z-index 0s .25s;
  z-index: 1;
  background: #fff;
  border: 1.5px solid var(--border);
}
.course-card:hover {
  transform: scale(1.06); z-index: 10; box-shadow: 0 8px 28px rgba(0,0,0,.14);
  transition: transform .25s, box-shadow .25s, z-index 0s;
}
.card-thumb {
  width: 100%; height: 128px; border-radius: 6px 6px 0 0;
  position: relative; overflow: hidden;
  background: var(--bg-section);
}
.card-thumb-gradient {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 12px;
}
.card-thumb-lang {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
  margin-bottom: 2px;
}
.card-thumb-level {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px; font-weight: 800; color: #fff;
}
.card-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.2);
}
.card-progress-bar { height: 100%; background: var(--accent); }
.card-info {
  padding: 10px 12px 12px; display: block;
}
.card-info-inner {
  background: #fff;
  border-radius: 0 0 6px 6px;
  padding: 0;
}
/* Espanso solo su hover */
.card-hover-extra { display: none; }
.course-card:hover .card-hover-extra { display: block; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); } /* era 13px */
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.card-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; /* era 9px — sotto il minimo */
  padding: 2px 7px; border-radius: 3px;
}
.badge-lang { background: var(--accent-light); color: var(--accent); }
.badge-new { background: var(--accent); color: #fff; }
.badge-level { background: #f0f0f0; color: var(--text-secondary); } /* era text-muted, contrasto insufficiente */
.card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 10px; } /* era 11px */
.card-actions { display: flex; gap: 8px; }
.card-btn-play {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--dark-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--dark-btn); transition: all .2s;
}
.card-btn-play:hover { background: var(--dark-btn); color: #fff; }
.card-btn-add {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted); transition: all .2s;
}
.card-btn-add:hover { border-color: var(--dark-btn); color: var(--dark-btn); }
.card-locked { position: absolute; top: 8px; right: 8px; font-size: 14px; color: rgba(255,255,255,.8); }

/* Card in Grid (catalogo) */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.course-grid .course-card { width: 100%; }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-section { padding: 80px 48px; text-align: center; background: #fff; }
.pricing-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f4f4f4; border-radius: 40px; padding: 6px;
  margin: 32px auto;
  border: 1.5px solid var(--border);
}
.pricing-toggle-btn {
  padding: 10px 28px; border-radius: 32px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); transition: all .2s;
}
.pricing-toggle-btn.active { background: var(--accent); color: #fff; }
.pricing-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 8px; align-items: flex-start; }
.pricing-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 32px 28px; width: 300px; position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pricing-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.pricing-card.featured {
  border-color: var(--accent); transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(160,26,54,.12);
}
.pricing-card-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 16px; border-radius: 20px;
}
.pricing-plan { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.pricing-price { font-family: 'Montserrat', sans-serif; font-size: 48px; font-weight: 800; line-height: 1; color: var(--text-primary); }
.pricing-price sup { font-size: 20px; vertical-align: top; margin-top: 10px; }
.pricing-price sub { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.pricing-original { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin: 6px 0; }
.pricing-save { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 24px; }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); line-height: 1.5; }
.pricing-features li i { flex-shrink: 0; margin-top: 3px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--success); font-size: 13px; width: 16px; }
.pricing-guarantee { font-size: 11px; color: var(--text-muted); margin-top: 20px; text-align: center; }

/* ── Value Props ─────────────────────────────────────────────── */
.value-props { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding: 0 48px 80px; }
.value-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 28px 24px; transition: border-color .2s, box-shadow .2s;
}
.value-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(160,26,54,.08); }
.value-icon { font-size: 28px; margin-bottom: 14px; color: var(--accent); }
.value-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.value-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Social Proof ────────────────────────────────────────────── */
.social-proof { background: var(--bg-section); padding: 60px 48px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.social-proof-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.testimonial-card {
  background: #fff; border-radius: 10px; padding: 24px;
  border: 1.5px solid var(--border);
}
.testimonial-stars { color: var(--gold); font-size: 13px; margin-bottom: 12px; }
.testimonial-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.testimonial-role { font-size: 11px; color: var(--text-muted); }
.counter-row { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.counter-item { text-align: center; }
.counter-value { font-family: 'Montserrat', sans-serif; font-size: 40px; font-weight: 800; color: var(--accent); }
.counter-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section { padding: 80px 48px; max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; padding: 20px 0;
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question i { font-size: 13px; color: var(--text-muted); transition: transform .3s; flex-shrink: 0; }
.faq-question.open i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 0 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ── Corso — Hero ────────────────────────────────────────────── */
.corso-hero {
  padding: calc(var(--nav-height) + 60px) 48px 60px;
  display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start;
  background: #fff; border-bottom: 1px solid var(--border);
}
.corso-hero-bg { position: absolute; inset: 0; opacity: .04; }
.corso-lang-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.corso-lang-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.corso-meta-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0; }
.corso-meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.corso-meta-item i { color: var(--accent); }
.corso-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.corso-tag {
  padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 600;
  background: var(--accent-light); color: var(--accent);
  border: 1px solid rgba(160,26,54,.2);
}

/* ── Corso — Sticky CTA ──────────────────────────────────────── */
.corso-cta-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 28px; position: sticky; top: 80px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.corso-cta-thumb {
  width: 100%; height: 160px; border-radius: 6px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; position: relative;
  overflow: hidden;
}
.corso-cta-play {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px); border: 2px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; position: relative; z-index: 2;
}
.corso-price { font-size: 32px; font-weight: 800; margin-bottom: 6px; color: var(--text-primary); }
.corso-price-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.corso-cta-divider { height: 1px; background: var(--border); margin: 20px 0; }
.corso-includes li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; color: var(--text-secondary); }
.corso-includes li i { color: var(--success); width: 16px; }

/* ── Lezioni Accordion ───────────────────────────────────────── */
.lessons-section { padding: 0 48px 60px; }
.lesson-item {
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer;
  transition: color .15s;
}
.lesson-item:hover { color: var(--accent); }
.lesson-num { font-size: 13px; color: var(--text-muted); width: 24px; flex-shrink: 0; text-align: center; } /* era 12px */
.lesson-title { flex: 1; font-size: 15px; font-weight: 500; color: var(--text-primary); } /* era 14px */
.lesson-duration { font-size: 13px; color: var(--text-muted); } /* era 12px */
.lesson-lock { color: var(--text-muted); font-size: 14px; } /* era 13px */
.lesson-item.free .lesson-lock { color: var(--success); }

/* ── Profilo ─────────────────────────────────────────────────── */
.profile-hero {
  padding: calc(var(--nav-height) + 48px) 48px 48px;
  display: flex; align-items: center; gap: 28px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.profile-avatar-large {
  width: 80px; height: 80px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.profile-plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); border: 1px solid rgba(160,26,54,.2);
  color: var(--accent); padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-top: 6px;
}
.profile-section { padding: 48px; max-width: 900px; }
.profile-section + .profile-section { padding-top: 0; }
.profile-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 24px 28px; margin-bottom: 20px;
}
.profile-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

/* ── Filters (catalogo) ──────────────────────────────────────── */
.catalog-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 20px 48px; border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-height); z-index: 100; background: #fff;
}
.filter-tab {
  padding: 8px 20px; border-radius: 4px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); border: 1.5px solid var(--border);
  transition: all .2s; cursor: pointer; background: #fff;
}
.filter-tab:hover { border-color: var(--text-muted); color: var(--text-primary); }
.filter-tab.active { background: var(--dark-btn); border-color: var(--dark-btn); color: #fff; }
.catalog-content { padding: 40px 48px; }

/* ── Section Headers ─────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; /* era 11px */
  color: var(--accent); margin-bottom: 14px; display: block;
}

/* ── Auth Modal / Forms ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #fff; border-radius: 12px; padding: 40px;
  width: 100%; max-width: 440px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px; transition: background .2s;
}
.modal-close:hover { background: #f0f0f0; color: var(--text-primary); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 4px;
  font-size: 14px; font-family: inherit; transition: border-color .2s;
  background: #fff; color: var(--text-primary);
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-error { font-size: 12px; color: var(--accent); margin-top: 4px; }

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  padding: 14px 24px; border-radius: 6px; font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  animation: toast-in .3s ease;
  max-width: 360px;
}
.toast-success { background: var(--dark-btn); color: #fff; }
.toast-error { background: var(--accent); color: #fff; }
@keyframes toast-in { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

/* ── Divisore sezioni ────────────────────────────────────────── */
.section-divider {
  height: 1px; background: var(--border);
  margin: 0 48px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.glv-footer {
  background: #232323; color: #b3b3b3;
  padding: 60px 48px 32px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 800; color: var(--accent); letter-spacing: 1px; margin-bottom: 12px; }
.footer-brand span { color: #fff; }
.footer-desc { font-size: 14px; color: #aaaaaa; line-height: 1.7; } /* #888 su #232323 = 2:1 FAIL → #aaa = 5.1:1 ✓ */
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #aaaaaa; margin-bottom: 16px; } /* #888→#aaa */
.footer-col a { display: block; font-size: 14px; color: #cccccc; margin-bottom: 10px; transition: color .2s; } /* era 13px/#b3b3b3 */
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #444; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: #999999; } /* #666 su #232323 = 1.6:1 FAIL → #999 = 4.6:1 ✓ */

/* ── Utilities ───────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.d-none { display: none !important; }
.bg-white { background: #fff; }
.section-pad { padding: 60px 48px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .landing-hero-preview { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .corso-hero { grid-template-columns: 1fr; }
  .corso-cta-card { position: static; }
  .value-props { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .glv-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-right .btn-ghost { display: none; }
  .landing-hero, .hero-billboard { padding-left: 20px; padding-right: 20px; }
  .section-row { padding-left: 20px; padding-right: 20px; }
  .value-props { grid-template-columns: 1fr; padding: 0 20px 48px; }
  .pricing-section { padding: 60px 20px; }
  .social-proof-grid { grid-template-columns: 1fr; }
  .social-proof { padding: 40px 20px; }
  .faq-section { padding: 60px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .glv-footer { padding: 40px 20px 24px; }
  .corso-hero { padding-left: 20px; padding-right: 20px; }
  .lessons-section { padding: 0 20px 40px; }
  .catalog-filters { padding: 14px 20px; }
  .catalog-content { padding: 28px 20px; }
  .profile-hero { padding: 100px 20px 32px; }
  .profile-section { padding: 32px 20px; }
  .pricing-cards { flex-direction: column; align-items: center; }
  .pricing-card.featured { transform: scale(1); }
  .landing-hero-stats { gap: 24px; flex-wrap: wrap; }
  .counter-row { gap: 28px; }
  .section-divider { margin: 0 20px; }
  .section-pad { padding: 40px 20px; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE EXPERIENCE — 480px e sotto
   Council decisions: bottom nav, sticky CTA, card 75vw, touch targets
   ════════════════════════════════════════════════════════════════ */

:root {
  --bottom-nav-height: 60px;
}

/* ── Bottom Navigation Bar ──────────────────────────────────── */
.glv-bottom-nav {
  display: none; /* visibile solo su mobile via media query */
}

@media (max-width: 768px) {

  /* Spazio per bottom nav — tutto il body */
  body { padding-bottom: var(--bottom-nav-height); }

  /* Toast sopra la bottom nav */
  .toast { bottom: calc(var(--bottom-nav-height) + 20px); right: 16px; left: 16px; max-width: 100%; }

  /* ── Bottom Nav ── */
  .glv-bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    z-index: 1100;
    align-items: stretch;
  }
  .glv-bottom-nav a {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    color: var(--text-muted); font-size: 10px; font-weight: 600;
    letter-spacing: .3px; text-transform: uppercase;
    transition: color .2s;
    min-height: 44px; /* WCAG 2.5.5 touch target */
  }
  .glv-bottom-nav a i { font-size: 18px; }
  .glv-bottom-nav a.active,
  .glv-bottom-nav a:hover { color: var(--accent); }
  .glv-bottom-nav a.active i { font-weight: 900; }

  /* ── Navbar mobile semplificata ── */
  .glv-nav { padding: 0 16px; }
  .nav-logo { font-size: 15px; }

  /* ── Landing Hero mobile ── */
  .landing-hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 32px) 20px 48px;
    text-align: center;
  }
  .landing-hero-content { max-width: 100%; }
  .landing-hero-eyebrow { justify-content: center; }
  .landing-hero-eyebrow::after { display: none; }
  .landing-hero h1 { font-size: clamp(26px, 8vw, 36px); margin-bottom: 16px; }
  .landing-hero p { font-size: 15px; margin-bottom: 28px; max-width: 100%; }
  .landing-hero-actions {
    flex-direction: column; gap: 12px; align-items: stretch;
  }
  .landing-hero-actions .btn { width: 100%; justify-content: center; }
  .landing-hero-stats {
    margin-top: 36px; padding-top: 28px;
    justify-content: space-around; gap: 0;
  }
  .stat-value { font-size: 22px; }

  /* ── Hero Billboard (dashboard) mobile ── */
  .hero-billboard {
    height: 44vh; min-height: 280px;
    padding: calc(var(--nav-height) + 20px) 20px 28px;
  }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(20px, 6vw, 28px); }
  .hero-description { font-size: 13px; margin-bottom: 16px; display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 20px; font-size: 12px; }

  /* ── Course Cards mobile — 75vw per affordance scroll ── */
  .course-card {
    width: 75vw;
    min-width: 240px;
    max-width: 320px;
  }
  .courses-row {
    scroll-snap-type: x mandatory;
    padding: 8px 20px 20px;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .course-card { scroll-snap-align: start; }

  /* card-desc nascosta su mobile (CLA + UX decision) */
  .card-desc { display: none; }

  /* Touch target ≥ 44px su bottoni card (AUD) */
  .card-btn-play,
  .card-btn-add {
    width: 44px; height: 44px;
    font-size: 14px;
  }

  /* ── Catalog Grid — 1 colonna ── */
  .course-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .course-grid .course-card { width: 100%; min-width: 0; max-width: 100%; }

  /* ── Catalog Filters — scroll orizzontale, no wrap ── */
  .catalog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 12px 16px;
  }
  .catalog-filters::-webkit-scrollbar { display: none; }
  .filter-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    min-height: 44px; /* touch target */
    font-size: 12px;
  }
  .catalog-content { padding: 20px 16px; }

  /* ── Pricing mobile ── */
  .pricing-section { padding: 48px 16px 60px; }
  .pricing-cards {
    flex-direction: column; align-items: stretch;
    gap: 16px; padding: 0 0 8px;
  }
  .pricing-card {
    width: 100% !important;
    padding: 24px 20px;
  }
  .pricing-card.featured { transform: scale(1); }
  .pricing-toggle { width: 100%; }
  .pricing-toggle-btn { flex: 1; text-align: center; padding: 10px 12px; }

  /* ── Value Props mobile ── */
  .value-props {
    grid-template-columns: 1fr;
    padding: 0 16px 48px;
    gap: 14px;
  }
  .value-card { padding: 20px 18px; }

  /* ── Social Proof mobile ── */
  .social-proof { padding: 40px 16px; }
  .social-proof-grid { grid-template-columns: 1fr; gap: 16px; }
  .counter-row { gap: 16px; }
  .counter-value { font-size: 32px; }

  /* ── FAQ mobile ── */
  .faq-section { padding: 48px 16px; }
  .faq-question { font-size: 14px; padding: 18px 0; }

  /* ── Footer mobile ── */
  .glv-footer { padding: 36px 16px calc(24px + var(--bottom-nav-height)); margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* ── Corso mobile ── */
  .corso-hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-height) + 24px) 16px 32px;
    gap: 24px;
  }
  .corso-meta-row { gap: 12px; }
  .corso-meta-item { font-size: 12px; }
  .corso-tags { gap: 6px; margin-bottom: 20px; }

  /* Nasconde la CTA card desktop — sostituita dalla sticky bar mobile */
  .corso-cta-card { display: none; }

  /* ── Sticky CTA Bar — corso mobile (NM decision) ── */
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: var(--bottom-nav-height);
    left: 0; right: 0;
    background: #fff;
    border-top: 1.5px solid var(--border);
    padding: 10px 16px;
    gap: 12px;
    align-items: center;
    z-index: 1050;
    box-shadow: 0 -4px 16px rgba(0,0,0,.1);
  }
  .mobile-sticky-cta .cta-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 20px;
    color: var(--text-primary); flex-shrink: 0;
  }
  .mobile-sticky-cta .cta-sub {
    font-size: 10px; color: var(--text-muted); line-height: 1.3;
    flex: 1;
  }
  .mobile-sticky-cta .btn {
    flex-shrink: 0; padding: 12px 20px;
    font-size: 12px; white-space: nowrap;
  }

  /* Spazio extra per sticky CTA */
  body.has-corso-cta { padding-bottom: calc(var(--bottom-nav-height) + 68px); }

  /* ── Lessons mobile ── */
  .lessons-section { padding: 0 16px 40px; }
  .lesson-item { padding: 14px 0; gap: 12px; }
  .lesson-title { font-size: 14px; }
  .lesson-num { font-size: 12px; }

  /* Griglia 2-colonne "Contenuti del corso" → 1 colonna su mobile */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Sezioni corso con padding inline 48px → 16px mobile */
  #docente-section,
  .lessons-section + section,
  section[style*="padding:0 48px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* ── Profilo mobile ── */
  .profile-hero {
    padding: calc(var(--nav-height) + 20px) 16px 28px;
    flex-direction: column; gap: 16px; text-align: center;
  }
  .profile-section { padding: 24px 16px; }
  .profile-card { padding: 18px 16px; }
  .profile-card-header { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* ── Section headers ── */
  .section-row { padding-left: 16px; padding-right: 16px; }
  .section-divider { margin: 0 16px; }

  /* ── Video player mobile ── */
  #video-player-section { padding: 0 16px 24px !important; }

  /* ── Modali — full-width su mobile ── */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    border-radius: 16px 16px 0 0;
    padding: 28px 20px 36px;
    max-width: 100%;
  }

  /* ── Row explore label — sempre visibile su mobile ── */
  .row-explore { opacity: 1; }

  /* ── Pricing card width fix ── */
  .pricing-card[style*="width:300px"] { width: 100% !important; flex-shrink: 1 !important; }

}
