*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    background-color:#EDFBE2;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

h1{font-size: 64px;}
h2{ font-size: 48px;}
h3{ font-size: 1.5em;}
p{ font-size: 16px;}
ul{ list-style: none;}
li{ font-size: 1.25em;}

img{
    height: auto;
}

button{
    font-size: 1.25em;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 30px;
    border: #379237;
    background-color: #379237;
    margin: 12px;
}

button:hover{
    background-color: #EDFBE2;
}

.container{
    max-width: 1200px;
    margin: auto;
}

header{
    background-color: #379237;
    align-items: center;
}

header .container{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    padding-top: 20px;
}

header nav{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
}

.nav-list{
    list-style-type: none;
    display: flex;
}

header a{
    padding: 2rem;
    text-decoration: none;
    color: #0F172A;
    font-size: 18px;
}

header a:hover{
    color: #EDFBE2;
}
header img{
    width: 205px;
    height: 68.2656px;
}

#hero{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    height: 490.562px;
    margin: auto;
    background-image:linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("img/Captura-de-pantalla-2026-08-05-122947.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#hero h1{
    color: #379237;
}

#hero p{
    color: #FFFFFF;
}

#sobre-nosaltres .container{
    text-align: left;
    padding-top: 100px;
}

#sobre-nosaltres .img-sobre-nosaltres {
    background-image:url(img/lolivera_4.webp);
    background-size: cover;
    background-position: center center;
    height: 430px;
}

#plats-destacats .container{
    text-align: left;
    padding: 50px 0px;
    
}

#plats-destacats .plats{
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#plats-destacats h2{
    text-align: center;
}

#plats-destacats .img-plats-destacats img{
    display: block;
    height: 222px;
    width: 330.672px; 
}

#plats-destacats .carta{
    padding: 50px;
    margin: 12px;
    width: 330.672px;
}

#plats-destacats p{
    margin: 0;
}


footer{
    background-color: #FFFFFF;
    padding: 70px 0;
}

footer .container{
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .container2{
    max-width: 1200px;
    margin: auto;
    height: auto;
    display: flex;
    justify-content: space-between;
}

footer a{
    color:#54B435;
    text-decoration: none;
}
footer a:hover{
    color:#379237;
    text-decoration: none;
}

.container-slider {
    width: 90%;
    max-width: 1120px;
    margin: auto;
    overflow: hidden;
    position: relative;
    padding-top: 40px;
}
.slider {
    display: flex;
    width: 300%;
    height: 430px;
    margin-left: -100%;
}

.slider__section{
    width: 100%;
}

.slider__img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-left: -100;
}

    .slider__btn{
        position: absolute;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,1);
        top: 50%;
        transform: translateY(-50%);
        font-size: 30px;
        font-weight: bold;
        text-align: center;
        border-radius: 50%;
        cursor: pointer;
    }

    .slider__btn--left{
        left: 5px;
    }
    
    .slider__btn--right {
        right: 5px;
    }

#carta img{
    height: 430px;
}

#carta h2{
    text-align: center;
}


.abrir-menu,
.cerrar-menu {
    display: none;
}

.linea{
    height: 1px;
    width: 100%;
    background-color: #0F172A;
}

@media screen and (max-width: 719px){
    .abrir-menu,
    .cerrar-menu{
        display: block;

    } 
    .abrir-menu{
        font-size: 1.25em;
        padding: 5px 20px;
        border-radius: 5px;
        border: #54B435;
        background-color: #54B435;
        margin: 12px;
    }
    .cerrar-menu{
        font-size: 1.25em;
        padding: 5px 20px;
        border-radius: 5px;
        border: #FFFFFF;
        background-color: #FFFFFF;
        margin: 12px;
    }
    .abrir-menu:hover{
        background-color: #54B435;
        border: 1px solid #FFFFFF;
    }.cerrar-menu:hover{
        background-color: #FFFFFF;
        border: 1px solid #0F172A;
    }
    
    .nav{
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 1rem;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: #FFFFFF;
        padding: 2rem;
    }
    .nav-list {
        flex-direction: column;
        align-items: end;

    }
    .nav.visible{
        opacity: 1;
        visibility: visible;
    }

    #plats-destacats .img-plats-destacats img{
        display: block;
        height: 222px;
        width: 330.672px; 
    }
    #plats-destacats .plats{
        flex-direction: column;
        align-items: center;
    }

    footer .container2{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


@media (min-width: 720px){
    header .container{
        flex-direction: row;
        justify-content: space-between;
    }

    header nav{
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 20px;
    }

    #hero h1{
        font-size: 64px;
    }

    #hero .boto{
        display: flex;
    }


    #sobre-nosaltres .container{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #sobre-nosaltres .text{
        width: 50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #sobre-nosaltres h2{
        margin-top: 0px;
    }

    #sobre-nosaltres .img-sobre-nosaltres {
        background-image:url(img/lolivera_4.webp);
        background-size: cover;
        background-position: center center;
        height: 500px;
        width: 400px;
    }

    #plats-destacats .plats{
        display: flex;
        justify-content: center;
    }

    #plats-destacats p{
        display: block;
        margin: 30px;
    }

    #plats-destacats h3{
        margin-left: 0;
    }

    #plats-destacats .carta{
        padding: 15px;
    }

    #carta img{
        height: 430px;
        width: 1200px;
    }
}