/* Support category page — hub macro-categoria (stile Wix Help Center) */

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

body.body-stage:not(:has(.stage-support-article__breadcrumb)) .stage-support-category--wix {
    padding-top: calc(var(--stage-navbar-height, 4.25rem) + clamp(1.25rem, 3vw, 1.75rem));
}

body.body-stage .stage-support-category--wix .stage-support-category__shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* max-width: 72rem; */
}

body.body-stage .stage-support-category__page {
    display: grid;
    grid-template-columns: minmax(12.5rem, 16.5rem) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

/* Sidebar (accordion argomenti, stile Wix) */
body.body-stage .stage-support-category__sidebar {
    position: sticky;
    top: calc(var(--stage-navbar-height, 4.25rem) + 3.25rem);
    padding: 0.15rem 1.5rem 0 0;
    border-right: 1px solid #dfe3e8;
    min-width: 0;
}

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

body.body-stage .stage-support-category__nav-group {
    margin: 0;
    padding: 0;
}

body.body-stage .stage-support-category__nav-row {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

body.body-stage .stage-support-category__nav-toggle {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.3rem 0.15rem 0.3rem 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
}

body.body-stage .stage-support-category__nav-toggle:hover .stage-support-category__nav-chevron,
body.body-stage .stage-support-category__nav-toggle:focus-visible .stage-support-category__nav-chevron {
    border-color: #116dff;
}

body.body-stage .stage-support-category__nav-toggle:focus-visible {
    outline: 2px solid #116dff;
    outline-offset: 2px;
    border-radius: 0.15rem;
}

body.body-stage .stage-support-category__nav-topic {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.3rem 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #384a56;
    text-decoration: none;
}

body.body-stage .stage-support-category__nav-topic-label {
    display: block;
}

body.body-stage .stage-support-category__nav-chevron {
    display: block;
    width: 0.4rem;
    height: 0.4rem;
    margin-top: 0.35rem;
    border-right: 1.5px solid #9aa5b1;
    border-bottom: 1.5px solid #9aa5b1;
    transform: rotate(-45deg);
    transition: transform 160ms ease, border-color 160ms ease;
}

body.body-stage .stage-support-category__nav-chevron--spacer {
    flex: 0 0 auto;
    visibility: hidden;
    border-color: transparent;
}

body.body-stage .stage-support-category__nav-group.is-open .stage-support-category__nav-chevron {
    transform: rotate(45deg);
    margin-top: 0.42rem;
    border-color: #116dff;
}

body.body-stage .stage-support-category__nav-topic:hover,
body.body-stage .stage-support-category__nav-topic:focus-visible {
    color: #116dff;
}

body.body-stage .stage-support-category__nav-group.is-open .stage-support-category__nav-topic {
    color: #116dff;
    /* font-weight: 700; */
}

body.body-stage .stage-support-category__nav-group.is-current .stage-support-category__nav-topic[aria-current="page"] {
    color: #116dff;
    /* font-weight: 700; */
}

body.body-stage .stage-support-category__nav-group.is-current .stage-support-category__nav-chevron {
    border-color: #116dff;
}

body.body-stage .stage-support-category__nav-group:not(.is-open) .stage-support-category__nav-children {
    display: none;
}

body.body-stage .stage-support-category__nav-children {
    margin: 0.15rem 0 0.65rem;
    padding: 0 0 0 1.35rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.body-stage .stage-support-category__nav-children a {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #384a56;
    text-decoration: none;
}

body.body-stage .stage-support-category__nav-children a:hover,
body.body-stage .stage-support-category__nav-children li.is-current > a {
    color: #116dff;
}

body.body-stage .stage-support-category__nav-children li.is-current > a {
    font-weight: 600;
    text-decoration: underline;
}

/* Main column */
body.body-stage .stage-support-category__main {
    min-width: 0;
    max-width: none;
}

/* Hero banner */
body.body-stage .stage-support-category__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 20rem);
    gap: clamp(1.5rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
    align-items: center;
    margin: 0 0 clamp(1.5rem, 3.5vw, 2rem);
    padding: clamp(1.35rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2rem);
    border-radius: 0.5rem;
    background: #f4f6f8;
}

body.body-stage .stage-support-category__hero-copy {
    min-width: 0;
}

body.body-stage .stage-support-category__title {
    margin: 0;
    font-size: clamp(1.75rem, 3.8vw, 2.5rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f2b46;
}

body.body-stage .stage-support-category__lede {
    margin: 0.85rem 0 0;
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.6;
    color: #162d3d;
}

body.body-stage .stage-support-category__hero-media {
    margin: 0;
    justify-self: end;
    width: 100%;
    max-width: 20rem;
}

body.body-stage .stage-support-category__hero-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 13.5rem;
    object-fit: contain;
}

/* Griglia card sottocategorie */
body.body-stage .stage-support-category__topics--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

body.body-stage .stage-support-category__topic-card {
    margin: 0;
    padding: 1.25rem 1.35rem 1.15rem;
    border: 1px solid #e3e7eb;
    border-radius: 0.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

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

body.body-stage .stage-support-category__topic-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1 1 auto;
}

body.body-stage .stage-support-category__topic-links li {
    margin: 0;
    padding: 0;
    position: static;
}

body.body-stage .stage-support-category__topic-links li::before {
    content: none;
    display: none;
}

body.body-stage .stage-support-category__topic-links a {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #162d3d;
    text-decoration: none;
}

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

body.body-stage .stage-support-category__topic-link-icon {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    fill: #6b7c8f;
    color: #6b7c8f;
}

body.body-stage .stage-support-category__topic-links a:hover .stage-support-category__topic-link-icon {
    fill: #116dff;
    color: #116dff;
}

body.body-stage .stage-support-category__topic-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.1rem 0 0;
    padding-top: 0.15rem;
}

body.body-stage .stage-support-category__topic-more {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #6b7280;
    min-height: 1.25rem;
}

body.body-stage .stage-support-category__topic-more:empty {
    display: block;
}

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

body.body-stage .stage-support-category__topic-cta {
    flex: 0 0 auto;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-primary-500);
    text-decoration: none;
    white-space: nowrap;
}

body.body-stage .stage-support-category__topic-cta:hover,
body.body-stage .stage-support-category__topic-cta:focus-visible {
    color: var(--color-primary-400);
    text-decoration: underline;
    outline: none;
}

body.body-stage .stage-support-category__topic-card--leaf {
    max-width: 36rem;
}

body.body-stage .stage-support-category__empty {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
}

body.body-stage .stage-support-category--wix .primary-button {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}

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

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

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

    body.body-stage .stage-support-category__topics--grid {
        grid-template-columns: 1fr;
    }
}

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

    body.body-stage .stage-support-category__hero-media {
        justify-self: start;
        max-width: 14rem;
    }

    body.body-stage .stage-support-category__hero-media img {
        max-height: 10rem;
    }
}
