body {
  background-color: #f5f5f5;
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
  margin-top: 0;
  background-color: #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 600;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
  padding: 10px 20px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: white !important;
  color: black !important;
}

/* Navbar toggle */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Footer */
footer {
  background-color: #000;
  color: white;
  padding: 70px 0;
  font-size: 1rem;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

footer a {
  text-decoration: none;
  color: white;
}

footer ul li {
  padding: 5px 0;
}

.adress span, .contact span, .social span {
  color: #FFF;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: block;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 3px;
}

.adress li p, .contact li a, .social li a {
  color: #FFF;
  letter-spacing: 2px;
  text-decoration: none;
  font-size: 15px;
}

.adress, .contact, .social {
  list-style: none;
  padding-left: 0;
}

ul.adress {
  line-height: 1.7;
}

ul.adress li {
  margin-bottom: 5px;
  text-align: left;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
}
.social li {
  list-style: none;
}

.fa {
  color: #9c9c9c;
  margin-right: 15px;
  font-size: 14px;
}

/* Carousel */
.carousel-inner {
  display: flex;
  justify-content: center;
}

.carousel-item {
  transition: transform 0.5s ease;
  flex: 0 0 auto;
  width: 33.33%;
  margin: 0 10px;
  border-radius: 10px;
  overflow: hidden;
}

.carousel-item.active {
  transform: scale(1.1);
}

/* Tabelle */
.table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 30px;
}

.table td {
  padding: 15px;
  vertical-align: middle;
  border: 1px solid #ddd;
}

.img-fluid,
table td img,
table td video {
  max-width: 100%;
  height: auto;
}

.small-image {
  max-width: 80%;
  height: auto;
  margin: 0 auto;
}

/* Modal */
.modal-content {
  max-width: 90%;
  margin: auto;
  border-radius: 15px;
}

.modal-body img,
.modal-body video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

/* Logo */
.logo {
  width: 50%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Video container */
.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 20px;
}

.my-custom-video {
  width: 100%;
  max-width: 100%;
  height: auto; /* Gestisce l'altezza in modo che si adatti alla larghezza */
}


/* Accordion con icona ruotabile */
.rotate-icon {
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed) .rotate-icon {
  transform: rotate(180deg);
  color: #0d6efd;
}

/* Accessibilità: focus */
a:focus,
button:focus {
  outline: 2px dashed #0d6efd;
  outline-offset: 3px;
}

/* Media Queries */

/* Grandi desktop */
@media (min-width: 1200px) {
  .carousel-item {
    width: 25%;
  }
}

/* Dispositivi medi (tablet) */
@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .carousel-item {
    width: 50%;
  }

  footer {
    font-size: 0.9rem;
  }
}

/* Dispositivi piccoli */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 0.9rem;
  }

  .navbar-nav .nav-link {
    font-size: 0.9rem;
  }

  .carousel-item {
    width: 100%;
  }

  footer {
    font-size: 0.8rem;
  }

  .adress span, .contact span, .social span {
    font-size: 16px;
    letter-spacing: 1px;
  }
}

/* Mobile molto piccoli */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 0.85rem;
  }

  .carousel-item {
    width: 100%;
  }
}

#topBtn {
  position: fixed;
  bottom: 30px;
  left: 50%; /* o: left: 25px; per sinistra */
  transform: translateX(-50%);
  background-color: #00d084;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 15px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 999;
}

#topBtn:hover {
  background-color: #0056b3;
}

