/* ASSETS/CSS/MOBILE.CSS */

/* Header Mobile Section */
.section-title-big {
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-desc {
    text-align: center;
    color: #666;
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Layout Grid */
/* Layout Grid WIDE */
.layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
}

/* Sidebar Styles */
.sidebar {
    position: static;
    /* Was sticky */
    margin-bottom: 2rem;
}

.filter-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.filter-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-label-row {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.filter-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 1.5rem 0;
}

/* Toggles */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

/* Switch CSS */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--text-dark);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Provider Select Box */
.prov-box {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 10px;
}

.prov-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
}

.prov-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
}

/* Operators Grid */
.op-grid-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns safer for width */
    gap: 10px;
}

.op-check-item {
    cursor: pointer;
    display: block;
}

.op-check-item input {
    display: none;
}

.op-box {
    border: 1px solid #eee;
    border-radius: 8px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s;
}

.op-box img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: saturate(0.2) opacity(0.6);
    transition: all 0.3s ease;
}

.op-check-item input:checked+.op-box {
    border: 2px solid var(--primary-blue);
    background: #f0f7ff;
}

.op-check-item input:checked+.op-box img {
    filter: saturate(1) opacity(1);
}

/* List Items (Radio) */
.list-check-item {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.list-check-item input {
    display: none;
}

.list-box {
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    transition: all 0.2s;
}

.list-check-item input:checked+.list-box {
    border-color: var(--text-dark);
    background: #f0f7ff;
    color: var(--text-dark);
}

/* Button Filter */
.btn-filter-apply {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-filter-apply:hover {
    background-color: #219150;
}

/* Results List */
.results-list {
    min-width: 0;
    /* Fix flex/grid overflow issues */
}

.results-count {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* Offer Card Styles moved here too */
.offer-card-row {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.offer-card-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.offer-top-banner {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    padding: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.offer-row-body {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 30px;
}

.col-brand {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.brand-logo {
    max-height: 28px;
    max-width: 100px;
    object-fit: contain;
}

.tag-5g {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.link-details {
    font-size: 0.8rem;
    text-decoration: underline;
    color: #888;
}

.col-features {
    flex: 2.5;
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.feat-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.feat-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
}

.feat-lbl {
    font-size: 0.65rem;
    color: #999;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.col-price {
    flex: 1.5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-display {
    display: flex;
    align-items: flex-start;
    color: var(--text-dark);
}

.price-int {
    font-size: 3rem;
    font-weight: 800;
    line-height: 0.9;
}

.price-sub {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 3px;
    justify-content: center;
}

.price-dec {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.price-per {
    font-size: 0.5rem;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-attiva {
    background: #27ae60;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 15px;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-attiva.btn-small {
    font-size: 0.75rem;
    padding: 8px 12px;
}

.btn-attiva:hover {
    background: #219150;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.btn-callback {
    background: var(--primary-blue);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-bottom: 8px;
}

.btn-callback:hover {
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(66, 129, 164, 0.3);
}

.col-price .btn-group-vertical {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.offer-row-footer {
    padding: 10px 1.5rem;
    background: #fcfcfc;
    border-top: 1px dashed #eee;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-info {
    border: 1px solid #27ae60;
    color: #333;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
}

.badge-info i {
    color: #27ae60;
}

@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .col-features {
        border: none;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
        margin: 15px 0;
        width: 100%;
    }

    .offer-row-body {
        flex-direction: column;
        text-align: center;
    }

    .col-brand,
    .col-price {
        width: 100%;
    }

    .brand-top {
        justify-content: center;
    }

    .price-display {
        justify-content: center;
    }

    .op-grid-filter {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Badge Styles */
.pill-base {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    width: fit-content;
}

.pill-green {
    border: 1px solid #27ae60;
    color: #333;
}

.pill-green i {
    color: #27ae60;
}

.pill-blue {
    border: 1px solid #2980b9;
    color: #333;
}

.pill-blue i {
    color: #2980b9;
}

.pill-orange {
    border: 1px solid #e67e22;
    color: #333;
}

.pill-orange i {
    color: #e67e22;
}

.pill-purple {
    border: 1px solid #9b59b6;
    color: #333;
}

.pill-purple i {
    color: #9b59b6;
}

.pill-teal {
    border: 1px solid #1abc9c;
    color: #333;
}

.pill-teal i {
    color: #1abc9c;
}

/* Checkbox with Checkmark */
.list-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
}

.list-check-item input {
    display: none;
}

.list-check-item .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.list-check-item .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.list-check-item input:checked+.checkmark {
    background: var(--primary-blue);
    border-color: var(--text-dark);
}

.list-check-item input:checked+.checkmark::after {
    opacity: 1;
}

/* Range Slider */
.range-wrapper {
    padding: 10px 0;
}

.range-wrapper input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-green));
    outline: none;
    margin-bottom: 10px;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-wrapper input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-value {
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* --- OFFERTA DETAIL PAGE --- */
.layout-details {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.ai-insight-box {
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 10px;
    color: #004085;
}

.detail-header-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #999;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.detail-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.payment-methods-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pay-item {
    background: #f9f9f9;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eee;
}

/* Sticky Card */
.sticky-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    overflow: hidden;
}

/* Header Blu */
.card-top-dark {
    background: #4281A4;
    padding: 2rem;
    text-align: center;
    color: white;
}

.price-huge-white {
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
}

.period-white {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.8;
    margin-top: 5px;
    letter-spacing: 1px;
}

.card-mid {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.feat-row {
    text-align: center;
    color: #555;
}

.feat-row i {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}

.feat-text strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
}

.card-bottom {
    padding: 1.5rem;
    background: #fff;
}

.btn-activate-solid {
    background: #27ae60;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    display: block;
    text-align: center;
    transition: background 0.2s;
}

.btn-activate-solid:hover {
    background: #219150;
}

@media (max-width: 900px) {
    .layout-details {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }
}