/* ==============================================
   CREMONA SCROLL SECTION - STILE APPLE/WANDERLUST
   ============================================== */

.cremona-scroll-section {
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.cremona-scroll-section::-webkit-scrollbar {
    width: 8px;
}

.cremona-scroll-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.cremona-scroll-section::-webkit-scrollbar-thumb {
    background: rgba(211, 228, 252, 0.4);
    border-radius: 4px;
}

.cremona-scroll-section::-webkit-scrollbar-thumb:hover {
    background: rgba(211, 228, 252, 0.6);
}

.cremona-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 4rem;
    padding: 0 2rem;
    min-height: 100vh;
}

/* TESTO SCROLLABILE A SINISTRA */
.cremona-text-scroll {
    padding: 3rem 3rem 2rem 0;
    position: relative;
    z-index: 2;
}

.cremona-text-block {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    opacity: 0.4;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px);
}

.cremona-text-block.active {
    opacity: 1;
    transform: translateY(0);
}

.cremona-text-block:first-child {
    margin-top: 0;
    padding-top: 0;
}

.cremona-text-block:last-child {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.cremona-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(211, 228, 252, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.cremona-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cremona-intro {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cremona-text-block h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cremona-text-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.cremona-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(211, 228, 252, 0.2) 0%, rgba(51, 51, 130, 0.3) 100%);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(211, 228, 252, 0.15);
    backdrop-filter: blur(10px);
}

.cremona-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--accent);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    width: fit-content;
}

.cremona-cta:hover {
    background: var(--white);
    transform: translateX(5px);
    box-shadow: 0 10px 40px rgba(211, 228, 252, 0.3);
}

/* IMMAGINI STICKY A DESTRA */
.cremona-images-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 3rem 0;
}

.cremona-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    
    /* Cornice moderna a doppio bordo */
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: 1px solid rgba(211, 228, 252, 0.2);
    outline-offset: -8px;
    
    /* Ombre sofisticate multi-layer */
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 16px 32px rgba(0, 0, 0, 0.2),
        0 32px 64px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    
    /* Transizione smooth per eventuali interazioni future */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effetto sottile al passaggio del mouse */
.cremona-image-wrapper:hover {
    transform: scale(1.005);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.18),
        0 20px 40px rgba(0, 0, 0, 0.22),
        0 40px 80px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Accento decorativo minimalista */
.cremona-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.cremona-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: opacity;
    transform: translateZ(0);
}

.cremona-img.active {
    opacity: 1;
    z-index: 1;
}

/* Effetto glow sulle immagini */
.cremona-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        135deg,
        rgba(211, 228, 252, 0.1),
        rgba(51, 51, 130, 0.05),
        rgba(211, 228, 252, 0.08)
    );
    border-radius: 16px;
    z-index: -1;
    opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cremona-scroll-section {
        height: auto;
        min-height: 100vh;
    }
    
    .cremona-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        height: auto;
    }
    
    .cremona-text-scroll {
        padding: 3rem 0;
    }

    .cremona-images-sticky {
        position: relative;
        height: 60vh;
        order: -1;
    }

    .cremona-text-block {
        min-height: auto;
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .cremona-text-block:last-child {
        margin-bottom: 0;
    }

    .cremona-image-wrapper {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .cremona-container {
        padding: 0 1rem;
    }

    .cremona-text-scroll {
        padding: 4rem 0;
    }

    .cremona-title {
        font-size: 2rem;
    }

    .cremona-intro,
    .cremona-text-block p {
        font-size: 1rem;
    }

    .cremona-images-sticky {
        height: 50vh;
        padding: 2rem 0;
    }

    .cremona-image-wrapper {
        height: 50vh;
    }
}
