/**
 * services.css
 * Styles for the unified services page (IT/EN)
 */

/* ===== HEADER CENTRATO ===== */
.header-centered {
    text-align: center;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease;
}

.logo-small {
    max-width: 90px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.logo-small:hover {
    transform: scale(1.05);
}

.header-centered h1 {
    font-size: 11px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 700;
    opacity: 0.9;
}

.header-centered h2 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--light);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .header-centered h2 {
        font-size: 24px;
    }
}

.header-centered p {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== GRIGLIA SERVIZI ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto 60px;
    max-width: 1200px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== CARD SERVIZIO ===== */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 4px;
    border-top: 3px solid var(--secondary);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

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

.service-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #ecf0f1;
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* ===== SEZIONE CTA ===== */
.cta-section {
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 50px;
    margin-bottom: 50px;
}

.cta-section p {
    color: var(--light);
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 300;
}

.cta-section .btn {
    display: inline-block;
    padding: 14px 40px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 2px;
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    transition: all 0.3s;
    min-width: 250px;
}

.cta-section .btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

/* ===== RESPONSIVE EXTRA ===== */
@media (max-width: 600px) {
    .header-centered {
        margin-bottom: 50px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-card h3 {
        font-size: 15px;
    }
    
    .service-card p {
        font-size: 13px;
    }
    
    .cta-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .cta-section .btn {
        padding: 12px 30px;
        min-width: 220px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .logo-small {
        max-width: 80px;
    }
    
    .header-centered h1 {
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .cta-section .btn {
        width: 100%;
        min-width: auto;
    }
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STAMPA ===== */
@media print {
    .service-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: none;
        color: #000;
    }
    
    .service-card h3 {
        color: #000;
    }
    
    .cta-section {
        display: none;
    }
}

/* ===== ACCESSIBILITÀ ===== */
.service-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== SUPPORTO RIDOTTA ANIMAZIONE ===== */
@media (prefers-reduced-motion: reduce) {
    .header-centered,
    .service-card,
    .service-card::before,
    .cta-section .btn {
        animation: none;
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}