body {
    padding: 0;
    margin: 0;
    font-family:"Jost";
    user-select: none;
    background-color: white;
}

#contact:hover{
    border-color: #a30000;
    background-color: #a30000;
    transform: scale(1.2);
}

.t {
    opacity: 0;
    transition: opacity 1s linear;
}

.t.in-view {
    opacity: 1;
}

#big {
    opacity: 0;
    transition: opacity 1s linear;
}

#big.in-view {
    opacity: 1;
}

.f-tool, .f-ttl, .f-desc, .f-link{
    opacity: 0;
    transition: opacity 1s linear;
}

.f-tool.in-view, .f-ttl.in-view, .f-desc.in-view, .f-link.in-view{
    opacity: 1;
}

#paranimg, .introducer, .txt, #prenotaf {
    opacity: 0;
    transition: opacity 1s linear;
}

#paranimg.in-view, .introducer.in-view, .txt.in-view, #prenotaf.in-view {
    opacity: 1;
}

#parafimg, #parantp, #parantxtp, #ordinan {
    opacity: 0;
    transition: opacity 1s linear;
}

#parafimg.in-view, #parantp.in-view, #parantxtp.in-view, #ordinan.in-view {
    opacity: 1;
}

#info {
    opacity: 0;
    transition: opacity 1s linear;
}

#info.in-view{
    opacity: 1;
}

#img1, #img2, #img3, .txt2 {
    opacity: 0;
    transition: opacity 1s linear;
}

#img1.in-view, #img2.in-view, #img3.in-view, .txt2.in-view {
    opacity: 1;
}

#img1 {
    background-image: url("img/vecteezy_coin.webp");
}

#img2 {
    background-image: url("img/vecteezy_sushi-box-bento-box-lunch-box_41766279.webp");
}

#img3 {
    background-image: url("img/santacroce.webp");
}

.gallery{
    opacity: 0;
    transition: opacity 1s linear;
}

.gallery.in-view {
    opacity: 1;
}

#voi {
    opacity: 0;
    transition: opacity 1s linear;
}


#voi.in-view {
    opacity: 1;
}

@media screen and (min-width: 1000px){
    #topper {
        display: flex;
        background-color: rgb(28, 28, 28);
        width: 100%;
        height: 25vw;
        justify-content: center;
        align-items: center;
    }
    
    #nome {
        color: white;
        text-align: center;
        font-size: 500%;
        font-weight:bolder;
        margin-top: 7%;
    }
    
    #big {
        display: flex;
        align-items: center;
        justify-content: center;
        background-image: url(img/interno.jpg);
        height: 40vw;
        width: 100%;
        font-size: 320%;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        text-align: center;
    }
    
    #info {
        width: 100%;
        height: 7vw;
        background-color: rgb(230, 230, 230);
        text-align: center;
        padding-top: 2vw;
        padding-bottom: 12vw;
        margin-bottom: -4vw;
    }
    
    #fix {
        z-index: 100000;
        position: fixed;
        background-color: rgb(28, 28, 28);
        width: 100vw;
        height: 8vw;
    }   
    
    #logo {
        display: block;
        font-size: 160%;
        margin-top: 1vw;
        margin-left: 3vw;
        height: 5vw;
        width: 10vw;
        font-weight: bold;
        color: white;
    
    }
    
    #takeaway, #ordine, #prenota {
        color: whitesmoke;
        margin-top: 8vw;
        margin-left: 3vw;
        border: 2px solid;
        border-radius: 10px;
        border-color: #a30000;
        background-color: #a30000;
        padding: 1%;
        font-size: 150%;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    #contact {
        display: block;
        color: whitesmoke;
        float: right;
        margin-top: -4vw;
        border: 2px solid;
        border-radius: 10px;
        border-color: #a30000;
        background-color: #a30000;
        padding: 1%;
        font-size: 150%;
        font-weight: bold;
        transition: all 0.3s ease;
        margin-right: 4vw;
        text-align: right;
        color: white;
        font-size: 100%;
    }
    
    #takeaway:hover, #ordine:hover, #prenota:hover, #contact:hover{
        border-color: #a30000;;
        background-color: #a30000;;
        transform: scale(1.2);
    }
    .t, #voi {
        font-size: 220%;
        font-weight: bold;
    }
    
    #voi{
        text-align: center;
    }
    
    .txt, #dove, #orario {
        font-size: 120%;
    }
    
    #sudinoi, #sudinoi2 {
        font-size: 220%;
        font-weight: bold;
        margin-bottom: 1vw;
    }
    
    #dove {
        margin: 1vw;
    }
    #orario{
        padding: 1vw;
    }

    #firstsect {
        position: relative;
        background-color: rgb(230, 230, 230);
        padding-top: 8vh;
        padding-bottom: 8vh;
        text-align: center;
        display: flex;
    }

    .f-tool{
        margin: auto 4vw;
    }

    .f-ttl{
        font-size: 130%;
        margin-bottom: 0.5vw;
    }
    .f-link {
        z-index: 20000;
        color: rgb(196, 168, 12);
        margin: 5vh;
        white-space: nowrap;
        margin-bottom: 1vh;
    }
    #copyright {
        color: white;
        font-style: italic;
        width: 100%;
        height: 3vw;
        background-color: rgb(28, 28, 28);
    }

    .introducer {
        color: rgb(196, 168, 12);
        font-style: italic;
    }
    
    #inostriclienti {
        padding: 1vw;
        margin-top: 10vw;
        background-color: rgb(230, 230, 230);
    }

    #biggallery {
        display: flex;
        flex-wrap: wrap;
    }
    
    .grid{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        height: 40vw;
    }
    
    #img1 {
        display: block;
        margin: auto;
        background-size:contain;
        width: 15vw;
        height: 15vw;
    }
    
    #img2 {
        background-size:contain;
        display: block;
        margin: auto;
        width: 15vw;
        height: 15vw;
    }
    
    #img3 {
        background-size:contain;
        display: block;
        margin: auto;
        width: 15vw;
        height: 15vw;
    }
    
    #punti {
        text-align: center;
        margin: 10vw 5vw 5vw 5vw;
    }
    
    .txt2{
        text-align: center;
        margin-left: 3vw;
        font-size: 110%;
        margin-top: 1vw;
        width: 80%;
    }
    
    #pt {
        font-size: 350%;
        margin-bottom: 5vw;
    }
    
    div.gallery {
        margin: 3vw;
        border: 1px solid #ccc;
        float: left;
        width: 25vw;
      }
      
      div.gallery:hover {
        border: 1px solid #000000;
      }
      
      div.gallery img {
        width: 100%;
        height: auto;
      }
    
    #para {
        display: inline-block;
        line-height: 2.5vw;
    }

    #starter {
        text-align: center;
        width: 80%;
        margin: 0 auto;
    }
    #inside {
        background-color: rgb(230, 230, 230);
    }
      
      #grazie {
        line-height: 5.5vh;
        padding-top: 3vw;
        padding-bottom: 3vw;
        font-size: 120%;
        text-align: center;
        background-color: rgb(230, 230, 230);
    }

#paran, #parap {
    display: flex;
    margin: auto;
    height: 100vh;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Limita la larghezza massima per un aspetto migliore */
    padding: 20px;
    box-sizing: border-box;
}

#parap {
    flex-direction: row-reverse;
}

#paranimg {
    width: 40%;
    height: auto;
}

#parafimg {
    width: 40%;
    height: auto;
}

#paranttxt, #paraptxt {
    padding-left: 2vw;
    width: 50%;
    box-sizing: border-box;
}

#paraptxt {
    padding-right: 2vw;
}

#parantf, #parantp {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

#parantxtf, #parantxtp {
    font-size: 1.1em;
    line-height: 1.6;
}

#prenotaf, #ordinan{
    font-size: 1.2em;
    margin: 1vw;
    margin-top: 2vw;
    color: rgb(170, 146, 11);
    text-align: center;
    border: 5px solid  rgb(230, 230, 230);
    width: 40%;
    background-color: rgb(230, 230, 230);
}

#prenotaf:hover, #ordinan:hover {
    transition: ease;
    transition-duration: 100ms;
    transform: scale(1.1);
}
}




@media screen and (min-width: 469px) and (max-width:1000px) {  /*  TABLET*/
    #topper {
        display: flex;
        background-color: rgb(28, 28, 28);
        width: 100%;
        height: 55vw;
        justify-content: center;
        align-items: center;
    }
    
    #nome {
        color: white;
        text-align: center;
        font-size: 220%;
        font-weight:bolder;
        margin-top: 7%;
    }
    
    #big {
        background-image: url(img/lampada.jpg);
        height: 80vw;
        width: 100%;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        filter: contrast(200%);
        filter: opacity(27%);
    }
    
    #info {
        margin-top: 5vw;
        width: 100%;
        height: 25vw;
        background-color: rgb(230, 230, 230);
        text-align: center;
        padding-top: 2vw;
        padding-bottom: 12vw;
    }
    
    #fix {
        position: fixed;
        background-color: rgb(28, 28, 28);
        width: 100vw;
        height: 10vw;
    }   
    .f-link {
        color: rgb(196, 168, 12);
        margin: 5vh;
        white-space: nowrap;
        margin-bottom: 1vh;
    }
    #logo {
        display: block;
        font-size: 90%;
        margin-top: 2vw;
        margin-left: 5vw;
        height: 5vw;
        width: 10vw;
        font-weight: bold;
        color: white;
    
    }
    
    #takeaway, #ordine, #prenota {
        display: flex;
        color: whitesmoke;
        margin-top: 8vw;
        margin-left: 3vw;
        border: 2px solid;
        border-radius: 10px;
        border-color: #a30000;
        background-color: #a30000;
        align-items: center;
        text-align: center;
        height: 7vw;
        padding: 1%;
        font-size: 100%;
        font-weight: bold;
        transition: all 0.3s ease;
    }
    #contact {
        display: block;
        color: whitesmoke;
        float: right;
        margin-top: -5vw;
        border: 2px solid;
        border-radius: 10px;
        border-color: #a30000;
        background-color: #a30000;
        padding: 1%;
        font-size: 150%;
        font-weight: bold;
        transition: all 0.3s ease;
        margin-right: 5vw;
        text-align: right;
        color: white;
        font-size: 100%;
    }
    #firstsect {
        position: relative;
        background-color: rgb(230, 230, 230);;
        text-align: center;
        height: 18vw;
        display: flex;
    }

    .f-tool{
        margin: auto 4vw;
    }

    .f-ttl{
        font-size: 130%;
        margin-bottom: 0.5vw;
    }

    #takeaway:hover, #ordine:hover, #prenota:hover{
        border-color: #a30000;;
        background-color: #a30000;;
        transform: scale(1.2);
    }
    
    #esp {
        font-style: italic;
        font-size: 300%;
        color: black;
        margin-top: -60vw;
        text-align: center;
        margin-bottom: 40vw;
    }
    
    #noi {
        text-align: center;
        width: 100%;
        height: 40vw;
        background-color: rgb(230, 230, 230);
        border-radius: 10px;
        margin-top: 20vw;
        margin-bottom: 20vw;
    }
    
    #perche {
        text-align: center;
        margin-top: 6vw;
        margin-bottom: 25vw;
        width: 100%;
        height: 45vw;
        background-color: rgb(230, 230, 230);
        border-radius: 10px;
    }
    
    .t, #voi {
        font-size: 220%;
        font-weight: bold;
    }
    
    #voi{
        text-align: center;
    }
    
    .txt, #dove, #orario {
        font-size: 120%;
    }
    
    #sudinoi, #sudinoi2 {
        font-size: 220%;
        font-weight: bold;
        margin-bottom: 1vw;
    }
    
    #dove {
        margin: 1vw;
    }
    #orario{
        padding: 1vw;
    }
    
    
    #copyright {
        color: white;
        font-style: italic;
        width: 100%;
        height: 3vw;
        background-color: rgb(28, 28, 28);;
    }
    
    #inostriclienti {
        padding: 1vw;
        background-color: rgb(230, 230, 230);
    }
    
    .grid{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        height: 10vw;
    }
    
    #img1 {
        display: block;
        margin: auto;
        background-size:contain;
        width: 15vw;
        height: 15vw;
    }
    
    #img2 {
        background-size:contain;
        display: block;
        margin: auto;
        width: 15vw;
        height: 15vw;
    }
    
    #img3 {
        background-size:contain;
        display: block;
        margin: auto;
        width: 15vw;
        height: 15vw;
    }
    
    #punti {
        text-align: center;
        padding-bottom: 50vw;
        margin: 10vw 5vw 55vw 5vw;
    }
    
    .txt2{
        text-align: center;
        margin-left: 3vw;
        font-size: 110%;
        margin-top: 1vw;
        width: 80%;
    }
    
    #pt {
        font-size: 350%;
        margin-bottom: 5vw;
    }
    
    div.gallery {
        margin: 3vw;
        border: 1px solid #ccc;
        float: left;
        width: 25vw;
      }
      
      div.gallery:hover {
        border: 1px solid #000000;
      }
      
      div.gallery img {
        width: 100%;
        height: auto;
      }
    
    #biggallery{
        margin-bottom: 150vw;
    }
    #para {
        display: inline-block;
        line-height: 6vw;
      }
      #parap, #paran{
        line-height: 9vw;
      }
      #grazie {
        line-height: 5vh;
        margin: 5vw;
        text-align: center;
        background-color: rgb(230, 230, 230);
    }
    #paran, #parap {
        display: flex;
        margin: auto;
        height: 100vh;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 1200px; /* Limita la larghezza massima per un aspetto migliore */
        padding: 20px;
        box-sizing: border-box;
    }
    
    #parap {
        flex-direction: row-reverse;
    }
    
    #paranimg {
        width: 40%;
        height: auto;
    }
    
    #parafimg {
        width: 40%;
        height: auto;
    }
    
    #paranttxt, #paraptxt {
        padding-left: 2vw;
        width: 50%;
        box-sizing: border-box;
    }
    
    #paraptxt {
        padding-right: 2vw;
    }
    
    #parantf, #parantp {
        font-size: 1.5em;
        font-weight: bold;
        margin-bottom: 10px;
    }
    
    #parantxtf, #parantxtp {
        font-size: 1.1em;
        line-height: 1.6;
    }
    
    #prenotaf, #ordinan{
        font-size: 1.2em;
        margin: 1vw;
        margin-top: 2vw;
        color: rgb(170, 146, 11);
        text-align: center;
        width: 40%;
        background-color: rgb(230, 230, 230);
    }
}

@media screen and (max-width: 468px) {  /*CELLULARE*/
    
    #topper {
        z-index: 10;
        display: flex;
        background-color: rgb(28, 28, 28);
        width: 100%;
        height: 85vw;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
    }
    
    #nome {
        flex: 1 1 400px;
        color: white;
        text-align: center;
        font-size: 220%;
        font-weight:bold;
        margin-top: 24vw;
    }
    
    #big {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: -1000;
        font-size: 220%;
        background-image: url(img/interno.jpg);
        height: 60vh;
        width: 100%;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    
    #info {
        margin-top: 5vw;
        width: 100%;
        height: 55vw;
        background-color: rgb(230, 230, 230);
        text-align: center;
        padding-top: 2vw;
        padding-bottom: 12vw;
    }

    #firstsect {
        position: relative;
        background-color: rgb(230, 230, 230);
        text-align: center;
        padding-top: 5vh;
        padding-bottom: 5vh;
        display: flex;
        flex-direction: column;
    }
    .f-ttl{
        font-size: 150%;
        margin-bottom: 1vw;
    }
    .f-desc {
        line-height: 5vh;
    }

    .f-link {
        color: rgb(196, 168, 12);
        margin: 5vh;
        height: 5vh;
    }
    
    #fix {
        position: fixed;
        background-color: rgb(28, 28, 28);
        width: 100vw;
        height: 20vw;
    }   
    
    #logo {
        display: flex;
        font-size: 100%;
        margin-left: 3vw;
        margin-top: 2vw;  
        height: 3vw;
        width: 200vw;
        font-weight: bold;
        color: white;
        line-height: 13vw;
    
    }
    
    #takeaway, #ordine, #prenota {
        display: flex;
        flex: 1 1 100px;
        color: whitesmoke;
        margin-left: 2vw;
        margin-right: 2vw;
        border: 3px solid;
        border-radius: 10px;
        border-color: #a30000;
        background-color: #a30000;
        padding-top: 2%;
        padding-bottom: 2%;
        height: 8vw;
        font-size: 100%;
        font-weight: bold;
        margin-bottom: 5vw;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
    }
    #contact {
        display: block;
        color: whitesmoke;
        float: right;
        border: 2px solid;
        margin-top: -1vw;
        margin-right: 2vw;
        border-radius: 10px;
        border-color: #a30000;
        background-color: #a30000;
        padding: 2%;
        font-size: 80%;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    #takeaway:hover, #ordine:hover, #prenota:hover{
        border-color: #a30000;;
        background-color: #a30000;;
        transform: scale(1.2);
    }

    #noi {
        display: flex;
        text-align: center;
        width: 100%;
        height: 70vw;
        background-color: rgb(230, 230, 230);
        margin-top: 30vw;
        margin-bottom: 30vw;
        align-items: center;
    }

    #perche {
        display: flex;
        text-align: center;
        margin-top: 30vw;
        margin-bottom: 25vw;
        width: 100%;
        height: 80vw;
        background-color: rgb(230, 230, 230);
        align-items: center;
    }

    .t {
        font-size: 160%;
        font-weight: bold;
    }
    
    #voi{
        text-align: center;
        margin: 5vw;
    }
    
    .txt, #dove, #orario {
        font-size: 120%;
    }
    
    #sudinoi, #sudinoi2 {
        font-size: 220%;
        font-weight: bold;
        margin-bottom: 1vw;
    }
    
    #dove {
        margin: 1vw;
    }
    #orario{
        padding: 1vw;
    }
    #copyright {
        position: absolute;
        color: white;
        font-style: italic;
        width: 100%;
        height: 5vw;
        font-size: 80%;
        background-color: rgb(28, 28, 28);
    }
    
    #inostriclienti {
        padding: 1vw;
        background-color: rgb(230, 230, 230);
    }
    
    #img1 {
        display: block;
        margin:  auto;
        background-size:contain;
        width: 40vw;
        height: 40vw;
    }
    
    #img2 {
        background-size:contain;
        display: block;
        margin: auto;
        width: 40vw;
        height: 40vw;
    }
    
    #img3 {
        background-size:contain;
        display: block;
        margin: auto;
        width: 40vw;
        height: 40vw;
    }
    
    #punti {
        text-align: center;
        margin: 25vw 5vw 5vw 5vw;
    }
    
    .txt2{
        margin: auto;
        text-align: center;
        font-size: 110%;
        margin-top: 4vw;
        margin-bottom: 4vw;
        width: 80%;
    }
    
    #pt {
        font-size: 300%;
        margin-bottom: 10vw;
    }

    #biggallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    img {
        margin: 5vw;
        width: 75vw;
        height: auto;
    }

      #para {
        display: inline-block;
        line-height: 10vw;
      }
      .introducer {
        color: rgb(196, 168, 12);
        font-style: italic;
    }
      #parap, #paran{
        line-height: 10vw;
      }

    .p {
        margin-top: 8vw;
        margin-bottom: 10vw;
    }
    .grid {
        margin-bottom: 20vw;
    }
    .f-tool{
        margin: auto 4vw;
    }
    #grazie {
        line-height: 5vh;
        margin: 5vw;
        text-align: center;
        background-color: rgb(230, 230, 230);
    }
    #paran, #parap {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    
    #paranimg {
        width: 70%;
        height: auto;
    }
    
    #parafimg {
        z-index: -100;
        width: 70%;
        height: auto; 
    }
    
    #paranttxt, #paraptxt {
        padding-left: 2vw;
        width: 80%;
        box-sizing: border-box;
    }
    
    #paraptxt {
        padding-right: 2vw;
    }
    
    #parantf, #parantp {
        font-size: 1.5em;
        font-weight: bold;
        margin-bottom: 10px;
    }
    
    #parantxtf, #parantxtp {
        font-size: 1.1em;
        line-height: 1.6;
    }
    
    #prenotaf, #ordinan{
        font-size: 1.2em;
        margin: 1vw;
        margin-top: 4vh;
        color: rgb(170, 146, 11);
        text-align: center;
        width: 80%;
        background-color: rgb(230, 230, 230);
    }
}