* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Special Gothic Expanded One', sans-serif;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-out;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 6rem;
    font-weight: bold;
}

.marble {
    color: black;
}

.roll {
    color: orange;
}

/* Freccia custom con cerchio viola scuro */
.scroll-arrow {
    position: fixed; /* Fissa la posizione della freccia */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.5s infinite;
    transition: opacity 0.3s ease;
}

.arrow-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6a0dad, #4b0082, #2e0049); /* Gradiente viola scuro */
    border-radius: 50%;
}

.arrow {
    width: 20px;
    height: 20px;
    border-left: 4px solid white;
    border-bottom: 4px solid white; /* Aggiungi il bordo per la parte inferiore della freccia */
    transform: rotate(-45deg); /* Ruota la freccia di 135 gradi per farla puntare verso il basso */
}

/* Animazione rimbalzo */
@keyframes bounce {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

.content {
    padding: 20px;
    background-color: #f4f4f4;
    height: 2000px; /* Aggiungi altezza per abilitare lo scroll */
}

body.scroll .image {
    opacity: 0;
}

/* Media queries per dispositivi più piccoli */

/* Tablet */
@media (max-width: 768px) {
    .text-overlay {
        font-size: 4rem; /* Riduci la dimensione del testo per schermi più piccoli */
    }

    .arrow-circle {
        width: 50px;
        height: 50px;
    }

    .arrow {
        width: 18px;
        height: 18px;
        border-left: 3px solid white;
        border-bottom: 3px solid white;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .text-overlay {
        font-size: 3rem; /* Ancora più piccolo su schermi piccoli */
    }

    .arrow-circle {
        width: 40px;
        height: 40px;
    }

    .arrow {
        width: 16px;
        height: 16px;
        border-left: 2px solid white;
        border-bottom: 2px solid white;
    }
}

/* Grande schermo */
@media (min-width: 1200px) {
    .text-overlay {
        font-size: 8rem; /* Più grande su schermi molto ampi */
    }

    .arrow-circle {
        width: 70px;
        height: 70px;
    }

    .arrow {
        width: 25px;
        height: 25px;
        border-left: 5px solid white;
        border-bottom: 5px solid white;
    }
}
