/* ========================================
   SERVIZI PAGE STYLES
   ======================================== */

/* Service Detail Cards */
.service-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-detail-card:hover::before {
    transform: scaleX(1);
}

.service-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(37, 150, 190, 0.3);
}

.service-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.service-detail-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.service-detail-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #555;
}

.service-detail-features li:last-child {
    border-bottom: none;
}

.service-detail-features li i {
    color: #2596be;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Comparison Table */
.comparison-table-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

/* Mobile Comparison Cards - Hidden by default */
.mobile-comparison-cards {
    display: none;
    padding: 0 1rem;
}

.mobile-system-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 2px solid #f0f0f0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-system-card.featured {
    border-color: #2596be;
    position: relative;
}

.mobile-system-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.mobile-system-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.mobile-system-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.mobile-system-subtitle {
    font-size: 0.9rem;
    color: #2596be;
    font-weight: 600;
}

.mobile-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.mobile-features-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.mobile-features-list li:last-child {
    border-bottom: none;
}

.mobile-feature-name {
    color: #555;
}

.mobile-feature-status i {
    font-size: 1.1rem;
}

.mobile-ideal-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mobile-system-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: white;
    color: #2596be;
    border: 2px solid #2596be;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-system-btn:hover {
    background: #2596be;
    color: white;
}

.mobile-system-card.featured .mobile-system-btn {
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    border-color: transparent;
}

.mobile-system-card.featured .mobile-system-btn:hover {
    background: linear-gradient(135deg, #1a7a99 0%, #0398b8 100%);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.comparison-table thead tr {
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    border: none;
}

.comparison-table th.feature-column {
    text-align: left;
    border-top-left-radius: 15px;
}

.comparison-table th:last-child {
    border-top-right-radius: 15px;
}

.comparison-table th.featured-column {
    background: linear-gradient(135deg, #1a7a99 0%, #0398b8 100%);
    position: relative;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    vertical-align: middle;
}

.comparison-table td.feature-name {
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
}

.comparison-table .fas.fa-check {
    font-size: 1.25rem;
}

.comparison-table .fas.fa-times {
    font-size: 1.25rem;
}

.badge-coming-soon {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(37, 150, 190, 0.1);
    color: #2596be;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-ideal {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.comparison-table tr.price-row td {
    padding: 1.5rem 1rem;
}

.btn-table {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #2596be;
    border: 2px solid #2596be;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-table:hover {
    background: #2596be;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 150, 190, 0.3);
}

.btn-table-featured {
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    border-color: transparent;
}

.btn-table-featured:hover {
    background: linear-gradient(135deg, #1a7a99 0%, #0398b8 100%);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .service-detail-card {
        margin-bottom: 20px;
    }

    .comparison-table-wrapper {
        padding: 1.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.875rem;
    }

    .comparison-table th {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .service-detail-card {
        padding: 2rem 1.5rem;
    }

    .service-detail-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .service-detail-title {
        font-size: 1.25rem;
    }

    .service-detail-description {
        font-size: 0.95rem;
    }

    .service-detail-features li {
        font-size: 0.875rem;
        padding: 0.65rem 0;
    }

    /* Nascondi tabella, mostra card su mobile */
    .comparison-table-wrapper .table-responsive {
        display: none;
    }

    .mobile-comparison-cards {
        display: block;
    }

    .comparison-table-wrapper {
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
}

@media (max-width: 575px) {
    .service-detail-card {
        padding: 1.5rem;
    }

    .service-detail-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .service-detail-title {
        font-size: 1.15rem;
    }

    .service-detail-description {
        font-size: 0.9rem;
    }

    .service-detail-features li {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    .mobile-system-card {
        padding: 1.5rem;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .mobile-system-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .mobile-system-name {
        font-size: 1.25rem;
    }

    .mobile-features-list li {
        font-size: 0.85rem;
    }
}

/* Tablet landscape specific */
@media (min-width: 768px) and (max-width: 991px) {
    .comparison-table th,
    .comparison-table td {
        padding: 0.85rem 0.5rem;
        font-size: 0.85rem;
    }

    .service-detail-card {
        min-height: 400px;
    }
}