:root {
    --primary-color: #99141B;
    --secondary-color: #D5D5D3;
    --gradient-gray: linear-gradient(90deg, rgba(213, 213, 211, 1) 0%, rgba(255, 255, 247, 1) 52%, rgba(213, 213, 211, 1) 100%);
    --gradient-red: linear-gradient(90deg, #99141B 0%, #5c070c 100%);
}

* {
    font-family: "Montserrat", sans-serif !important;
}

h1 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 27px;
}

h3 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 23px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

}

h3::before,
h3::after {
    content: "";
    height: 3px;
    flex: 1;
    min-width: 20px;
}

h3::before {
    background: linear-gradient(
            90deg,
            rgba(132, 31, 28, 0.2) 0%,
            #841F1C 100%
    );
}

h3::after {
    background: linear-gradient(
            90deg,
            #841F1C 0%,
            rgba(132, 31, 28, 0.2) 100%
    );
}

/*header*/
.row_contatti {
    background: var(--gradient-red);
}

/* CARD HOME */

.box_pagechild {
    position: relative;
    overflow: visible;
    background: linear-gradient(351deg, rgba(197, 197, 197, 1) 0%, rgba(240, 235, 235, 1) 10%, rgba(255, 255, 255, 1) 53%, rgba(242, 235, 235, 1) 84%, rgba(197, 197, 197, 1) 100%);
    transition: background 0.4s ease,
    box-shadow 0.4s ease;
    padding: 0px;
    height: 350px;
    margin: 10px;
    width: 23%;
}

.box_pagechild .link_card {
    position: relative;
    display: block;
    height: 350px;
    overflow: vsible;
    text-decoration: none;
    color: inherit;
}

/* IMMAGINE PRODOTTO */

.contenitore_img_pagehild {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.immagine_prodotto {
    width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease,
    opacity 0.5s ease;
}

/* PITTOGRAMMA */

.box_pagechild .pittogramma {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    z-index: 3;
    transition: top 0.5s ease,
    right 0.5s ease,
    transform 0.5s ease;
}

/* TITOLO */

.box_pagechild h2 {
    position: absolute;
    top: 84%;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    background: var(--gradient-red);;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    transition: top 0.4s ease;
}

/* FRECCIA */

.freccia_card {
    display: inline-block;
    margin-left: 20px;
    transition: opacity 0.3s ease;
}

/* HOVER CARD */

.box_pagechild:hover {
    background: linear-gradient(
            135deg,
            #dedede 0%,
            #ffffff 55%,
            #c5c5c5 100%
    );
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* HOVER IMMAGINE */

.box_pagechild:hover .immagine_prodotto {
    transform: scale(1.35) rotate(-15deg);
    opacity: 0.45;
}

/* HOVER PITTOGRAMMA */

.box_pagechild:hover .pittogramma {
    top: 38%;
    right: 50%;
    transform: translate(50%, -50%) scale(1.5) rotate(-15deg);
}

/* HOVER TITOLO */

.box_pagechild:hover h2 {
    top: 55%;
    text-transform: uppercase;
}

/* HOVER FRECCIA */

.box_pagechild:hover .freccia_card {
    opacity: 0;
}

.box_pagechild .link_card {
    position: relative;
    display: block;
    height: 270px;
}

.box_pagechild .footer_pagechild {
    position: absolute;
    bottom: -23%;
    left: 0;
    width: 100%;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    color: #89929b;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;

    transition: opacity 0.3s ease;
}

.box_pagechild .card-plus {
    background: var(--gradient-red);
    color: white;
    padding: 0 4px;
}

.box_pagechild:hover .footer_pagechild {
    opacity: 0;
}

/*carousel home*/

/* INTESTAZIONE */

.carousel_news #intestazione_sezione_news {
    margin-bottom: 25px;
}

.carousel_news #intestazione_sezione_news h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
}

.carousel_news #intestazione_sezione_news h3::before,
.carousel_news #intestazione_sezione_news h3::after {
    content: "";
    height: 3px;
    flex: 1;
    background: var(--gradient-red);
}

/* CAROSELLO */

.carousel_news .news_carousel_wrapper {
    position: relative;
}

.carousel_news .news_viewport {
    width: 100%;
    overflow: hidden;
    padding: 8px 0 12px;
}

.carousel_news .news_track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
}

/* 3 CARD DESKTOP */

.carousel_news .box_news {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    min-width: 0;
    padding: 0 15px;
    box-sizing: border-box;
}

/* CARD */

.carousel_news .news_card {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* IMMAGINE */

.carousel_news .img_news {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.carousel_news .img_news a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel_news .immagine_news {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel_news .news_card:hover .immagine_news {
    transform: scale(1.05);
}

/* TITOLO */

.carousel_news .titolo_news {
    position: absolute;
    top: 18px;
    left: 10%;
    width: 80%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.carousel_news .titolo_news a {
    display: block;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
}

/* DESCRIZIONE */

.carousel_news .descrizione_news {
    position: absolute;
    top: 87%;
    left: 0;
    width: 100%;
    padding: 20px 20px;
    background: rgb(106 103 103);
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    z-index: 2;
}

.carousel_news .descrizione_news:hover {
    background: #99141B;
}

/* PULSANTE */

.carousel_news .news_btn {
    position: absolute;
    bottom: 48px;
    right: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    background: #fff;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.carousel_news .news_plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: var(--gradient-red);
    color: white;
    font-size: 13px;
    font-weight: bold;
}

/* FRECCE */

.carousel_news .news_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--gradient-red);
    color: white;
    font-size: 23px;
    cursor: pointer;
}

.carousel_news .news_prev {
    left: -45px;
}

.carousel_news .news_next {
    right: -45px;
}

.carousel_news .news_arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.carousel_news .news_carousel_wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(50% + 80px);

    background-image: url('/img_ins/images/background_news.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;
}

/*contenitore_footer*/
#contenitore_footer {
    background-color: #d7d7d7;
    color: black;
}

/*pagina prodotto*/
.technical-table {
    font-size: 18px;
    color: #333;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    display: block;
}

.technical-table thead th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, .65);
}

.technical-table tbody td {
    color: #333;
}

.technical-table tbody tr:nth-child(even) td {
    background-color: #eaeaea;
}

.technical-table > :not(caption) > * > * {
    padding: .25rem .75rem;
    border-bottom: 0;
}

.technical-table th:not(:first-child),
.technical-table td:not(:first-child) {
    text-align: center;
}

.technical-table td:first-child {
    padding-left: 2rem;
    white-space: nowrap;
}

#contenitore_footer h6 {
    font-weight: 800;
}

.pitto_specifiche p {
    font-size: 13px;
}

.scheda_tecnica h4 {
    text-align: right;
}

.btn_download {
    background: var(--primary-color);
    padding: 8px;
    color: white;
    border: none;
    border-radius: 5px;
}

.btn_download:hover {
    background: white;
    padding: 8px;
    color: var(--primary-color);
    border: solid var(--primary-color) 1px;
    border-radius: 5px;
}

/*carosello prodotto*/

/* CONTENITORE */
.coverflow-prodotti {
    position: relative;
    width: 100%;
    padding: 25px 55px 45px;
    margin: 60px auto;
    overflow: hidden;
    text-align: center;
}

.coverflow-titolo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 35px;
}

/* AREA CAROSELLO */
.coverflow-stage {
    position: relative;
    width: 100%;
    height: 270px;
    perspective: 1200px;
}

/* CARD */
.coverflow-card {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 245px;
    height: 225px;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .20);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) scale(.6);
    transition: transform .45s ease,
    opacity .45s ease,
    visibility .45s ease;
}

/* LINK */
.coverflow-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 12px;
    color: #111;
    text-decoration: none;
}

.coverflow-link:hover {
    color: #111;
    text-decoration: none;
}

/* IMMAGINE */
.coverflow-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 155px;
    overflow: hidden;
}

.coverflow-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* TITOLO */
.coverflow-card-title {
    margin: auto 0 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

/* POSIZIONI CARD */
.coverflow-card[data-pos="-2"] {
    transform: translateX(calc(-50% - 310px)) scale(.82);
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.coverflow-card[data-pos="-1"] {
    transform: translateX(calc(-50% - 155px)) scale(.92);
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.coverflow-card[data-pos="0"] {
    transform: translateX(-50%) scale(1.08);
    z-index: 5;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .24);
}

.coverflow-card[data-pos="1"] {
    transform: translateX(calc(-50% + 155px)) scale(.92);
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.coverflow-card[data-pos="2"] {
    transform: translateX(calc(-50% + 310px)) scale(.82);
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

/* FRECCE */
.coverflow-prev,
.coverflow-next {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 23px;
    line-height: 38px;
    cursor: pointer;
    transform: translateY(-50%);
}

.coverflow-prev {
    left: 5px;
}

.coverflow-next {
    right: 5px;
}

.coverflow-prev:hover,
.coverflow-next:hover {
    background: #c8101b;
}

/* INDICATORI */
.coverflow-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
}

.coverflow-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d3d8dc;
    cursor: pointer;
}

.coverflow-dots button.active {
    width: 24px;
    border-radius: 8px;
    background: #557684;
}

/*gallry prodotto */
.product-gallery {
    width: 100%;
}

/* IMMAGINE PRINCIPALE */
.product-gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 420px;
    border: 1px solid #ccc;
    background: #fff;
    overflow: hidden;
    cursor: crosshair;
}

.product-gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .15s ease-out;
    transform-origin: center center;
}

.product-gallery-main:hover img {
    transform: scale(2);
}

.product-gallery-hint {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #888;
    font-size: 14px;
    pointer-events: none;
}

.product-gallery-main:hover .product-gallery-hint {
    opacity: 0;
}

/* MINIATURE */
.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.product-gallery-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    padding: 5px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: #ed1c24;
}

.product h1 {
    color: var(--primary-color);
}

/*cart product-list */

.box_anteprima_prodotti {
    margin-bottom: 30px;
}

.box_anteprima_prodotti_link {
    display: block;
    height: 100%;
    color: #222;
    text-decoration: none;
}

.box_anteprima_prodotti_link:hover {
    color: #222;
    text-decoration: none;
}

.box_anteprima_prodotti_card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 285px;
    padding: 20px 15px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
    background: linear-gradient(351deg, rgba(197, 197, 197, 1) 0%, rgba(240, 235, 235, 1) 10%, rgba(255, 255, 255, 1) 53%, rgba(242, 235, 235, 1) 84%, rgba(197, 197, 197, 1) 100%);
}

.box_anteprima_prodotti_immagine {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.box_anteprima_prodotti_immagine img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter .3s ease, transform .3s ease;

}

.box_anteprima_prodotti_titolo {
    position: relative;
    z-index: 2;
    width: calc(100% + 30px);
    margin: 0 0 12px -15px;
    padding: 5px 8px;
    border: none;
    background: rgba(255, 255, 255, .9);
    color: #222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    transition: background .3s ease, color .3s ease, top 0.4s ease;

}

.box_anteprima_prodotti_pulsante {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 9px 17px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, .95);
    color: #888;
    font-size: 12px;
    font-weight: 600;
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility .25s ease;
}

.box_anteprima_prodotti_pulsante strong {
    display: inline-block;
    margin-left: 5px;
    padding: 0 3px;
    background: #d71920;
    color: #fff;
    font-size: 13px;
}

.box_anteprima_prodotti_link:hover .box_anteprima_prodotti_card {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    transform: translateY(-3px);
}

.box_anteprima_prodotti_link:hover .box_anteprima_prodotti_immagine img {
    filter: grayscale(100%);

}

.box_anteprima_prodotti_link:hover .box_anteprima_prodotti_titolo {
    background: var(--gradient-red);
    color: #fff;
    top: -20%;
}

.box_anteprima_prodotti_link:hover .box_anteprima_prodotti_pulsante {
    opacity: 0;
    visibility: hidden;
}

.elenco-prodotti {
    display: flex;
    align-items: center;
}

.elenco-prodotti h1 {
    color: var(--primary-color);
    margin: 50px 0px;
}

.breadcrumb {
    margin-top: 50px;
}

.breadcrumb > .active {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
}

.breadcrumb li {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

.elemento_ricerca a {
    color: var(--primary-color);
}

header a {
    color: #fff;
}

.breadcrumb-italy {
display: flex;
    align-items: baseline;
}

/* MEDIA */
/* TABLET */

@media (max-width: 991.98px) {
    .carousel_news .box_news {
        flex: 0 0 50%;
        width: 50%;
    }

    .coverflow-card[data-pos="-2"],
    .coverflow-card[data-pos="2"] {
        opacity: 0;
        visibility: hidden;
    }

    .coverflow-card[data-pos="-1"] {
        transform: translateX(calc(-50% - 125px)) scale(.82);
    }

    .coverflow-card[data-pos="1"] {
        transform: translateX(calc(-50% + 125px)) scale(.82);
    }

    .carousel_news .news_prev {
        left: -12px;
    }

    .carousel_news .news_next {
        right: -12px;
    }
}

/* MOBILE */

@media (max-width: 767.98px) {

    h1 {
        font-size: 25px;
    }

    .owl-carousel {
        margin-top: 20px
    }

    .row_contatti {
      text-align: center;
    }

    .box_anteprima_prodotti_card {
        height: 280px;
    }

    .box_anteprima_prodotti_titolo {
        font-size: 16px;
    }

    .product-gallery-main {
        height: 300px;
    }

    .product-gallery-thumb {
        height: 90px;
    }

    .product-gallery-thumbs {
        gap: 10px;
    }

    .product-gallery-main:hover img {
        transform: none;
    }

    .coverflow-prodotti {
        padding: 20px 42px 35px;
    }

    .coverflow-stage {
        height: 245px;
    }

    .coverflow-card {
        width: 210px;
        height: 215px;
    }

    .coverflow-card[data-pos="-1"],
    .coverflow-card[data-pos="1"] {
        opacity: 0;
        visibility: hidden;
    }

    .coverflow-card[data-pos="0"] {
        transform: translateX(-50%) scale(1);
    }

    .coverflow-prev,
    .coverflow-next {
        width: 32px;
        height: 32px;
        font-size: 19px;
        line-height: 32px;
    }

    .box_pagechild {
        width: 100%;
        margin: 10px 0px;
    }

    .carousel_news .box_news {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 10px;
    }

    .carousel_news #intestazione_sezione_news h3 {
        font-size: 15px;
        gap: 8px;
    }

    .carousel_news .news_prev {
        left: -10px;
    }

    .carousel_news .news_next {
        right: -10px;
    }
}