/* ————————————————————————————————
   Loading overlay e spinner
   ———————————————————————————————— */

.cpp-plugin-wrap {
  position: relative;
}

.cpp-plugin-wrap.cpp-loading #cpp-main-wrap {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cpp-plugin-wrap.cpp-loading .cpp-loading-overlay {
  display: flex;
}

.cpp-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  z-index: 999;
  justify-content: center;
  align-items: center;
  display: none;
}

.cpp-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: #1c75bc;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ————————————————————————————————
   Layout 50/50 su desktop, 100% su mobile
   ———————————————————————————————— */

/* Assicura flex a riga e zero wrapping imprevisti */
#cpp-main-wrap {
  display: flex !important;
  gap: 36px;
  flex-wrap: nowrap !important;
  box-sizing: border-box;
}

/* Ogni colonna: 50% forzato, override inline styles */
#cpp-main-wrap > div {
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

/* Rimuove il limite di 410px dalla gallery custom */
.cppg-gallery-area {
  max-width: none !important;
  width: 100% !important;
}

/* Mobile: colonna singola */
@media (max-width: 768px) {
  #cpp-main-wrap {
    flex-wrap: wrap !important;
  }
  #cpp-main-wrap > div {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}






