:root {
      --blue:       #4B6BF5;
      --blue-light: #6B83F7;
      --blue-pale:  #EEF2FF;
      --ink:        #111827;
      --night:      #0D1B2E;
      --mid:        #6B7280;
      --canvas:     #F9FAFB;
      --white:      #FFFFFF;
      --rule:       #E5E7EB;
      --yellow:     #F5C518;
      --radius:     10px;
      --radius-pill:100px;
    }
    mark {
      background: linear-gradient(transparent 58%, var(--mark) 58%);
      color: inherit; padding: 0 2px; border-radius: 2px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: var(--white);
      color: var(--ink);
      -webkit-font-smoothing: antialiased;
    }
    a { text-decoration: none; color: inherit; }

    /* ─── HEADER ─── */
    .header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--rule);
    }
    .header-inner {
      max-width: 1160px; margin: 0 auto; padding: 0 32px;
      height: 64px; display: flex; align-items: center; justify-content: space-between;
    }
    .logo {
      display: flex; align-items: center; gap: 8px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px; font-weight: 800;
      color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase;
    }
    .logo-mark {
      width: 24px; height: 24px;
      background: var(--yellow);
      clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
      transform: rotate(180deg); flex-shrink: 0;
    }
    .header-back {
      display: flex; align-items: center; gap: 6px;
      font-size: 13px; font-weight: 600; color: var(--mid);
      border: 1px solid var(--rule); border-radius: var(--radius-pill);
      padding: 6px 14px; transition: border-color 0.15s, color 0.15s;
    }
    .header-back:hover { border-color: var(--mid); color: var(--ink); }
    .header-actions { display: flex; gap: 10px; align-items: center; }
    .btn-ghost {
      padding: 8px 18px; border: 1.5px solid var(--rule);
      border-radius: var(--radius-pill); font-size: 14px; font-weight: 600;
      color: var(--ink); cursor: pointer; font-family: inherit;
      transition: border-color 0.15s; background: transparent;
    }
    .btn-ghost:hover { border-color: var(--mid); }
    .btn-primary {
      padding: 9px 20px; background: var(--yellow); color: var(--ink);
      border: none; border-radius: var(--radius-pill);
      font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
      transition: background 0.15s;
    }
    .btn-primary:hover { background: #E0B400; }

    /* ─── HERO EPISODIO ─── */
    .episode-hero {
      background: var(--night);
      padding: 60px 24px 0;
      position: relative;
      overflow: hidden;
    }
    .episode-hero::before {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(ellipse at 70% 50%, rgba(27,93,184,0.18) 0%, transparent 70%);
    }
    .episode-hero-thumb {
      position: absolute; top: 0; right: 0; bottom: 0;
      width: 45%; z-index: 0;
    }
    .episode-hero-thumb img {
      width: 100%; height: 100%;
      object-fit: cover; object-position: center;
      opacity: 0.25;
      mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 40%, black 100%);
      -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 40%, black 100%);
    }
    .episode-hero-inner {
      max-width: 760px; margin: 0 auto;
      position: relative; z-index: 1;
    }
    .episode-breadcrumb {
      display: flex; align-items: center; gap: 8px;
      font-size: 13px; color: rgba(255,255,255,0.5);
      margin-bottom: 28px;
    }
    .episode-breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
    .episode-breadcrumb a:hover { color: white; }
    .episode-breadcrumb span { color: rgba(255,255,255,0.25); }
    .episode-cat-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(75,107,245,0.15); color: #6B83F7;
      border: 1px solid rgba(75,107,245,0.25);
      padding: 5px 12px; border-radius: 100px;
      font-size: 12px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.06em;
      margin-bottom: 18px;
    }
    .episode-hero h1 {
      font-family: 'Fraunces', serif;
      font-size: 42px; font-weight: 900;
      color: white; line-height: 1.1;
      letter-spacing: -1.5px; margin-bottom: 20px;
    }
    .episode-hero h1 em {
      color: var(--blue-light); font-style: normal;
    }
    .episode-meta-row {
      display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
      padding: 20px 0;
      border-top: 1px solid rgba(255,255,255,0.1);
    }
    .meta-item {
      display: flex; align-items: center; gap: 7px;
      font-size: 13px; color: rgba(255,255,255,0.6);
    }
    .meta-item strong { color: white; font-weight: 600; }
    .meta-dot { width: 4px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 50%; }
    .read-time-badge {
      display: flex; align-items: center; gap: 6px;
      background: rgba(255,255,255,0.1); color: white;
      padding: 5px 14px; border-radius: 100px;
      font-size: 13px; font-weight: 700;
      margin-left: auto;
    }

    /* ─── PROGRESS BAR ─── */
    .progress-bar {
      position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
      height: 3px; background: transparent;
    }
    .progress-fill {
      height: 100%; background: var(--blue);
      width: 0%; transition: width 0.1s linear;
    }

    /* ─── LAYOUT ARTICOLO ─── */
    .article-layout {
      max-width: 1160px; margin: 0 auto;
      padding: 48px 24px;
      display: grid;
      grid-template-columns: 1fr 280px;
      gap: 48px;
      align-items: start;
    }

    /* ─── CONTENT ─── */
    .article-content { min-width: 0; }

    .intro-block {
      background: white; border-radius: var(--radius);
      padding: 32px; margin-bottom: 32px;
      box-shadow: var(--shadow);
    }
    .intro-block h2 {
      font-size: 13px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--blue); margin-bottom: 14px;
    }
    .intro-block p {
      font-family: 'Lora', Georgia, serif;
      font-size: 17px; line-height: 1.75;
      color: #374151; margin-bottom: 16px;
    }
    .intro-block p:last-child { margin-bottom: 0; }

    /* Takeaways */
    .takeaways-header {
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 24px;
    }
    .takeaways-header h2 {
      font-size: 22px; font-weight: 900; letter-spacing: -0.5px;
    }
    .takeaways-count {
      background: var(--blue-pale); color: var(--blue);
      font-size: 12px; font-weight: 800;
      padding: 4px 10px; border-radius: 100px;
    }

    .takeaway {
      background: white; border-radius: var(--radius);
      padding: 28px 32px; margin-bottom: 16px;
      box-shadow: var(--shadow);
      border-left: 3px solid transparent;
      transition: border-color 0.2s;
    }
    .takeaway:hover { border-left-color: var(--blue); }

    .takeaway-num {
      display: inline-flex; align-items: center; justify-content: center;
      width: 28px; height: 28px;
      background: var(--blue-pale); color: var(--blue);
      border-radius: 50%; font-size: 13px; font-weight: 800;
      margin-bottom: 12px;
    }
    .takeaway h3 {
      font-size: 18px; font-weight: 800;
      letter-spacing: -0.3px; line-height: 1.25;
      margin-bottom: 16px; color: var(--ink);
    }
    .takeaway p {
      font-family: 'Lora', Georgia, serif;
      font-size: 16px; line-height: 1.75;
      color: #374151; margin-bottom: 16px;
    }
    .takeaway blockquote {
      margin: 20px 0;
      padding: 16px 20px;
      background: var(--white);
      border-left: 3px solid var(--blue);
      border-radius: 0 10px 10px 0;
    }
    .takeaway blockquote p {
      font-family: 'Lora', Georgia, serif;
      font-size: 15px; font-style: italic;
      color: var(--ink); margin-bottom: 6px;
    }
    .takeaway blockquote cite {
      font-size: 12px; font-weight: 700;
      color: var(--mid); font-style: normal;
      text-transform: uppercase; letter-spacing: 0.05em;
    }
    .takeaway-application {
      background: #F0F4FF;
      border-radius: 8px;
      padding: 16px 18px;
      margin-top: 16px;
      border-left: 3px solid #6366F1;
    }
    .takeaway-application strong {
      display: block; font-size: 11px; font-weight: 800;
      color: #4F46E5; text-transform: uppercase;
      letter-spacing: 0.08em; margin-bottom: 6px;
    }
    .takeaway-application p {
      font-family: 'Inter', sans-serif;
      font-size: 14px; line-height: 1.6;
      color: #312E81; margin: 0;
    }

    /* Citazioni */
    .quotes-block {
      background: var(--night); border-radius: var(--radius);
      padding: 32px; margin: 32px 0;
    }
    .quotes-block h2 {
      font-size: 13px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: rgba(255,255,255,0.4); margin-bottom: 24px;
    }
    .quote-item {
      padding: 20px 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .quote-item:last-child { border-bottom: none; padding-bottom: 0; }
    .quote-item blockquote {
      font-family: 'Lora', Georgia, serif;
      font-size: 17px; font-style: italic;
      line-height: 1.6; color: white;
      margin-bottom: 8px;
    }
    .quote-item cite {
      font-size: 12px; font-weight: 700;
      color: var(--blue-light);
      text-transform: uppercase; letter-spacing: 0.06em;
    }

    /* Tesi di investimento */
    .tesi-block {
      display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
      margin: 0 0 32px;
    }
    .tesi-col {
      border-radius: var(--radius); padding: 24px;
    }
    .tesi-col--cerca { background: #f0fdf4; }
    .tesi-col--evita { background: #fff1f2; }
    .tesi-label {
      font-size: 11px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em;
      margin-bottom: 12px;
    }
    .tesi-col--cerca .tesi-label { color: #166534; }
    .tesi-col--evita .tesi-label { color: #9f1239; }
    .tesi-col ul { list-style: none; padding: 0; margin: 0; }
    .tesi-col ul li {
      font-size: 13px; line-height: 1.6; color: var(--ink);
      padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .tesi-col ul li:last-child { border-bottom: none; }
    @media (max-width: 600px) { .tesi-block { grid-template-columns: 1fr; } }

    /* Protocolli */
    .protocols-block {
      background: white; border-radius: var(--radius);
      padding: 32px; margin: 0 0 32px; box-shadow: var(--shadow);
      overflow-x: auto;
    }
    .protocols-block h2 {
      font-size: 13px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--ink); margin-bottom: 20px;
    }
    .protocols-table {
      width: 100%; border-collapse: collapse; font-size: 13px;
    }
    .protocols-table th {
      text-align: left; font-size: 11px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.06em;
      color: var(--mid); padding: 0 12px 10px 0;
      border-bottom: 2px solid var(--rule);
    }
    .protocols-table td {
      padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule);
      vertical-align: top; line-height: 1.5; color: var(--ink);
    }
    .protocols-table tr:last-child td { border-bottom: none; }
    .protocols-table td:first-child { font-weight: 500; }
    .ev-badge {
      display: inline-block; padding: 2px 8px; border-radius: 100px;
      font-size: 11px; font-weight: 700;
    }
    .ev-badge--alta { background: #d1fae5; color: #065f46; }
    .ev-badge--media { background: #fef3c7; color: #92400e; }
    .ev-badge--bassa { background: #fee2e2; color: #991b1b; }

    /* Routine e abitudini */
    .routines-block {
      background: white; border-radius: var(--radius);
      padding: 32px; margin: 0 0 32px; box-shadow: var(--shadow);
    }
    .routines-block h2 {
      font-size: 13px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--ink); margin-bottom: 20px;
    }
    .routine-group {
      margin-bottom: 20px;
    }
    .routine-group:last-child { margin-bottom: 0; }
    .routine-group-label {
      font-size: 11px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--blue); margin-bottom: 8px;
    }
    .routine-group ul {
      list-style: none; padding: 0; margin: 0;
    }
    .routine-group ul li {
      font-size: 14px; line-height: 1.6; color: var(--ink);
      padding: 5px 0 5px 18px; position: relative;
      border-bottom: 1px solid var(--rule);
    }
    .routine-group ul li:last-child { border-bottom: none; }
    .routine-group ul li::before {
      content: '·'; position: absolute; left: 0;
      color: var(--blue); font-weight: 700;
    }

    /* Da fare */
    .actions-block {
      background: white; border-radius: var(--radius);
      padding: 32px; margin: 0 0 32px; box-shadow: var(--shadow);
    }
    .actions-block h2 {
      font-size: 13px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--blue); margin-bottom: 20px;
    }
    .action-item {
      display: flex; gap: 16px; align-items: flex-start;
      padding: 14px 0; border-bottom: 1px solid var(--rule);
    }
    .action-item:last-child { border-bottom: none; padding-bottom: 0; }
    .action-num {
      width: 28px; height: 28px; flex-shrink: 0;
      background: var(--ink); color: white;
      border-radius: 50%; font-size: 13px; font-weight: 800;
      display: flex; align-items: center; justify-content: center;
    }
    .action-item p { font-size: 14px; line-height: 1.6; color: var(--ink); }
    .action-item p strong { font-weight: 700; }

    /* In una frase */
    .one-liner {
      background: linear-gradient(135deg, var(--blue) 0%, #FF8A50 100%);
      border-radius: var(--radius); padding: 36px 32px;
      text-align: center; margin-bottom: 32px;
    }
    .one-liner p {
      font-family: 'Lora', Georgia, serif;
      font-size: 22px; font-style: italic;
      font-weight: 600; color: white; line-height: 1.4;
    }
    .one-liner cite {
      display: block; margin-top: 10px;
      font-size: 12px; font-weight: 700;
      color: rgba(255,255,255,0.65);
      text-transform: uppercase; letter-spacing: 0.08em;
    }

    /* Footer episodio */
    .episode-footer-note {
      text-align: center; padding: 20px;
      font-size: 13px; color: var(--mid);
      border-top: 1px solid var(--rule);
    }
    .episode-footer-note a { color: var(--blue); font-weight: 600; }

    /* ─── SIDEBAR ─── */
    .sidebar { position: sticky; top: 80px; }

    .sidebar-card {
      background: white; border-radius: var(--radius);
      padding: 24px; box-shadow: var(--shadow);
      margin-bottom: 16px;
    }
    .sidebar-card h3 {
      font-size: 11px; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--mid); margin-bottom: 16px;
    }

    /* TOC */
    .toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
    .toc-list a {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 7px 10px; border-radius: 8px;
      font-size: 13px; color: var(--mid);
      transition: background 0.15s, color 0.15s;
      line-height: 1.35;
    }
    .toc-list a:hover { background: var(--white); color: var(--ink); }
    .toc-list a.active { background: var(--blue-pale); color: var(--blue); font-weight: 600; }
    .toc-num {
      font-size: 10px; font-weight: 800;
      color: var(--blue); background: var(--blue-pale);
      width: 18px; height: 18px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; margin-top: 1px;
    }

    /* Podcast info */
    .podcast-info { display: flex; gap: 12px; align-items: center; }
    .podcast-thumb {
      width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0;
      background: linear-gradient(135deg, #f6d365, #fda085);
      display: flex; align-items: center; justify-content: center;
      font-size: 24px; overflow: hidden;
    }
    .podcast-thumb img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .podcast-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
    .podcast-sub { font-size: 12px; color: var(--mid); }

    /* Tags */
    .tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
    .tag {
      background: var(--white); color: var(--mid);
      font-size: 11px; font-weight: 600;
      padding: 4px 10px; border-radius: 100px;
      border: 1px solid var(--rule);
    }

    /* CTA sidebar */
    .sidebar-cta {
      background: var(--night); border-radius: var(--radius);
      padding: 24px; text-align: center;
    }
    .sidebar-cta p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 16px; }
    .sidebar-cta strong { color: white; display: block; font-size: 16px; margin-bottom: 8px; }
    .btn-cta {
      display: block; width: 100%;
      background: var(--blue); color: white;
      padding: 12px; border-radius: 8px;
      font-size: 14px; font-weight: 800;
      text-align: center; cursor: pointer;
      transition: background 0.2s;
    }
    .btn-cta:hover { background: var(--blue-light); }
    .sidebar-cta-note { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 8px; }

    /* Share */
    .share-btns { display: flex; gap: 8px; }
    .share-btn {
      flex: 1; padding: 9px; border-radius: 8px;
      border: 1.5px solid var(--rule); background: white;
      font-size: 12px; font-weight: 700; color: var(--ink);
      cursor: pointer; text-align: center;
      transition: border-color 0.2s, background 0.2s;
    }
    .share-btn:hover { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); }

    /* ─── RELATED ─── */
    .related-section {
      background: white; border-top: 1px solid var(--rule);
      padding: 60px 24px;
    }
    .related-inner { max-width: 1160px; margin: 0 auto; }
    .related-inner h2 {
      font-size: 22px; font-weight: 900;
      letter-spacing: -0.5px; margin-bottom: 28px;
    }
    .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .related-card {
      background: var(--white); border-radius: var(--radius);
      overflow: hidden; cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
    .related-thumb {
      height: 100px; display: flex; align-items: center;
      justify-content: center; font-size: 32px;
    }
    .related-body { padding: 14px; }
    .related-cat { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
    .related-title { font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--ink); margin-bottom: 5px; }
    .related-meta { font-size: 11px; color: var(--mid); }

    /* ─── FOOTER ─── */
    .footer {
      background: var(--ink); color: rgba(255,255,255,0.4);
      padding: 32px 24px; text-align: center;
      font-size: 13px;
    }
    .footer a { color: var(--blue-light); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 900px) {
      .header-inner { padding: 0 20px; }
      .article-layout { grid-template-columns: 1fr; }
      .sidebar { position: static; }
      .related-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .header-inner { padding: 0 16px; }
      .header-actions { display: none; }
      .episode-hero { padding: 40px 20px 0; }
      .episode-hero h1 { font-size: 26px; letter-spacing: -0.5px; line-height: 1.2; }
      .episode-hero-inner { padding: 0 0 40px; }
      .article-body { padding: 24px 20px 60px; }
      .related-grid { grid-template-columns: 1fr; }
      .takeaway { padding: 20px 18px; }
      .takeaway h3 { font-size: 16px; }
      .intro-block, .quotes-block, .actions-block { padding: 20px 18px; }
      .paywall-gate { padding: 36px 20px 32px; }
      .paywall-gate h3 { font-size: 20px; }
    }

    /* ─── PAYWALL ─── */
    .paywall-gate {
      margin: 40px 0;
      border-radius: 16px;
      background: linear-gradient(to bottom, rgba(249,250,251,0) 0%, #F9FAFB 40%);
      padding: 48px 32px 40px;
      text-align: center;
      border: 1px solid var(--rule);
    }
    .paywall-lock {
      font-size: 32px;
      margin-bottom: 12px;
    }
    .paywall-gate h3 {
      font-family: 'Fraunces', serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 10px;
    }
    .paywall-gate p {
      color: var(--mid);
      font-size: 15px;
      max-width: 380px;
      margin: 0 auto 24px;
      line-height: 1.6;
    }
    .paywall-btn {
      display: inline-block;
      background: var(--blue);
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      padding: 13px 28px;
      border-radius: 100px;
      text-decoration: none;
      transition: background .15s;
    }
    .paywall-btn:hover { background: #3B5AE0; }
    .paywall-login {
      display: block;
      margin-top: 14px;
      font-size: 13px;
      color: var(--mid);
      text-decoration: none;
    }
    .paywall-login:hover { color: var(--blue); }