/* Support article page — layout aligned to Wix Help Center article */

body.body-stage .stage-support-article--wix {
    background: #fff;
    padding-top: clamp(1.25rem, 3vw, 1.75rem);
    padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

/* 404 / pagine senza barra breadcrumb: compensa navbar fixed */
body.body-stage:not(:has(.stage-support-article__breadcrumb)) .stage-support-article--wix {
    padding-top: calc(var(--stage-navbar-height, 4.25rem) + clamp(1.25rem, 3vw, 1.75rem));
}

body.body-stage .stage-support-article--wix .stage-support-article__shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.body-stage .stage-support-article--wix .stage-support-article__inner {
    gap: 0;
}

/* Breadcrumb sotto navbar — barra full width (stile Wix Help Center) */
body.body-stage .stage-support-article__breadcrumb {
    width: 100%;
    margin: 0;
    margin-top: var(--stage-navbar-height, 4.25rem);
    background: #fff;
    border-bottom: 1px solid #dfe3e8;
}

body.body-stage .stage-support-article__breadcrumb-inner {
    width: 100%;
    margin: 0 auto;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

body.body-stage .stage-support-article__breadcrumb-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #162d3d;
}

body.body-stage .stage-support-article__breadcrumb-list > li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

body.body-stage .stage-support-article__breadcrumb-list > li + li::before {
    content: "›";
    display: inline-block;
    margin: 0 0.5rem;
    color: #9aa5b1;
    font-size: 0.9375rem;
    line-height: 1;
    font-weight: 400;
}

body.body-stage .stage-support-article__breadcrumb-list a {
    color: #162d3d;
    text-decoration: none;
}

body.body-stage .stage-support-article__breadcrumb-list a:hover {
    color: #116dff;
    text-decoration: underline;
}

body.body-stage .stage-support-article__breadcrumb-list > li[aria-current="page"] {
    color: #162d3d;
    font-weight: 400;
}

/* Layout pagina: sidebar argomenti + contenuto */
body.body-stage .stage-support-article__page,
body.body-stage .stage-support-article__page--with-nav {
    display: grid;
    grid-template-columns: minmax(11.5rem, 15.75rem) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

body.body-stage .stage-support-article__page--with-nav .stage-support-category__sidebar {
    position: sticky;
    top: calc(var(--stage-navbar-height, 4.25rem) + 1.25rem);
}

body.body-stage .stage-support-article__toc-label {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #000;
}

body.body-stage .stage-support-article__toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

body.body-stage .stage-support-article__toc-list a {
    font-size: 0.875rem;
    line-height: 1.45;
    color: #384a56;
    text-decoration: none;
}

body.body-stage .stage-support-article__toc-list a:hover,
body.body-stage .stage-support-article__toc-list a.is-active {
    color: #116dff;
    text-decoration: underline;
}

body.body-stage .stage-support-article__main {
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

body.body-stage .stage-support-article__header {
    margin-bottom: 1.25rem;
}

body.body-stage .stage-support-article__title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
}

body.body-stage .stage-support-article__read-time {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #6b7280;
}

/* Indice inline (mobile / replica Wix sotto il titolo) */
body.body-stage .stage-support-article__toc-inline {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #dfe3e8;
}

body.body-stage .stage-support-article__lead {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #162d3d;
}

body.body-stage .stage-support-article__body {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #162d3d;
}

body.body-stage .stage-support-article__body > * {
    margin: 0;
}

body.body-stage .stage-support-article__body > p,
body.body-stage .stage-support-article__body > ul,
body.body-stage .stage-support-article__body > ol,
body.body-stage .stage-support-article__body > blockquote,
body.body-stage .stage-support-article__body > figure,
body.body-stage .stage-support-article__body > pre {
    margin-bottom: 1rem;
}

body.body-stage .stage-support-article__body > h2 {
    margin: 0;
    padding: 2.25rem 0 0;
    border-top: 1px solid #dfe3e8;
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 700;
    color: #000;
}

body.body-stage .stage-support-article__body > h2:first-child {
    padding-top: 0;
    border-top: 0;
}

body.body-stage .stage-support-article__body > h2 + p,
body.body-stage .stage-support-article__body > h2 + ul,
body.body-stage .stage-support-article__body > h2 + ol {
    margin-top: 0.85rem;
}

body.body-stage .stage-support-article__body > h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
    color: #000;
}

body.body-stage .stage-support-article__body a {
    color: #116dff;
    text-decoration: none;
}

body.body-stage .stage-support-article__body a:hover {
    text-decoration: underline;
}

body.body-stage .stage-support-article__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.25rem 0;
    border-radius: 0.5rem;
}

body.body-stage .stage-support-article__body ul,
body.body-stage .stage-support-article__body ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.body-stage .stage-support-article__body ul > li,
body.body-stage .stage-support-article__body ul li {
    position: static;
    padding-left: 0;
}

body.body-stage .stage-support-article__body ul > li::before,
body.body-stage .stage-support-article__body ul li::before {
    content: none;
    display: none;
}

body.body-stage .stage-support-article__body ol {
    padding-left: 1.25rem;
    list-style: decimal;
}

body.body-stage .stage-support-article__body li {
    margin-bottom: 0.35rem;
}

body.body-stage .stage-support-article__body code {
    font-size: 0.92em;
    background: #f4f6f8;
    padding: 0.1em 0.35em;
    border-radius: 0.2rem;
}

body.body-stage .stage-support-article__body strong {
    font-weight: 700;
    color: #000;
}

body.body-stage .stage-support-article__intro {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #162d3d;
}

body.body-stage .stage-support-article__media-placeholder {
    margin: 1.25rem 0;
    padding: 1.5rem 1.25rem;
    border: 1px dashed rgba(26, 36, 55, 0.28);
    border-radius: 0.5rem;
    background: #f8f9fb;
    text-align: center;
}

body.body-stage .stage-support-article__media-placeholder-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

body.body-stage .stage-support-article__media-placeholder figcaption {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #4b5563;
}

/* FAQ in fondo al contenuto (h2 FAQ + domande come paragrafi bold) */
body.body-stage .stage-support-article__body > h2:last-of-type {
    margin-top: 2.5rem;
}

/* Feedback */
body.body-stage .stage-support-article__feedback {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid #dfe3e8;
}

body.body-stage .stage-support-article__feedback-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    color: #000;
}

body.body-stage .stage-support-article__feedback-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

body.body-stage .stage-support-article__feedback-btn {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #116dff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

body.body-stage .stage-support-article__feedback-btn:hover,
body.body-stage .stage-support-article__feedback-btn.is-selected {
    text-decoration: underline;
}

body.body-stage .stage-support-article__feedback-sep {
    color: #9ca3af;
    user-select: none;
}

body.body-stage .stage-support-article__feedback-thanks {
    margin: 0.65rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Articoli correlati (colonna contenuto) */
body.body-stage .stage-support-article__related {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid #dfe3e8;
    max-width: none;
}

@media (min-width: 64rem) {
    body.body-stage .stage-support-article__related {
        grid-column: 2;
    }
}

body.body-stage .stage-support-article__related-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 700;
    color: #000;
}

body.body-stage .stage-support-article__related-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.body-stage .stage-support-article__related-list li {
    margin: 0;
    padding: 0.85rem 0;
    border-top: 1px solid #dfe3e8;
}

body.body-stage .stage-support-article__related-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

body.body-stage .stage-support-article__related-list a {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #116dff;
    text-decoration: none;
}

body.body-stage .stage-support-article__related-list a:hover {
    text-decoration: underline;
}

/* Primary button nero (solo supporto) */
body.body-stage .stage-support-article--wix .primary-button {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}

body.body-stage .stage-support-article--wix .primary-button:hover {
    background-color: #111;
    color: #fff;
    border-color: #111;
}

@media (max-width: 63.99rem) {
    body.body-stage .stage-support-article__page {
        grid-template-columns: 1fr;
    }

    body.body-stage .stage-support-article__page--with-nav .stage-support-category__sidebar {
        display: none;
    }

}


@media (min-width: 64rem) {
    body.body-stage .stage-support-article__toc-inline {
        display: none;
    }
}
