html,
body {
  height: auto;
  width: 100%;
  font-family: Arial, sans-serif;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-image: url(braseria2.jpeg);

}

.background{
  background-color: #f3e8c8;
  border-radius: 20px;
}



.div1 {
  margin: 5% auto;
  margin-top: 0px;
  width: 90%;
  text-align: center;
  display: flex;
  align-items: center;
  background-color: #f3e8c8;
  overflow: hidden;
  border-radius: 20px;
}



to {
  opacity: 1;
}


.div2 {
  margin: 5% auto;
  max-width: 100%;
  text-align: center;
}

#img1 {
  width: 35vw;
  height: auto;
  max-height: 50vh;
  margin: 0 auto;
  display: block;
  max-width: 50vw;
  transition: transform 0.5s ease-in-out;
  border-radius: 20px;

}

#img1:hover {
  transform: scale(1.1);
  /* Efecte de zoom en passar el ratolí */
  filter: grayscale(20%) blur(1px) brightness(120%) saturate(100%);
}

#C1 {
  width: 15em;
  max-width: 200px;
  object-fit: cover;
}



#C2,
#C3,
#C4 {
  width: 60vh;
  height: 60vh;
  object-fit: cover;
  border-radius: 20px;
}

.div3 {
  margin: 5% auto;
  width: 60%;
  text-align: center;
}

.div4 {
  display: flex;
  flex-wrap: wrap;
  margin: 5% auto;
  margin-bottom: 1%;
  width: 90%;
  gap: 20px;
}

.column {
  flex: 1 1 30%;
  text-align: center;
}

.img-div {
  width: 20%;
  max-width: 100%;
}

header {
  padding: 15px;
  text-align: right;
  margin: auto;
}

nav {
  gap: 5vw;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

nav a {
  color: black;
  text-decoration: none;
  padding: 1vw;
  font-weight: bold;
  font-size: 2em;
  box-sizing: border-box;
}

p {
  font-size: 1.4em;
  border-radius: 20px;
}

.div5 {
  /* position: fixed;
  width: 100%; */
  background-color: #f3e8c8;
  bottom: 0px;
  left: 0px;
  text-align: center;

  position: static;
  width: 100%;
  box-sizing: border-box;
  /* Ajust per a dispositius més petits */
  margin-top: 1%;
  margin-bottom: 0;
  /* Ajust per a dispositius més petits */


}

.div5 > .container{
  display: flex;
  justify-content: center;
  align-items: center;
}

.div5 > .container > div > img{
  max-width: 120px;
  height: auto;
  padding: 4%;
}

ul {
  list-style: none;
  text-align: center;
}

li {
  color: #000000;
  list-style-type: none;
  display: inline-block;
  margin: 0 10px;
}

a {
  text-decoration-line: none;
  color: black;
}



@media screen and (max-width: 750px) {

  nav a {
    padding: 2vw;
    font-size: 1em;
  }

  header {
    padding: 15px;
    text-align: right;
    margin-left: 0;
  }

  .div1 {
    flex-direction: column;
  }

  .div1 header {
    text-align: center;
  }

  .div2 img {
    width: 100%;
    height: auto;
  }

  #img1 {
    max-height: none;
  }

  .div3 {
    width: 100%;
  }

  .div4 {
    flex-direction: column;
    align-items: center;
  }

  .column {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .img-div {
    width: 80%;
  }

  #C1 {
    width: 15vh;
    object-fit: cover;
  }

}

@media only screen and (max-width: 820px) {
  form {
    max-width: 100%;
  }

  input,
  textarea {
    width: 100%;
    margin: 0;
  }
}

p,
h1 {
  background-color: #f3e8c8;
  color: black;
  padding: 10px;
}

@media only screen and (max-width: 600px) {

  #C2,
  #C3,
  #C4 {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  p,
  h1 {
    font-size: 1em;
  }
}


@media only screen and (max-width: 1024px) {
  nav {
    display: flex;

  }

  nav a {
    display: block;
    font-size: 1.2em;
  }

  nav {
    display: flex !important;
  }

  @media only screen and (min-width: 1025px) {
    nav {
      display: block;
    }
  }

  .column {
    flex: 1 1 33%;
    padding: 10px;
    box-sizing: border-box;
  }

  .div5 {
    background-color: #f3e8c8;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
  }

  .div5 ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .div5 li {
    display: inline-block;
    margin-right: 10px;
  }

  @media only screen and (max-width: 768px) {
    .div5 {
      position: static;
      width: 100%;
      box-sizing: border-box;
      margin-top: 20px;
    }
  }

    @media only screen and (max-width: 1024px) {
      nav {
        display: block;
        
      }

      nav a {
        display: block;
        font-size: 1.2em;
      }

      .div1 {
        flex-direction: column;
      }

      .div2 img {
        width: 100%;
        height: auto;
      }

      #img1 {
        max-height: none;
      }

      .div3 {
        width: 100%;
      }

      .div4 {
        flex-direction: column;
        align-items: center;
      }

      .column {
        flex: 1 1 100%;
        margin-bottom: 20px;
      }

      .img-div {
        width: 80%;
      }

      #C1 {
        width: 800px;
        object-fit: cover;
      }

      .div5 {
        /* position: static;
        width: 100%; */
        box-sizing: border-box;
        margin-top: 20px;


        position: static;
        width: 100%;
        box-sizing: border-box;
        margin-top: 20px;
        /* Ajust per a dispositius més petits */
        margin-bottom: 0;
        /* Ajust per a dispositius més petits */

      }
    }

    @media only screen and (max-width: 820px) {
      form {
        max-width: 100%;
      }

      input,
      textarea {
        width: 100%;
        margin: 0;
      }
    }

    @media only screen and (max-width: 600px) {

      .jumbotron{
        flex-direction: column;
      }

      .jumbotron > .container-logo{
        margin: auto;
        display: flex;
        justify-content: center;
      }

      .container-logo > img{
        min-width: 90px;
      }

      .jumbotron > header > nav{
        flex-direction: column;
      }

      .jumbotron > header > nav > a{
        display: flex;
        justify-content: center;
      }

      #C2,
      #C3,
      #C4 {
        width: 100%;
        height: auto;
        max-width: 100%;
      }

      p,
      h1 {
        font-size: 1em;
      }
    }

    .column-container {
      flex: 1 1 30%;
      margin-bottom: 20px;
      text-align: center;
    }

    .div5 {
      background-color: #f3e8c8;
      position: static;
      bottom: 0;
      width: 100%;
      text-align: center;
      padding: 10px;
      box-sizing: border-box;
      margin-bottom: 20px;
      flex-direction: column;
      /* Afegit per separar del contingut inferior */
    }

    .div5 > .container > div > a > img {
      max-width: 50%;
      min-width: 80px;
    }

    .column-container {
      flex: 1 1 30%;
      margin-bottom: 20px;
      /* Espai entre columnes */
      text-align: center;
    }

    @media only screen and (max-width: 768px) {
      .div5 {
        position: static;
        width: 100%;
        box-sizing: border-box;
        margin-top: 20px;
        /* Ajust per a dispositius més petits */
        margin-bottom: 0;
        /* Ajust per a dispositius més petits */
      }

      header{
        margin: auto;
      }

      nav a {
        margin-right: 0px;
      }

      .column-container {
        flex: 1 1 100%;
        margin-bottom: 20px;
      }
    }
  }