.rl_navbar1_component{
    background-color: var(--chicca-blue);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

body {
    background-color: #fff;
}

.chi-siamo-section {
    overflow: hidden;
    padding-top: 12dvh;
    min-height: 100vh;
    background-color: #fff;
}

.storia-section {
    margin: 3rem 0;
    color: var(--chicca-blue);
    will-change: transform;
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin: 0 auto;
    color: var(--chicca-blue);
}

.hero-section h1 {
    font-family: var(--p);
    font-weight: lighter;
    margin-top: 2rem;
    color: var(--chicca-blue);
}

.storia-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.text-block {
    flex: 1;
    color: var(--chicca-blue);
    will-change: transform, opacity;
}

.text-block h2 {
    font-family: var(--p);
    color: var(--chicca-blue);
    margin-bottom: 1.5rem;
}

.text-block p {
    color: var(--chicca-blue);
    line-height: 1.6;
    overflow: hidden;
}

.image-block {
    flex: 1;
    position: relative;
    will-change: transform, opacity;
}

.storia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


@media (max-width: 768px) {
    .storia-content {
        flex-direction: column-reverse;
    }
    
    .storia-content.right {
        flex-direction: column;
    }
    
    .text-block, .image-block {
        width: 100%;
    }
}

@media screen and (max-width: 991px) {
    .chi-siamo-section {
        padding-top: 100px;
    }
    
    .storia-content {
        flex-direction: column-reverse;
        gap: 3rem;
    }
}

@media screen and (max-width: 991px) {

}

.spacer {
	width:100%;
	height:50vh;
	background:#ddd;
}

.span-chicca {
    display: inline;
    color: var(--chicca-giallo);
    position: relative;
    transform-origin: center;
}

.text {
	margin:0.8em 0 0 0;
	font-size: 1.2rem;
    font-family: var(--p);
	width:100%;
}

.gallery {
    position: relative;
    display: flex;
    min-height: 200vh;
    background-color: #fff;
}

.team-text {
    width: 50%;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.team-image {
    width: 50%;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.photos {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo {
    position: absolute;
    width: 80%;
    height: 80%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.details {
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media screen and (max-width: 767px) {
    .gallery {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .team-text {
        width: 100%;
        padding: 2rem;
        order: 2;
        position: relative;
        z-index: 1;
    }

    .team-image {
        width: 100%;
        height: 65vh;
        position: sticky;
        top: 0;
        right: auto;
        order: 1;
        z-index: 0;
        
    }

    .details {
        min-height: 100vh;
        padding: 65vh 0rem 0rem 0rem;
    }

    .photos {
        height: 100%;
    }

    .photo {
        width: 100%;
        height: 100%;
        opacity: 0;
    }

    .photo:first-child {
        opacity: 1;
    }
}

.mobile-only {
    display: none;
}

@media screen and (max-width: 767px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
        width: 100%;
        height: 45vh;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .photo {
        border-radius: 0 0 .5rem .5rem;
    }

    .gallery {
        flex-direction: column;
    }

    .team-text {
        width: 100%;
        padding: 2rem;
        position: relative;
        z-index: 1;
    }
}

.split-line {
    overflow: hidden;
    display: block;
}

.word-wrap {
    display: inline;
}

.word {
    display: inline;
}
