header {
    position: relative;
    background-color: black;
    height: 100vh;
    min-height: 25rem;
    width: 100%;
    overflow: hidden;
}
  
header video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}
  
header .container {
    position: relative;
    z-index: 2;
}
  
header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.5;
    z-index: 1;
}

.logo{
    width: 100%;
}

body{
    font-family: 'Roboto', sans-serif;
}

h1{
    padding-top: 3rem;
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Jost', sans-serif;
}

h2{
    margin-top: 6rem; 
}

.caffe, .prodotti, .location{
    min-height: 100vh;
    padding-bottom: 1rem;
    background-repeat: no-repeat;
    background-size: 200vw;
}

.caffe{
    background-image: linear-gradient(to right, white, rgba(0,0,0,0), rgba(0,0,0,0)), url(../svgs/tazzina.svg);
    
}

.caffe h1, .caffe h2{
    padding-right: 2rem;
}

.caffeimg{
    background-image: url(../photo/caffeconvistaS.jpg);
    margin-top: 6rem;
    height: 16rem;
    width: 16rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgb(220,0,0);
}

.prodotti{
    background-color: black;
    background-image: linear-gradient(to right, black, rgba(0,0,0,0)), url(../svgs/brioche.svg);
    background-position: right;
    text-align: right;
}

.prodotti img{
    margin-top: 1rem;
    padding: 1rem;
    width: 16rem;
    border: 2px solid white;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.4);
}

.prodotti img:hover{
    box-shadow: 0 0 15px white;
    background-color: rgba(220, 0, 0, 0.2);
    transition: .15s ease-in-out;
}


.location{
    background-color: rgb(220,0,0);
    background-image: linear-gradient(to right, rgb(220,0,0), rgba(0,0,0,0), rgba(0,0,0,0)), url(../svgs/tavoliR.svg);
    color: black;
}

.location h1, .location h2{
    padding-right: 2rem;
}

.locimg{
    background-image: url(../photo/estivo.jpeg);
    margin-top: 6rem;
    height: 14rem;
    width: 18.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px white;
}

.action{
    min-height: 100vh;
    padding-top: 3rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.action h1{
    text-align: right;
    color: red;
}

.social, .contatti{
    margin-top: 6rem;
    margin-bottom: 3rem;
}

.action img{
    height: 4rem;
    padding: 6px;
}

.action img:hover{
    border: 2px solid black;
    border-radius: 10px;
    transition: .1s ease-in-out;
}

footer{
    background-color: black;
}

footer span{
    font-size: 0.9rem;
    font-family: 'Exo 2', sans-serif;
    color: rgba(220,0,0,0.5); 
}

footer img{
    height: 0.8rem;
}

footer img:hover{
    height: 1.6rem;
    transition: .3s ease-out;
}

/* large tablet 3:4 */
@media screen and (min-width: 992px) and (max-width: 1199px) and (min-height: 992px) and (max-height: 1400px) and (orientation: portrait) {
    h1{
        padding-top: 5rem;
        font-size: 6rem;
    }

    h2{
        margin-top: 10rem;
        font-size: 2.5rem;
    }

    .caffeimg{
        height: 26rem;
        width: 26rem;
    }

    .prodotti img{
        height: 20rem;
        width: 20rem;
    }

    .locimg{
        height: 22rem;
        width: 29rem;
    }
}

/* 16:9 */
@media screen and (min-width: 1200px) and (orientation: landscape) {
    .logo{
        width: 80%;
        margin: auto;
    }

    .caffe, .prodotti, .location{
        padding-bottom: 0;
        background-size: 100vw;
    }

    .caffeimg{
        margin: 0;
        height: 100vh;
        width: 41vw;
        background-size: cover;
        background-position-x: none;
        border-radius: 0;
        box-shadow: none;
    }

    .prodotti img{
        margin-top: 13rem;
        width: 20rem;    
    }

    .locimg{
        margin: 0;
        height: 100vh;
        width: 41vw;
        background-size: cover;
        background-position-x: none;
        border-radius: 0;
        box-shadow: none;
    }
}