/* Corso ChatGPT da 0 a Master — stile allineato al sito (20/10/2026).
   Si usa INSIEME a /assets/css/styles.css (token --bg, --surface, --border, --text, --yellow…).
   Prefisso cc- per l'indice; le classi delle lezioni (analogy, exercise, takeaway…) sono sotto .cc-lesson. */

/* ---------- testata e sezioni (come /siti-web/ e /libri/) ---------- */
.cc-hero { padding: 52px 56px 40px; border-bottom: 1px solid var(--border); }
.cc-prompt { color: var(--yellow); font-size: 12px; margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; }
.cc-h1 { font-family: 'JetBrains Mono', monospace; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 18px; }
.cc-h1 .acc { color: var(--yellow); }
.cc-h1 .dim { color: var(--text-muted); font-size: .5em; display: block; margin-top: 10px; font-weight: 600; line-height: 1.35; }
.cc-lede { font-family: 'Geist', sans-serif; font-size: 16px; line-height: 1.6; max-width: 640px; color: var(--text-soft, var(--text-muted)); margin: 0 0 24px; }
.cc-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cc-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); }
.cc-stats b { color: var(--yellow); font-size: 18px; margin-right: 6px; }

.cc-sh { padding: 20px 32px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cc-sh h2 { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--text-muted); margin: 0; }
.cc-sh h2 .acc { color: var(--yellow); }
.cc-sh .meta { font-size: 11px; color: var(--text-muted); }

.cc-mod { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; padding: 18px 32px; border-bottom: 1px dashed var(--border); color: inherit; text-decoration: none; }
a.cc-mod:hover { background: color-mix(in oklch, var(--yellow), transparent 95%); }
.cc-mod .n { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--yellow); }
.cc-mod h3 { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.cc-mod p { font-family: 'Geist', sans-serif; font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.cc-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 2px 8px; border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.cc-tag.free { border-color: var(--yellow); color: var(--yellow); }

.cc-book { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: center; padding: 32px 56px; border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--yellow), transparent 95%); }
.cc-book img { width: 110px; height: auto; display: block; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.5), 0 0 0 1px var(--border); }
.cc-book h2 { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; margin: 4px 0 10px; line-height: 1.25; }
.cc-book h2 .acc { color: var(--yellow); }
.cc-book p { font-family: 'Geist', sans-serif; font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0 0 16px; max-width: 640px; }

.cc-faq { padding: 20px 32px; border-bottom: 1px solid var(--border); }
.cc-faq h3 { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.cc-faq h3::before { content: '> '; color: var(--yellow); }
.cc-faq p { font-family: 'Geist', sans-serif; font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* i link nel testo restano link (lo stile globale li trasformerebbe in riquadri gialli) */
.cc-lede a, .cc-faq a, .cc-book p a, .cc-lesson .content a, .cc-lesson p a { background: none !important; color: var(--yellow) !important; padding: 0 !important; }

/* ---------- lezioni (m0, m1) ---------- */
.cc-lesson { padding: 44px 56px 56px; max-width: 880px; }
.cc-lesson .lesson-header { margin-bottom: 40px; }
.cc-lesson .mod-badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--yellow); border: 1px solid var(--yellow); padding: 3px 10px; margin-bottom: 18px; }
.cc-lesson h1 { font-family: 'JetBrains Mono', monospace; font-size: 38px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; }
.cc-lesson h1 em { font-style: normal; color: var(--yellow); }
.cc-lesson .lesson-meta { display: flex; gap: 18px; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); margin-bottom: 22px; }
.cc-lesson .lesson-promise { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--yellow); padding: 20px 24px; }
.cc-lesson .lesson-promise h3 { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--yellow); margin: 0 0 10px; font-weight: 600; }
.cc-lesson .lesson-promise ul, .cc-lesson .takeaway ul { list-style: none; margin: 0; padding: 0; }
.cc-lesson .lesson-promise li, .cc-lesson .takeaway li { font-family: 'Geist', sans-serif; font-size: 15px; line-height: 1.6; padding-left: 20px; position: relative; margin-bottom: 6px; color: var(--text); }
.cc-lesson .lesson-promise li::before { content: '→'; position: absolute; left: 0; color: var(--yellow); }
.cc-lesson .takeaway li::before { content: '•'; position: absolute; left: 4px; color: var(--yellow); }

.cc-lesson .content h2, .cc-lesson h2.lesson-h2 { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; margin: 44px 0 16px; line-height: 1.25; }
.cc-lesson .content h3 { font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 600; margin: 30px 0 12px; color: var(--yellow); }
.cc-lesson .content p, .cc-lesson .content li { font-family: 'Geist', sans-serif; font-size: 16px; line-height: 1.75; color: var(--text-soft, var(--text-muted)); margin: 0 0 16px; }
.cc-lesson .content strong { color: var(--text); }
.cc-lesson .content em { font-style: normal; color: var(--yellow); font-weight: 600; }

.cc-lesson .analogy, .cc-lesson .insight { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--teal); padding: 20px 24px; margin: 28px 0; }
.cc-lesson .insight { border-left-color: var(--yellow); }
.cc-lesson .analogy-label, .cc-lesson .insight-label, .cc-lesson .exercise-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); margin-bottom: 8px; }
.cc-lesson .insight-label { color: var(--yellow); }
.cc-lesson .analogy p, .cc-lesson .insight p { margin: 0; color: var(--text); font-family: 'Geist', sans-serif; font-size: 15px; line-height: 1.7; }

.cc-lesson .comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.cc-lesson .comp-col { background: var(--surface); border: 1px solid var(--border); padding: 20px; }
.cc-lesson .comp-col.bad { border-top: 3px solid #e5687a; }
.cc-lesson .comp-col.good { border-top: 3px solid #6fcf8f; }
.cc-lesson .comp-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; margin-bottom: 12px; }
.cc-lesson .comp-col.bad .comp-label { color: #ff9aa9; }
.cc-lesson .comp-col.good .comp-label { color: #7ee2a2; }
.cc-lesson .comp-item { font-family: 'Geist', sans-serif; font-size: 14px; color: var(--text-soft, var(--text-muted)); padding-left: 20px; position: relative; margin-bottom: 8px; }
.cc-lesson .comp-col.bad .comp-item::before { content: '×'; position: absolute; left: 0; color: #ff9aa9; }
.cc-lesson .comp-col.good .comp-item::before { content: '✓'; position: absolute; left: 0; color: #7ee2a2; }

.cc-lesson .example { background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px; }
.cc-lesson .example-header { padding: 10px 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.cc-lesson .example-header.bad { color: #ff9aa9; }
.cc-lesson .example-header.good { color: #7ee2a2; }
.cc-lesson .example-header.mid { color: var(--yellow); }
.cc-lesson .example-body, .cc-lesson pre.tpl { padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.65; color: var(--text); white-space: pre-wrap; margin: 0; }
.cc-lesson pre.tpl { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--yellow); margin: 18px 0; }

.cc-lesson .exercise { border: 1px dashed var(--yellow); padding: 24px 26px; margin: 36px 0; }
.cc-lesson .exercise-label { color: var(--yellow); }
.cc-lesson .exercise h3 { font-family: 'JetBrains Mono', monospace; font-size: 18px; margin: 0 0 12px; color: var(--text); }
.cc-lesson .exercise ol { margin: 0; padding-left: 22px; list-style: decimal; }
.cc-lesson .exercise ol li::marker { color: var(--yellow); font-family: 'JetBrains Mono', monospace; }
.cc-lesson .exercise li, .cc-lesson .exercise p { font-family: 'Geist', sans-serif; font-size: 15px; line-height: 1.65; color: var(--text-soft, var(--text-muted)); margin-bottom: 6px; }

.cc-lesson .takeaway { border: 1px solid var(--border); background: color-mix(in oklch, var(--yellow), transparent 95%); padding: 22px 26px; margin: 36px 0; }
.cc-lesson .takeaway h3 { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--yellow); margin: 0 0 12px; font-weight: 600; }

.cc-lesson table.trace { width: 100%; border-collapse: collapse; margin: 20px 0; font-family: 'Geist', sans-serif; font-size: 14px; }
.cc-lesson table.trace th, .cc-lesson table.trace td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--text-soft, var(--text-muted)); }
.cc-lesson table.trace th { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); background: var(--surface); }
.cc-lesson table.trace td:first-child { font-family: 'JetBrains Mono', monospace; color: var(--yellow); font-weight: 700; width: 46px; text-align: center; }
.cc-lesson .tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.cc-lesson .tier { background: var(--surface); border: 1px solid var(--border); padding: 16px; }
.cc-lesson .tier b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text); margin-bottom: 6px; }
.cc-lesson .tier span { font-family: 'Geist', sans-serif; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

.cc-next { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--border); padding: 20px 24px; margin-top: 44px; text-decoration: none; color: inherit; }
a.cc-next:hover { border-color: var(--yellow); }
.cc-next .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); }
.cc-next .ttl { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 600; margin-top: 4px; }

/* cookie banner (come nelle altre pagine interne) */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border); color: var(--text); padding: 18px 24px; z-index: 9999; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.cookie-banner.hidden { display: none; }
.cookie-content { max-width: 1280px; margin: 0 auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 200px; line-height: 1.5; color: var(--text-muted); }
.cookie-text a { color: var(--yellow); text-decoration: none; }
.cookie-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn { padding: 8px 18px; border: none; cursor: pointer; font-size: 12px; font-weight: 600; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.cookie-btn-accept { background: var(--yellow); color: #111; }
.cookie-btn-reject { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }

@media (max-width: 900px) {
  .cc-hero, .cc-book, .cc-lesson { padding-left: 20px; padding-right: 20px; }
  .cc-h1 { font-size: 30px; }
  .cc-lesson h1 { font-size: 28px; }
  .cc-sh, .cc-mod, .cc-faq { padding-left: 20px; padding-right: 20px; }
  .cc-mod { grid-template-columns: 1fr; gap: 6px; }
  .cc-book { grid-template-columns: 1fr; }
  .cc-lesson .comparison, .cc-lesson .tiers { grid-template-columns: 1fr; }
  .cc-row .tm-btn { width: 100%; justify-content: center; }
}
@media (max-width: 540px) {
  .cookie-content { flex-direction: column; gap: 12px; }
  .cookie-buttons { width: 100%; }
  .cookie-btn { flex: 1; }
}
