/* chi-siamo.css */

.page-banner {
    background-color: var(--primary-color);
    padding: 100px 0 50px;
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-banner .underline {
    height: 4px;
    width: 80px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.about-block {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-block.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    text-align: justify;
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.about-text .btn {
    margin-top: 10px;
}

.values-section {
    padding: 80px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.values-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: background-color 0.3s ease;
}

.value-card:hover .value-icon {
    background-color: var(--secondary-color);
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Animazioni */
.about-block,
.value-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-block.active,
.value-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media queries */
@media (max-width: 992px) {
    .about-block {
        flex-direction: column;
        gap: 30px;
    }

    .about-block.reverse {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        width: 100%;
    }

    .about-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 80px 0 40px;
    }

    .page-banner h1 {
        font-size: 2.5rem;
    }

    .about-section,
    .values-section {
        padding: 60px 0;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .values-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}