/* Tipografia: titoli, paragrafi, link, font */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem; /* Spaziatura standard sotto i titoli */
}

h1 {
    font-size: 2rem; /* 32px */
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem; /* 28px */
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

h3 {
    font-size: 1.375rem; /* 22px */
    font-weight: 600;
}

h4 {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

strong, b {
    font-weight: 600;
    color: var(--text-primary);
}

em, i {
    font-style: italic;
}

small {
    font-size: 0.875em;
}

pre, code, kbd, samp {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
}

pre {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--border-radius);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 1rem 0;
    box-shadow: var(--shadow-inner);
    overflow-x: auto;
}

hr {
    border: 0;
    border-top: 1px solid var(--bg-tertiary);
    margin: 2rem 0;
}