/* Professional Landings (Studi Tecnici, Agenzie) Custom Styles */

:root {
    --brand-green-ape: #39b51e;
    --light-green-ape: #eaf6e7;
    --marketing-text-primary: #111827;
    --marketing-text-secondary: #6b7280;
}

.text-brand-green {
    color: var(--brand-green-ape) !important;
}

.bg-light-green {
    background-color: var(--light-green-ape) !important;
}

.bg-soft-green-alt {
    background-color: #D6EECF !important;
}

.bg-soft-blue {
    background-color: #EEF2FA99 !important;
}

.bg-soft-orange {
    background-color: #FEEFD699 !important;
}

.bg-soft-yellow {
    background-color: #FFF7BB99 !important;
}

.bg-soft-cyan {
    background-color: #DCF1F499 !important;
}

.bg-soft-gray {
    background-color: #EDEDE899 !important;
}

/* Hero Section */
.hero-studi-quote {
    border-left: 4px solid #fbbf24;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: .8rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hero-studi-quote p {
    font-size: 1.2em;
    font-style: italic;
    color: var(--marketing-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* White Phone Button - Redundant, now in ape-modern.css */

/* Pricing Page Pill */
.pill-preventivatore {
    background: #ffffff;
    color: #111827 !important;
    padding: 1.25rem 3rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pill-preventivatore:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* RicaricAPE List Cards */
.info-card-studi {
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 1rem !important;
    padding: 1.5rem 2rem !important;
    transition: all 0.3s ease;
    margin-bottom: 1.25rem !important;
}

.info-card-studi:hover {
    background: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
}

/* Typography Utilities */
.text-lg-15 {
    font-size: 4rem;
}

.text-lg-12 {
    font-size: 3.5rem;
}

.text-lg-10 {
    font-size: 3rem;
}

.text-10 {
    font-size: 2.5rem;
}

@media (max-width: 991px) {
    .text-lg-15 {
        font-size: 2.5rem;
    }

    .text-lg-12 {
        font-size: 2.25rem;
    }

    .text-lg-10 {
        font-size: 2rem;
    }

    .text-10 {
        font-size: 1.85rem;
    }
}

.line-height-1-2 {
    line-height: 1.2;
}

.font-weight-800 {
    font-weight: 800;
}

/* Icon Wrappers */
.icon-wrap-studi {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--light-green-ape);
    color: var(--brand-green-ape);
    flex-shrink: 0;
}

.badge-area-riservata {
    background-color: var(--light-green-ape);
    color: var(--brand-green-ape);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* RicaricAPE Card Refinement */
.ricaricape-selector-card {
    background: #fafafa;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 15px 30px -6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.promo-badge-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--brand-green-ape);
    color: white;
    font-size: .8rem;
    font-weight: 600;
    padding: 0.2rem 1rem;
    border-radius: 0 0 0 12px;
    text-transform: uppercase;
}

.ricaricape-icon-box {
    width: 64px;
    height: 48px;
    color: var(--brand-green-ape);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: none;
}

.package-item {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem 3.5rem 1.25rem 1.25rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
    cursor: pointer;
    margin-bottom: .75rem;
    position: relative;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.package-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.package-item:active {
    transform: translateY(-2px) scale(0.98);
}

.package-item.active {
    border: 2px solid var(--brand-green-ape) !important;
    background: #f0fdf4 !important;
    box-shadow: 0 10px 25px -5px rgba(57, 181, 30, 0.2) !important;
    transform: scale(1.02);
}

.package-item.active h4 {
    color: var(--brand-green-ape) !important;
}

.package-item.inactive {
    opacity: 0.7;
    filter: grayscale(0.2);
}

.package-item.active .badge-best-seller {
    background-color: var(--brand-green-ape);
    transform: scale(1.1);
}

.package-item::after {
    content: '\f058';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%) scale(0);
    color: var(--brand-green-ape);
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.package-item.active::after {
    transform: translateY(-50%) scale(1);
}

.badge-best-seller {
    position: absolute;
    top: -5px;
    right: 15px;
    background-color: #62b551;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.bonus-highlight-box {
    border-radius: 1rem !important;
}

.border-dashed-green {
    border: 2px dashed rgba(57, 181, 30, 0.4);
}

.bonus-value {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bonus-value.active-anim {
    transform: scale(1.3) rotate(5deg);
    color: #22c55e !important;
}

.letter-spacing-1 {
    letter-spacing: 0.05rem;
}

/* Alleato Operativo Section Styles (1:1 with Agenzie) */
.dashboard-preview {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 33px;
    transform: rotate(2deg);
    width: 100%;
    max-width: 576px;
}

.benefit-item-icon {
    background-color: rgba(100, 180, 72, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green-ape);
    margin-right: 12px;
    padding: 4px;
}

.benefit-text {
    font-size: 16.9px;
    line-height: 28px;
}

.bg-success-light {
    background-color: var(--brand-green-ape);
}

/* Skeleton Lines */
.bg-skeleton-dark {
    background-color: #4b5563;
}

.bg-skeleton-light {
    background-color: #d1d5db;
    opacity: 0.5;
}

.bg-skeleton-line {
    background-color: #9ca3af;
    opacity: 0.4;
}

/* Control Panel MOCKUP (Simplified with Image) */
.cp-mockup-browser {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e4e8;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.cp-browser-header {
    background: #fdfdfd;
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cp-browser-controls {
    display: flex;
    gap: 6px;
}

.cp-control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cp-dot-red {
    background: #ff5f57;
    border: 1px solid #e0443e;
}

.cp-dot-yellow {
    background: #febc2e;
    border: 1px solid #dba524;
}

.cp-dot-green {
    background: #28c840;
    border: 1px solid #1aab29;
}

.cp-address-bar {
    flex: 1;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 0px 9px;
    font-size: .6rem;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.cp-app-body-image {
    background: #f9f9f9;
    width: 100%;
    display: block;
    line-height: 0;
}

/* Breadcrumbs Operatori Professionali */
.breadcrumb-op-prof {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    /* Space for fixed header */
    background: transparent;
    padding: 0;
}

.breadcrumb-op-prof .breadcrumb {
    background: transparent;
    margin-bottom: 0px;
    padding: 0;
    align-items: center;
}

.breadcrumb-op-prof .breadcrumb-item {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.breadcrumb-op-prof .breadcrumb-item+.breadcrumb-item::before {
    content: '\f054' !important;
    /* fa-chevron-right */
    font-family: 'Font Awesome 5 Pro' !important;
    font-weight: 900 !important;
    font-size: 0.65rem !important;
    padding: 0 0.75rem !important;
    color: var(--marketing-text-secondary) !important;
    opacity: 0.4 !important;
}

.breadcrumb-op-prof .breadcrumb-item a {
    color: var(--marketing-text-secondary);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.breadcrumb-op-prof .breadcrumb-item a:hover {
    color: var(--brand-green-ape);
}

.breadcrumb-op-prof .breadcrumb-item.active {
    color: var(--marketing-text-primary);
    font-weight: 600;
}

@media (max-width: 991px) {
    .breadcrumb-op-prof {
        margin-top: 0;
        margin-bottom: 0;
    }

    .breadcrumb-op-prof .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 0.3rem 0 0 !important;
    }
}

.border-left-green {
    border-left: 5px solid #22c55e;
}

.icon-circle-green {
    width: 32px;
    height: 32px;
    background-color: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.shadow-lg-soft {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Dashboard Preview Card */
.dashboard-preview-custom {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    transform: rotate(+2deg);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    border: 1px solid #f0f0f0;
}

.dashboard-preview-custom:hover {
    transform: rotate(0deg) scale(1.02);
}

.badge-area-agenzia {
    background-color: #0076c0;
    color: white !important;
    padding: 2px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.skeleton-bar {
    background-color: #4b5563;
    border-radius: 4px;
}

.progress-tracker-line {
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: #d1fae5;
    z-index: 1;
}

.icon-step-circle {
    width: 32px;
    height: 32px;
    background-color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.2);
}

.step-label {
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .dashboard-preview-custom {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .dashboard-preview-custom,
    .dashboard-preview-custom:hover {
        transform: rotate(0deg) !important;
    }

    .badge-area-agenzia {
        font-size: 11px;
        padding: 2px 8px;
    }

    .order-id-text,
    .order-address-text,
    .order-status-footer {
        font-size: 0.85rem !important;
    }

    .step-label {
        font-size: 10px;
    }

    .icon-step-circle {
        width: 28px;
        height: 28px;
    }

    .progress-tracker-line {
        top: 22px;
        left: 40px;
        right: 40px;
    }

    .skeleton-avatar {
        width: 36px !important;
        height: 36px !important;
    }

    .skeleton-info-container .skeleton-bar:first-child {
        width: 80px !important;
        height: 10px !important;
    }

    .skeleton-info-container .skeleton-bar:last-child {
        width: 50px !important;
        height: 8px !important;
    }

    .dashboard-preview-custom .mb-5 {
        margin-bottom: 2rem !important;
    }
}