#carouselExampleIndicators .img {
    width: 70%;
    height: 5rem;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contenitoretasti {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

}

.contenitoretasti i:hover {
    color: #165f5f;
}

#tasto_sx:hover {
    transform: translate(-2px, 0);
}

#tasto_dx:hover {
    transform: translate(+2px, 0);
}


.cont_carousel {
    background-color: gainsboro;
    caret-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80rem;
    flex-direction: column;
    gap: 0rem;
    padding: 1rem;
    position: relative;
    height: 50rem;

}

.cont_img {
    margin-top: 0.0rem;
    width: auto;
    height: 100vmin;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.immagineattuale {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;

}

.immagineattuale img {
    height: auto;
    overflow: hidden;
    width: auto;
    height: auto;
    max-height: 70vmin;
}

.cont_img .immagineattuale:not(:first-child) {
    position: relative;
}

#contatore {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;


}


@media screen and (max-width: 768px) {
    html {
        font-size: 13px;
    }
}

@media screen and (max-width: 540px) {


    .contenitoreiniziale {
        height: 40rem;
    }
}

#linkwa {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.0rem;
    color: green;
    background-color: bisque;
    padding: 3%;
    font-weight: 600;
}

@media screen and (max-width: 568px) {
    html {
        font-size: 11px;
    }

    .container {
        margin-top: 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #carouselExampleIndicators {
        width: 90%;
    }

    .carousel-item img {
        height: 400px !important;

    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .nav-link {
        margin-top: 1rem;
        font-size: 1.3rem;
    }

    h5 {
        font-size: 2rem;
    }

    .col-lg-4>p {
        font-size: 1.3rem;
    }

    .col-lg-4>ul {
        font-size: 1.3rem;
    }

    #linkwa {
        width: 100%;
        margin-top: 2rem;
        font-size: 1.5rem;
        color: green;
        background-color: bisque;
        padding: 3%;
        font-weight: 600;
    }
}

.fixed-button {
    white-space: nowrap;
    width: auto;
    height: 70px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border: 0px;
    cursor: pointer;
    border-radius: 15px;
    z-index: 10;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);

}

.fixed-button:hover {
    transform: translate(0, -5px);
    transition: 330ms ease-in-out;
}

.fixed-button:focus {
    outline: none;
}



.popup {
    height: 200px;
    width: 350px;
    white-space: nowrap;
    display: none;
    position: fixed;
    bottom: 120px;
    right: 20px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    z-index: 10;
    font-size: 15px;
}

.popup a {
    display: inline;
    margin-bottom: 10px;
    color: #007BFF;
    text-decoration: none;
}

.popup a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 900px) {
    #contattaci {
        display: none;


    }

    .fixed-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 4rem;
        height: 4rem;
        border-radius: 50%;
    }
}