/* Blog Money - Public Styles */

/* ── PROSE CONTENT (corpo articolo) ─────────────────────── */
.prose-content {
    font-size: 1.08rem;
    line-height: 2;
    color: #374151;
    font-family: 'Georgia', serif;
}

.prose-content p {
    margin-top: 0;
    margin-bottom: 1.8rem;
}

.prose-content p:empty,
.prose-content p:has(> br:only-child),
.prose-content p > br:only-child {
    display: block;
    height: 0.8rem;
    margin: 0;
}

.prose-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding-bottom: .6rem;
    border-bottom: 3px solid #3b82f6;
    line-height: 1.25;
    font-family: system-ui, -apple-system, sans-serif;
}

.prose-content h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1.1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e5e7eb;
    line-height: 1.3;
    font-family: system-ui, -apple-system, sans-serif;
}

.prose-content h3 {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.4rem;
    margin-bottom: .85rem;
    line-height: 1.4;
    font-family: system-ui, -apple-system, sans-serif;
}

.prose-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: .6rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.prose-content ul {
    list-style: disc;
    margin: 1.4rem 0 1.6rem 1.75rem;
    space-y: .5rem;
}

.prose-content ol {
    list-style: decimal;
    margin: 1.4rem 0 1.6rem 1.75rem;
}

.prose-content li {
    margin-bottom: .65rem;
    padding-left: .25rem;
}

.prose-content li::marker {
    color: #3b82f6;
}

.prose-content strong {
    font-weight: 700;
    color: #111827;
}

.prose-content em {
    font-style: italic;
    color: #4b5563;
}

.prose-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
}

.prose-content a:hover {
    color: #1d4ed8;
}

.prose-content a.link-interno {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #3b82f6;
    font-weight: 500;
}

.prose-content a.link-interno:hover {
    text-decoration-style: solid;
    color: #1d4ed8;
}

.prose-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: 1.1rem 1.5rem;
    margin: 2rem 0;
    background: #f0f7ff;
    color: #374151;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.prose-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: .95rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.prose-content th {
    background: #f3f4f6;
    padding: .75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.prose-content td {
    padding: .65rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.prose-content tr:hover td {
    background: #f9fafb;
}

/* Primo paragrafo più grande (lead) */
.prose-content > p:first-of-type {
    font-size: 1.15rem;
    line-height: 2;
    color: #1f2937;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html { scroll-behavior: smooth; }

/* Barra progresso lettura */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 9999;
    transition: width .1s linear;
}
