body {
    min-height: 100vh;
    background-color: #f2f5f6;
    color: #595757;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
}

.fo-app {
    min-height: 100vh;
}

.fo-header {
    background: #017497;
    border-bottom: 3px solid #A0C3CC;
    margin: 0 0 20px;
    padding: 10px 0;
}

.fo-shell {
    max-width: 1680px;
}

 .fo-brand {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 110px;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    background: #017497 url(/images/logo-4o-100.png) no-repeat 98% center;
}

.fo-brand-main {
    font-size: 30px;
    font-weight: 400;
}

.fo-brand-sub {
    color: #A0C3CC;
    font-size: 18px;
    font-weight: 300;
}

.fo-account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.fo-account-actions .btn {
    white-space: nowrap;
}

.fo-layout {
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(220px, 280px);
    gap: 1rem;
    align-items: start;
}

.fo-sidebar-left,
.fo-sidebar-right {
    position: sticky;
    top: 1rem;
}

.fo-content {
    min-width: 0;
}

.menu-categorie-list {
    max-height: 64vh;
    overflow: auto;
}

.menu-categorie-list .list-group-item {
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
}

.compact-title {
    min-height: auto;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.card-title {
    min-height: 3rem;
}

.product-img-card {
    max-height: 170px;
    object-fit: contain;
}

.product-img-detail {
    max-height: 450px;
    object-fit: contain;
}

.product-gallery {
    width: 100%;
}

.product-thumbs {
    margin-inline: auto;
}

.product-thumb {
    width: 68px;
    height: 68px;
    padding: 4px;
    border: 1px solid #d6dde1;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.product-thumb.active,
.product-thumb:hover {
    border-color: #017497;
    box-shadow: 0 0 0 2px rgba(1, 116, 151, 0.14);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.doc-frame-product {
    width: 100%;
    min-height: 900px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.doc-frame-safety {
    width: 100%;
    height: 1150px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.characteristics {
    white-space: pre-line;
    text-align: left;
}

.price-main {
    font-size: 2.8rem;
}

@media (max-width: 1199.98px) {
    .fo-layout {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    }

    .fo-sidebar-right {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .fo-account-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .fo-layout {
        grid-template-columns: 1fr;
    }

    .fo-sidebar-left,
    .fo-sidebar-right {
        position: static;
    }

    .menu-categorie-list {
        max-height: 320px;
    }
}
/* Original 4Office typography and sizing */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
}

a {
    color: #2e8ba8;
}

a:hover,
a:focus {
    color: #1e596c;
}

.fo-header .form-control,
.fo-header .btn {
    font-size: 14px;
}

.fo-header .input-group-lg > .form-control,
.fo-header .input-group-lg > .btn {
    min-height: 46px;
    padding: 10px 16px;
    font-size: 18px;
}

.card {
    border-color: #ddd;
    border-radius: 4px;
}

.card-body {
    padding: 15px;
}

.card h4,
.card .h4 {
    font-size: 18px;
}

.btn-primary {
    background-color: #2e8ba8;
    border-color: #257088;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #257088;
    border-color: #1e596c;
}

.btn-outline-primary {
    color: #2e8ba8;
    border-color: #2e8ba8;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
    background-color: #017497;
    border-color: #017497;
    color: #fff;
}

.nav-tabs {
    background-color: #fff;
    border-bottom: 1px solid #a0c3cc;
}

.nav-tabs .nav-link {
    border-radius: 4px 4px 0 0;
    color: #2e8ba8;
    font-size: 14px;
}

#tabProdotti {
    font-weight: 700;
}

.nav-tabs .nav-link.active {
    background-color: #017497;
    border-color: #ddd #ddd transparent;
    color: #fff;
}

#tabProdotti.active {
    background-color: #017497;
    border-color: #017497;
    color: #fff;
    font-weight: 700;
}

#mobileCatalogToggle.is-products-active {
    background-color: #017497;
    border-color: #017497;
    color: #fff;
    font-weight: 700;
}

.menu-categorie-list .list-group-item {
    color: #2e8ba8;
    line-height: 1;
}

.menu-categorie-list .list-group-item:hover,
.menu-categorie-list .list-group-item:focus {
    background-color: #257088;
    color: #fff;
}

.text-muted {
    color: #5fa5ba !important;
}

@media (max-width: 768px) {
    .fo-brand {
        min-height: auto;
        background-image: none;
    }

    .fo-brand-main {
        font-size: 25px;
    }
}
/* Final compact sidebar titles */
.compact-title {
    min-height: auto;
}

/* Fase 2 - menu categorie alfabetico compatto */
.menu-card-body {
    padding: 10px;
}

.menu-head h4 {
    color: #017497;
    font-size: 18px;
    font-weight: 700;
}

.menu-head .btn-group {
    gap: 4px;
}

.menu-head .btn {
    border-radius: 4px !important;
    font-size: 12px;
    padding: 3px 6px;
}

.menu-alpha-list {
    border-top: 1px solid #a0c3cc;
    max-height: 68vh;
    overflow: auto;
}

.menu-alpha-group {
    border-bottom: 1px solid #d9edf7;
}

.menu-alpha-heading {
    align-items: center;
    background: #e9f2fc;
    border: 0;
    color: #017497;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    line-height: 1;
    padding: 7px 8px;
    width: 100%;
}

.menu-alpha-heading:hover,
.menu-alpha-heading:focus {
    background: #a0c3cc;
    color: #fff;
}

.menu-alpha-count {
    color: inherit;
    font-size: 11px;
    font-weight: 400;
}

.menu-alpha-body {
    display: none;
    padding: 4px 0;
}

.menu-alpha-group.open .menu-alpha-body {
    display: block;
}

.menu-node {
    margin: 1px 0;
}

.menu-node-main {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 4px;
    color: #2e8ba8;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    line-height: 1.15;
    padding: 5px 6px;
    text-align: left;
    width: 100%;
}

.menu-node-main:hover,
.menu-node-main:focus {
    background: #257088;
    color: #fff;
}

.menu-node-label {
    min-width: 0;
}

.menu-node-main .badge {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 400;
}

.menu-children {
    border-left: 2px solid #d9edf7;
    margin: 2px 0 6px 8px;
    padding-left: 6px;
}

.menu-child-item .menu-node-main {
    color: #1c77df;
    font-size: 12px;
    padding: 4px 6px;
}

@media (max-width: 991.98px) {
    .menu-alpha-list {
        max-height: 360px;
    }
}
/* Fase 2 corretta - menu sinistro semplice e barra affinamento */
.menu-criteria {
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr;
}

.menu-criterion {
    background: #e9f2fc;
    border: 1px solid #a0c3cc;
    border-radius: 4px;
    color: #017497;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 7px;
    text-align: left;
}

.menu-criterion.active,
.menu-criterion:hover,
.menu-criterion:focus {
    background: #017497;
    border-color: #017497;
    color: #fff;
}

.menu-left-list {
    border-top: 1px solid #a0c3cc;
    margin-top: 8px;
    max-height: 68vh;
    overflow: auto;
    padding-top: 4px;
}

.menu-left-item {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf3f5;
    color: #2e8ba8;
    display: block;
    font-size: 13px;
    line-height: 1.18;
    padding: 5px 4px;
    text-align: left;
    width: 100%;
}

.menu-left-item:hover,
.menu-left-item:focus {
    background: #257088;
    color: #fff;
}

.refine-card-body {
    padding: 10px 12px;
}

.refine-header {
    align-items: center;
    border-bottom: 1px solid #d9edf7;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding-bottom: 8px;
}

.refine-title {
    color: #017497;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.refine-path {
    align-items: center;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px;
    margin-top: 2px;
}

.refine-crumb {
    background: transparent;
    border: 0;
    color: #2e8ba8;
    padding: 0;
}

.refine-sep {
    color: #aaa;
}

.refine-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.refine-group {
    display: grid;
    gap: 6px;
    grid-template-columns: 24px minmax(0, 1fr);
}

.refine-letter {
    align-items: center;
    background: #e9f2fc;
    color: #017497;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    min-height: 24px;
}

.refine-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.refine-item {
    align-items: center;
    background: #fff;
    border: 1px solid #a0c3cc;
    border-radius: 4px;
    color: #2e8ba8;
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
    line-height: 1.15;
    padding: 4px 6px;
}

.refine-item:hover,
.refine-item:focus {
    background: #257088;
    border-color: #257088;
    color: #fff;
}

.refine-count {
    background: #e9f2fc;
    border-radius: 8px;
    color: inherit;
    font-size: 10px;
    padding: 1px 5px;
}

@media (max-width: 991.98px) {
    .menu-left-list {
        max-height: 360px;
    }

    .refine-group {
        grid-template-columns: 20px minmax(0, 1fr);
    }
}
/* Fase 2 - affinamento stile storico a livelli */
.refine-table {
    background: #fff;
    border: 1px solid #b8b8b8;
}

.refine-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.refine-path-col {
    border-right: 1px solid #b8b8b8;
    min-width: 0;
}

.refine-path-col:last-child {
    border-right: 0;
}

.refine-path-head {
    background: #3e9db3;
    border-bottom: 1px solid #277f95;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 11px 9px;
}

.refine-path-col:last-child .refine-path-head {
    background: #007b98;
}

.refine-path-value {
    background: #e7e7e7;
    border: 0;
    color: #0b83ad;
    display: block;
    font-size: 14px;
    min-height: 36px;
    overflow: hidden;
    padding: 9px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.refine-path-value:hover,
.refine-path-value:focus {
    background: #d8eef3;
    color: #005f78;
}

.refine-path-empty {
    color: #777;
    font-size: 13px;
    padding: 10px;
}

.refine-path-grid-search {
    display: block;
}

.refine-search-paths {
    display: grid;
    gap: 2px;
    padding: 6px;
}

.refine-search-path {
    align-items: center;
    background: #f5f8f9;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
}

.refine-search-path .refine-path-value {
    display: inline-flex;
    min-height: 26px;
    width: auto;
}

.refine-path-separator {
    color: #8a8a8a;
    font-size: 12px;
}

.refine-letters-row {
    align-items: flex-start;
    border-top: 1px solid #d8d8d8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 58px;
    padding: 8px 16px;
}

.refine-letter-group {
    position: relative;
}

.refine-letter-button {
    background: #d9edf7;
    border: 1px solid #c5e4ef;
    border-radius: 4px;
    color: #007492;
    font-size: 13px;
    font-weight: 700;
    min-width: 38px;
    padding: 10px 13px;
}

.refine-letter-button:hover,
.refine-letter-button:focus,
.refine-letter-group.open .refine-letter-button {
    background: #007b98;
    border-color: #007b98;
    color: #fff;
}

.refine-letter-items {
    background: #fff;
    border: 1px solid #b8b8b8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    display: none;
    left: 0;
    max-height: 280px;
    min-width: 220px;
    overflow: auto;
    padding: 4px;
    position: absolute;
    top: calc(100% + 4px);
    z-index: 20;
}

.refine-letter-group.open .refine-letter-items {
    display: grid;
    gap: 2px;
}

.refine-choice {
    background: #fff;
    border: 0;
    color: #0b83ad;
    font-size: 13px;
    padding: 5px 7px;
    text-align: left;
    width: 100%;
}

.refine-choice:hover,
.refine-choice:focus {
    background: #257088;
    color: #fff;
}

@media (max-width: 767.98px) {
    .refine-path-grid {
        grid-template-columns: 1fr;
    }

    .refine-path-col {
        border-right: 0;
        border-bottom: 1px solid #b8b8b8;
    }

    .refine-letter-items {
        min-width: 180px;
    }
}

/* Casa/produttore articolo */
.product-brand {
    color: #595757;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.product-brand-detail {
    font-size: 24px;
}

.list-group-item .product-brand {
    font-size: 18px;
}
/* Ritocco card prodotto stile storico */
.card .product-brand {
    color: #595757;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
}

.card .card-title {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.product-promo-end {
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    margin-top: 2px;
}

.list-group-item .product-brand {
    font-size: 22px;
}

.list-group-item h5 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}
.product-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-card-actions .btn {
    min-width: 82px;
    white-space: nowrap;
}
/* NEXT 4Office - inizio
   Stili minimi per ospitare l'HTML storico generato da negozionew_articoli().
   Manteniamo le classi vecchie, ma le rendiamo coerenti dentro la nuova pagina Next. */
.itemArt {
    margin-bottom: 16px;
}

.itemArt .thumbnail {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.itemArt .cntImg {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.itemArt .cntImg img {
    max-width: 100%;
    max-height: 145px;
    object-fit: contain;
}

.itemArt .caption h3 {
    margin: 0 0 4px;
    color: #595757;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.itemArt .caption h4 {
    margin: 0 0 8px;
    color: #333;
    font-size: 16px;
    font-weight: 400;
}

.itemArt .caption p {
    margin-bottom: 6px;
}

.itemArt .caption strong {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.itemArt .o4_tcara {
    color: #666;
    font-size: 13px;
    line-height: 1.25;
}

.itemArt .prezzi-box {
    margin-top: auto;
    color: #333;
    font-size: 14px;
}

.itemArt .list-item {
    padding-left: 0;
    margin: 0 0 10px;
    list-style: none;
}

.itemArt .list-item li {
    margin-bottom: 3px;
}

.itemArt .badge {
    background-color: #5aaec2;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    vertical-align: baseline;
}

.itemArt .thumbnail_btn {
    text-align: right;
}

.itemArt .thumbnail_btn .btn {
    min-width: 92px;
    border-radius: 4px;
    font-size: 14px;
}
/* NEXT 4Office - fine */

/* NEXT 4Office - navigazione compatta mobile. */
.seo-nav-main-toggle,
.seo-nav-sub-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .seo-nav-shell {
        padding: 6px;
    }

    .seo-nav-main-toggle {
        align-items: center;
        background: #fff;
        border: 0;
        color: #245d70;
        display: flex;
        font-size: 15px;
        font-weight: 700;
        justify-content: space-between;
        padding: 9px 10px;
        text-align: left;
        width: 100%;
    }

    .seo-nav-main-toggle::after {
        content: "\25BC";
        font-size: 11px;
    }

    .seo-nav-shell.is-open .seo-nav-main-toggle::after {
        content: "\25B2";
    }

    .seo-nav-shell > .seo-nav-list {
        display: none;
    }

    .seo-nav-shell.is-open > .seo-nav-list {
        display: block;
    }

    .seo-nav-item {
        align-items: center;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .seo-nav-item > .seo-nav-link {
        grid-column: 1;
    }

    .seo-nav-sub-toggle {
        align-self: stretch;
        background: #e9f2fc;
        border: 0;
        color: #245d70;
        display: block;
        grid-column: 2;
        min-width: 42px;
    }

    .seo-nav-children,
    .seo-nav-children .seo-nav-children {
        display: none;
        grid-column: 1 / -1;
        padding-left: 14px;
    }

    .seo-nav-item.is-open > .seo-nav-children {
        display: block;
    }

    #catalogTabs,
    .fo-sidebar-left {
        display: none;
    }

    body.mobile-catalog-open #catalogTabs {
        display: flex;
    }

    body.mobile-catalog-open .fo-sidebar-left {
        display: block;
    }
}

.fo-footer {
    margin-top: 32px;
    padding: 40px 0 0;
    color: #fff;
    background: #017497;
}

.fo-footer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px;
}

.fo-footer h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.fo-footer h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 21px;
}

.fo-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fo-footer-links li {
    margin-bottom: 8px;
}

.fo-footer a {
    color: #fff;
    text-decoration: none;
}

.fo-footer a:hover,
.fo-footer a:focus {
    color: #d8f3fb;
    text-decoration: underline;
}

.fo-footer address {
    margin-bottom: 12px;
    font-style: normal;
    line-height: 1.7;
}

.fo-footer-bottom {
    margin-top: 30px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1199.98px) {
    .fo-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .fo-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* NEXT 4Office - fine */

.seo-nav-shell {
    position: relative;
    z-index: 30;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe4e7;
    border-radius: 6px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.06);
}

.seo-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-nav-item {
    position: relative;
}

.seo-nav-link {
    display: block;
    padding: 11px 13px;
    color: #245d70;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.seo-nav-link:hover,
.seo-nav-link:focus,
.seo-nav-link.is-active {
    color: #fff;
    background: #2e8ba8;
    outline: 0;
}

.seo-nav-children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #dfe4e7;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.14);
}

.seo-nav-item:hover > .seo-nav-children,
.seo-nav-item:focus-within > .seo-nav-children {
    display: block;
}

.seo-nav-children .seo-nav-link {
    padding: 8px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.seo-nav-children .seo-nav-children {
    top: -7px;
    left: 100%;
    border-radius: 6px;
}

.seo-page-card {
    width: 100%;
    padding: clamp(20px, 4vw, 42px);
    background: #fff;
    border: 1px solid #dfe4e7;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.seo-page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    color: #6c757d;
    font-size: 13px;
}

.seo-page-breadcrumb a {
    color: #2e7187;
    text-decoration: none;
}

.seo-page-card h1 {
    margin-bottom: 20px;
    color: #245d70;
}

.seo-page-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 24px;
    border-radius: 6px;
}

.seo-page-body {
    line-height: 1.65;
}

.seo-page-body img {
    display: block;
    max-width: 100%;
    height: auto;
}

.seo-page-body img.stampantiLogo {
    display: inline-block;
    width: 164px;
    max-width: 100%;
    margin-bottom: 8px;
    vertical-align: middle;
}

.seo-page-body .lst_stampanti {
    border-top: 1px solid #ccc;
    margin-top: 16px;
    padding-top: 16px;
}

.seo-page-body .lst_stampanti button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    background: transparent;
    border: 0;
    padding: 0;
    vertical-align: middle;
}

.seo-page-body .lst_stampanti img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
    margin: 0 8px 0 0;
}

.seo-page-body .lst_stampanti a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    margin: 6px 12px 6px 0;
    vertical-align: middle;
}

.seo-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.seo-printer-browser {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #dfe4e7;
}

.seo-printer-browser h2 {
    color: #245d70;
    font-size: 24px;
}

.seo-printer-brand {
    margin-top: 22px;
}

.seo-printer-brand h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.seo-printer-series {
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #dfe4e7;
    border-radius: 5px;
}

.seo-printer-series summary {
    padding: 11px 14px;
    color: #245d70;
    background: #f5f8f9;
    cursor: pointer;
    font-weight: 600;
}

.seo-printer-models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
}

@media (max-width: 767.98px) {
    .seo-nav-shell {
        padding: 6px;
    }

    .seo-nav-list {
        display: block;
    }

    .seo-nav-children,
    .seo-nav-children .seo-nav-children {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 0 14px;
        border: 0;
        box-shadow: none;
    }
}

/* NEXT 4Office - fine */
/* NEXT 4Office - inizio
   Card prodotto generate da api_next_articoli(): logica storica, markup Next. */
.itemArtNext {
    margin-bottom: 16px;
}

.next-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.next-product-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.next-product-image img {
    max-width: 100%;
    max-height: 145px;
    object-fit: contain;
}

.next-product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.next-product-brand {
    color: #595757;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2px;
}

.next-product-code {
    display: inline-block;
    color: #333;
    font-size: 16px;
    margin-bottom: 6px;
    text-decoration: none;
}

.next-product-code:hover,
.next-product-code:focus {
    color: #017497;
    text-decoration: underline;
}

.next-product-title {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
}

.next-product-features {
    color: #666;
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.next-product-prices {
    margin-top: auto;
    color: #333;
    font-size: 14px;
    line-height: 1.35;
}

.next-product-prices .badge {
    background-color: #5aaec2;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    vertical-align: baseline;
}

.next-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.next-product-actions .btn {
    min-width: 82px;
    white-space: nowrap;
}

.list-group .itemArtNext,
.itemArtNext.col-12 .next-product-card {
    width: 100%;
}
/* NEXT 4Office - fine */
/* NEXT 4Office - inizio
   Prezzi card Next generati da api_next_articoli(). */
.next-product-listino {
    color: #5aaec2;
    font-size: 13px;
    line-height: 1.3;
}

.next-product-listino span {
    text-decoration: line-through;
}

.next-product-price {
    color: #0d6efd;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    margin: 2px 0;
}

.next-product-discount {
    color: #00894d;
    font-size: 13px;
    line-height: 1.3;
}

.next-product-promo-end,
.next-product-stock,
.next-product-multiple {
    color: #333;
    font-size: 14px;
    line-height: 1.35;
}

.next-product-stock .badge {
    background-color: #198754;
    color: #fff;
}

.next-product-title[title] {
    cursor: help;
}
/* NEXT 4Office - fine */
/* NEXT 4Office - inizio
   Stati disponibilita card Next. */
.next-product-stock-available .badge {
    background-color: #198754;
}

.next-product-stock-incoming .badge {
    background-color: #5aaec2;
}

.next-product-stock-order .badge {
    background-color: #6c757d;
}
/* NEXT 4Office - fine */
/* NEXT 4Office - evidenza articoli marcati da aanarcrnd.php */
.next-product-card-promo {
    border-color: #52a8bd;
}

.next-product-promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 4px;
    background: #52a8bd;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
/* NEXT 4Office - area centrale unificata */
.central-detail {
    display: block;
}

.central-detail > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
/* NEXT 4Office - evidenza richiamo consumabili stampanti */
#tabConsumabili {
    background-color: #f0ad4e;
    border-color: #eea236;
    color: #fff;
    font-weight: 700;
}

#tabConsumabili:hover,
#tabConsumabili:focus {
    background-color: #ec971f;
    border-color: #d58512;
    color: #fff;
}

#tabConsumabili.active {
    background-color: #017497;
    border-color: #017497;
    color: #fff;
}
/* NEXT 4Office - barre centrali compatte */
#barraAffinamento {
    margin-bottom: 10px !important;
}

#barraRisultati {
    margin-bottom: 12px !important;
}

#barraRisultati .card-body {
    padding: 10px 14px;
}

#barraRisultati .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 8px;
}

#barraRisultati .form-label {
    font-size: 13px;
    line-height: 1.1;
    margin-bottom: 5px;
}

#barraRisultati .form-select,
#barraRisultati .btn {
    font-size: 13px;
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.toolbar-results-info {
    color: #2e8ba8;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 5px;
    min-height: 15px;
}

#barraAffinamento .refine-table {
    font-size: 12px;
}

#barraAffinamento .refine-path-head {
    font-size: 12px;
    padding: 5px 8px;
}

#barraAffinamento .refine-path-value {
    font-size: 12px;
    min-height: 28px;
    padding: 6px 8px;
}

#barraAffinamento .refine-letters-row {
    gap: 5px;
    min-height: 44px;
    padding: 7px 10px;
}

#barraAffinamento .refine-letter-button {
    font-size: 12px;
    min-width: 32px;
    padding: 5px 8px;
}
/* NEXT 4Office - rifinitura barre compatte */
.toolbar-results-col {
    align-self: end;
}

.toolbar-results-info {
    align-items: center;
    color: #2e8ba8;
    display: flex;
    font-size: 13px;
    min-height: 34px;
    white-space: nowrap;
}

#barraAffinamento .refine-path-head {
    display: none;
}

#barraAffinamento .refine-path-value {
    min-height: 30px;
}

/* NEXT 4Office - box consumabili compatto */
#boxConsumabili {
    margin-bottom: 12px !important;
}

#boxConsumabili .card-body {
    padding: 10px 14px;
}

#boxConsumabili h4 {
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 8px;
}

#boxConsumabili .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 8px;
}

#boxConsumabili .form-label {
    font-size: 13px;
    line-height: 1.1;
    margin-bottom: 5px;
}

#boxConsumabili .form-select {
    font-size: 13px;
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
}
/* NEXT 4Office - header compatto e login cliente */
.fo-header {
    padding: 7px 0;
}

.fo-header .row {
    --bs-gutter-y: 8px;
}

.fo-brand {
    min-height: 78px;
    padding: 6px 8px;
    background-size: 68px auto;
}

.fo-brand-main {
    font-size: 24px;
}

.fo-brand-sub {
    font-size: 14px;
}

.fo-search-claim {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 7px;
}

.fo-header .input-group-lg > .form-control,
.fo-header .input-group-lg > .btn {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 14px;
}

.fo-account-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fo-account-actions .btn-cart {
    grid-column: 1 / -1;
}

.fo-account-actions .btn {
    border-radius: 4px;
    font-size: 13px;
    min-height: 34px;
    padding: 6px 12px;
}

.btn-login {
    background-color: #6abf4b;
    border-color: #5cad3f;
    color: #fff;
}

.btn-login:hover,
.btn-login:focus {
    background-color: #58a93f;
    border-color: #4f9939;
    color: #fff;
}

.btn-register {
    background-color: #d9534f;
    border-color: #d43f3a;
    color: #fff;
}

.btn-register:hover,
.btn-register:focus {
    background-color: #c9302c;
    border-color: #ac2925;
    color: #fff;
}

.btn-cart,
.btn-client {
    background-color: #2e8ba8;
    border-color: #257088;
    color: #fff;
}

.btn-cart:hover,
.btn-cart:focus,
.btn-client:hover,
.btn-client:focus {
    background-color: #257088;
    border-color: #1e596c;
    color: #fff;
}

.btn-client {
    grid-column: 1 / -1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fo-client-menu-wrap {
    position: relative;
    min-width: 0;
}

.fo-client-menu-wrap.is-logged {
    grid-column: 1 / -1;
}

.fo-client-menu-wrap .btn {
    width: 100%;
}

.fo-client-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: transparent;
}

.fo-client-menu-wrap.is-open .fo-client-menu-backdrop {
    display: block;
}

.fo-client-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1100;
    width: 240px;
    padding: 5px 0;
    background: #fff;
    border: 1px solid #b9c2c7;
    border-radius: 4px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.fo-client-menu-wrap.is-open .fo-client-menu {
    display: block !important;
}

.fo-client-menu a,
.fo-client-menu button {
    display: block;
    width: 100%;
    padding: 7px 12px;
    color: #333;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    white-space: normal;
}

.fo-client-menu a:hover,
.fo-client-menu a:focus,
.fo-client-menu button:hover,
.fo-client-menu button:focus {
    color: #fff;
    background: #2e8ba8;
    outline: 0;
}

#btnLogoutCliente {
    margin-top: 4px;
    border-top: 1px solid #d8dde0;
    color: #b52b27;
}

#btnLogoutCliente:hover,
#btnLogoutCliente:focus {
    color: #fff;
    background: #b52b27;
}

.next-client-area {
    display: block;
    width: 100%;
}

.next-client-toolbar {
    margin-bottom: 12px;
}

.next-client-form {
    width: 100%;
    max-width: none;
}

.next-client-password-form {
    width: 100%;
    max-width: none;
}

.next-client-password-form label {
    display: block;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
}

.next-client-password-form .form-control {
    margin-bottom: 12px;
}

.next-client-password-form .panel-footer {
    padding: 10px 16px;
    background: #f4f6f7;
    border-top: 1px solid #dfe4e7;
}

.next-client-legacy-responsive {
    display: block;
    width: 100%;
    max-width: none;
    overflow-x: auto;
}

.next-client-legacy-responsive table {
    width: 100% !important;
    max-width: 100%;
}

.next-client-legacy-responsive img,
.next-client-legacy-responsive input,
.next-client-legacy-responsive select,
.next-client-legacy-responsive textarea {
    max-width: 100%;
}

.next-client-legacy-responsive .panel-collapse:not(.show) {
    display: none;
}

.next-client-legacy-responsive .panel-heading a {
    display: block;
    text-decoration: none;
}

.next-client-area .panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid #cfd6da;
    border-radius: 4px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.next-client-area .panel-heading {
    padding: 10px 14px;
    color: #fff;
    background: #2e8ba8;
}

.next-client-area .panel-success .panel-heading {
    background: #4f9b45;
}

.next-client-area .panel-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.next-client-area .panel-body {
    padding: 16px;
}

.next-client-area fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.next-client-area legend {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.next-client-area .form-group {
    margin-bottom: 12px;
}

.next-client-area .form-group label {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
}

.next-client-area input[type="radio"] {
    width: auto;
    margin-left: 5px;
}

.fo-side-html {
    font-size: 13px;
    line-height: 1.4;
}

.fo-side-html p:last-child,
.fo-side-html div:last-child {
    margin-bottom: 0;
}

.fo-side-html img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}

.fo-side-html a {
    word-break: break-word;
}

.fo-side-html br:last-child {
    display: none;
}

.last-viewed-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e7eef1;
}

.last-viewed-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.last-viewed-item:hover,
.last-viewed-item:focus {
    color: #017497;
    text-decoration: none;
}

.last-viewed-thumb {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf2f4;
    background: #fff;
}

.last-viewed-thumb img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.last-viewed-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 12px;
    line-height: 1.25;
}

.last-viewed-text strong,
.last-viewed-text em {
    font-style: normal;
    color: #017497;
}

.last-viewed-text span {
    overflow-wrap: anywhere;
}

.next-banner-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 32, 38, 0.58);
}

.next-banner-modal {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #cfd6da;
    border-radius: 6px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.next-banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.next-banner-title {
    margin: 0 32px 16px 0;
    color: #1e6076;
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .fo-account-actions {
        grid-template-columns: repeat(3, minmax(0, auto));
        justify-content: flex-start;
    }

    .fo-account-actions .btn-cart,
    .btn-client,
    .fo-client-menu-wrap.is-logged {
        grid-column: auto;
    }

    .fo-client-menu {
        right: auto;
        left: 0;
    }
}
/* NEXT 4Office - fine */

/* NEXT 4Office - precedenza finale navigazione compatta mobile. */
@media (max-width: 991.98px) {
    .seo-nav-shell > .seo-nav-list {
        display: none;
    }

    .seo-nav-shell.is-open > .seo-nav-list {
        display: block;
    }

    .seo-nav-shell .seo-nav-children,
    .seo-nav-shell .seo-nav-children .seo-nav-children {
        display: none;
        position: static;
        min-width: 0;
        padding: 0 0 0 14px;
        border: 0;
        box-shadow: none;
    }

    .seo-nav-shell .seo-nav-item.is-open > .seo-nav-children {
        display: block;
    }

    #catalogTabs,
    .fo-sidebar-left {
        display: none;
    }

    body.mobile-catalog-open #catalogTabs {
        display: flex;
    }

    body.mobile-catalog-open .fo-sidebar-left {
        display: block;
    }
}
@media (max-width: 767.98px) {
  .next-orders-table-wrap {
    overflow: visible;
  }

  .next-orders-table thead {
    display: none;
  }

  .next-orders-table,
  .next-orders-table tbody,
  .next-orders-table tr,
  .next-orders-table td {
    display: block;
    width: 100%;
  }

  .next-orders-table tr {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #d9e2ea;
    border-radius: 0.5rem;
    background: #fff;
  }

  .next-orders-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 40%) minmax(0, 60%);
    gap: 0.75rem;
    padding: 0.4rem 0;
    border: 0;
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  .next-orders-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #354b5e;
  }

  .next-orders-table .next-order-actions:empty {
    display: none;
  }

  .next-orders-table .next-order-actions .btn {
    width: 100%;
  }
}
