
.no-scrollbar {
    -ms-overflow-style: none;  /* IE / vecchio Edge */
    scrollbar-width: none;     /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Edge */
}

img.vs-image-fill {
    object-fit: fill;
}

img.vs-image-contain {
    object-fit: contain;
}

.vs-showall-hidden-item,
.vsm-showall-btn[hidden],
.vsm-showall-list[hidden] {
    display: none;
}

/* ===== APPLY GENERAL STYLE ===== */

/* =========================================================
   ACCORDION PANEL - CONTENT TYPOGRAPHY
   ========================================================= */

.apply-general-style {
    line-height: 1.55;
    overflow-wrap: break-word;
    word-break: normal;
}


/* =========================================================
   VERTICAL RHYTHM
   ========================================================= */

.apply-general-style > * {
    margin-block: 0 1rem;
}

.apply-general-style > :first-child {
    margin-block-start: 0;
}

.apply-general-style > :last-child {
    margin-block-end: 0;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.apply-general-style :where(h1, h2, h3, h4, h5, h6) {
    margin: 0.8rem 0 0 0 !important;
    margin-block: 1.4em .55em;
    line-height: 1.25;
    font-weight: 600;
}

.apply-general-style :where(h1, h2, h3, h4, h5, h6):first-child {
    margin-block-start: 0;
}

.apply-general-style h1 {
    font-size: 1.5em;
}

.apply-general-style h2 {
    font-size: 1.35em;
}

.apply-general-style h3 {
    font-size: 1.2em;
}

.apply-general-style h4 {
    font-size: 1.1em;
}

.apply-general-style h5,
.apply-general-style h6 {
    font-size: 1em;
}


/* =========================================================
   PARAGRAPHS
   ========================================================= */

.apply-general-style p {
    margin-block: 0 1em;
}

.apply-general-style p:last-child {
    margin-block-end: 0;
}


/* =========================================================
   INLINE CONTENT
   ========================================================= */

.apply-general-style :where(strong, b) {
    font-weight: 700;
}

.apply-general-style :where(em, i) {
    font-style: italic;
}

.apply-general-style small {
    font-size: .875em;
}

.apply-general-style sub,
.apply-general-style sup {
    position: relative;
    vertical-align: baseline;
    font-size: .75em;
    line-height: 0;
}

.apply-general-style sup {
    top: -.5em;
}

.apply-general-style sub {
    bottom: -.25em;
}

.apply-general-style abbr[title] {
    text-decoration: underline dotted;
    text-underline-offset: .15em;
    cursor: help;
}

.apply-general-style del {
    text-decoration: line-through;
}

.apply-general-style ins {
    text-decoration: underline;
    text-underline-offset: .15em;
}


/* =========================================================
   LINKS
   ========================================================= */

.apply-general-style a {
    text-decoration: underline;
    text-underline-offset: .15em;
}

.apply-general-style a:hover {
    text-decoration-thickness: 2px;
}


/* =========================================================
   LISTS
   ========================================================= */

.apply-general-style :where(ul, ol) {
    margin-block: 0 1em;
    padding-inline-start: 1.5rem;
}

.apply-general-style ul {
    list-style-type: disc;
}

.apply-general-style ol {
    list-style-type: decimal;
}

.apply-general-style li {
    margin-block: .3em;
    padding-inline-start: .15em;
}

.apply-general-style li > :where(p, ul, ol) {
    margin-block: .4em;
}

.apply-general-style :where(ul, ol) :where(ul, ol) {
    margin-block: .35em;
}

.apply-general-style ul ul {
    list-style-type: circle;
}

.apply-general-style ul ul ul {
    list-style-type: square;
}


/* =========================================================
   DESCRIPTION LIST
   ========================================================= */

.apply-general-style dl {
    margin-block: 0 1em;
}

.apply-general-style dt {
    margin-block-start: .8em;
    font-weight: 600;
}

.apply-general-style dt:first-child {
    margin-block-start: 0;
}

.apply-general-style dd {
    margin-block: .25em .75em;
    margin-inline-start: 1.25rem;
}

.apply-general-style dd:last-child {
    margin-block-end: 0;
}


/* =========================================================
   BLOCKQUOTE
   ========================================================= */

.apply-general-style blockquote {
    margin-block: 1em;
    margin-inline: 0;
    padding-block: .25em;
    padding-inline-start: 1rem;
    border-inline-start: .25rem solid;
}

.apply-general-style blockquote > :first-child {
    margin-block-start: 0;
}

.apply-general-style blockquote > :last-child {
    margin-block-end: 0;
}

.apply-general-style blockquote cite {
    display: block;
    margin-block-start: .5em;
    font-size: .875em;
}


/* =========================================================
   TABLES
   ========================================================= */

.apply-general-style table {
    width: 100%;
    max-width: 100%;
    margin-block: 1em;
    border-collapse: collapse;
    border-spacing: 0;
}

.apply-general-style :where(th, td) {
    padding: .55rem .65rem;
    border: 1px solid;
    vertical-align: top;
    text-align: start;
}

.apply-general-style th {
    font-weight: 600;
}

.apply-general-style caption {
    margin-block-end: .5em;
    text-align: start;
    font-weight: 600;
}


/* =========================================================
   CODE / PRE
   ========================================================= */

.apply-general-style :where(code, kbd, samp, pre) {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
}

.apply-general-style :where(code, kbd, samp) {
    font-size: .9em;
}

.apply-general-style code {
    overflow-wrap: anywhere;
}

.apply-general-style pre {
    max-width: 100%;
    margin-block: 1em;
    padding: .75rem;
    overflow: auto;
    font-size: .875em;
    line-height: 1.5;
    white-space: pre;
}

.apply-general-style pre code {
    padding: 0;
    font-size: inherit;
    white-space: inherit;
}


/* =========================================================
   HORIZONTAL RULE
   ========================================================= */

.apply-general-style hr {
    margin-block: 1.25rem;
    border: 0;
    border-block-start: 1px solid;
}


/* =========================================================
   MEDIA
   ========================================================= */

.apply-general-style :where(img, svg, video, canvas) {
    max-width: 100%;
    height: auto;
}

.apply-general-style img {
    display: block;
}

.apply-general-style figure {
    margin-block: 1em;
    margin-inline: 0;
}

.apply-general-style figcaption {
    margin-block-start: .5em;
    font-size: .875em;
}


/* =========================================================
   DETAILS / SUMMARY
   ========================================================= */

.apply-general-style details {
    margin-block: 1em;
}

.apply-general-style summary {
    cursor: pointer;
    font-weight: 600;
}

.apply-general-style details > :not(summary):first-of-type {
    margin-block-start: .75em;
}


/* =========================================================
   FORM ELEMENTS EMBEDDED IN CONTENT
   ========================================================= */

.apply-general-style :where(input, select, textarea, button) {
    max-width: 100%;
    font: inherit;
}

.apply-general-style textarea {
    width: 100%;
    resize: vertical;
}


/* =========================================================
   NESTED CONTENT NORMALIZATION
   ========================================================= */

.apply-general-style :where(
    p,
    ul,
    ol,
    dl,
    blockquote,
    table,
    pre,
    figure,
    details
):last-child {
    margin-block-end: 0;
}


/* =========================================================
   MOBILE TABLE SAFETY
   ========================================================= */

@media (max-width: 600px) {

    .apply-general-style {
        line-height: 1.5;
    }

    .apply-general-style :where(ul, ol) {
        padding-inline-start: 1.25rem;
    }

    .apply-general-style dd {
        margin-inline-start: 1rem;
    }

    .apply-general-style :where(th, td) {
        padding: .45rem .5rem;
    }

    .apply-general-style table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}



/* ===== VARIANTI COLORE ===== */
.vs-varcolors {
    margin: 0 0 1rem;
}

.vs-varcolors-head {
    padding-bottom: .6rem;
    margin-bottom: .25rem;
    border-bottom: 1px solid #efefef;
}

.vs-varcolors-title {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .35rem;
}

.vs-varcolors-context {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
}

.vs-varcolors-chip {
    display: inline-block;
    padding: .25rem .5rem;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    font-size: .74rem;
    line-height: 1.2;
    color: #666;
    background: #fafafa;
}

.vs-varcolors-chip strong {
    color: #1a1a1a;
}

/* filtro */
.vs-colorlist-filter-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0 .75rem;
}

.vs-colorlist-filter {
    flex: 1;
    max-width: 320px;
    height: 32px;
    padding: 0 .65rem;
    border: 1px solid #d5d5d5;
    font-size: .8rem;
    font-family: Roboto, sans-serif;
    color: #333;
    border-radius: 0;
    outline: none;
    transition: border-color .15s;
}

.vs-colorlist-filter:focus {
    border-color: #843d00;
}

.vs-colorlist-filter::placeholder {
    color: #bbb;
}

.vs-colorlist-count {
    font-size: .74rem;
    color: #767676;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.vs-colorlist-group {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

/* griglia colori */
.vs-colorlist-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.vs-colorlist-item {
    border-left: 1px solid transparent;
}

.vs-colorlist-item a,
.vs-colorlist-item--current {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .5rem;
    border-bottom: 1px solid #f2f2f2;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}

.vs-colorlist-item a:hover,
.vs-colorlist-item a:focus-visible {
    background: #f5f9ff;
    text-decoration: none;
    color: inherit;
}

.vs-colorlist-item a:hover .vs-colorlist-name,
.vs-colorlist-item a:focus-visible .vs-colorlist-name {
    color: #005ac8;
}

.vs-colorlist-item img {
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    display: block;
    width: 40px;
    height: 40px;
    object-fit: fill;
}

.vs-colorlist-name {
    flex: 1;
    font-size: .76rem;
    color: #1a1a1a;
    line-height: 1.3;
    min-width: 0;
}

.vs-colorlist-code {
    font-size: .71rem;
    font-weight: 700;
    color: #767676;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .25rem;
}

/* colore corrente: non cliccabile, marcato in rosso */
.vs-colorlist-item--current {
    border: 1px solid #e8000d;
}

.vs-colorlist-item--current .vs-colorlist-name {
    font-weight: 700;
    color: #e8000d;
}

.vs-colorlist-item--current .vs-colorlist-code {
    color: #e8000d;
}

/* item nascosto dal filtro */
.vs-colorlist-item[hidden] {
    display: none;
}

.vs-colorlist-empty {
    font-size: .82rem;
    color: #767676;
    padding: .5rem 0;
    font-style: italic;
}

.vs-colorlist-empty[hidden] {
    display: none;
}

.vs-varcolors-hint {
    font-size: .8rem;
    color: #555;
    margin: .25rem 0 0;
}

@media (max-width: 991px) {
    .vs-colorlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .vs-colorlist-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== PRODUCT LIST ===== */

.vs-product-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.vs-product-list-item {
    list-style: none;

    min-width: 0;
    margin: 0;
    padding: 0;

    border: 1px solid #e3e3e3;
    border-radius: 8px;

    background: #fff;
    color: inherit;
    text-decoration: none;
    cursor: pointer;

    transition:
        border-color .15s,
        background .15s,
        box-shadow .15s;
}

.vs-product-list-item-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;

    min-width: 0;
    margin: 0;
    padding: .75rem;

    text-decoration: none;

}

.vs-product-list-item-inner:hover {
    text-decoration: none;
}

.vs-product-list-item:hover {
    border-color: #005ac8;
    background: #f5f9ff;
    color: inherit;
    text-decoration: none;
}

.vs-product-list-item.is-current {
    border: 2px solid #005ac8;
    background: #f5f9ff;
}

.vs-product-list-image {
    width: 58px;
    height: 74px;

    flex: 0 0 58px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-product-list-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vs-product-list-body {
    flex: 1;
    min-width: 0;
}

.vs-product-list-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;

    margin-bottom: .15rem;

    font-size: .9rem;
    line-height: 1.2;
    font-weight: 700;

    color: #1a1a1a;
}

.vs-product-list-item:hover .vs-product-list-title,
.vs-product-list-item.is-recommended .vs-product-list-title {
    color: #005ac8;
}

.vs-product-list-desc {
    display: block;
    font-size: .76rem;
    line-height: 1.35;
    color: #767676;
}

.vs-product-list-item.is-current .vs-product-list-desc {
    color: #666;
}

.vs-product-list-badge {
    display: inline-block;

    padding: .12rem .35rem;

    border-radius: 3px;

    background: #005ac8;
    color: #fff;

    font-size: .58rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.vs-product-list-price {
    flex-shrink: 0;

    margin-left: .25rem;

    font-size: .9rem;
    line-height: 1;
    font-weight: 700;

    color: #1a1a1a;

    white-space: nowrap;
}

@media (max-width: 1199px) {
    .vs-product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .vs-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .vs-product-list {
        grid-template-columns: 1fr;
    }

    .vs-product-list-image {
        width: 64px;
        height: 78px;
        flex-basis: 64px;
    }

    .vs-product-list-item {
        padding: .7rem;
    }
}

.vs-meta {
    font-size: .74rem;
    color: #767676;
    line-height: 1.5;
    border-top: 1px solid #eee;
    padding-top: .75rem;
    margin-top: .25rem;
}

.vs-meta .vs-meta-highlight {
    font-weight: 600;
}


.vs-flag {
    margin: 0 0.35rem 0 0;
    padding: 2px 0 0 0;
    border-radius: 4px;
}

