/* PBX Grid */
.pbx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}


/* PBX Grid */
.pbx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pbx-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--text-primary);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pbx-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pbx-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.pbx-card:hover::before {
    opacity: 1;
}

.pbx-icon {
    /* Rimuovi font-size se stai usando immagini */
    /* font-size: 48px; */
    height: 80px; /* Altezza fissa per contenitore */
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    display: flex; /* Usa flexbox per centrare */
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra orizzontalmente */
}

.pbx-icon img {
    max-width: 100%; /* Non superare la larghezza del contenitore */
    max-height: 100%; /* Non superare l'altezza del contenitore */
    width: auto; /* Mantiene proporzioni originali */
    height: auto; /* Mantiene proporzioni originali */
    object-fit: contain; /* Adatta l'immagine mantenendo proporzioni */
}

.pbx-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.pbx-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.pbx-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Numbers Showcase */
.numbers-showcase {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
}

.numbers-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.numbers-stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366F1 0%, #14B8A6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.numbers-divider {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
}

.numbers-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.number-type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 5px solid var(--text-primary);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.number-type-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.15);
}

.type-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.number-type-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.number-type-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.number-examples {
    list-style: none;
    padding: 0;
}

.number-examples li {
    padding: 8px 0;
    color: var(--text-tertiary);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.number-examples li:last-child {
    border-bottom: none;
}

/* Inbound/Outbound Grid */
.inout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.inout-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.3s ease;
}

.inout-card.inbound {
    border-color: rgba(99, 102, 241, 0.3);
}

.inout-card.outbound {
    border-color: rgba(20, 184, 166, 0.3);
}

.inout-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.inout-card.inbound:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.2);
}

.inout-card.outbound:hover {
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 16px 48px rgba(20, 184, 166, 0.2);
}

.inout-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.inout-icon {
    font-size: 48px;
}

.inout-header h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.inout-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.inout-features {
    list-style: none;
    margin-bottom: 24px;
}

.inout-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.inout-features li:last-child {
    border-bottom: none;
}

.inout-features li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.inout-scenario {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.inout-scenario strong {
    display: block;
    color: var(--accent-light);
    margin-bottom: 8px;
    font-weight: 700;
}

.inout-benefits {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 40px;
}

.inout-benefits h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
}

.benefit-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ChatGPT Section */
.chatgpt-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 32px;
    padding: 64px 48px;
}

.chatgpt-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.chatgpt-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.chatgpt-hero h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.chatgpt-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.chatgpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.chatgpt-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.chatgpt-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.chatgpt-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.chatgpt-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.chatgpt-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.chatgpt-cta {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
}

.chatgpt-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.chatgpt-cta strong {
    color: var(--accent-light);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.15);
}

.tech-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.tech-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tech-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .inout-grid {
        grid-template-columns: 1fr;
    }
    
    .numbers-hero {
        flex-direction: column;
        gap: 32px;
    }
    
    .numbers-divider {
        width: 100px;
        height: 2px;
    }
}

@media (max-width: 768px) {
    .pbx-grid,
    .numbers-types,
    .benefits-grid,
    .chatgpt-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .chatgpt-section {
        padding: 40px 24px;
    }
    
    .chatgpt-hero h2 {
        font-size: 32px;
    }
    
    .inout-benefits {
        padding: 32px 24px;
    }
    
    .numbers-showcase {
        padding: 32px 24px;
    }
}
