
/* BREADCRUMB BASE */
.ai-breadcrumb {
  padding: 15px 0;
  width: 100%;
}

.ai-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ai-item {
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
}

.ai-item a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.ai-item a:hover {
  color: #ff4c00;
}

.ai-separator {
  margin: 0 8px;
  color: #aaa;
}

.ai-current {
  color: #111;
  font-weight: 700;
}

/* IMMAGINE CATEGORIA */
.ai-category-image-container {
  margin: 20px 0;
  width: 100%;
}

.ai-category-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ai-category-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.ai-category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px;
  color: white;
}

.ai-category-title-overlay {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.ai-category-description {
  font-size: 16px;
  color: white;
  line-height: 1.4;
  max-width: 60%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.ai-category-fallback-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin: 25px 0;
  text-transform: uppercase;
}

/* NAVIGAZIONE CATEGORIE - SENZA SCROLL */
.ai-navigation-container {
  margin: 0 0 30px 0;
  width: 100%;
}

/* Nascondi completamente le frecce */
.ai-scroll-arrow {
  display: none !important;
}

/* Rimuovi il wrapper di scroll */
.ai-scroll-wrapper {
  display: block;
  width: 100%;
}

.ai-scroll-container {
  width: 100%;
  overflow: visible;
}

/* Categorie sorelle */
.ai-category-buttons {
  display: flex;
  flex-wrap: wrap !important; /* FORZA IL WRAP */
  gap: 10px;
  padding: 10px 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* Previene overflow orizzontale */
}

.ai-category-btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #202020;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.ai-category-btn:hover {
  background-color: #ff4c00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,76,0,0.3);
}

.ai-category-btn.ai-active {
  background-color: #ff4c00;
  color: white;
  font-weight: 600;
}

/* Sottocategorie */
.ai-subcategories {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* Previene overflow orizzontale */
}

.ai-subcategory-strip {
  display: block;
  flex-wrap: wrap !important; /* FORZA IL WRAP */
  gap: 10px;
  padding: 10px 0;
  width: 100%;
  max-width: 100%;
}

.ai-subcategory-btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #202020;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.ai-subcategory-btn:hover {
  background-color: #ff4c00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,76,0,0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ai-category-title-overlay {
    font-size: 28px;
  }
  
  .ai-category-description {
    max-width: 90%;
    font-size: 14px;
  }
  
  .ai-category-btn,
  .ai-subcategory-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .ai-category-btn,
  .ai-subcategory-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}
