/* Pagina: Tipografia
 * Creata: 2026-03-19 da Claude
 * Descrizione: Showcase tipografico del design system Auvisa
 */

/* --- Hero overrides --- */
.tipografia .hero {
    background-image: url('/assets/images/tipografia/hero.jpg');
}

/* --- Font Showcase --- */
.typo-showcase {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.typo-showcase__font {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef0f3;
}

.typo-showcase__name {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1f5184;
    margin-bottom: 4px;
}

.typo-showcase__fallback {
    font-size: 13px;
    color: #6c757d;
    font-family: monospace;
}

.typo-showcase__sample {
    font-size: 24px;
    color: #212529;
    line-height: 1.8;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.typo-showcase__sample--it {
    color: #1f5184;
}

/* --- Font Weights --- */
.typo-weights {
    max-width: 800px;
    margin: 0 auto;
}

.typo-weight {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}

.typo-weight:last-child {
    border-bottom: none;
}

.typo-weight__sample {
    font-size: 24px;
    color: #212529;
}

.typo-weight__meta {
    font-size: 13px;
    color: #6c757d;
    text-align: right;
    flex-shrink: 0;
}

/* --- Headings --- */
.typo-headings {
    max-width: 800px;
    margin: 0 auto;
}

.typo-heading {
    padding: 28px 0;
    border-bottom: 1px solid #eef0f3;
}

.typo-heading:last-child {
    border-bottom: none;
}

.typo-heading__label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.typo-heading__preview--h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1f5184;
    line-height: 1.2;
    border-bottom: 4px solid #28a745;
    display: inline-block;
    padding-bottom: 8px;
}

.typo-heading__preview--h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f5184;
    text-align: center;
}

.typo-heading__preview--h2-article {
    font-size: 26px;
    font-weight: 700;
    color: #1f5184;
}

.typo-heading__preview--h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f5184;
}

.typo-heading__preview--h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1f5184;
}

.typo-heading__specs {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
    font-family: monospace;
}

/* --- Text Colors --- */
.typo-colors {
    max-width: 800px;
    margin: 0 auto;
}

.typo-color {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #eef0f3;
    flex-wrap: wrap;
}

.typo-color:last-child {
    border-bottom: none;
}

.typo-color__swatch {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
}

.typo-color__info {
    min-width: 160px;
}

.typo-color__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 2px;
}

.typo-color__info code {
    font-size: 13px;
    color: #6c757d;
    background: #f5f5f7;
    padding: 2px 8px;
    border-radius: 4px;
}

.typo-color__sample {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    min-width: 200px;
}

/* --- Text Styles --- */
.typo-styles {
    max-width: 800px;
    margin: 0 auto;
}

.typo-style {
    padding: 28px 0;
    border-bottom: 1px solid #eef0f3;
}

.typo-style:last-child {
    border-bottom: none;
}

.typo-style__label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.typo-style__preview {
    margin-bottom: 10px;
}

.typo-style__specs {
    font-size: 12px;
    color: #6c757d;
    font-family: monospace;
}

/* --- Responsive --- */
@media (min-width: 768px) {

    .typo-showcase__sample {
        font-size: 28px;
    }

    .typo-heading__preview--h1 {
        font-size: 40px;
    }

    .typo-heading__preview--h2 {
        font-size: 34px;
    }

    .typo-heading__preview--h2-article {
        font-size: 32px;
    }

    .typo-weight__sample {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {

    .typo-heading__preview--h1 {
        font-size: 48px;
    }

    .typo-heading__preview--h2 {
        font-size: 38px;
    }

    .typo-heading__preview--h2-article {
        font-size: 36px;
    }
}
