/* ================================================== */
/* BASE                                               */
/* ================================================== */

*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #F6F6F6 0%, #E0E0E0 100%);
    background-size: cover;
    background-attachment: fixed;
}

.is-section img,
.mk-product-image img,
.mk-benefit-icon {
    max-width: 100%;
    height: auto;
    display: block;
}

.is-section,
.is-box,
.is-boxes,
.is-box-centered {
    margin: 0;
    padding: 0;
}

/* ================================================== */
/* UTILITY SPACING                                    */
/* ================================================== */

.mk-pt-20  { padding-top: 20px; }
.mk-pb-40  { padding-bottom: 40px; }
.mk-mv-20  { margin: 20px 0; }

/* ================================================== */
/* HERO                                               */
/* ================================================== */

.mk-h1-span {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 700;
    color: #000;
}

.mk-badge-img {
    width: 105px;
    margin: 14px auto 12px;
}

.mk-subheadline {
    font-size: clamp(20px, 5vw, 30px);
    font-weight: 400;
    display: block;
    margin-bottom: 14px;
    color: #000;
}

.mk-hero-text {
    margin: 0 auto 18px;
    max-width: 760px;
    font-size: clamp(16px, 2vw, 19px);
    color: #000;
    font-weight: 600;
}

.mk-shipping-label { color: #000; }

.mk-steps {
    display: inline-block;
    font-size: 16px;
    margin-bottom: 16px;
}

.mk-step  { color: #000; }

.mk-check {
    color: #00b8c9;
    font-weight: 700;
}

.mk-cta-primary {
    background-color: #0f6f78;
    color: #fff;
}

/* ================================================== */
/* SEZIONE TITOLI                                     */
/* ================================================== */

.mk-section-title {
    margin: 0 !important;
    font-family: Poppins, sans-serif !important;
    font-size: clamp(24px, 4vw, 32px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

.mk-section-sub {
    margin: 8px 0 0;
    color: #6d6d6d;
    font-size: 18px;
    font-family: Poppins, sans-serif;
}

/* ================================================== */
/* CATEGORIE                                          */
/* ================================================== */

.mk-cat-label {
    margin: 10px 0 0;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.mk-cat-link {
    color: #111;
    text-decoration: none;
    font-weight: bold;
}

/* ================================================== */
/* DIVIDER                                            */
/* ================================================== */

.mk-divider {
    height: 3px;
    background: #d8d8d8;
}

/* ================================================== */
/* USP / BENEFIT                                      */
/* ================================================== */

.mk-usp-container { padding: 20px 15px; }

.mk-benefit-card  { padding: 18px 14px; }

.mk-benefit-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
}

.mk-benefit-text {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.mk-benefit-title {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

/* ================================================== */
/* GRID PRODOTTI                                      */
/* ================================================== */

.mk-product-grid {
    margin: 0;
    padding: 0;
}

.mk-product-col { padding: 6px; }

/* ================================================== */
/* CARD                                               */
/* ================================================== */

.mk-product-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.mk-product-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 20;
    padding: 6px 10px;
    border-radius: 30px;
    background: #e12626;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.mk-product-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.mk-product-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 15px;
}

.mk-product-title {
    margin-bottom: 8px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.mk-product-price {
    margin-bottom: 8px;
    color: #0f6f78;
    font-size: 24px !important;
    font-weight: 800 !important;
}

.mk-product-old {
    margin-left: 6px;
    color: #222;
    font-size: 14px;
    text-decoration: line-through;
}

.mk-product-shipping {
    margin-bottom: 14px;
    font-size: 14px;
}

.mk-product-btn {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 13px;
    border-radius: 10px;
    background: #0f6f78;
    color: #fff !important;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}

/* ================================================== */
/* GRIGLIA NUOVA GENERAZIONE                          */
/* ================================================== */

.mk-ng-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 6px;
}

/* ================================================== */
/* WRAPPER SLIDER                                     */
/* ================================================== */

.mk-slider-wrap,
.mk-benefit-wrap {
    position: relative;
}

/* ================================================== */
/* DESKTOP  ≥ 769px                                   */
/* ================================================== */

@media (min-width: 769px) {

    .benefit-slider {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .benefit-slider > div { padding: 0 !important; }

    .mk-product-col:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 26px rgba(0, 0, 0, .08) !important;
    }
}

/* ================================================== */
/* MOBILE  ≤ 768px                                    */
/* ================================================== */

@media (max-width: 768px) {

    /* Grid */
    .mk-product-grid {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -4px;
    }

    .mk-product-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 4px;
    }

    /* Nuova generazione — scroll orizzontale */
    .mk-ng-grid {
        grid-template-columns: unset;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 0 10px;
        scrollbar-width: none;
    }

    .mk-ng-grid::-webkit-scrollbar { display: none; }

    .mk-ng-grid .mk-product-card {
        flex: 0 0 80vw;
        min-width: 80vw;
        scroll-snap-align: start;
    }

    /* Tipografia */
    .mk-product-title    { font-size: 14px; }
    .mk-product-price    { font-size: 19px !important; }
    .mk-product-shipping { font-size: 13px; }

    /* Benefit slider */
    .benefit-slider {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding: 0 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .benefit-slider::-webkit-scrollbar { display: none; }

    .benefit-slider > div {
        flex: 0 0 calc(100% - 24px) !important;
        min-width: calc(100% - 24px) !important;
        scroll-snap-align: center;
    }

    .benefit-slider .mk-product-card {
        content-visibility: visible !important;
        contain: none !important;
    }

    /* Visual */
    .mk-product-card {
        box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
        border-radius: 14px;
    }

    .mk-product-col img { border-radius: 12px; }
}