/* =========================================================
   AnimaliSOS — Rendering contenuti Quill
   File: /assets/css/redazione_quill.css
   ========================================================= */

.nd-content {
    line-height: 1.75;
    font-size: 16px;
    color: rgba(0, 0, 0, .82);
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
}

    .nd-content > *:first-child {
        margin-top: 0;
    }

    .nd-content > *:last-child {
        margin-bottom: 0;
    }

    .nd-content p {
        margin: 0 0 12px;
    }

        .nd-content p:empty,
        .nd-content p:has(> br:only-child) {
            display: none;
        }

    .nd-content h1,
    .nd-content h2,
    .nd-content h3,
    .nd-content h4,
    .nd-content h5,
    .nd-content h6 {
        margin: 1.5em 0 .65em;
        line-height: 1.2;
        color: #0f172a;
        font-weight: 900;
    }

    .nd-content h1 {
        font-size: 2.15rem;
    }

    .nd-content h2 {
        font-size: 1.75rem;
    }

    .nd-content h3 {
        font-size: 1.4rem;
    }

    .nd-content h4 {
        font-size: 1.18rem;
    }

    .nd-content h5 {
        font-size: 1rem;
    }

    .nd-content h6 {
        font-size: .92rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .nd-content strong,
    .nd-content b {
        font-weight: 850;
    }

    .nd-content em,
    .nd-content i {
        font-style: italic;
    }

    .nd-content u {
        text-decoration: underline;
        text-decoration-thickness: .08em;
        text-underline-offset: .12em;
    }

    .nd-content s,
    .nd-content strike {
        text-decoration: line-through;
    }

    .nd-content a {
        color: #d72626;
        font-weight: 850;
        text-decoration: underline;
        text-decoration-thickness: .07em;
        text-underline-offset: .14em;
    }

        .nd-content a:hover {
            text-decoration-thickness: .12em;
        }

    .nd-content span[style*="background-color"],
    .nd-content mark {
        padding: .06em .16em;
        border-radius: .18em;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }

    .nd-content mark {
        background: #fff176;
        color: inherit;
    }

    .nd-content .ql-bg-black {
        background-color: #000 !important;
        color: #fff !important;
    }

    .nd-content .ql-bg-red {
        background-color: #e60000 !important;
        color: #fff !important;
    }

    .nd-content .ql-bg-orange {
        background-color: #f90 !important;
    }

    .nd-content .ql-bg-yellow {
        background-color: #ff0 !important;
    }

    .nd-content .ql-bg-green {
        background-color: #008a00 !important;
        color: #fff !important;
    }

    .nd-content .ql-bg-blue {
        background-color: #06c !important;
        color: #fff !important;
    }

    .nd-content .ql-bg-purple {
        background-color: #93f !important;
    }

    .nd-content .ql-color-white {
        color: #fff !important;
    }

    .nd-content .ql-color-red {
        color: #e60000 !important;
    }

    .nd-content .ql-color-orange {
        color: #f90 !important;
    }

    .nd-content .ql-color-yellow {
        color: #ff0 !important;
    }

    .nd-content .ql-color-green {
        color: #008a00 !important;
    }

    .nd-content .ql-color-blue {
        color: #06c !important;
    }

    .nd-content .ql-color-purple {
        color: #93f !important;
    }

    .nd-content .ql-align-center,
    .nd-content [style*="text-align: center"] {
        text-align: center;
    }

    .nd-content .ql-align-right,
    .nd-content [style*="text-align: right"] {
        text-align: right;
    }

    .nd-content .ql-align-justify,
    .nd-content [style*="text-align: justify"] {
        text-align: justify;
    }

    .nd-content .ql-size-small {
        font-size: .78em;
    }

    .nd-content .ql-size-large {
        font-size: 1.5em;
        line-height: 1.35;
    }

    .nd-content .ql-size-huge {
        font-size: 2.2em;
        line-height: 1.15;
    }

    .nd-content .ql-font-serif {
        font-family: Georgia, "Times New Roman", serif;
    }

    .nd-content .ql-font-monospace {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }

    .nd-content ul,
    .nd-content ol {
        margin: .7em 0 1.2em;
        padding-left: 1.7em;
    }

    .nd-content li {
        margin: .35em 0;
    }

        .nd-content li > ul,
        .nd-content li > ol {
            margin: .3em 0;
        }

    .nd-content ol li[data-list="ordered"] {
        list-style-type: decimal;
    }

    .nd-content ol li[data-list="bullet"] {
        list-style-type: disc;
    }

    .nd-content .ql-ui {
        display: none;
    }

    .nd-content .ql-indent-1 {
        padding-left: 3em;
    }

    .nd-content .ql-indent-2 {
        padding-left: 6em;
    }

    .nd-content .ql-indent-3 {
        padding-left: 9em;
    }

    .nd-content .ql-indent-4 {
        padding-left: 12em;
    }

    .nd-content .ql-indent-5 {
        padding-left: 15em;
    }

    .nd-content .ql-indent-6 {
        padding-left: 18em;
    }

    .nd-content .ql-indent-7 {
        padding-left: 21em;
    }

    .nd-content .ql-indent-8 {
        padding-left: 24em;
    }

    .nd-content blockquote {
        margin: 1.4em 0;
        padding: 1em 1.25em;
        border-left: 5px solid #d72626;
        background: #f8fafc;
        color: #334155;
        font-style: italic;
        border-radius: 0 14px 14px 0;
    }

    .nd-content code {
        padding: .14em .35em;
        border-radius: 6px;
        background: #eef2f7;
        color: #b42318;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        font-size: .9em;
    }

    .nd-content pre,
    .nd-content .ql-code-block-container {
        margin: 1.4em 0;
        padding: 18px;
        overflow-x: auto;
        border-radius: 14px;
        background: #111827;
        color: #f8fafc;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        font-size: .92rem;
        line-height: 1.6;
    }

    .nd-content .ql-code-block {
        white-space: pre-wrap;
    }

    .nd-content img {
        display: block;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        margin: 24px auto;
        border-radius: 16px;
    }

    .nd-content figure {
        max-width: 100% !important;
        margin: 24px 0;
    }

        .nd-content figure img {
            width: 100% !important;
            height: auto !important;
            margin-bottom: 8px;
        }

    .nd-content figcaption {
        color: #64748b;
        font-size: .9rem;
        line-height: 1.45;
        text-align: center;
    }

    .nd-content iframe,
    .nd-content video {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 24px auto;
        border: 0;
        border-radius: 16px;
    }

    .nd-content iframe {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .nd-content table {
        width: 100%;
        margin: 24px 0;
        border-collapse: collapse;
        overflow: hidden;
        border-radius: 14px;
        box-shadow: 0 0 0 1px #e2e8f0;
    }

    .nd-content th,
    .nd-content td {
        padding: 11px 13px;
        border: 1px solid #e2e8f0;
        text-align: left;
        vertical-align: top;
    }

    .nd-content th {
        background: #f8fafc;
        color: #0f172a;
        font-weight: 850;
    }

    .nd-content hr {
        height: 1px;
        margin: 30px 0;
        border: 0;
        background: linear-gradient( 90deg, transparent, rgba(15, 23, 42, .24), transparent );
    }

    .nd-content sup,
    .nd-content sub {
        font-size: .72em;
        line-height: 0;
    }

    .nd-content .ql-direction-rtl {
        direction: rtl;
        text-align: inherit;
    }

@media (max-width: 768px) {
    .nd-content {
        font-size: 15.5px;
        line-height: 1.7;
    }

        .nd-content h1 {
            font-size: 1.8rem;
        }

        .nd-content h2 {
            font-size: 1.52rem;
        }

        .nd-content h3 {
            font-size: 1.3rem;
        }

        .nd-content .ql-size-huge {
            font-size: 1.75em;
        }

        .nd-content .ql-indent-1 {
            padding-left: 1.25em;
        }

        .nd-content .ql-indent-2 {
            padding-left: 2.5em;
        }

        .nd-content .ql-indent-3 {
            padding-left: 3.75em;
        }

        .nd-content .ql-indent-4,
        .nd-content .ql-indent-5,
        .nd-content .ql-indent-6,
        .nd-content .ql-indent-7,
        .nd-content .ql-indent-8 {
            padding-left: 4em;
        }

        .nd-content table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }
}

@media print {
    .nd-content {
        color: #111 !important;
        font-size: 12pt;
        line-height: 1.65;
    }

        .nd-content a {
            color: #111 !important;
            text-decoration: none !important;
        }

        .nd-content img,
        .nd-content blockquote,
        .nd-content table {
            break-inside: avoid;
            page-break-inside: avoid;
        }
}
