/* Base Modal */
.mqf-popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

h3.mqf-slide-title {
    font-family: 'Oswald' !important;
    font-size: 26px;
    font-weight: 400 !important;

}

.mqf-popup-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    max-height: 80vh;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.mqf-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    color: #333;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    border: 1px solid #ddd;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mqf-popup-close:hover {
    background: #f5f5f5;
    color: #007cba;
    border-color: #007cba;
}

/* Popup Header */
.mqf-popup-header {
    padding: 20px 20px 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.mqf-popup-header .features-header {
    margin: 0;
}

.mqf-popup-header .features-title {
    font-family: 'Oswald';
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 5px 0;
    color: #222;
}

.mqf-popup-header .features-counter {
    font-size: 14px;
    color: #888;
    margin: 0 0 15px 0;
}

.mqf-popup-inner {
    display: flex;
    gap: 0;
    height: 100%;
}

/* Sidebar - Lista caratteristiche */
.mqf-popup-sidebar {
    width: 300px;
    overflow-y: auto;
    background: #fafafa;
    padding: 20px 0;
    border-right: 1px solid #eee;
    position: relative;
}


.mqf-popup-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mqf-popup-sidebar li {
    font-family:'Inter';
    font-weight: 500;
    padding: 8px 20px;
    margin: 0;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s, padding-left 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* .mqf-popup-sidebar li:before {
    content: "✓";
    color: #ff0000;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
} */

.mqf-popup-sidebar li.active {
    background: #e0f0ff;
    border-left: 4px solid #007cba;
    padding-left: 16px;
}

.mqf-popup-sidebar li span {
    display: block;
    word-break: break-word;
    font-size: 16px;
    color: #222;
    line-height: 1.4;
}

.mqf-popup-sidebar li:hover {
    background: #f0f0f0;
}

/* Main Content - Slide */
.mqf-popup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
}

/* Swiper Container */
.swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    min-height: 0;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
    background: white;
    width: 100%;
    flex-shrink: 0;
    height: auto;
}

/* Immagini nelle slide */
.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 10px 0;
}

.swiper-slide h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #222;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swiper-slide .slide-content {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 17px;
    color: #555;
    line-height: 1.2em;
}

/* RIMOSSO: .swiper-slide .slide-image (duplicato di .swiper-slide img) */

/* Frecce di navigazione */
.swiper-button-prev,
.swiper-button-next {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    color: #007cba !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.9 !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-family: "swiper-icons", sans-serif;
    font-size: 18px !important;
    font-weight: bold !important;
    margin: 0 !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #007cba !important;
    color: white !important;
    border-color: transparent !important;
    transform: scale(1.1) !important;
    opacity: 1 !important;
    box-shadow: 0 6px 16px rgba(0, 123, 202, 0.3) !important;
}

.swiper-button-prev {
    left: 20px !important;
    bottom: 20px !important;
    top: auto !important;
}

.swiper-button-next {
    right: 20px !important;
    bottom: 20px !important;
    top: auto !important;
}

/* Pagination */
.swiper-pagination {
    position: static;
    margin: 15px 0;
    padding: 0;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.2s;
}

.swiper-pagination-bullet-active {
    background: #007cba;
    transform: scale(1.3);
}

/* Link trigger */
.mqf-popup-trigger {
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
    margin: 10px 0;
    display: inline-block;
    transition: color 0.2s, text-decoration 0.2s;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.mqf-popup-trigger:hover {
    color: #007cba;
    text-decoration: none;
}

/* Slider inline */
.mqf-slider-inline {
    width: 100%;
    margin: 20px 0;
}

.mqf-slider-inline .mqf-slider-inline-content {
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 auto !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: auto;
    min-height: 500px;
}

.mqf-slider-inline .swiper {
    height: auto;
    min-height: 400px;
}

/* Animazioni */
.mqf-animate-fade {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mqf-animate-slide {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mqf-animate-zoom {
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*====================================*/

/* Responsive mobile */
@media (max-width: 768px) {
    .mqf-popup-content {
        width: 100%;
        height: 100vh;
        max-width: none;
        max-height: none;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .mqf-slider-inline .mqf-slider-inline-content {
        width: 100%;
        max-height: none;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .mqf-popup-inner {
        flex-direction: column;
        height: 100%;
    }

    .mqf-popup-sidebar {
        width: 100%;
        max-height: 20vh;
        overflow-y: auto;
        padding: 10px 0;
        background: #fff;
        border: none;
        border-bottom: 1px solid #eee;
        order: 1;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

    .mqf-popup-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .mqf-popup-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .mqf-popup-sidebar::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 3px;
    }

    .mqf-popup-sidebar::-webkit-scrollbar-thumb:hover {
        background-color: #aaa;
    }

    .mqf-popup-header {
        padding: 15px 15px 0;
    }

    .mqf-popup-header .features-title {
        font-family: 'Oswald';
        font-size: 26px;
        font-weight: 400;
    }

    .mqf-popup-header .features-counter {
        font-size: 12px;
    }

    .mqf-popup-sidebar ul {
        padding: 0 15px;
    }

    .mqf-popup-sidebar li {
        padding: 10px 15px;
        font-size: 14px;
        border-left: none;
    }

    .mqf-popup-sidebar li.active {
        border-left: none;
        padding-left: 15px;
    }

    .mqf-popup-main {
        flex: 1;
        order: 2;
    }

    .mqf-popup-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px !important;
        height: 40px !important;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px !important;
    }

    .swiper-button-prev {
        left: 10px !important;
    }

    .swiper-button-next {
        right: 10px !important;
    }

    .swiper-slide {
        padding: 20px 15px;
        overflow-y: auto;
    }

    .swiper-slide h3 {
        font-family: 'Oswald';
        font-size: 22px;
        margin-bottom: 10px;
    }

    .swiper-slide .slide-content {
        font-family: 'Inter';
        font-weight: 400;
        font-size: 17px;
        line-height: 1.2rem;

    }
}
