/* ============================================
   EduLab VR – Common Styles
   Palette: Primary #5B6ABF · Accent #4CAF82 · Warm #E8A54B
   ============================================ */

/* ---- General ---- */
.edulab-page { font-family: var(--el-font, "Inter", sans-serif); color: var(--el-text, #4A4E69); }
.el-section { padding: 90px 0; }
.el-section-dark { background: var(--el-dark, #2B3044); color: #fff; }
.el-section-light { background: var(--el-light, #F5F6FA); }
.el-section-white { background: #fff; }
.el-heading { font-family: var(--el-heading, "Playfair Display", Georgia, serif); }

/* Forza testi bianchi nelle sezioni scure */
.el-hero h1, .el-hero h2, .el-hero h3, .el-hero h4, .el-hero h5, .el-hero h6,
.el-section-dark h1, .el-section-dark h2, .el-section-dark h3, .el-section-dark h4, .el-section-dark h5, .el-section-dark h6,
.el-contact-section h1, .el-contact-section h2, .el-contact-section h3, .el-contact-section h4, .el-contact-section h5, .el-contact-section h6 {
  color: #fff !important;
}
.el-hero, .el-hero p, .el-hero span, .el-hero a,
.el-section-dark, .el-section-dark p, .el-section-dark span,
.el-contact-section, .el-contact-section p, .el-contact-section span {
  color: #fff;
}
.edulab-page .footer h1, .edulab-page .footer h2, .edulab-page .footer h3,
.edulab-page .footer h4, .edulab-page .footer h5, .edulab-page .footer h6 {
  color: #fff !important;
}

.el-badge { display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: .78rem; font-weight: 600; letter-spacing: .5px; }
.el-badge-outline { border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85); }
.el-tag { display: inline-block; background: rgba(91,106,191,.08); color: var(--el-primary, #5B6ABF); padding: 3px 12px; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.el-accent { color: var(--el-accent, #4CAF82); }
.el-kicker { font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--el-accent, #4CAF82); margin-bottom: .5rem; }

/* ---- Hero ---- */
.el-hero {
  background: linear-gradient(160deg, #1e2133 0%, #2B3044 35%, #363b54 70%, #1e2133 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.el-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(91,106,191,.20) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(76,175,130,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(232,165,75,.07) 0%, transparent 40%);
  pointer-events: none;
}
.el-hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; }
.el-hero-desc { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 600px; }
.el-hero-cta { padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: all .3s ease; display: inline-flex; align-items: center; gap: 8px; }
.el-hero-cta-primary { background: var(--el-primary, #5B6ABF); color: #fff; border: none; }
.el-hero-cta-primary:hover { background: #4e5caa; transform: translateY(-2px); color: #fff; box-shadow: 0 8px 24px rgba(91,106,191,.30); }
.el-hero-cta-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.3); }
.el-hero-cta-secondary:hover { border-color: var(--el-accent); color: var(--el-accent); transform: translateY(-2px); }

/* ---- Cards ---- */
.el-card {
  background: #fff;
  border-radius: var(--el-radius, 14px);
  padding: 32px 28px;
  height: 100%;
  transition: all .3s ease;
  border: 1px solid rgba(0,0,0,.06);
}
.el-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(91,106,191,.10); }
.el-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(91,106,191,.10), rgba(76,175,130,.08));
  color: var(--el-primary, #5B6ABF);
  margin-bottom: 18px;
}

/* ---- Experience cards ---- */
.el-exp-card {
  background: #fff;
  border-radius: var(--el-radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  transition: all .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.el-exp-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(91,106,191,.12); }
.el-exp-card-img {
  height: 200px;
  background: linear-gradient(135deg, #363b54, #2B3044);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.35);
  position: relative; overflow: hidden;
}
.el-exp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.el-exp-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.el-exp-meta { font-size: .78rem; color: #888; }

/* ---- Experience status badge ---- */
.el-exp-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 14px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-radius: 8px;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.el-exp-badge-development {
  background: rgba(232,165,75,.9);
  color: #fff;
}
.el-exp-badge-new {
  background: rgba(76,175,130,.9);
  color: #fff;
}
.el-exp-badge-available {
  display: none;
}

/* ---- Idea banner ---- */
.el-idea-banner {
  background: linear-gradient(120deg, #363b54 0%, #2B3044 60%, #1e2235 100%);
  border: 1px solid rgba(91,106,191,.28);
  border-radius: var(--el-radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: 0 8px 40px rgba(91,106,191,.12);
  position: relative;
  overflow: hidden;
}
.el-idea-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(91,106,191,.18) 0%, transparent 65%);
  pointer-events: none;
}
.el-idea-banner-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--el-accent), #7c6ff7);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  box-shadow: 0 6px 24px rgba(91,106,191,.35);
}
.el-idea-banner-body {
  flex: 1;
  min-width: 240px;
  color: #fff;
}
.el-idea-banner-body h4 {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.35;
}
.el-idea-banner-cta {
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .el-idea-banner { padding: 28px 24px; gap: 20px; }
  .el-idea-banner-cta { width: 100%; }
  .el-idea-banner-cta a { width: 100%; justify-content: center; }
}

/* ---- Steps ---- */
.el-steps-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.el-step-block {
  max-width: 480px;
  width: 100%;
}
.el-step-block-wide {
  max-width: 680px;
  width: 100%;
}

.el-step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--el-primary, #5B6ABF), var(--el-accent, #4CAF82));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  flex-shrink: 0;
}

/* Chips indicatori */
.el-alt-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 14px;
}
.el-alt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .3s ease;
}
.el-alt-chip i { font-size: .9rem; }
.el-alt-chip:hover {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.7);
}
.el-alt-chip.active {
  background: rgba(91,106,191,.2);
  border-color: rgba(91,106,191,.5);
  color: #fff;
  box-shadow: 0 2px 12px rgba(91,106,191,.25);
}

/* Carosello */
.el-alt-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--el-radius, 14px);
}
.el-alt-carousel::-webkit-scrollbar { display: none; }

.el-alt-track {
  display: flex;
  gap: 16px;
  padding: 4px 0;
}

.el-alt-slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  min-width: 0;
}

/* Step alternative cards */
.el-alt-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--el-radius, 14px);
  padding: 28px 24px;
  height: 100%;
  transition: all .3s ease;
}
.el-alt-card:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(76,175,130,.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.el-alt-label {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: rgba(91,106,191,.15);
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}
.el-alt-label i {
  font-size: .85rem;
}

/* Desktop: cards più grandi, label visibili, chips nascoste */
@media (min-width: 768px) {
  .el-alt-slide {
    flex: 0 0 48%;
  }
  .el-step-block-wide {
    max-width: 780px;
  }
  .el-alt-chips {
    display: none;
  }
  .el-alt-label {
    display: inline-flex;
  }
}

/* ---- School levels ---- */
.el-level-card {
  background: #fff;
  border-radius: var(--el-radius);
  padding: 36px 30px;
  height: 100%;
  border: 1px solid rgba(0,0,0,.06);
  transition: all .3s ease;
  text-align: center;
}
.el-level-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(91,106,191,.10); }
.el-level-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(91,106,191,.12), rgba(76,175,130,.08));
  color: var(--el-primary, #5B6ABF);
  margin-bottom: 18px;
}

/* ---- Benefits grid ---- */
.el-benefit-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0;
}
.el-benefit-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: rgba(91,106,191,.08);
  color: var(--el-primary, #5B6ABF);
}

/* ---- Contact CTA ---- */
.el-contact-section {
  background: linear-gradient(160deg, #363b54 0%, #2B3044 100%);
  color: #fff;
  padding: 90px 0;
}
.el-contact-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  transition: all .3s ease;
}
.el-contact-btn-whatsapp { background: #25D366; color: #fff; }
.el-contact-btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); color: #fff; }
.el-contact-info-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.el-contact-info-item i { font-size: 1.2rem; color: var(--el-accent, #4CAF82); }
.el-contact-info-item a { color: rgba(255,255,255,.8); text-decoration: none; }
.el-contact-info-item a:hover { color: #fff; }

/* ---- Header ---- */
.edulab-page #header {
  z-index: 1050 !important;
}

/* Offcanvas sopra l'header */
.edulab-page .offcanvas-backdrop {
  z-index: 1051 !important;
}
.edulab-page #elMobileMenu {
  z-index: 1055 !important;
}

/* ---- Desktop Navigation ---- */
.el-nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 8px 15px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.el-nav-link:hover,
.el-nav-link.active {
  color: #fff;
  background: rgba(76, 175, 130, 0.15);
}

/* ---- Mobile Offcanvas Menu ---- */
#elMobileMenu .el-mobile-nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
  display: block;
}
#elMobileMenu .el-mobile-nav-link:hover,
#elMobileMenu .el-mobile-nav-link.active {
  color: #fff;
  background: rgba(76, 175, 130, 0.15);
  border-left-color: var(--el-accent, #4CAF82);
  transform: translateX(4px);
}

/* ---- Language Switcher (flags) ---- */
.lang-switcher-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-flag {
  display: inline-flex;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.lang-flag img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lang-flag:hover {
  opacity: 0.85;
  transform: scale(1.1);
}

.lang-flag.active {
  opacity: 1;
  transform: scale(1.15);
}

.lang-flag.active img {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.7);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .el-section { padding: 60px 0; }
  .el-hero { min-height: auto; padding: 120px 0 80px; }
}

@media (max-width: 1199px) {
  .lang-switcher-header {
    display: none !important;
  }

  .lang-switcher-mobile {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 14px 28px 10px;
    margin: 8px 12px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .lang-switcher-mobile .lang-flag {
    display: inline-flex;
    text-decoration: none;
    opacity: 0.45;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
  }

  .lang-switcher-mobile .lang-flag img {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }

  .lang-switcher-mobile .lang-flag:hover {
    opacity: 0.85;
    transform: scale(1.1);
  }

  .lang-switcher-mobile .lang-flag.active {
    opacity: 1;
    transform: scale(1.12);
  }

  .lang-switcher-mobile .lang-flag.active img {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.7);
  }
}

@media (min-width: 1200px) {
  .lang-switcher-mobile {
    display: none !important;
  }
}
