.home .slide1 h2 {
    font-size: clamp(2rem, 8vw + 1rem, 7rem);
    z-index: 2;
}

.home .slide3 h1 {
    font-size: clamp(2rem, 4vw + 1rem, 6rem);
    will-change: transform;
    width: 60%;
    margin: 0 auto;
}

.home .slide1 {
    padding: 0;
}

/* ILLUSTRAZIONI */

.home .slide2::after {
    content: "";
    background: url(/assets/img/illustrazione6.svg) no-repeat center center;
    background-size: contain;
    width: 150px;
    height: 150px;
    position: absolute;
    bottom: 20px;
    right: 4rem;
    z-index: 0;
}

.home .slide2::before {
    content: "";
    background: url(/assets/img/illustrazione1.svg) no-repeat center center;
    background-size: contain;
    width: 150px;
    height: 150px;
    position: absolute;
    bottom: 20px;
    left: 4rem;
    z-index: 0;
}

@media screen and (max-width: 768px),
(max-height: 424px) {
    .home .slide2::before {
        display: none
    }
}

@media screen and (max-width: 768px),
(max-height: 424px) {
    .home .slide2::after {
        background: url(/assets/img/illustrazione1.svg) no-repeat center center;
        position: relative;
        display: block;
        margin: 0 auto 0;
        bottom: auto;
        right: auto;
        width: 150px;
        height: 150px;
    }
}


.home .slide3::after {
    content: "";
    background: url(/assets/img/illustrazione2.svg) no-repeat center center;
    background-size: contain;
    width: 150px;
    height: 150px;
    position: absolute;
    top: 80px;
    right: 4rem;
    z-index: 0;
    rotate: 180deg;
}

.home .slide3::before {
    content: "";
    background: url(/assets/img/illustrazione4.svg) no-repeat center center;
    background-size: contain;
    width: 150px;
    height: 150px;
    position: absolute;
    bottom: 20px;
    left: 4rem;
    z-index: 0;
}

@media screen and (max-width: 768px),
(max-height: 424px) {
    .home .slide3::before {
        display: none
    }
}

@media screen and (max-width: 768px),
(max-height: 424px) {
    .home .slide3::after {
        position: relative;
        display: block;
        margin: 0 auto 0;
        bottom: auto;
        right: auto;
        width: 150px;
        height: 150px;
        rotate: initial;
    }
}

/* MOSAIC */
:root {
    --scroll-y: 0;
}

.mosaic .polaroid {
    position: absolute;
    width: 21vw;
    padding: 10px 10px 25px;
    background-color: var(--white-smoke);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(calc(var(--scroll-y, 0)* var(--parallax-rate, 1)* 1px)) rotate(var(--rotation, 0deg));
    z-index: var(--z-index, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-width: 140px;
}

.mosaic .polaroid img {
    width: 100%;
    height: auto;
    display: block;
}


.mosaic .polaroid:nth-of-type(1) {
    --rotation: -7deg;
    --parallax-rate: 0.1;
    right: 10%;
    bottom: 27vh;
    z-index: 2;
}

.mosaic .polaroid:nth-of-type(2) {
    --rotation: -6deg;
    --parallax-rate: 0.17;
    left: 0%;
    top: -35vh;
    z-index: 2;
}

.mosaic .polaroid:nth-of-type(3) {
    --rotation: 5deg;
    --parallax-rate: 0.11;
    right: 20%;
    top: -20vh;
}

.mosaic .polaroid:nth-of-type(4) {
    --rotation: 3deg;
    --parallax-rate: 0.04;
    left: 25%;
    top: -7vh;
    z-index: 2;
}

.mosaic .polaroid:nth-of-type(5) {
    --rotation: 5deg;
    --parallax-rate: 0.22;
    left: 40%;
    top: -25vh;
}

.mosaic .polaroid:nth-of-type(6) {
    --rotation: 6deg;
    --parallax-rate: -0.07;
    left: 4%;
    top: 73vh;
}

.mosaic .polaroid:nth-of-type(7) {
    --rotation: 5deg;
    --parallax-rate: 0.07;
    right: 2%;
    bottom: 39vh;
    z-index: 2;
}

.mosaic .polaroid:nth-of-type(8) {
    --rotation: -2deg;
    --parallax-rate: 0.04;
    left: 18%;
    top: 20vh;
}

.mosaic .polaroid .caption {
    margin-top: 8px;
    color: var(--black);
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    font-size: 12px
}

/* SCROLL ARROW */
.scroll-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white-smoke);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    z-index: 1
}

.scroll-indicator:hover {
    background-color: var(--accent);
}

.arrow {
    font-family: 'SuisseIntl', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    animation: bounce 1s infinite;
}

/* Keyframes for the bounce effect */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(0);
    }
}

/* MOBILE */
@media screen and (max-width: 768px) {
    .home .slide1::before {
        background: linear-gradient(220deg, #1c1b1b, rgba(0, 0, 0, 0));
        background-position: 0 -600px;
        height: 200%;
    }

    .home .slide3 h1 {
        transform: none !important;
        width: auto
    }
}