/* ========================================
   SERVICES PAGE STYLES - HICMAN CAPITAL
   Stili completi per la pagina servizi
======================================== */

/* ========================================
   HERO SECTION SERVIZI
======================================== */

.services-hero-section {
    min-height: 40vh;
    background: linear-gradient(135deg, #282942 0%, #3a3b5c 50%, #4a4d7c 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content-services {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 2rem;
    text-align: center;
    width: 100%;
}

.services-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    color: #ffffff;
}

.services-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero overlay */
.hero-overlay-finance {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(40, 41, 66, 0.2) 100%);
    z-index: 1;
}

/* Animazione fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SERVICE DETAIL SECTION
======================================== */

.service-detail-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f6fb 100%);
    padding: 100px 0;
    position: relative;
}

.service-detail-section:nth-child(even) {
    background: linear-gradient(180deg, #f5f6fb 0%, #ffffff 100%);
}

/* Service Icon Large */
.service-icon-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #d5daf5, #e8eaf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(40, 41, 66, 0.12);
}

.service-icon-large i {
    font-size: 3rem;
    background: linear-gradient(135deg, #282942, #4a4d7c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-detail-section:hover .service-icon-large {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 16px 48px rgba(40, 41, 66, 0.16);
    background: linear-gradient(135deg, #282942, #4a4d7c);
}

.service-detail-section:hover .service-icon-large i {
    background: var(--finance-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service Detail Title */
.service-detail-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: #282942;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.service-detail-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #282942;
    border-radius: 2px;
}

/* Service Detail Title */
.service-detail-title2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: #282942;
    position: relative;
}

/* Service Detail Lead */
.service-detail-lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2e2e2e;
    margin-bottom: 2rem;
}

/* Service Stats Box */
.service-stats-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item-large {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #d0d4e4;
    box-shadow: 0 2px 8px rgba(40, 41, 66, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(40, 41, 66, 0.12);
    border-color: #282942;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a4d7c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #282942;
}

/* Service Content Box */
.service-content-box {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #d0d4e4;
    box-shadow: 0 4px 16px rgba(40, 41, 66, 0.08);
    margin-top: 2rem;
}

.service-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #282942;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-subtitle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #282942, #4a4d7c);
    border-radius: 1px;
}

.service-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2e2e2e;
    margin-bottom: 1.5rem;
}

.service-text strong {
    color: #282942;
    font-weight: 600;
}

/* ========================================
   SERVICE FEATURES CARDS
======================================== */

.service-features {
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(213, 218, 245, 0.05) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #d0d4e4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(40, 41, 66, 0.16);
    border-color: #282942;
    background: linear-gradient(135deg, #ffffff 0%, rgba(213, 218, 245, 0.1) 100%);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d5daf5, #e8eaf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 2rem;
    color: #282942;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(10deg);
    background: linear-gradient(135deg, #282942, #4a4d7c);
    color: #ffffff;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #282942;
    margin-bottom: 1rem;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2e2e2e;
}

/* ========================================
   CRISIS TIMELINE & STAGES
======================================== */

.crisis-timeline {
    background: #f5f6fb;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #282942;
}

.crisis-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #282942;
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border-left: 3px solid #4a4d7c;
    margin: 2rem 0;
}

.crisis-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stage-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #d0d4e4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-left: 80px;
}

.stage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(40, 41, 66, 0.12);
}

.stage-number {
    position: absolute;
    left: -15px;
    top: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #282942, #4a4d7c);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(40, 41, 66, 0.16);
}

.stage-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #282942;
    margin-bottom: 0.5rem;
}

.stage-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2e2e2e;
}

/* ========================================
   HIGHLIGHT BOX
======================================== */

.highlight-box {
    background: linear-gradient(135deg, #282942 0%, #4a4d7c 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(40, 41, 66, 0.16);
}

.highlight-box i {
    font-size: 2rem;
    flex-shrink: 0;
    color: #d5daf5;
}

.highlight-box p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.highlight-box strong {
    color: #ffffff;
    font-weight: 600;
}

/* ========================================
   FOCUS SECTION
======================================== */

.focus-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #d0d4e4;
    border-left: 4px solid #282942;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.focus-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(40, 41, 66, 0.1);
    border-left-color: #4a4d7c;
}

.focus-item-icon {
    font-size: 1.6rem;
    color: #282942;
    flex-shrink: 0;
}

.focus-item-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2e2e2e;
    margin: 0;
    font-weight: 500;
}

/* ========================================
   ESG SECTION - CORRETTO CON ICONE VISIBILI
======================================== */

.esg-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #d0d4e4;
}

.esg-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(213, 218, 245, 0.05) 100%);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #d0d4e4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
}

.esg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #282942, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.esg-card:hover::before {
    opacity: 1;
}

.esg-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(40, 41, 66, 0.16);
    border-color: #282942;
    background: linear-gradient(135deg, #ffffff 0%, rgba(213, 218, 245, 0.15) 100%);
}

/* ICONA ESG - CORRETTA PER ESSERE VISIBILE */
.esg-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d5daf5, #e8eaf6);
    border-radius: 50%;
    color: #282942 !important;  /* FORZA IL COLORE BLU SCURO */
    flex-shrink: 0;
}

.esg-card:hover .esg-icon {
    transform: scale(1.15) rotate(10deg);
    background: linear-gradient(135deg, #282942, #4a4d7c);
    color: #ffffff !important;  /* DIVENTA BIANCO AL HOVER */
}

.esg-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #282942;
    margin-bottom: 0.75rem;
}

.esg-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2e2e2e;
    margin: 0;
}

/* ========================================
   SERVICE DIVIDER
======================================== */

.service-divider {
    width: 90%;
    max-width: 1400px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #282942, transparent);
    margin: 0 auto;
    margin-top: 80px;
}

/* ========================================
   CTA SECTION - CORRETTO
======================================== */

.services-cta-section {
    background: linear-gradient(180deg, #f5f6fb 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: #282942;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2e2e2e;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn-finance-primary {
    background-color: #ffffff;
    color: #282942 !important;
    border: 2px solid #282942;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(40, 41, 66, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-finance-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(40, 41, 66, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-finance-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-finance-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 41, 66, 0.15);
    background-color: #282942;
    color: #ffffff !important;
}

.btn-finance-outline {
    background: transparent;
    color: #282942 !important;
    border: 2px solid #282942;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-finance-outline:hover {
    background: #282942;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 41, 66, 0.15);
}

.btn-lg {
    padding: 18px 50px;
    font-size: 1.05rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1200px) {
    .service-detail-section {
        padding: 80px 0;
    }
    
    .service-icon-large {
        width: 100px;
        height: 100px;
    }
    
    .service-icon-large i {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .services-hero-section {
        min-height: 40vh;
        padding-top: 60px;
    }
    
    .services-hero-title {
        font-size: 2.5rem;
    }
    
    .services-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-detail-section {
        padding: 60px 0;
    }
    
    .service-detail-title {
        text-align: center;
        font-size: 2rem;
    }
    
    .service-detail-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .service-detail-lead {
        text-align: center;
    }
    
    .service-content-box {
        padding: 2rem;
    }
    
    .crisis-stages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-finance-primary,
    .btn-finance-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .esg-card {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .services-hero-section {
        min-height: 40vh;
        padding-top: 50px;
    }
    
    .services-hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .services-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .service-detail-section {
        padding: 50px 0;
    }
    
    .service-icon-large {
        width: 90px;
        height: 90px;
        margin-bottom: 1.5rem;
    }
    
    .service-icon-large i {
        font-size: 2rem;
    }
    
    .service-detail-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .service-stats-box {
        gap: 1rem;
    }
    
    .stat-item-large {
        padding: 1.25rem;
    }
    
    .service-content-box {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .service-subtitle {
        font-size: 1.3rem;
    }
    
    .service-text {
        font-size: 1rem;
    }
    
    .crisis-stages {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stage-item {
        padding: 1.5rem;
        padding-left: 70px;
    }
    
    .stage-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        left: -10px;
        top: 10px;
    }
    
    .highlight-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .highlight-box i {
        font-size: 1.5rem;
    }
    
    .esg-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .esg-card {
        min-height: 250px;
        padding: 2rem 1.5rem;
    }
    
    .esg-icon {
        width: 90px;
        height: 90px;
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .esg-title {
        font-size: 1.2rem;
    }
    
    .esg-text {
        font-size: 0.9rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .service-divider {
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .services-hero-title {
        font-size: 1.75rem;
    }
    
    .services-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .service-detail-title {
        font-size: 1.5rem;
    }
    
    .service-detail-lead {
        font-size: 1rem;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .service-icon-large i {
        font-size: 1.8rem;
    }
    
    .stat-item-large {
        padding: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
    
    .stage-item {
        padding: 1.25rem;
        padding-left: 65px;
    }
    
    .crisis-quote {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .esg-card {
        min-height: 220px;
        padding: 1.5rem 1rem;
    }
    
    .esg-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .esg-title {
        font-size: 1.1rem;
    }
    
    .esg-text {
        font-size: 0.85rem;
    }
    
    .btn-finance-primary,
    .btn-finance-outline,
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .cta-buttons {
        gap: 1rem;
        flex-direction: column;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
    }
}

/* ========================================
   DARK MODE SUPPORT
======================================== */

@media (prefers-color-scheme: dark) {
    .service-detail-section {
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .service-detail-section:nth-child(even) {
        background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
    }
    
    .service-detail-title,
    .service-subtitle,
    .stat-label,
    .feature-title,
    .esg-title,
    .stage-title,
    .cta-title {
        color: #d5daf5;
    }
    
    .service-detail-lead,
    .service-text,
    .feature-text,
    .esg-text,
    .stage-text,
    .cta-text {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .stat-item-large,
    .feature-card,
    .esg-card,
    .stage-item,
    .service-content-box {
        background: #0f0f1e;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .service-icon-large {
        background: linear-gradient(135deg, rgba(213, 218, 245, 0.1), rgba(232, 234, 246, 0.1));
    }
    
    .services-cta-section {
        background: linear-gradient(180deg, #0f0f1e 0%, #1a1a2e 100%);
    }
}

/* ========================================
   ANIMATION UTILITIES
======================================== */

.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__delay-1s {
    animation-delay: 1s;
}

.animate__delay-2s {
    animation-delay: 2s;
}

/* Animazione per scrolling */
@media (prefers-reduced-motion: no-preference) {
    .service-detail-section {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .service-detail-section:nth-child(1) {
        animation-delay: 0s;
    }
    
    .service-detail-section:nth-child(2) {
        animation-delay: 0.1s;
    }
    
    .service-detail-section:nth-child(3) {
        animation-delay: 0.2s;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .services-hero-section,
    .cta-buttons,
    .service-divider {
        display: none;
    }
    
    .service-detail-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


