/* RESET BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*
.container {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.8s ease-out, filter 0.8s ease-out;
}

.container.show {
  opacity: 1;
  filter: blur(0);
}*/

.container {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.container.show {
  opacity: 1;
  transform: scale(1);
}

html,
body {
  height: auto;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden !important;
  
  scroll-behavior: smooth;
}

/* BODY */
body {
  font-family: 'Garamond', serif;
  background-image: url('legno.jpg');
  background-position: top center;
  background-repeat: repeat-y;
  background-size: 100%;
  background-attachment: scroll;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* FOOTER */
footer {
  height: 100px;
}

/* CONTAINER */
.container {
  padding: 30px;
  border-radius: 10px;
  max-width: 1200px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;

}

/* LOGO HEADER */
.logo {
  margin-right: auto;
  margin-left: 25px;
  top: 10px;
  left: 10px;
}

.logo img {
  width: 35%;
  margin-bottom: 0;
  max-width: 100%;
}

/* LOGO FOOTER */
.logo_footer {
  height: 100%;
  text-align: center;
}

.logo_footer img {
  margin-top: -50px;
  width: 200px;
  max-width: 100%;
}

/* DROPDOWN LINGUA */
.language-dropdown {
  position: fixed;
  top: 10px;
  right: 10px;
  display: inline-block;
  font-family: Arial, sans-serif;
  z-index: 1000;
  margin-top: 25px;
  max-width: 100%;
}

.dropdown-button {
  background-color: #d1b894;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.dropdown-button img {
  width: 24px;
  height: 20px;
  margin-right: 10px;
  border-radius: 50%;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #d1b894;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow: hidden;
  right: 0;
  margin-top: 5px;
}

.dropdown-content a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: flex;
  align-items: center;
}

.dropdown-content a img {
  width: 24px;
  height: 20px;
  margin-right: 10px;
  border-radius: 50%;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.language-dropdown.show .dropdown-content {
  display: block;
}

/* TESTI */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Garamond', serif;
  width: 100%;
  text-align: center;
  color: #333;
}

h1 {
  color: #7d0000;
  font-size: 48px;
  margin-bottom: 5px;
}

h2 {
  margin-top: 100px;
  font-size: 20px;
}

h4 {
  font-size: 20px;
}

/* SEZIONE H2 DECORATA */
.h2_container {
  background-color: rgba(247, 242, 233, 1);
  border-radius: 8px;
  font-size: 200%;
  width: 50%;
  margin: 10px auto;
}

/* IMMAGINI */
img {
  border-radius: 10px;
  width: 50%;
  height: auto;
  object-fit: cover;
  max-width: 100%;
}

.favicon {
  height: 100px;
  width: 100px;
  display: block;
  margin: 0 auto;
}

/* NUTRITION LABEL */
.nutrition-label {
  text-align: center;
  background-color: #f7f2e9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 10px;

  /* animazione dal basso */
}


.nutrition-label h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
}

.nutrition-label ul {
  list-style-type: none;
  padding: 0;
}

.nutrition-label ul li {
  text-align: left;
  font-size: 18px;
  margin-bottom: 10px;
}

.nutrition-label ul li strong {
  color: #7d0000;
}

/* BOX BORDATO */
.border-ul {
  border: 1px solid #7d0000;
  border-radius: 8px;
  padding-left: 5px;
  background-color: rgba(255, 255, 255, 0.5);
}

/* CONSUMO RESPONSABILE */
.consumo_reponsabile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-repeat: repeat-y;
    background-size: 100%;
    background-position: top center;
    flex-direction: column;
  }

  .container {
    padding: 15px;
    margin-top: -40px;
    max-width: 100%;
    width: 100%;
  }

  .nutrition-label {
    width: 100%;
    padding: 15px;
  }

  .h2_container {
    font-size: 150%;
    width: 100%;
  }

  h1 {
    font-size: 30px;
  }

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

  .favicon {
    max-width: 90px;
    height: auto;
  }

  .logo img {
    width: 100px;
  }

  .language-dropdown {
    right: 5px;
    top: 5px;
  }

  .dropdown-button {
    font-size: 16px;
    padding: 10px 15px;
  }

  .dropdown-button img {
    width: 24px;
    height: 20px;
    margin-right: 6px;
  }
}