/* Experience Marocco Section */
.experience-marocco { /* container already has Elementor classes; only spacing here */
  padding: 40px 0;
  background: transparent !important;
  background-image: none !important;
}
/* Make the section constrained to 1200px and centered */
.experience-marocco, .experience-marocco__cards, .experience-marocco__panels {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.experience-marocco__kicker {
  color: var(--e-global-color-text, #333);
  opacity: .9;
}
.experience-marocco__title { margin: 8px 0; text-align: center; }

/* Stile personalizzato per il titolo della sezione Experience Marocco */
.experience-marocco__title {
  font-family: var(--font-primario), Sans-serif;
  font-size: var(--dimensione-font-primario) !important;
  font-weight: var(--peso-font-primario);
  text-transform: var(--trasformazione-testo-primario);
  color: var(--colore-primario-blu);
}
.experience-marocco__intro { color: #555; }

.experience-marocco__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 22px auto 22px;
}
.em-card {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid #e6e6e6;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 60px 20px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 180px;
  pointer-events: auto; /* assicurati che restino cliccabili */
}

/* Overlay scuro per leggibilità del testo */
.em-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  border-radius: 8px;
  z-index: 1;
  transition: opacity .2s ease;
}

.em-card:hover::before {
  opacity: 0.8;
}

.em-card:hover {
  border-color: #b88a44;
  transform: translateY(-2px);
}

.em-card.card-home-active {
  border-color: #b88a44;
  box-shadow: 0 4px 12px rgba(184,138,68,.2);
}

.em-card.card-home-active::before {
  background: linear-gradient(to top, rgba(184,138,68,0.5) 0%, rgba(184,138,68,0.2) 100%);
}

/* Neutralizza gli stili dei pulsanti di Elementor per le card */
.experience-marocco .em-card,
.experience-marocco .em-card:hover,
.experience-marocco .em-card:focus,
.experience-marocco .em-card:active {
  color: #fff !important;
  border: 2px solid #e6e6e6 !important;
  text-decoration: none !important;
}

.em-card__label { 
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0;
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.experience-marocco__panels {
  margin: 10px auto 0;
  position: relative;
  /* Rimossa altezza fissa per permettere altezza dinamica */
}
.em-panel { 
  opacity: 0;
  visibility: hidden;
  text-align: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
.em-panel.card-home-active { 
  opacity: 1;
  visibility: visible;
}

.em-panel p { margin-bottom: 14px; }
.em-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  color: #b88a44;
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease;
}
.em-btn:hover {
  background: transparent;
  color: #b88a44;
}

.em-panel .em-btn {
  margin-left: auto;
  margin-right: auto;
}


/* Solo per la pagina Elementor ID 18709, widget subtitle (elementor-element-1ac25c4) */
.elementor-18709 .elementor-element.elementor-element-1ac25c4 {
  width: unset;
  max-width: unset;
  text-align: center;
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: var(--e-global-typography-accent-font-size);
  font-weight: var(--e-global-typography-accent-font-weight);
  text-transform: var(--e-global-typography-accent-text-transform);
  text-decoration: var(--e-global-typography-accent-text-decoration);
  color: var(--e-global-color-primary);
}

/* Solo per la pagina Elementor ID 18709, widget descrizione (elementor-element-0b34e12) */
.elementor-18709 .elementor-element.elementor-element-0b34e12 {
  width: unset;
  max-width: unset;
}

/* Evita che overlay del container Elementor blocchino i click (Experience Marocco) */
.elementor-18709 .elementor-element.elementor-element-5baefd7::before,
.elementor-18709 .elementor-element.elementor-element-5baefd7 > .elementor-background-video-container::before,
.elementor-18709 .elementor-element.elementor-element-5baefd7 > .e-con-inner > .elementor-background-video-container::before,
.elementor-18709 .elementor-element.elementor-element-5baefd7 > .elementor-background-slideshow::before,
.elementor-18709 .elementor-element.elementor-element-5baefd7 > .e-con-inner > .elementor-background-slideshow::before,
.elementor-18709 .elementor-element.elementor-element-5baefd7 > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
  pointer-events: none !important;
}

.elementor-18709 .elementor-element.elementor-element-1752272 .elementor-button {
  box-shadow: none !important;
}
