/* ===========================================
   HOME.CSS - Stile Fresco e Allegro
   Cooperativa IN-CONTRO
   =========================================== */

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

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

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

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

.home-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-hero__content {
    position: relative;
}

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

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

.home-hero__subtitle {
    font-size: 20px;
    color: #4A5568;
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 480px;
}

.home-hero__stats {
    display: flex;
    gap: 32px;
    padding: 28px 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 168, 107, 0.1);
    border: 1px solid rgba(0, 168, 107, 0.1);
    backdrop-filter: blur(10px);
}

.home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-stat__number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.home-stat__label {
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.home-hero__image-wrapper {
    position: relative;
}

.home-hero__image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00D68F 0%, #00B4D8 100%);
    border-radius: 32px;
    z-index: 0;
}

.home-hero__image-container {
    position: relative;
    z-index: 1;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 168, 107, 0.2);
}

.home-hero__image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* ===== INFO BOXES ===== */
.home-info-boxes {
    padding-top: 0;
    padding-bottom: 80px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.home-info-boxes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-info-box {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 168, 107, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.home-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00A86B, #00D68F);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-info-box:hover::before {
    transform: scaleX(1);
}

.home-info-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 56px rgba(0, 168, 107, 0.12);
}

.home-info-box--orange::before {
    background: linear-gradient(90deg, #FF6B35, #FF8F5E);
}

.home-info-box--blue::before {
    background: linear-gradient(90deg, #00B4D8, #48CAE4);
}

.home-info-box__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.home-info-box__icon svg {
    width: 28px;
    height: 28px;
}

.home-info-box__icon--green {
    background: linear-gradient(135deg, #E6FFF5 0%, #D4F5E9 100%);
    color: #00A86B;
}

.home-info-box__icon--orange {
    background: linear-gradient(135deg, #FFF0EB 0%, #FFE0D6 100%);
    color: #FF6B35;
}

.home-info-box__icon--blue {
    background: linear-gradient(135deg, #E6F9FC 0%, #D4F1F7 100%);
    color: #00B4D8;
}

.home-info-box__title {
    font-size: 20px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 12px;
}

.home-info-box__text {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

/* ===== COS'È SECTION ===== */
.home-cose {
    background: #FFFFFF;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

.home-cose__decoration {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.08) 0%, rgba(0, 180, 216, 0.05) 100%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.home-cose__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-cose__image-wrapper {
    position: relative;
}

.home-cose__image-bg {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B35 100%);
    border-radius: 32px;
    z-index: 0;
}

.home-cose__image-container {
    position: relative;
    z-index: 1;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}

.home-cose__image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.home-cose__content {
    position: relative;
}

.home-cose__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #FFF0EB;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.home-cose__label-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.home-cose__title {
    font-size: 38px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 24px;
    line-height: 1.2;
}

.home-cose__text {
    font-size: 18px;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

.home-cose__highlight {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #F0FFF8 0%, #E6FFF5 100%);
    border-radius: 20px;
    margin-top: 32px;
    border-left: 4px solid #00A86B;
}

.home-cose__highlight-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-cose__highlight-icon svg {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

.home-cose__highlight-text {
    font-size: 16px;
    color: #2D3748;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* ===== MISSION & VALORI ===== */
.home-mission-valori {
    background: linear-gradient(180deg, #FAFCFF 0%, #F0FFF8 100%);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.home-mission-valori__blob {
    position: absolute;
    top: 20%;
    right: -200px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(0, 180, 216, 0.08) 100%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.home-mission-valori__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.home-mission-card {
    background: #FFFFFF;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 16px 64px rgba(0, 168, 107, 0.08);
    position: relative;
    overflow: hidden;
}

.home-mission-card__decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #E6FFF5 0%, transparent 100%);
    border-radius: 0 32px 0 100%;
}

.home-mission-card__icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 168, 107, 0.3);
    position: relative;
    z-index: 1;
}

.home-mission-card__icon svg {
    width: 36px;
    height: 36px;
    color: #FFFFFF;
}

.home-mission-card__title {
    font-size: 28px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.home-mission-card__text {
    font-size: 17px;
    color: #4A5568;
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

.home-valori-card {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.home-valori-card__decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.home-valori-card__decoration-2 {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.home-valori-card__icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.home-valori-card__icon svg {
    width: 36px;
    height: 36px;
    color: #FFFFFF;
}

.home-valori-card__title {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.home-valori-card__text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.home-valori-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

.home-valori-card__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
}

.home-valori-card__item-icon {
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== OBIETTIVI SECTION ===== */
.home-obiettivi {
    background: #FFFFFF;
    padding-top: 100px;
    padding-bottom: 100px;
}

.home-obiettivi__header {
    text-align: center;
    margin-bottom: 60px;
}

.home-obiettivi__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #E6F9FC 0%, #D4F1F7 100%);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #00B4D8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.home-obiettivi__label-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.home-obiettivi__title {
    font-size: 44px;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 16px;
}

.home-obiettivi__subtitle {
    font-size: 20px;
    color: #718096;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-obiettivi__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.home-obiettivo-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
    border: 2px solid #F0F4F8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.home-obiettivo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 180, 216, 0.12);
    border-color: #00B4D8;
}

.home-obiettivo-card:focus {
    outline: 3px solid #7C4DFF;
    outline-offset: 3px;
}

.home-obiettivo-card__number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00B4D8 0%, #48CAE4 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.3);
}

.home-obiettivo-card__content {
    flex: 1;
}

.home-obiettivo-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 12px;
}

.home-obiettivo-card__text {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

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

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

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

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

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

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

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

    .home-hero__grid,
    .home-cose__grid,
    .home-mission-valori__grid {
        gap: 40px;
    }

    .home-info-boxes__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-obiettivi__grid {
        gap: 24px;
    }
}

@media screen and (max-width: 900px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-hero__content {
        order: 1;
    }

    .home-hero__image-wrapper {
        order: 2;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero__subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero__stats {
        justify-content: center;
    }

    .home-cose__grid {
        grid-template-columns: 1fr;
    }

    .home-cose__image-wrapper {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-cose__content {
        text-align: center;
    }

    .home-mission-valori__grid {
        grid-template-columns: 1fr;
    }

    .home-obiettivi__grid {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .home-hero__stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .home-stat__number {
        font-size: 36px;
    }

    .home-hero__image {
        height: 350px;
    }

    .home-hero__image-decoration {
        top: -12px;
        right: -12px;
    }

    .home-cose,
    .home-mission-valori,
    .home-obiettivi {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .home-cose__title {
        font-size: 30px;
    }

    .home-cose__image {
        height: 300px;
    }

    .home-mission-card,
    .home-valori-card {
        padding: 32px;
    }

    .home-mission-card__title,
    .home-valori-card__title {
        font-size: 24px;
    }

    .home-valori-card__list {
        grid-template-columns: 1fr;
    }

    .home-obiettivi__title {
        font-size: 32px;
    }

    .home-obiettivo-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

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

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

    .home-hero__badge {
        font-size: 12px;
        padding: 8px 16px;
    }

    .home-hero__image {
        height: 280px;
    }

    .home-info-box {
        padding: 24px;
    }

    .home-cose__title {
        font-size: 26px;
    }

    .home-cose__image {
        height: 250px;
    }

    .home-obiettivi__title {
        font-size: 26px;
    }

    .home-cta {
        padding-top: 48px;
        padding-bottom: 48px;
    }

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

/* ===== ANIMATIONS ===== */
.home-animate-ready .home-hero__content,
.home-animate-ready .home-hero__image-wrapper,
.home-animate-ready .home-info-box,
.home-animate-ready .home-cose__image-wrapper,
.home-animate-ready .home-cose__content,
.home-animate-ready .home-mission-card,
.home-animate-ready .home-valori-card,
.home-animate-ready .home-obiettivi__header,
.home-animate-ready .home-obiettivo-card,
.home-animate-ready .home-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);
}

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

.home-animate-ready .home-info-box:nth-child(1) { transition-delay: 0s; }
.home-animate-ready .home-info-box:nth-child(2) { transition-delay: 0.1s; }
.home-animate-ready .home-info-box:nth-child(3) { transition-delay: 0.2s; }

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

@media (prefers-reduced-motion: reduce) {
    .home-animate-ready .home-hero__content,
    .home-animate-ready .home-hero__image-wrapper,
    .home-animate-ready .home-info-box,
    .home-animate-ready .home-cose__image-wrapper,
    .home-animate-ready .home-cose__content,
    .home-animate-ready .home-mission-card,
    .home-animate-ready .home-valori-card,
    .home-animate-ready .home-obiettivi__header,
    .home-animate-ready .home-obiettivo-card,
    .home-animate-ready .home-cta__content {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
