/* Esperienza Page Styles */

.esperienza-page {
    background: #f8f9fa;
    overflow-x: clip;
    width: 100%;
}

.esperienza-page h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--aynix-primary-color);
}

.esperienza-page .section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 400;
}

.esperienza-page .section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.esperienza-page .section-key-phrase-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--aynix-primary-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

.esperienza-page .section-key-phrase {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    color: var(--aynix-primary-color);
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--aynix-primary-color);
    border-radius: 8px;
}

/* Hero Section */
.hero-page {
    background: linear-gradient(135deg, var(--aynix-primary-color), var(--aynix-secondary-color));
    color: white;
    text-align: center;
    padding: 80px 20px;
    width: 100%;
    box-sizing: border-box;
}

.hero-page h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-page .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Intro Section */
.esperienza-intro {
    padding: 40px 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Case Studies */
.case-studies {
    padding: 40px 1rem;
}

/* Named Experiences Section */
.named-experiences {
    padding: 60px 1rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    margin-bottom: 60px;
}

/* Diagnosed Cases Section */
.diagnosed-cases {
    padding: 60px 1rem;
}

/* Experience Badge for Named Experiences */
.case-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(90deg, #28a745, #20c997);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.experience-intro {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
    padding: 0 20px;
}

/* Experience Card Styling */
.experience-card {
    border: 2px solid #e3f2fd;
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
}

.experience-card:hover {
    box-shadow: 0 15px 50px rgba(40, 167, 69, 0.15);
    transform: translateY(-5px);
}

.case-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
    height: auto;
}

.case-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.case-label {
    position: absolute;
    top: -15px;
    left: 30px;
    background: white;
    color: black;
    border: 1px solid #a2e2f4;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.case-logo {
    height: 28px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    /* filter: brightness(0) invert(1);*/
}

.case-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.case-section {
    text-align: center;
}

.case-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.case-icon i {
    font-size: 1.8rem;
    color: white;
}

.problema-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.soluzione-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.risultato-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.case-section h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.case-section p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.case-arrow {
    color: var(--aynix-primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.case-arrow i {
    font-weight: 700;
}

/* CTA Section */
.esperienza-cta {
    padding: 60px 0 80px;
}

.esperienza-cta h2 {
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-page {
        padding: 60px 20px;
    }
    
    .hero-page h1 {
        font-size: 2.5rem;
    }
    
    .hero-page .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .esperienza-page h2 {
        font-size: 2rem;
    }
    
    .esperienza-page .section-subtitle {
        font-size: 1.1rem;
    }
    
    .esperienza-page .section-intro {
        font-size: 1rem;
    }
    
    .case-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-arrow {
        transform: rotate(90deg);
    }
    
    .case-card {
        padding: 30px 20px;
    }
    
    .case-label {
        left: 20px;
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .case-logo {
        height: 24px;
        max-width: 70px;
    }
}

@media (max-width: 768px) {
    .hero-page {
        padding: 50px 1rem;
    }
    
    .hero-page h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-page .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .esperienza-page h2 {
        font-size: 1.8rem;
    }
    
    .esperienza-page .section-subtitle {
        font-size: 1rem;
    }
    
    .esperienza-page .section-intro {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .esperienza-page .section-key-phrase {
        font-size: 1rem;
        padding: 20px 15px;
    }
    
    .esperienza-intro {
        padding: 30px 1rem;
    }
    
    .named-experiences,
    .diagnosed-cases {
        padding: 40px 0.75rem;
    }
    
    .case-studies {
        padding: 30px 0.75rem;
    }
    
    .case-card {
        padding: 30px 20px;
        margin-bottom: 30px;
        border-radius: 12px;
    }
    
    .case-label {
        top: -12px;
        left: 15px;
        padding: 6px 14px;
        font-size: 0.8rem;
        border-radius: 15px;
    }
    
    .case-logo {
        height: 22px;
        max-width: 60px;
    }
    
    .case-section h3 {
        font-size: 1rem;
    }
    
    .case-section p {
        font-size: 0.9rem;
    }
    
    .case-icon {
        width: 50px;
        height: 50px;
    }
    
    .case-icon i {
        font-size: 1.5rem;
    }
    
    .case-content {
        gap: 25px;
        margin-top: 15px;
    }
    
    .case-arrow {
        font-size: 1.8rem;
        padding: 15px;
        margin: 5px 0;
    }
    
    .esperienza-cta {
        padding: 40px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero-page {
        padding: 40px 0.75rem;
    }
    
    .hero-page h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .hero-page .hero-subtitle {
        font-size: 1rem;
    }
    
    .esperienza-intro {
        padding: 20px 0.75rem;
    }
    
    .esperienza-intro .lead-text {
        font-size: 0.95rem;
    }
    
    .case-studies {
        padding: 25px 0.75rem;
    }
    
    .case-card {
        padding: 25px 15px;
        margin-bottom: 25px;
    }
    
    .case-label {
        top: -10px;
        left: 12px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .case-logo {
        height: 20px;
        max-width: 50px;
    }
    
    .case-section h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .case-section p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .case-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .case-icon i {
        font-size: 1.3rem;
    }
    
    .case-content {
        gap: 20px;
    }
    
    .case-arrow {
        font-size: 2rem;
        padding: 20px;
        margin: 8px 0;
        background: rgba(var(--aynix-primary-color-rgb, 79, 172, 254), 0.1);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .esperienza-cta {
        padding: 30px 0.75rem 50px;
    }
    
    /* Forza max-width per prevenire overflow */
    .case-content {
        max-width: 100%;
    }
}
