/* DW Prodotti — Patch galleria thumbnail sotto immagine principale */
.dw-product .dw-inline-gallery {
  width: 100% !important;
  margin-top: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px !important;
  background: #FFFFFF !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.08) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
}

.dw-product .dw-inline-gallery::-webkit-scrollbar {
  height: 6px !important;
}

.dw-product .dw-inline-gallery::-webkit-scrollbar-thumb {
  background: rgba(27, 42, 74, 0.25) !important;
  border-radius: 999px !important;
}

.dw-product .dw-inline-gallery__thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 2px solid #E5E1D5 !important;
  background: #F8F6F1 !important;
  border-radius: 8px !important;
  width: 74px !important;
  height: 74px !important;
  min-width: 74px !important;
  padding: 5px !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease !important;
}

.dw-product .dw-inline-gallery__thumb:hover,
.dw-product .dw-inline-gallery__thumb.is-active {
  border-color: #F5A623 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 18px rgba(245, 166, 35, 0.22) !important;
}

.dw-product .dw-inline-gallery__thumb img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  pointer-events: none !important;
}

/* Nasconde la galleria grande più in basso, perché ora è sotto l'immagine principale */
.dw-product .dw-section.dw-section-alt:has(.dw-gallery) {
  display: none !important;
}

.dw-product .dw-gallery-inline-hidden-section {
  display: none !important;
}

@media (max-width: 768px) {
  .dw-product .dw-inline-gallery {
    gap: 8px !important;
    padding: 10px !important;
    margin-top: 12px !important;
  }

  .dw-product .dw-inline-gallery__thumb {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    padding: 4px !important;
  }
}
