/* ========================
   GENERALI
======================== */
body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* ========================
   NAVBAR
======================== */
.navbar-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
}
.navbar {
  width: 100%;
  max-width: 800px;
  min-height: 64px;
  background: #0F222D;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-radius: 10px 10px 0 0;
  position: relative;
  gap: 0;
}
.navbar-section {
  display: flex;
  align-items: center;
}
.navbar-center {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 18px;
}
.navbar-btn {
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.navbar-btn:hover {
  background: #C9B693;
  color: #0F222D;
}
.navbar-lang {
  display: flex;
  gap: 8px;
}
.navbar-lang a img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border 0.2s;
}
.navbar-lang a:hover img {
  border-color: #C9B693;
}

/* ========================
   CATEGORIE
======================== */
.categorie-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #EBE7D9;
  padding: 0 24px;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid #e0d7c2;
}
.categorie-pill {
  background: transparent;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #0F222D;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.categorie-pill:hover,
.categorie-pill.active {
  background: #C9B693;
  color: #0F222D;
}

/* ========================
   CONTAINER
======================== */
  .container {
    width: 100%;
    max-width: 800px; /* Modificato da 1000px a 800px per allinearsi con la navbar */
    margin: 0 auto 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

/* ========================
   SERVIZI (Immagini + Link)
======================== */
.servizi-grid-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 0 24px;
}
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Modificato per avere larghezze uniformi */
  gap: 24px;
}
.servizio-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px;
  width: 100%; /* Assicura che tutte le card abbiano la stessa larghezza */
}
.servizio-img {
  width: 100%;
  height: 160px; /* Altezza fissa per uniformità */
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e0d7c2;
}
.servizio-link {
  font-weight: bold;
  color: #0F222D;
  text-decoration: underline;
  margin-top: 12px;
}
.servizio-link:hover {
  color: #C9B693;
}

/* ========================
   TRASPORTI - ACCORDION
======================== */
.trasporti-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px; /* Modificato da 1100px a 800px per allinearsi con la navbar */
  margin: 0 auto;
  padding: 20px;
}
.trasporti-accordion {
  background: #fff;
  border: 1px solid #ebe7d9;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(201, 182, 147, 0.09);
  display: flex;
  flex-direction: column;
  height: 100%; /* Assicura che tutti gli accordion abbiano la stessa altezza */
}
.trasporti-accordion-header {
  background: #EBE7D9;
  color: #B09E80;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #e0d7c2;
  transition: background 0.18s;
  width: 100%; /* Assicura che l'header occupi tutta la larghezza */
  height: 60px; /* Altezza fissa per tutti gli header */
  box-sizing: border-box; /* Include padding e bordo nella dimensione */
}
.trasporti-accordion-header.active {
  background: #C9B693;
  color: #0F222D;
}
.trasporti-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}
.trasporti-accordion-header.active + .trasporti-accordion-panel {
  padding: 16px 20px;
}
.trasporti-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trasporti-list li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #0F222D;
}
.trasporti-link {
  color: #C9B693;
  text-decoration: underline;
  font-weight: 600;
}
.trasporti-link:hover {
  color: #B09E80;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1100px) {
  .trasporti-sections {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
    max-width: 100%;
  }
  .navbar-center {
    flex-wrap: wrap;
    gap: 12px;
  }
  #logo {
    height: 64px;
    max-width: 150px;
  }
  .servizi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .trasporti-sections {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .servizi-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .navbar-btn {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
  .categorie-bar {
    flex-wrap: wrap;
    padding: 10px;
  }
  .container {
    padding: 12px;
  }
  .servizio-img {
    max-width: 100%;
    height: auto;
  }
}