/* ===========================================
   LA-NOSTRA-STORIA.CSS - Pagina Storia
   Cooperativa IN-CONTRO
   =========================================== */

/* ===== PAGE WRAPPER ===== */
.storia-page {
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(180deg, #FAFCFF 0%, #F0FFF8 50%, #FFF9F5 100%);
}

/* ===== HERO SECTION ===== */
.storia-hero {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F0FFF8 0%, #E6FFF5 50%, #FAFCFF 100%);
    text-align: center;
}

.storia-hero__blob-1 {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 214, 143, 0.2) 0%, rgba(0, 180, 216, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.storia-hero__blob-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 217, 61, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.storia-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.storia-hero__title {
    font-size: 52px;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.storia-hero__title-highlight {
    background: linear-gradient(135deg, #00A86B 0%, #00B4D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.storia-hero__subtitle {
    font-size: 20px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

/* ===== INTRO SECTION ===== */
.storia-intro {
    padding-top: 60px;
    padding-bottom: 80px;
}

.storia-intro__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.storia-intro__image-wrapper {
    position: relative;
}

.storia-intro__image-decoration {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    border-radius: 28px;
    z-index: 0;
}

.storia-intro__image-container {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.storia-intro__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.storia-intro__image-wrapper:hover .storia-intro__image {
    transform: scale(1.05);
}

.storia-intro__badge {
    position: absolute;
    top: 30px;
    right: -20px;
    z-index: 2;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.storia-intro__badge-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.storia-intro__badge-text {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.storia-intro__content {
    position: relative;
}

.storia-intro__title {
    font-size: 36px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 24px;
    line-height: 1.2;
}

.storia-intro__text {
    font-size: 17px;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

.storia-intro__text:last-child {
    margin-bottom: 0;
}

/* ===== TIMELINE SECTION ===== */
.storia-timeline {
    padding-top: 80px;
    padding-bottom: 100px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F0FFF8 100%);
}

.storia-timeline__title {
    font-size: 40px;
    font-weight: 800;
    color: #2D3748;
    text-align: center;
    margin-bottom: 60px;
}

.storia-timeline__wrapper {
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.storia-timeline__line {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00A86B 0%, #00B4D8 50%, #7C4DFF 100%);
    border-radius: 2px;
}

/* ===== MILESTONE ===== */
.storia-milestone {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.storia-milestone:last-child {
    margin-bottom: 0;
}

.storia-milestone__marker {
    width: 68px;
    height: 68px;
    min-width: 68px;
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 168, 107, 0.25);
    position: relative;
    z-index: 1;
}

.storia-milestone__marker svg {
    width: 28px;
    height: 28px;
    color: #FFFFFF;
}

.storia-milestone__marker--blue {
    background: linear-gradient(135deg, #00B4D8 0%, #48CAE4 100%);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.25);
}

.storia-milestone__marker--orange {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.storia-milestone__marker--purple {
    background: linear-gradient(135deg, #7C4DFF 0%, #B388FF 100%);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.25);
}

.storia-milestone__content {
    flex: 1;
    background: #FFFFFF;
    padding: 28px 32px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 168, 107, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.storia-milestone__content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 168, 107, 0.12);
}

.storia-milestone__year {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #E6FFF5 0%, #D4F5E9 100%);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #00A86B;
    margin-bottom: 12px;
}

.storia-milestone__year--blue {
    background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
    color: #00B4D8;
}

.storia-milestone__year--orange {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #FF6B35;
}

.storia-milestone__year--purple {
    background: linear-gradient(135deg, #EDE7F6 0%, #D1C4E9 100%);
    color: #7C4DFF;
}

.storia-milestone__title {
    font-size: 22px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 12px;
    line-height: 1.3;
}

.storia-milestone__text {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

/* ===== VALORI SECTION ===== */
.storia-valori {
    padding-top: 80px;
    padding-bottom: 100px;
}

.storia-valori__title {
    font-size: 40px;
    font-weight: 800;
    color: #2D3748;
    text-align: center;
    margin-bottom: 12px;
}

.storia-valori__subtitle {
    font-size: 18px;
    color: #4A5568;
    text-align: center;
    margin-bottom: 50px;
}

.storia-valori__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.storia-valore {
    background: #FFFFFF;
    padding: 32px 24px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 168, 107, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.storia-valore:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 168, 107, 0.15);
}

.storia-valore__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 168, 107, 0.25);
}

.storia-valore__icon svg {
    width: 28px;
    height: 28px;
    color: #FFFFFF;
}

.storia-valore__icon--blue {
    background: linear-gradient(135deg, #00B4D8 0%, #48CAE4 100%);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.25);
}

.storia-valore__icon--orange {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.storia-valore__icon--purple {
    background: linear-gradient(135deg, #7C4DFF 0%, #B388FF 100%);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.25);
}

.storia-valore__title {
    font-size: 18px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 12px;
}

.storia-valore__text {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.storia-cta {
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 50%, #00B4D8 100%);
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.storia-cta__decoration-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.storia-cta__decoration-2 {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.storia-cta__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.storia-cta__title {
    font-size: 40px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.storia-cta__text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .storia-hero__title {
        font-size: 44px;
    }

    .storia-intro__wrapper {
        gap: 40px;
    }

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

    .storia-timeline__title {
        font-size: 34px;
    }
}

@media screen and (max-width: 900px) {
    .storia-intro__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .storia-intro__image-wrapper {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .storia-intro__content {
        text-align: center;
    }

    .storia-intro__badge {
        right: 10px;
    }
}

@media screen and (max-width: 768px) {
    .storia-hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .storia-hero__title {
        font-size: 36px;
    }

    .storia-hero__subtitle {
        font-size: 18px;
    }

    .storia-intro {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .storia-intro__title {
        font-size: 30px;
    }

    .storia-intro__image {
        height: 320px;
    }

    .storia-timeline {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .storia-timeline__title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .storia-timeline__line {
        left: 24px;
    }

    .storia-milestone {
        gap: 20px;
    }

    .storia-milestone__marker {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .storia-milestone__marker svg {
        width: 22px;
        height: 22px;
    }

    .storia-milestone__content {
        padding: 20px 24px;
    }

    .storia-milestone__title {
        font-size: 20px;
    }

    .storia-valori {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .storia-valori__title {
        font-size: 30px;
    }

    .storia-valori__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .storia-cta {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .storia-cta__title {
        font-size: 30px;
    }

    .storia-cta__text {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .storia-hero__title {
        font-size: 30px;
    }

    .storia-intro__title {
        font-size: 26px;
    }

    .storia-intro__image {
        height: 260px;
    }

    .storia-intro__badge {
        padding: 14px;
        right: 5px;
        top: 20px;
    }

    .storia-intro__badge-number {
        font-size: 32px;
    }

    .storia-intro__badge-text {
        font-size: 10px;
    }

    .storia-intro__image-decoration {
        width: 120px;
        height: 120px;
    }

    .storia-timeline__line {
        left: 20px;
    }

    .storia-milestone {
        gap: 16px;
    }

    .storia-milestone__marker {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .storia-milestone__marker svg {
        width: 18px;
        height: 18px;
    }

    .storia-milestone__content {
        padding: 18px 20px;
    }

    .storia-milestone__title {
        font-size: 18px;
    }

    .storia-milestone__text {
        font-size: 15px;
    }

    .storia-cta__title {
        font-size: 24px;
    }
}

/* ===== ANIMATIONS ===== */
.storia-animate-ready .storia-hero__content,
.storia-animate-ready .storia-intro__wrapper,
.storia-animate-ready .storia-milestone,
.storia-animate-ready .storia-valore,
.storia-animate-ready .storia-cta__content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.storia-animate-ready .storia-visible {
    opacity: 1;
    transform: translateY(0);
}

.storia-animate-ready .storia-milestone:nth-child(1) { transition-delay: 0s; }
.storia-animate-ready .storia-milestone:nth-child(2) { transition-delay: 0.1s; }
.storia-animate-ready .storia-milestone:nth-child(3) { transition-delay: 0.2s; }
.storia-animate-ready .storia-milestone:nth-child(4) { transition-delay: 0.3s; }

.storia-animate-ready .storia-valore:nth-child(1) { transition-delay: 0s; }
.storia-animate-ready .storia-valore:nth-child(2) { transition-delay: 0.1s; }
.storia-animate-ready .storia-valore:nth-child(3) { transition-delay: 0.2s; }
.storia-animate-ready .storia-valore:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .storia-animate-ready .storia-hero__content,
    .storia-animate-ready .storia-intro__wrapper,
    .storia-animate-ready .storia-milestone,
    .storia-animate-ready .storia-valore,
    .storia-animate-ready .storia-cta__content {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
