/* Articoli pubblici (guide e articoli per prop firm) — usato da includes/article_render.php e guides.php.
   Le tre guide del 2026-08 tengono ancora il loro CSS inline: questo file parte da quello. */

/* ── Hero ── */
.article-hero { padding: 140px 0 56px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 70%); position: relative; overflow: hidden; }
.article-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(226,232,240,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(226,232,240,.7) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.article-hero .container { position: relative; max-width: 820px; }
.article-hero .section-title { max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: .84rem; color: var(--muted); }
.article-meta strong { color: var(--text); font-weight: 600; }
.article-meta .dot { color: var(--faint); }

/* ── Riquadro di verifica (articoli per firm) ── */
.verify-box { margin-top: 22px; background: #fff; border: 1px solid rgba(5,150,105,.35); border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .86rem; color: var(--muted); line-height: 1.6; }
.verify-box strong { color: var(--text); }
.verify-box details { margin-top: 6px; }
.verify-box summary { cursor: pointer; color: var(--green); font-weight: 600; }
.verify-box ul { margin: 8px 0 0 18px; padding: 0; }
.verify-box li { margin: 3px 0; font-size: .82rem; }
.verify-box a { color: var(--green); }
.verify-box .stale { color: #B45309; font-weight: 600; }

/* ── Layout ── */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 60px; max-width: 1060px; margin: 0 auto; padding: 64px 24px 100px; align-items: start; }
/* Le celle delle tabelle sono nowrap: senza min-width:0 la colonna della griglia si allarga al min-content della tabella invece di lasciarla scorrere dentro .table-wrap */
.article-layout > * { min-width: 0; }
.article-body h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin: 52px 0 16px; padding-top: 8px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.article-body p { color: var(--muted); font-size: .97rem; line-height: 1.85; margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { color: var(--muted); font-size: .97rem; line-height: 1.75; margin-bottom: 6px; }
.article-body strong { color: var(--text); }
.article-body p a, .article-body li a, .article-body td a { color: var(--green); }
.article-body p a:hover, .article-body li a:hover { text-decoration: underline; }
.article-body .btn-primary { color: #fff !important; }
.article-body .btn-outline { color: var(--text) !important; }
.article-lead { font-size: 1.08rem !important; color: var(--text) !important; }

/* ── Tabelle (piani, payout) ── */
.table-wrap { overflow-x: auto; margin: 22px 0 26px; border: 1px solid var(--border); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.plans-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
.plans-table th, .plans-table td { padding: 10px 9px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); line-height: 1.5; }
.plans-table th { background: var(--surface); color: var(--text); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.35; }
.plans-table tr:last-child td { border-bottom: none; }
.plans-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
/* Prima colonna fissa: scorrendo la tabella da telefono la taglia dell'account resta visibile */
.plans-table th:first-child, .plans-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--border); }
.plans-table th:first-child { background: var(--surface); }
.plans-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: .78rem !important; color: var(--faint) !important; margin-top: -14px !important; line-height: 1.6 !important; }

/* ── Riquadri ── */
.article-pullquote { border-left: 3px solid var(--green); background: var(--green-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin: 28px 0; }
.article-pullquote p { font-size: 1.05rem !important; font-weight: 600; color: var(--green) !important; line-height: 1.6 !important; margin-bottom: 0 !important; font-style: italic; }
.callout { border: 1px solid var(--border); border-left: 4px solid var(--blue, #2563EB); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 24px 0; }
.callout p, .callout li { font-size: .9rem !important; margin-bottom: 8px !important; }
.callout p:last-child { margin-bottom: 0 !important; }
.callout-warn { border-left-color: #D97706; background: #FFFBEB; }
.callout-title { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.article-feature-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin: 28px 0; }
.article-feature-box .feature-box-title { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.article-feature-box .feature-box-title svg { width: 16px; height: 16px; flex-shrink: 0; }
.article-feature-box ul { padding-left: 0; list-style: none; margin-bottom: 0; }
.article-feature-box li { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.article-feature-box li:last-child { border-bottom: none; padding-bottom: 0; }
.article-feature-box li::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; background: rgba(5,150,105,.1); border-radius: 4px; margin-top: 1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; }

/* ── CTA ── */
.article-cta-inline { background: linear-gradient(135deg, var(--green-bg) 0%, #EFF6FF 100%); border: 1px solid rgba(5,150,105,.2); border-radius: var(--radius); padding: 32px; margin: 36px 0; text-align: center; }
.article-cta-inline h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; color: var(--text); }
.article-cta-inline p { font-size: .88rem !important; color: var(--muted) !important; margin-bottom: 20px !important; }
.firm-cta { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 32px 0; }
.firm-cta img { width: 220px; max-width: 40%; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.firm-cta h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 6px; color: var(--text); }
.firm-cta p { font-size: .86rem !important; margin-bottom: 12px !important; }
.article-bottom-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; margin-top: 60px; }
.article-bottom-cta h2 { font-size: 1.8rem !important; font-weight: 900 !important; letter-spacing: -.04em; margin: 0 0 12px !important; }
.article-bottom-cta p { color: var(--muted); font-size: 1rem !important; margin-bottom: 28px !important; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ── */
.faq-list { margin: 10px 0 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; font-weight: 700; color: var(--text); font-size: .95rem; position: relative; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--green); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 18px 16px; }
.faq-item .faq-a p { margin-bottom: 10px; font-size: .92rem !important; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ── Registro delle modifiche ── */
.changelog { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 22px; }
.changelog h2 { font-size: 1.05rem !important; margin: 0 0 12px !important; }
.changelog ul { list-style: none; padding: 0; margin: 0; }
.changelog li { font-size: .86rem; color: var(--muted); padding: 7px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 14px; }
.changelog li:last-child { border-bottom: none; }
.changelog time { color: var(--text); font-weight: 600; white-space: nowrap; min-width: 112px; }

/* ── Autore ── */
.author-box { display: flex; gap: 14px; align-items: center; margin-top: 44px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.author-box .avatar { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.author-box p { margin: 0 !important; font-size: .86rem !important; line-height: 1.55 !important; }
.author-box p strong { display: block; font-size: .95rem; }

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 84px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.sidebar-card h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 14px; }
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.toc-list a { display: block; font-size: .83rem; color: var(--muted); font-weight: 500; padding: 5px 10px; border-radius: 6px; transition: background .15s, color .15s; line-height: 1.4; }
.toc-list a:hover { background: var(--surface2, #F1F5F9); color: var(--text); }
.toc-list a.active { background: var(--green-bg); color: var(--green); }
.sidebar-cta { background: var(--green); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; text-align: center; color: #fff; }
.sidebar-cta h4 { font-size: .95rem; font-weight: 700; margin: 0 0 8px; color: #fff; }
.sidebar-cta p { font-size: .8rem; color: rgba(255,255,255,.8); margin-bottom: 16px; line-height: 1.5; }
.btn-white-sm { display: inline-block; background: #fff; color: var(--green); font-size: .82rem; font-weight: 700; padding: 9px 20px; border-radius: 8px; transition: opacity .15s; }
.btn-white-sm:hover { opacity: .9; }
.sidebar-related a { display: block; font-size: .84rem; color: var(--text); font-weight: 600; padding: 7px 0; border-bottom: 1px solid var(--border); line-height: 1.4; }
.sidebar-related a:last-child { border-bottom: none; }
.sidebar-related a:hover { color: var(--green); }

/* ── Indice /guides ── */
.guides-hero { padding: 140px 0 48px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 70%); }
.guides-hero .section-sub { margin-left: 0; margin-right: 0; text-align: left; }
.guides-section { max-width: 1060px; margin: 0 auto; padding: 48px 24px 24px; }
.guides-section h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.guides-section .guides-sub { color: var(--muted); font-size: .92rem; margin: 0 0 22px; line-height: 1.6; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: box-shadow .18s, transform .15s; color: inherit; }
.guide-card:hover { box-shadow: 0 6px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.guide-card .guide-icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.guide-card h3 { font-size: .98rem; font-weight: 700; margin: 0 0 4px; color: var(--text); line-height: 1.35; }
.guide-card .guide-kind { font-size: .68rem; color: var(--faint); font-weight: 600; margin-bottom: 6px; }
.guide-card p { font-size: .84rem; color: var(--muted); line-height: 1.55; margin: 0; }
.guide-card.has-cover { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.guide-card.has-cover .guide-body { padding: 16px 18px 18px; }
.guide-cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-bottom: 1px solid var(--border); }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 30px; }
.guides-footer-cta { max-width: 1060px; margin: 24px auto 90px; padding: 0 24px; }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; padding: 44px 24px 80px; }
  .article-sidebar { position: static; display: none; }
  .firm-cta { flex-direction: column; align-items: flex-start; }
  .firm-cta img { max-width: 100%; width: 100%; }
}
@media (max-width: 560px) {
  .article-hero { padding: 110px 0 40px; }
  .guides-hero { padding: 110px 0 36px; }
  .article-bottom-cta { padding: 36px 20px; }
  .article-feature-box { padding: 20px; }
  .article-cta-inline { padding: 24px 18px; }
  .changelog li { flex-direction: column; gap: 2px; }
}
