.product-tag,
.product-price {
    color: var(--rosso);
    margin-bottom: 16px;
}

.product-tag {
    text-transform: uppercase;
}

.product-intro .titolo-page {
    margin-bottom: 24px;
    overflow-wrap: anywhere;
}

.product-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.product-actions .button,
.box-product .button {
    width: 100%;
    margin-top: 0;
}

.button.button-solid {
    background: var(--rosso);
    color: var(--bianco);
    border-color: var(--rosso);
}

.product-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
}

.swiperProductMain {
    width: 100%;
    min-width: 0;
    height: 460px;
}

.swiperProductMain img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiperProductMain .cont-carousel {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    padding: 0;
}

.swiperProductMain .button-icon {
    background: var(--bianco);
}

.swiperProductThumbs {
    width: 100%;
    height: 460px;
    min-width: 0;
}

.product-gallery:not(:has(.swiperProductThumbs)) {
    grid-template-columns: minmax(0, 1fr);
}

.product-thumb {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
}

.product-thumb[aria-pressed="true"] {
    border-color: var(--rosso);
}

.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-product-info,
.box-product {
    background: var(--bianco);
    border: 1px solid #ededed;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.07);
}

.box-product-info {
    margin-top: 30px;
    padding: 28px;
}

.product-accordions {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.product-accordions .box-product-info {
    margin-top: 0;
}

.box-product-info summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    list-style: none;
    cursor: pointer;
}

.box-product-info summary::-webkit-details-marker {
    display: none;
}

.box-product-info summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--rosso);
    border-bottom: 1px solid var(--rosso);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.box-product-info[open] summary::after {
    transform: rotate(225deg);
}

.product-info-content {
    padding-top: 24px;
    color: var(--grigio);
    overflow-wrap: anywhere;
}

.product-info-list {
    margin: 0;
}

.product-info-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-info-list dt,
.product-info-list dd {
    font-weight: 400;
    margin: 0;
}

.product-accessories-label {
    margin-top: 24px;
}

.swiperProducts {
    margin-top: 40px;
    padding: 16px 0;
}

.featured-products {
    margin-top: 24px;
}

.featured-products-tabs {
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid #ededed;
}

.featured-products-tab {
    padding: 10px 24px;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--grigio);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.featured-products-tab[aria-selected="true"] {
    border-bottom-color: var(--rosso);
    color: var(--rosso);
}

.featured-products-tab:focus-visible {
    outline: 2px solid var(--rosso);
    outline-offset: 3px;
}

.featured-products-panel[hidden] {
    display: none;
}

.featured-products-panel .swiperProducts {
    margin-top: 24px;
}

.featured-products-panel .swiperProductsHome {
    position: relative;
    padding: 16px 48px 52px;
}

.featured-products-panel .swiperProductsHome .cont-carousel {
    position: absolute;
    top: 16px;
    right: 0;
    bottom: 52px;
    left: 0;
    padding: 0;
    pointer-events: none;
}

.featured-products-panel .swiperProductsHome .carousel-prev,
.featured-products-panel .swiperProductsHome .carousel-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    pointer-events: auto;
}

.featured-products-panel .swiperProductsHome .carousel-prev {
    left: 0;
}

.featured-products-panel .swiperProductsHome .carousel-next {
    right: 0;
}

.featured-products-panel .swiperProductsHome .carousel-pagination {
    position: absolute;
    bottom: -24px;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    pointer-events: auto;
}

.featured-products-empty {
    margin: 24px 0 0;
    color: var(--grigio);
    text-align: center;
}

.swiperProducts .swiper-slide {
    height: auto;
}

.box-product {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.box-product-image {
    position: relative;
    aspect-ratio: 4/3;
}

.box-product-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-brand {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 100px;
    height: 40px;
    padding: 6px 10px;
    background: var(--bianco);
}

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

.box-product-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-link {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.product-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-card-link:hover {
    color: var(--rosso);
}

.product-stock {
    color: var(--grigio);
    margin-top: 20px;
    overflow-wrap: anywhere;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.product-specs > div:only-child {
	grid-column: 1 / -1;
}

.product-specs > div {
    padding: 12px;
    background: #f2f2f2;
    overflow-wrap: anywhere;
}

.product-specs dt {
    color: var(--grigio);
    font-weight: 400;
}

.product-specs dd {
    margin: 6px 0 0;
}

.box-product .product-download {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 12px;
}

.swiperProducts .carousel-pagination {
    position: static;
    width: auto;
    margin: 0 auto;
}

.swiperProducts .swiper-pagination-bullet-active {
    background: var(--rosso);
}

.product-modal {
    width: min(680px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 28px;
    border: 0;
    background: var(--bianco);
    color: var(--nero);
    overflow-y: auto;
}

.product-modal::backdrop {
    background: rgb(0 0 0 / 65%);
}

.product-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.product-modal-name {
    margin-top: 20px;
}

.contatti-form.product-modal-form {
    padding: 0;
    margin: 24px 0 0;
    border: 0;
    box-shadow: none;
}

body.open-product-modal {
    overflow: hidden;
}

.page-product :focus-visible {
    outline: 2px solid var(--rosso);
    outline-offset: 4px;
}

.product-archive-intro {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 250px;
    padding: 56px 0 48px;
    color: var(--bianco);
    background: #1d1d1b;
    isolation: isolate;
}

.product-archive-intro::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 42%;
    background-image: linear-gradient(90deg, #1d1d1b 0%, rgb(29 29 27 / 35%) 35%, transparent 70%), var(--category-image);
    background-position: center, center;
    background-size: cover;
    content: "";
}

.product-archive-intro::after {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 42%;
    background: var(--rosso);
    clip-path: polygon(0 0, 24% 0, 100% 34%, 100% 100%, 0 100%);
    content: "";
}

.product-archive-intro:not(.has-category-image)::before {
    background-image: none;
}

.product-archive-intro .breadcrumb-page {
    margin-bottom: 24px;
}

.product-archive-intro .breadcrumb-page a,
.product-archive-intro .breadcrumb-page,
.product-archive-intro .titolo-page,
.product-archive-intro .product-archive-description {
    color: var(--bianco);
}

.product-archive-hero-content {
    position: relative;
    z-index: 1;
}

.product-archive-description {
    max-width: 760px;
    margin-top: 16px;
}

.product-catalog {
    display: block;
}

.product-catalog-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
    gap: 32px;
}

.product-brand-filters {
    min-width: 0;
    margin: 0 0 36px;
    padding: 0 0 32px;
    border: 0;
    border-bottom: 1px solid #ededed;
}

.product-brand-filters legend {
    float: none;
    width: 100%;
    margin-bottom: 14px;
    padding: 0;
}

.product-brand-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-brand-filter {
    position: relative;
    display: grid;
    min-width: 0;
    aspect-ratio: 1.55;
    padding: 16px;
    place-items: center;
    border: 1px solid #ededed;
    background: var(--bianco);
    box-shadow: 0 4px 30px rgb(0 0 0 / 5%);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.product-brand-filter:hover,
.product-brand-filter.is-selected,
.product-brand-filter:focus-within {
    border-color: var(--rosso);
    box-shadow: 0 4px 24px rgb(0 0 0 / 9%);
}

.product-brand-filter input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.product-brand-filter-logo {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.product-brand-filter-logo img {
    display: block;
    max-width: 100%;
    max-height: 48px;
}

.product-brand-filter-name {
    font-weight: 700;
    text-align: center;
}

.product-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.product-catalog-filters {
    padding: 24px;
    border: 1px solid #ededed;
    background: var(--bianco);
}

.product-catalog-filters > .titolo-small {
    margin: 0 0 20px;
}

.product-filter-group {
    min-width: 0;
    margin: 0;
    padding: 16px 0;
    border: 0;
    border-top: 1px solid #ededed;
}

.product-filter-group legend {
    float: left;
    width: 100%;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-filter-tree,
.product-filter-tree ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    clear: both;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-filter-tree ul {
    padding: 4px 0 8px;
}

.product-filter-tree li:has(> .product-filter-accordion) {
    flex: 1 1 100%;
}

.product-filter-accordion summary {
    position: relative;
    padding: 8px 22px 8px 0;
    cursor: pointer;
    list-style: none;
}

.product-filter-accordion summary::-webkit-details-marker {
    display: none;
}

.product-filter-accordion summary::after {
    position: absolute;
    top: 13px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--rosso);
    border-bottom: 1px solid var(--rosso);
    content: "";
    transform: rotate(45deg);
}

.product-filter-accordion[open] > summary::after {
    transform: rotate(225deg);
}

.product-filter-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    color: #777;
    cursor: pointer;
}

.product-filter-option:has(input:checked) {
    border-color: var(--rosso);
    color: var(--rosso);
}

.product-filter-option:has(input:checked)::before {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background: url('../media/svg/check.svg') center / contain no-repeat;
    content: '';
}

.product-filter-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.product-filter-option:has(input:focus-visible) {
    outline: 2px solid var(--rosso);
    outline-offset: 2px;
}

.product-filter-actions {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    text-align: center;
}

.product-filter-actions > a {
    color: var(--rosso);
}

.product-catalog-empty {
    padding: 24px;
    border: 1px solid #ededed;
}

.page-product-archive .pagination {
    margin-top: 36px;
}

.page-product-archive .pagination ul {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    margin: 0;
    padding: 0 52px;
    list-style: none;
}

.page-product-archive .pagination a.page-numbers,
.page-product-archive .pagination span.page-numbers {
    display: grid;
    min-width: 28px;
    min-height: 36px;
    place-items: center;
    color: var(--nero);
    text-decoration: none;
}

.page-product-archive .pagination .current {
    color: var(--rosso);
    border-bottom: 2px solid var(--rosso);
}

.page-product-archive .pagination .dots {
    min-width: 16px;
}

.page-product-archive .pagination .prev,
.page-product-archive .pagination .next {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rosso);
    border-radius: 50%;
    color: var(--rosso);
    transform: translateY(-50%);
}

.page-product-archive .pagination .prev {
    left: 0;
}

.page-product-archive .pagination .next {
    right: 0;
}

.page-product-archive .pagination .prev .dashicons,
.page-product-archive .pagination .next .dashicons {
    font-size: 20px;
}

.page-product-archive .pagination a:hover {
    color: var(--rosso);
}

.page-product-archive .pagination a:focus-visible {
    outline: 2px solid var(--rosso);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .page-product-archive .pagination ul {
        gap: 4px;
        padding: 0 44px;
    }

    .page-product-archive .pagination .page-numbers {
        min-width: 24px;
    }
}

.product-archive-extra {
    border-top: 1px solid #ededed;
}

.product-archive-extra .container {
    max-width: 900px;
}

.product-archive-extra .cont-testo {
    margin-top: 16px;
}

@media (max-width: 991.98px) {
    .product-catalog-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-catalog-filters {
        grid-row: 1;
    }

    .product-catalog-results {
        grid-row: 2;
    }

    .product-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .swiperProductMain {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .swiperProductThumbs {
        height: 100px;
    }
}

@media (max-width: 575.98px) {
    .featured-products-panel .swiperProductsHome {
        padding-right: 40px;
        padding-left: 40px;
    }

    .product-archive-intro {
        min-height: 220px;
        padding: 40px 0;
    }

    .product-archive-intro::before {
        left: 25%;
    }

    .product-brand-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .box-product-content,
    .box-product-info,
    .product-modal {
        padding: 20px;
    }
}

.product-filter-brand-accordion {
    border-bottom: 1px solid #ededed;
}

.product-filter-brand-accordion > summary {
    padding-top: 14px;
    padding-bottom: 14px;
    font-weight: 600;
}