* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;

    background: #ffffff;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow-x: hidden;
}

/*
 * CAROUSEL
 */

main {
    width: 100%;
}

.carousel {
    position: relative;

    width: 100%;
    max-width: 1920px;

    margin: 0 auto;

    overflow: hidden;

    background: #ffffff;
}

.carousel-track {
    position: relative;
    width: 100%;
}

/*
 * SLIDE
 */

.carousel-slide {
    position: absolute;
    inset: 0;

    width: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1.2s ease-in-out,
        visibility 1.2s ease-in-out;
}

.carousel-slide.active {
    position: relative;

    opacity: 1;
    visibility: visible;
}

/*
 * IMMAGINI
 */

.carousel-slide img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}

/*
 * FRECCE
 */

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;

    transform: translateY(-50%);

    border: 0;
    padding: 20px;

    color: white;
    background: rgba(0, 0, 0, 0.15);

    font-size: 48px;
    line-height: 1;

    cursor: pointer;

    opacity: 0.75;

    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}

.carousel-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.30);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/*
 * INDICATORI
 */

.carousel-indicators {
    position: absolute;

    left: 50%;
    bottom: 25px;

    z-index: 10;

    display: flex;
    gap: 10px;

    transform: translateX(-50%);
}

.carousel-dot {
    width: 12px;
    height: 12px;

    padding: 0;

    border: 2px solid white;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    opacity: 0.8;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.15);
}

/*
 * MOBILE
 */

@media (max-width: 768px) {

    .carousel-arrow {
        padding: 10px;
        font-size: 32px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .carousel-indicators {
        bottom: 12px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}
