/* ========================================
   ABOUT PAGE - Additional Styles
   ======================================== */

/* Page header styles are now in main style.css */

/* ========================================
   STORY SECTION
   ======================================== */
.story-section {
    padding: var(--section-padding) 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--transition-smooth);
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 20px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.badge-year {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-content {
    padding: 20px 0;
}

.story-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   VALUES SECTION
   ======================================== */
.values-section {
    background: var(--bg-light);
    padding: var(--section-padding) 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
}

.value-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-white);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
    padding: var(--section-padding) 0;
}

.team-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: minmax(auto, 350px); /* Imposta una larghezza massima per la card */
    gap: 40px;
    margin-top: 60px;
}

.team-member {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-smooth);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    position: relative;
    overflow: hidden;
    padding-bottom: 100%;
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: all 0.6s var(--transition-smooth);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
    object-position: center 20%;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 85, 19, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-social {
    display: flex;
    gap: 15px;
}

.member-social a {
    width: 45px;
    height: 45px;
    background: var(--text-white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.member-social a:hover {
    background: var(--secondary-color);
    color: var(--text-white);
    transform: scale(1.1);
}

.member-info {
    padding: 30px 25px;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.member-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process-section {
    background: var(--bg-light);
    padding: var(--section-padding) 0;
}

.process-timeline {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.process-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
}

.process-step:nth-child(even) {
    direction: rtl;
}

.process-step:nth-child(even) .step-content {
    direction: ltr;
    text-align: left;
}

.step-number {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    text-align: right;
    line-height: 1;
}

.process-step:nth-child(even) .step-number {
    text-align: left;
}

.step-content {
    padding: 30px;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px var(--bg-white), 0 0 0 6px var(--primary-color);
}

.process-step:nth-child(odd) .step-content::before {
    right: -70px;
}

.process-step:nth-child(even) .step-content::before {
    left: -70px;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    padding: var(--section-padding) 0;
    background: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-box {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) var(--transition-smooth);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-box .stat-number {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 80px;
    }

    .process-step:nth-child(even) {
        direction: ltr;
    }

    .step-number {
        position: absolute;
        left: 0;
        top: 0;
        text-align: left;
        font-size: 3rem;
    }

    .step-content::before {
        left: -50px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 80px;
    }

    .story-badge {
        width: 80px;
        height: 80px;
        padding: 15px;
        top: 20px;
        right: 20px;
    }

    .badge-year {
        font-size: 1.5rem;
    }

    .badge-text {
        font-size: 10px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding-left: 60px;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding-left: 50px;
    }

    .step-number {
        font-size: 2rem;
    }
}
