/*    DIMENSIONI IPAD:
    - Ipad Pro: 1024x1366
    - Ipad Mini: 768x1024
    - Ipad Air: 820x1180
    - Ipad: 768x1024
*/
/* Da fixare iPad Pro M4 13inch, possibile modifica utile min-device-width al posto di min-width */


/*#############################*/
/*##### iPad in verticale #####*/
/*#############################*/
@media only screen and (min-width: 700px) and (max-width: 1024px) and (min-height: 1024px) and (max-height: 1400px) {
    /*##### 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.5vw;
    }

    .navbar_social{
        width: 20vw;
    }

    .navbar_social img{
        width: 6vw;
    }

    .menu_responsive{
        z-index: 2;
        padding-top: 3%;
        position: absolute;
        display: flex;
        width: 25vw;
        flex-direction: column;
        margin: 35% 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: 3.5vw;
        text-decoration: none;
    }

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

    .scorrimento{
        display: none;
    }

    .scorrimento_phone{
        display: flex;
    }

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

    .home_main{
        width: 80vw;
        height: auto;
    }

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

    .patrocinio_frase{
        font-size: 2vw;
    }

    .logo_comune{
        width: 15vw;
    }

    /*### COUNTDOWN ###*/

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

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

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

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

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

    /*### MODALE ###*/
    .modal-home {
        z-index: 4;
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        justify-content: center;
        align-items: center;
        color: whitesmoke;
    }

    .modal-contenthome {
        background-color: rgba(21, 40, 91);
        padding: 30px;
        border-radius: 25px;
        width: 90vw;
        height: 70vh;
        text-align: center;
        box-shadow: 0 3px 15px rgb(255, 255, 255);
        animation: fadeIn 0.3s ease;
    }

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

    .modal-contenthome a{
        font-size: 3.5vw;
        text-decoration: underline;
        color: aqua;
    }

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

    .modal-contenuto{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
        width: 100%;
        height: 60%;
        z-index: 2;
    }

    .close {
        z-index: 3;
        float: right;
        font-size: 3vw;
        cursor: pointer;
    }

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

    .container_brochure {
        background-color: black;
        height: 1050vh;
    }

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

    .group_card {
        display: none;
    }

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

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

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

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

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

    /* MODALE */

    .modal-content {
        background-color: rgba(21, 40, 91, 0.95);
        padding: 30px;
        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: 5vw;
    }

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

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

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

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

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

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

    .contatta a{
        font-size: 3vw;
    }

    /* GALLERY*/

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

    .carousel img {
        height: 40vh;
    }
}

@media only screen and (min-width: 700px) and (max-width: 900px) and (min-height: 600px) and (max-height: 1200px) {
    /*##### 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.5vw;
    }

    .navbar_social{
        width: 20vw;
    }

    .navbar_social img{
        width: 6vw;
    }

    .menu_responsive{
        z-index: 2;
        padding-top: 3%;
        position: absolute;
        display: flex;
        width: 25vw;
        flex-direction: column;
        margin: 35% 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: 3.5vw;
        text-decoration: none;
    }

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

    .scorrimento{
        display: none;
    }

    .scorrimento_phone{
        display: flex;
    }

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

    .home_main{
        width: 80vw;
        height: auto;
    }

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

    /*### COUNTDOWN ###*/

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

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

    .time-box {
        z-index: 4;
        background: #111;
        padding: 10px 25px;
        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;
    }

    /*### MODALE ###*/
    .modal-home {
        z-index: 4;
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        justify-content: center;
        align-items: center;
        color: whitesmoke;
    }

    .modal-contenthome {
        background-color: rgba(21, 40, 91);
        padding: 30px;
        border-radius: 25px;
        width: 90vw;
        height: 70vh;
        text-align: center;
        box-shadow: 0 3px 15px rgb(255, 255, 255);
        animation: fadeIn 0.3s ease;
    }

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

    .modal-contenthome a{
        font-size: 3.3vw;
        text-decoration: underline;
        color: aqua;
    }

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

    .modal-contenuto{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
        width: 100%;
        height: 60%;
        z-index: 2;
    }

    .close {
        z-index: 3;
        float: right;
        font-size: 3vw;
        cursor: pointer;
    }

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

    .container_brochure {
        background-color: black;
        height: 1050vh;
    }

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

    .group_card {
        display: none;
    }

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

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

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

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

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

    /* MODALE */

    .modal-content {
        background-color: rgba(21, 40, 91, 0.95);
        padding: 30px;
        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: 5vw;
    }

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

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

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

@media only screen and (min-width: 700px) and (max-width: 900px) and (min-height: 600px) and (max-height: 750px) {
    /*##### 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.5vw;
    }

    .navbar_social{
        width: 20vw;
    }

    .navbar_social img{
        width: 6vw;
    }

    .menu_responsive{
        z-index: 2;
        padding-top: 3%;
        position: absolute;
        display: flex;
        width: 25vw;
        flex-direction: column;
        margin: 40% 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: 3.5vw;
        text-decoration: none;
    }

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

    .scorrimento{
        display: none;
    }

    .scorrimento_phone{
        display: flex;
    }

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

    .home_main{
        width: 80vw;
        height: auto;
    }

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

    /*### COUNTDOWN ###*/

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

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

    .time-box {
        z-index: 4;
        background: #111;
        padding: 10px 25px;
        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;
    }

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

    .container_brochure {
        background-color: black;
        height: 1050vh;
    }

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

    .group_card {
        display: none;
    }

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

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

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

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

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

    /* MODALE */

    .modal-content {
        background-color: rgba(21, 40, 91, 0.95);
        padding: 30px;
        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: 5vw;
    }

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

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

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



/*#####################*/
/* iPad in orizzontale */
/*#####################*/

@media only screen and (min-width: 1024px) and (max-width: 1100px) and (max-height: 1000px) {
    
}

/* iPad in orizzontale */
@media only screen and (min-width: 1024px) and (max-width: 1100px) and (max-height: 720px) {

}

/* iPad in orizzontale */
@media only screen and (min-width: 1024px) and (max-width: 1100px) and (max-height: 600px) {

}

/* iPad Pro in orizzontale */
@media only screen and (min-width: 1024px) and (max-width: 1400px) and (min-height: 820px) and (max-height: 1100px) {

}

/* Ipad Air Only */
@media only screen and (min-width: 1180px) and (max-width: 1200px) and (max-height: 820px) {

}