/* ========================================
   CHI SIAMO PAGE STYLES
   ======================================== */

/* Territory Cards */
.territory-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.territory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.territory-card:hover::before {
    transform: scaleX(1);
}

.territory-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.territory-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.territory-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.territory-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.territory-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 150, 190, 0.1);
    color: #2596be;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Tech Stack Cards */
.tech-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.tech-card.tech-primary {
    border: 2px solid rgba(37, 150, 190, 0.2);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.tech-card.tech-primary .tech-icon {
    box-shadow: 0 5px 20px rgba(37, 150, 190, 0.3);
}

.tech-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.tech-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.tech-progress {
    height: 100%;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    border-radius: 50px;
    transition: width 1.5s ease-in-out;
}

.tech-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2596be;
}

/* Team Cards Modern */
.team-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.team-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.team-avatar-large {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.team-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.avatar-badge-large {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.team-info {
    flex: 1;
}

.team-member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.team-member-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2596be;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.team-card-body {
    text-align: left;
}

.team-member-bio {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.team-social-links {
    display: flex;
    gap: 12px;
}

.team-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2596be;
    font-size: 16px;
    transition: all 0.3s ease;
}

.team-social-links a:hover {
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 150, 190, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .territory-card,
    .tech-card,
    .team-card-modern {
        margin-bottom: 20px;
    }

    .team-card-header {
        flex-direction: column;
        text-align: center;
    }

    .team-avatar-large {
        width: 90px;
        height: 90px;
    }

    .team-card-body {
        text-align: center;
    }

    .team-social-links {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .territory-card,
    .tech-card,
    .team-card-modern {
        padding: 2rem 1.5rem;
    }

    .territory-icon,
    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .territory-title {
        font-size: 1.5rem;
    }

    .territory-description {
        font-size: 0.95rem;
    }

    .tech-name {
        font-size: 1rem;
    }

    .team-avatar-large {
        width: 80px;
        height: 80px;
    }

    .avatar-badge-large {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .team-member-name {
        font-size: 1.25rem;
    }

    .team-member-role {
        font-size: 0.875rem;
    }

    .team-member-bio {
        font-size: 0.95rem;
    }

    .team-social-links a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .territory-card,
    .tech-card,
    .team-card-modern {
        padding: 1.5rem;
    }

    .section-modern {
        padding: 4rem 0;
    }
}

/* Tech Stack Simple Cards */
.tech-card-simple {
    background: white;
    padding: 2rem 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 150, 190, 0.3);
}

.tech-icon-simple {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2596be 0%, #04c1de 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 20px rgba(37, 150, 190, 0.3);
}

.tech-name-simple {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

@media (max-width: 767px) {
    .tech-card-simple {
        padding: 1.5rem 0.75rem;
    }

    .tech-icon-simple {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .tech-name-simple {
        font-size: 0.875rem;
    }
}