/* ===========================================
   mod_featured_tudor - Foglio di stile dedicato
   Author: Mattia Di Giuseppe - Flowence
   Version: 1.0.4
   =========================================== */

@font-face {
    font-family: 'Meta Headline Black';
    src: url('/templates/benetti/font/meta-headline-black.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

.mft-module {
    width: 100%;
    box-sizing: border-box;
}

.mft-wrapper {
    position: relative;
    padding: 0;
}

.mft-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mft-track::-webkit-scrollbar {
    display: none;
}

.mft-item {
    flex: 0 0 calc(25% - 12px);
    scroll-snap-align: start;
    min-width: 0;
    box-sizing: border-box;
}

.mft-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.mft-card:hover {
    opacity: 0.85;
    text-decoration: none;
    color: inherit;
}

.mft-img-wrap {
    background-color: #f8f9fa;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.mft-img {
    width: 100%;
    height: auto;
    display: block;
}

.mft-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px 4px;
    text-align: center;
    gap: 2px;
}

.mft-brand {
    font-family: 'Meta Headline Black', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.mft-name {
    font-family: 'Meta Headline Black', sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    display: block;
    line-height: 1.2;
}

.mft-price {
    text-align: center;
    padding: 2px 8px 12px;
}

.mft-price .vm-price-desc {
    display: none !important;
}

.mft-price .PricesalesPrice {
    font-size: 0.9rem;
    color: #333;
    font-weight: 400;
}

.mft-price .vm-display {
    display: inline !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Frecce — posizionate via JS sull'immagine */
.mft-btn {
    position: absolute;
    width: 56px;
    /* top e transform settati via JS in base all'altezza immagine */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.mft-btn-prev {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 100%);
}

.mft-btn-next {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 100%);
}

/* Freccia disabilitata */
.mft-btn.mft-disabled svg {
    stroke: #ccc;
    cursor: default;
}

/* Freccia attiva */
.mft-btn:not(.mft-disabled) svg {
    stroke: rgb(190, 1, 0);
}

/* Tablet */
@media (max-width: 991px) {
    .mft-item {
        flex: 0 0 calc(50% - 8px);
    }
    .mft-btn {
        width: 44px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .mft-item {
        flex: 0 0 75%;
    }
    .mft-btn {
        width: 36px;
    }
}
