body {
  color: white;
  background-image: url(../images/backgroundimage.png);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  font-family: 'Nunito Sans', sans-serif;
}

main {
  padding-top: 80px;
}

#carouselExampleDesktop {
  display: none;
}

/* stile navbar */

.navbar {
  background-color: white;
}

.offcanvas {
  background-color: green;
  width: 70vw !important;
}

#foglia {
  width: 40px;
}

.navbar-brand {
  width: 150px;
}

.navbar-desktop {
  background-color: white;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-desktop .nav-link {
  color: black;
  transition: color 0.3s;
}

.navbar-desktop .nav-link:hover {
  color: green;
}

/* stile welcome section*/

#welcome-title {
  text-align: center;
  margin-top: 13px;
  margin-bottom: 13px;
  color: white;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#welcome-section {
  animation: slideDownFade 1s ease-out;
}

#video {
  width: calc(100% - 2rem);
  height: 500px;
  display: block;
  object-fit: cover;
  margin-left: 1rem;
  margin-right: 1rem;
}

/* stile menu section*/

#menu-section {
  margin-top: 3rem;
  background-color: transparent;
  color: white;
  animation: slideDownFade 1s ease-out;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#menu-title {
  text-align: center;
  margin-top: 13px;
  margin-bottom: 13px;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.myButton {
  background: white;
  border-radius: 3px;
  border: 1px solid #000000;
  display: inline-block;
  cursor: pointer;
  font-family: Arial;
  font-size: 13px;
  padding: 9px 20px;
  text-decoration: none;
  color: green;
  max-width: 160px;
}

.myButton:hover {
  transform: scale(1.05);
}

#icon-container {
  margin-top: 1rem;
  text-align: center;
  font-size: 2rem;
  color: white;
}

#intolleranze {
  text-align: center;
  font-size: 0.9rem;
}

#delivery {
  text-align: center;
  font-size: 1.3rem;
}

#delivery > span {
  display: block;
}

#orari {
  text-align: center;
}

#carouselExample {
  margin-left: 1rem;
  margin-right: 1rem;
  height: 30vh;
  overflow: hidden;
  display: block;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  width: 100% !important;
  flex-shrink: 0;
}

.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* stile chi siamo section*/

#chi-siamo {
  animation: slideDownFade 1s ease-out;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#chi-siamo > h2 {
  text-align: center;
  margin-top: 2rem;
  color: white;
}

#chi-siamo > div {
  display: flex;
  justify-content: center;
}

#ales {
  width: 300px;
  height: 380px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#chi-siamo-text {
  margin-left: 1rem;
  margin-right: 1rem;
  color: white;
  text-shadow: -0.5px -0.5px 0 black, 0.5px -0.5px 0 black, -0.5px 0.5px 0 black,
    0.5px 0.5px 0 black;
  text-align: center;
}

#button-contact {
  margin-top: 0.2rem;
}

#button-contact > a > button:hover {
  transform: scale(1.05);
}

#button-contact > a > button {
  background: white;
  border-radius: 3px;
  border: 1px solid #000000;
  display: inline-block;
  cursor: pointer;
  font-family: Arial;
  font-size: 13px;
  padding: 9px 20px;
  text-decoration: none;
  color: green;
  max-width: 160px;
}

/* stile dove siamo section*/

#dove-siamo {
  text-align: center;
  margin-top: 1rem;
  animation: slideDownFade 1s ease-out;
  color: white;
}

.contenitore-mappa {
  display: flex;
  flex-direction: column;
  align-items: center; /* centra sia il testo che la mappa */
}

#map-container {
  width: 325px;
  height: 325px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 1rem;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* stile contatti section*/

#contatti {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  animation: slideDownFade 1s ease-out;
  color: white;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#contatti div {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#contatti a {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  text-decoration: none;
}

#contatti a.whatsapp-link {
  color: #25d366;
}

#contatti a.facebook {
  color: #1877f2;
}

#contatti a.instagram {
  color: #e4405f;
}

#contatti a:hover {
  transform: scale(1.1);
  text-decoration: none;
}

/* stile footer */

#footer {
  background-color: #222;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font: 1rem;
}

footer a {
  text-decoration: none;
}

/* stile banner cookie */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #212529;
  color: white;
  padding: 1rem;
  text-align: center;
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-banner button {
  padding: 0.5rem 1rem;
  background-color: #198754;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* media query */

@media screen and (min-width: 512px) {
  .myButton {
    width: auto;
    padding: 9px 20px;
    font-size: 13px;
    height: 50px;
  }

  #icon-container {
    flex-basis: 100%;
    display: block;
    margin-top: 1.5rem;
  }
}

@media screen and (min-width: 900px) {
  .menu-orari-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
  }

  .button-container,
  #orari {
    flex: 1;
  }

  #orari {
    padding: 1rem;
    border-radius: 10px;
  }

  .welcome-flex {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  #video {
    width: 600px;
    height: 500px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
  }

  #carouselExampleDesktop {
    display: block;
  }

  #carouselExample {
    display: none;
  }

  .welcome-flex #carouselExampleDesktop {
    width: 600px !important;
    height: 500px !important;
    flex-shrink: 0 !important;
  }

  .welcome-flex #carouselExampleDesktop .carousel-inner {
    height: 500px !important;
    width: 100% !important;
  }

  .welcome-flex #carouselExampleDesktop .carousel-item {
    height: 500px !important;
    width: 100% !important;
  }

  .welcome-flex #carouselExampleDesktop img {
    width: 100% !important;
    height: 500px !important;
    object-fit: cover !important;
  }

  .map-contatti-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
  }

  .contenitore-mappa,
  .contatti-box {
    flex: 1;
  }

  .contenitore-mappa {
    padding: 1rem;
    border-radius: 10px;
  }

  .contatti-box {
    padding: 1rem;
  }

  #contatti i {
    font-size: 2rem;
    margin-right: 1rem;
  }
}
