/* ============================================================
   IdeaHub — Hero Carousel (Swiper.js)
   ============================================================ */

/* ── WRAPPER ──────────────────────────────────────────────── */
.ih-hero-carousel-wrap {
  position: relative;
  width: 100%;
}

/* ── SWIPER CONTAINER ─────────────────────────────────────── */
.ih-hero-carousel {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ih-dark-blue);
}

/* ── SINGOLA SLIDE ────────────────────────────────────────── */
.ih-hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Background foto */
.ih-slide-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(107,79,187,0.38) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(168,85,247,0.2) 0%, transparent 60%),
    linear-gradient(135deg, #0d1033 0%, #0a0a1a 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.swiper-slide-active .ih-slide-bg {
  transform: scale(1.0);
}

/* Background video */
.ih-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Overlay scuro sopra la foto — taglio circolare a destra */
.ih-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.50);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 21% 33%, black 50%, transparent 50%);
  mask-image: radial-gradient(circle at 21% 33%, black 50%, transparent 50%);
}

/* Griglia decorativa */
.ih-hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,79,187,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,79,187,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── CONTENUTO SLIDE ──────────────────────────────────────── */
.ih-slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 120px;
}

/* ── ANIMAZIONE ELEMENTI IN ENTRATA ───────────────────────── */
.ih-anim-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.swiper-slide-active .ih-anim-item:nth-child(1) { transition-delay: 0.10s; }
.swiper-slide-active .ih-anim-item:nth-child(2) { transition-delay: 0.22s; }
.swiper-slide-active .ih-anim-item:nth-child(3) { transition-delay: 0.36s; }
.swiper-slide-active .ih-anim-item:nth-child(4) { transition-delay: 0.50s; }

.swiper-slide-active .ih-anim-item {
  opacity: 1;
  transform: translateY(0);
}

/* ── TIPOGRAFIA HERO ──────────────────────────────────────── */
.ih-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ih-accent);
  border: 1px solid rgba(192,132,252,0.35);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.ih-hero-title {
  font-family: var(--ih-font-heading);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 720px;
}

.ih-hero-subtitle {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.58);
  max-width: 500px;
  margin-bottom: 44px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ih-hero-actions {
  display: flex;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
}

/* ── PROGRESS BAR GLOBALE (nascosta, ora è nei tab) ──────── */
.ih-hero-progress {
  display: none;
}
.ih-hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 20;
}

.ih-hero-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ih-purple), var(--ih-accent));
  border-radius: 0 2px 2px 0;
}

/* ── TAB NAV — sovrapposta al fondo dell'hero ─────────────── */
.ih-hero-carousel-wrap { position: relative; }

.ih-page-tabs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: transparent;
  z-index: 500;
}

.ih-page-tabs-inner {
  width: 100%;
  padding: 0;
  display: flex;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ih-page-tabs-inner::-webkit-scrollbar { display: none; }

.ih-page-tab {
  flex: 1;
  position: relative;
  margin: 0 2%;
  padding: 18px 12px;
  font-family: var(--ih-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: none;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  transition: color 0.25s ease, background 0.25s ease;
}

.ih-page-tab:hover { color: rgba(255,255,255,0.9); }

.ih-page-tab.active {
  background: #ffffff;
  color: var(--ih-dark);
}

/* Barra di caricamento in cima al tab attivo */
.ih-tab-progress {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--ih-purple);
  pointer-events: none;
}

.ih-page-tab::after { display: none; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .ih-hero-carousel,
  .ih-hero-slide {
    min-height: calc(100svh - 48px);
  }
  .ih-slide-inner {
    padding: 120px 20px 100px;
  }
  .ih-hero-title {
    font-size: 40px;
  }
  .ih-page-tab {
    padding: 14px 18px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .ih-hero-title { font-size: 34px; }
  .ih-hero-actions { flex-direction: column; align-items: flex-start; }
}
