/* =========================================
   TEMPLATE ARTICOLO BLOG TUOMETABOLISMO
   CSS autonomo: caricare al posto di
   style.article.css nel template Blog
========================================= */

body {
    margin: 0;
    background: #edf7fb;
    color: #294b59;
    font-family: "Inter", "Lato", sans-serif;
}

/* Barra superiore */

.doc-article-header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100% - 32px, 980px);
    margin: 18px auto 12px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #d7eaf2;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(10, 85, 115, .07);
}

.doc-article-info {
    margin: 0;
    color: #527987;
    font-size: .78rem;
    line-height: 1.45;
}

.doc-article-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.doc-article-brand img {
    display: block;
    width: 176px;
    max-width: 100%;
    height: auto;
}

.doc-article-brand span {
    color: #076787;
}

#article-auth-status {
    display: inline-block;
    padding: .3rem .65rem;
    border: 1px solid #cfe6ef;
    border-radius: 999px;
    background: #f0f9fc;
    color: #397184;
    font-size: .78rem;
    white-space: nowrap;
}

.doc-article-close {
    padding: .65rem .95rem;
    border: 0;
    border-radius: 999px;
    background: #e5f4fa;
    color: #076787;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.doc-article-close:hover {
    background: #076787;
    color: #fff;
}

/* Metadati e comandi */

.doc-article-meta {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .55rem;
    width: min(100% - 32px, 980px);
    margin: 0 auto 14px;
    padding: 11px 16px;
    border: 1px solid #d7eaf2;
    border-radius: 14px;
    background: #e1f2f9;
    color: #356a7c;
    font-size: .88rem;
    box-shadow: none;
    text-align: center;
}

.doc-article-separator {
    display: inline-block;
    width: 1px;
    height: 15px;
    margin: 0 5px;
    background: #9cc9d9;
    vertical-align: middle;
}

/* Contenitore principale */

.doc-article-page {
    box-sizing: border-box;
    position: relative;
    width: min(100% - 32px, 980px);
    margin: 0 auto 40px;
    padding: clamp(22px, 5vw, 52px);
    border: 1px solid #d7eaf2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(10, 85, 115, .08);
}

/* Contenuto generato dall'editor */

.article {
    color: #294b59;
    font-family: "Inter", "Lato", sans-serif;
    font-size: 1.06rem;
    line-height: 1.75;
}

.article h1,
.article h2,
.article h3 {
    font-family: "Inter", "Lato", sans-serif;
    text-align: left;
}

/* Titolo principale */

.article h1 {
    margin: 0 0 1.4rem;
    color: #075f7d;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

/* Titoli di sezione */

.article h2 {
    position: relative;
    margin: 2.3rem 0 .9rem;
    padding: .7rem 1rem;
    border: 0;
    border-left: 4px solid #24a5c7;
    border-radius: 0 12px 12px 0;
    background: #edf8fc;
    color: #075f7d;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 750;
    line-height: 1.35;
}

.article h2::before {
    content: none;
}

/* Sottotitoli */

.article h3 {
    margin: 1.5rem 0 .55rem;
    padding: 0;
    color: #087b9b;
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.4;
}

/* Paragrafi */

.article p {
    margin: .75rem 0 1rem;
    padding: 0;
    color: #294b59;
    font-size: 1.16rem;
    line-height: 1.8;
    text-align: left;
}

/* Testo in evidenza */

.article b,
.article strong {
    color: #076787;
    font-weight: 750;
}

/* Liste */

.article ul,
.article ol {
    margin: 1rem 0 1.3rem;
    padding-left: 1.5rem;
}

.article ul {
    list-style: disc;
}

.article li {
    margin: .55rem 0;
    padding-left: .25rem;
    color: #315866;
    background: transparent;
    font-size: 1.12rem;
    line-height: 1.7;
    font-weight: 450;
    filter: none;
}

.article li::before {
    content: none;
}

.article li::marker {
    color: #18a0c2;
}

/* Separatore */

.article hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #d8eaf1;
}

/* Immagini */

.article img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.article-image {
    display: block;
    margin: 1.2rem auto 1.5rem;
}

/* Tabelle */

.article table {
    width: 100%;
	table-layout: auto;
    margin: 1.7rem 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #d4e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 1.1rem;
    line-height: 1.5;
}

.article-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}



.article table.table-scroll {
    table-layout: auto;
    width: var(--table-width);
    min-width: var(--table-width);
    max-width: none;
    margin: 1.7rem 0;
}

.article table th:first-child,
.article table td:first-child {
    min-width: 120px;
    box-sizing: border-box;
}

.article table th {
    padding: 12px 14px;
    background: #076787;
    color: #fff;
    text-align: left;
    font-weight: 700;
}

.article table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e1edf2;
    color: #294b59;
    vertical-align: top;
}

.article table tbody tr:nth-child(odd) {
    background: #f4fafc;
}

.article table tbody tr:nth-child(even) {
    background: #fff;
}

.article table tbody tr:last-child td {
    border-bottom: 0;
}

.article table tbody td:not(:first-child) {
    text-align: center;
}

.article table tbody td:first-child {
    color: #075f7d;
    font-weight: 700;
}

/* Tag */

.doc-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
}

.doc-article-tag {
    padding: .35rem .8rem;
    border: 1px solid #d4eaf2;
    border-radius: 999px;
    background: #eff9fc;
    color: #31758b;
    font-size: .8rem;
}

/* Indice e versione semplificata */

#simplified-button,
#navigator-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #076787;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#simplified-button:hover,
#navigator-button:hover {
    color: #1198bd;
    text-decoration: underline;
}

#navigator-button.active {
    color: #075f7d;
    font-weight: 800;
}

/* Condivisione */

.article-share-button {
    background: #076787;
}

.article-share-button:hover {
    background: #054e68;
}

.article-share-menu {
    border: 1px solid #d4e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(10, 85, 115, .16);
}

.article-share-menu button {
    color: #075f7d;
}

.doc-article-context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 20px;
    color: #08658a;
}

.doc-article-context-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.doc-article-context-name {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

.doc-article-context-divider {
    width: 1px;
    height: 24px;
    background: #a8d5e7;
}

.doc-article-context-brand {
    font-size: 1rem;
    letter-spacing: 0.04em;
}



/* Responsive */

@media (max-width: 480px) {
    .doc-article-context {
        gap: 10px;
    }

    .doc-article-context-name {
        font-size: 1rem;
    }

    .doc-article-context-brand {
        font-size: 0.85rem;
    }

    .doc-article-context-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 650px) {

    .doc-article-header,
    .doc-article-meta,
    .doc-article-page {
        width: calc(100% - 20px);
    }

    .doc-article-header {
        flex-wrap: wrap;
        gap: .8rem;
        margin-top: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    .doc-article-info {
        order: 3;
        flex-basis: 100%;
        font-size: .72rem;
    }

    .doc-article-brand img {
        width: 145px;
    }

    .doc-article-close {
        padding: .55rem .75rem;
        font-size: .85rem;
    }

    .doc-article-meta {
        justify-content: flex-start;
        padding: 10px 12px;
        font-size: .82rem;
    }

    .doc-article-page {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .article {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article p {
        font-size: 1.1rem;
        line-height: 1.75;
    }
	
	.article li {
        font-size: 1.07rem;
    }

   .article table {
    display: table;
    overflow: visible;
    white-space: normal;
    font-size: 1.07rem;
}
	

    .article table th,
    .article table td {
        padding: 8px;
    }
}


