/* components/WebSite/shared/extra_modules.css */
/* Stili unificati per moduli avanzati su tutti i temi del CRM */

/* VIDEO EMBED */
.video-section {
  text-align: center;
}

.video-container {
  max-width: 960px;
  margin: 28px auto 0 auto;
  border-radius: var(--theme-radius, 12px);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--theme-border, rgba(255,255,255,0.08));
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* CAROSELLO FOTOGRAFICO E GALLERIA */
.gallery-section {
  position: relative;
}

.gallery-carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 16px 4px;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 260px;
  position: relative;
  border-radius: var(--theme-radius, 12px);
  overflow: hidden;
  border: 1px solid var(--theme-border, rgba(255,255,255,0.08));
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--theme-surface, rgba(255,255,255,0.02));
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-slide:hover img {
  transform: scale(1.06);
}

.gallery-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-slide:hover .gallery-slide-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 13px;
  font-weight: 600;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--theme-surface, rgba(20,20,30,0.85));
  border: 1px solid var(--theme-border, rgba(255,255,255,0.15));
  color: var(--theme-text, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  background: var(--theme-primary, #6822ff);
  color: #fff;
}

.gallery-prev-btn { left: 8px; }
.gallery-next-btn { right: 8px; }

/* GRIGLIA SELEZIONABILE A 2, 3 O 4 COLONNE */
.grid-content-section {
  position: relative;
}

.content-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.content-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.content-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.content-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.content-grid-card {
  background: var(--theme-surface, rgba(255,255,255,0.02));
  border: 1px solid var(--theme-border, rgba(255,255,255,0.08));
  border-radius: var(--theme-radius, 12px);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.content-grid-card:hover {
  border-color: var(--theme-primary, #6822ff);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.content-grid-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(104, 34, 255, 0.12);
  color: var(--theme-primary, #6822ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.content-grid-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-text, #fff);
  margin-bottom: 8px;
}

.content-grid-card p {
  font-size: 14px;
  color: var(--theme-text-muted, #94a3b8);
  line-height: 1.6;
}

/* PRICING TABLE */
.pricing-section {
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
  align-items: stretch;
}

.pricing-card {
  background: var(--theme-surface, rgba(255,255,255,0.02));
  border: 1px solid var(--theme-border, rgba(255,255,255,0.08));
  border-radius: var(--theme-radius, 12px);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--theme-primary, #6822ff);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(104, 34, 255, 0.08) 0%, var(--theme-surface, rgba(255,255,255,0.02)) 100%);
}

.pricing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--theme-primary, #6822ff);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-text, #fff);
  margin-bottom: 6px;
}

.pricing-header p {
  font-size: 13px;
  color: var(--theme-text-muted, #94a3b8);
}

.pricing-price-wrap {
  margin: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-text-muted, #94a3b8);
}

.pricing-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--theme-text, #fff);
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 13px;
  color: var(--theme-text-muted, #94a3b8);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 13px;
  color: var(--theme-text, #fff);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li .material-symbols-outlined {
  font-size: 18px;
  color: var(--theme-secondary, #10b981);
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* MAPPA LEAFLET INTEGRATA */
.map-section {
  position: relative;
}

.map-container-box {
  width: 100%;
  height: 420px;
  border-radius: var(--theme-radius, 12px);
  overflow: hidden;
  border: 1px solid var(--theme-border, rgba(255,255,255,0.08));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  margin-top: 28px;
  background: var(--theme-surface, rgba(255,255,255,0.02));
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .content-grid.columns-3,
  .content-grid.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-slide {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 640px) {
  .content-grid.columns-2,
  .content-grid.columns-3,
  .content-grid.columns-4 {
    grid-template-columns: 1fr;
  }
  .gallery-slide {
    flex: 0 0 85%;
  }
  .pricing-card.featured {
    transform: none;
  }
}
