/*    DIMENSIONI IPAD:
    - iPhone 6/7/8 Plus: 414x736
    - iPhone 12 Pro: 390x844
    - iPhone X: 375x812
    - iPhone XR: 414x896
    - iPhone SE: 375x667
    - iPhone 14 Pro Max: 430x932
*/

/* Stili responsive per schermi fino a 700px (smartphone) */
@media only screen and (max-width: 700px) {

    /*##### NAVBAR #####*/

    .navbar{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .navbar_menu{
        display: none;
    }

    .tasto_menu_responsive{
        z-index: 2;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 15vw;
    }

    .tasto_menu_responsive img{
        width: 10vw;
    }

    .navbar_titolo{
        width: 60vw;
    }

    .navbar_titolo{
        font-size: 3.8vw;
    }

    .navbar_social{
        width: 20vw;
    }

    .navbar_social img{
        width: 6vw;
    }

    .menu_responsive{
        z-index: 2;
        padding: 5% 0% 5% 3%;
        position: absolute;
        display: flex;
        width: 30vw;
        flex-direction: column;
        margin: 45% 0% 0% -75%;
        background-color: #15285b;
        border-radius: 0px 0px 20px 0px;
    }

    .menu_responsive a{
        z-index: 2;
        color: white;
        padding: 1.5vw;
        font-size: 4.5vw;
        text-decoration: none;
    }

    /*##### Banner Evento #####*/

    .scorrimento{
        display: none;
    }

    .scorrimento_phone{
        display: flex;
    }

    .banner{
        height: 5vh;
    }

    /*###### HOME #####*/

    .container_home{
        background-image: url('/img/img_varie/sfondo_phone.webp');
        background-repeat: no-repeat;
        background-size: cover;
        height: auto;
    }

    .spazioperphone{
        display: flex;
        width: 100vw;
        height: 13vh;
    }

    .home_main{
        width: 80vw;
        height: auto;
        margin-bottom: 3%;
    }

    .patrocinio_frase{
        font-size: 3vw;
    }

    .logo_comune{
        width: 20vw;
    }

    .home_main p{
        font-size: 3.3vw;
        color: white;
        background-color: rgba(21, 40, 91, 0.8);
        border-radius: 10px;
        padding: 2vw;
        box-shadow: 0 3px 15px rgb(255, 255, 255);
    }

    /*### COUNTDOWN ###*/

    .countdown {
        z-index: 4;
        display: flex;
        gap: 15px;
        margin-top: 10px;
    }

    .titolo_countdown{
        font-size: 3.7vw;
        color: white;
    }

    .time-box {
        z-index: 4;
        background: #111;
        padding: 5px 10px;
        border-radius: 10px;
        box-shadow: 0 0 15px #a3bbff;
    }

    .time-box span {
        display: block;
        font-size: 6vw;
        color: #366cff;
    }

    .label {
        font-size: 3vw;
        text-transform: uppercase;
        color: #aaa;
    }


    /* ############### SPONSOR ############## */

    .container_sponsor{
        height: auto;
    }

    .group_sponsor{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 20vh;
        width: 100vw;
        margin-bottom: 3vw;
    }

    .sponsor {
        width: 20vw;
    }

    .title-categoria{
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100vw;
        font-size: 5vw;
        color: black;
    }

    .collaborazioni img{
        width: 15vw;
    }

    /*######## CONTATTACI ########*/

    .container_contattaci{
        flex-direction: column;
        height: 100vw;
        text-align: center;
    }

    .contatta h2{
        font-size: 4vw;
    }


    /*##########################*/
    /*######## BROCHURE ########*/
    /*##########################*/

    .spazio_sopra{
        display: none;
    }

    .container_brochure {
        background-color: black;
        height: auto;
    }

    .cont_card {
        display: none;
        justify-content: space-evenly;
        align-items: center;
        flex-direction: column;
        height: auto;
        width: 100vw;
    }

    .group_card {
        display: none;
    }

    .group_card_phone{
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: auto;
        width: 100vw;
        margin-top: 15vh;
    }

    .card {
        background-color: white;
        border-radius: 25px;
        height: 45vh;
        width: 70vw;
        border: solid 3px white;
        cursor: pointer;text-align: center;
        margin-bottom: 3%;
    }
    
    .card:hover{
        border-radius: 25px;
        height: 45vh;
        width: 70vw;
    }

    .nome_card{
        font-size: 5vw;
        width: 100vw;
        z-index: 3;
        border-radius: 20px;
        color: black;
        background-color: rgb(255, 255, 255, 0.9);
    }

    .card span{
        font-size: 4vw;
    }

    .intestazione-card{
        font-size: 7vw;
    }

    /* MODALE */

    .modal-content {
        background-color: rgba(21, 40, 91, 0.95);
        padding: 20px;
        border-radius: 25px;
        width: 80vw;
        text-align: center;
        box-shadow: 0 3px 15px rgb(255, 255, 255);
        animation: fadeIn 0.3s ease;
    }

    .modal-content h2{
        font-size: 7vw;
    }

    .modal-content p{
        font-size: 2.5vw;
        z-index: 3;
    }

    .modal-contenuto{
        width: 100%;
        height: auto;
    }

    .close {
        font-size: 7vw;
        z-index: 4;
    }

    /*Modal per la home*/

    .modal-home {
        display: flex;
    }

    .modal-contenthome{
        background-color: rgba(21, 40, 91);
    }

    .modal-contenthome h2{
        font-size: 7vw;
    }

    .modal-contenthome p{
        font-size: 5vw;
    }

    .modal-contenthome a{
        font-size: 5vw;
    }

    /*########*/
    /* GALLERY*/
    /*########*/

    .spazio_sopra{
        display: flex;
        height: 15vh;
    }

    .carousel img {
        height: 25vh;
    }

    .arrow {
        font-size: 1rem;
        padding: 5px;
    }

    .titolo_degli_scorrimenti{
        font-size: 3vh;
    }
    }

/* Smartphone in Orizzontale */
@media only screen and (max-width: 1000px) and (max-height: 500px) {

}