/* ============================================================
   NOVEXA — Stili Homepage
   home.css
   (Caricato solo su index.html)
   ============================================================ */


/* ============================================================
   HERO — Full viewport, video background + dark overlay

   Z-INDEX STACK (dal basso verso l'alto):
     0  .hero-video       → video fisicamente più in basso
     1  ::before          → overlay blu notte sopra il video
     2  .panel-content    → testo sopra tutto
     2  .scroll-indicator → indicatore sopra tutto
   ============================================================ */

.question-panel {
  width: 100vw;
  height: 100vh;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ---- VIDEO BACKGROUND ------------------------------------ */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-video.loaded {
  opacity: 1;
}

/* ---- DARK OVERLAY --------------------------------------- */
.question-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.80);
  z-index: 1;
}

/* Fallback mentre il video carica */
.panel-1 {
  background-color: #080f1e;
}

/* ---- CENTERED CONTENT ----------------------------------- */
.panel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 80px;
  max-width: 920px;
  width: 100%;
}

.panel-question {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.12;
  margin-bottom: 48px;
}

.panel-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 3px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.panel-cta:hover {
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.80);
}

/* Scroll indicator — circular, bottom-centre, animated bounce */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

.scroll-indicator:hover {
  border-color: rgba(255, 255, 255, 0.60);
  color: var(--bg-white);
  animation-play-state: paused;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}


/* ---- Sezione Chi Siamo (homepage) ------------------------ */

.intro-section {
  padding: var(--section-py) 0;
}

.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.intro-text h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-bottom: 20px;
}

.intro-text p {
  color: var(--grey);
  max-width: none;
}

/* Tre pilastri */
.intro-pillars {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pillar-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.pillar-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--bg-white);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.pillar-content p {
  font-size: 0.875rem;
  color: var(--grey);
  max-width: none;
}

.intro-aside {
  border-left: 3px solid var(--border);
  padding-left: 40px;
}


/* ---- Sezione Servizi — stile VC (homepage) -------------- */

.vc-section {
  padding: 100px 0 88px;
  overflow: hidden;
  position: relative;
  background: #0D1B2A;
}

.vc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/vc-bg.jpg') center center / cover no-repeat;
  filter: saturate(0.35) brightness(0.65) blur(4px);
  z-index: 0;
}

.vc-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(9, 21, 37, 0.95) 0%,
    rgba(13, 27, 42, 0.93) 30%,
    rgba(13, 27, 42, 0.93) 70%,
    rgba(9, 21, 37, 0.95) 100%);
  z-index: 1;
}

.vc-section > .container {
  position: relative;
  z-index: 2;
}

.vc-header {
  margin-bottom: 52px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.15);
}

.vc-section .section-label {
  color: #B08D57;
}

.vc-section .section-title {
  color: var(--bg-white);
}

.vc-section .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.vc-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(176, 141, 87, 0.30);
}

.vc-pillar {
  background: linear-gradient(180deg, #0f2030 0%, #0b1824 100%);
  padding: 36px 32px 44px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

/* Gold top bar on hover */
.vc-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: #B08D57;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.vc-pillar:hover {
  background: #112640;
  box-shadow: 0 0 60px rgba(176, 141, 87, 0.12);
  transform: scale(1.02);
  z-index: 4;
}

.vc-pillar:hover::before {
  width: 100%;
}

.vc-pillar-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(176, 141, 87, 0.5);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.vc-pillar h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 14px 0;
  line-height: 1.22;
  letter-spacing: -0.015em;
  transition: color 0.4s ease;
}

.vc-pillar:hover h3 {
  color: #fff;
}

.vc-pillar p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.75;
  flex: 1;
  margin: 0 0 28px 0;
  max-width: 300px;
  transition: color 0.4s ease;
}

.vc-pillar:hover p {
  color: rgba(255, 255, 255, 0.75);
}

.vc-pillar-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B08D57;
  text-decoration: none;
  margin-top: auto;
  display: inline-block;
  padding-bottom: 4px;
  position: relative;
  transition: color 0.3s ease;
}

.vc-pillar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #B08D57;
  transition: width 0.4s ease;
}

.vc-pillar:hover .vc-pillar-link::after {
  width: 100%;
}


/* ---- Sezione Approccio (homepage) ------------------------ */

.approach-section {
  padding: var(--section-py) 0;
}

.approach-section.section-light {
  background: var(--bg-light);
}

.approach-header {
  text-align: center;
  margin-bottom: 60px;
}

.approach-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
}

.phase-item {
  background: var(--bg-white);
  padding: 44px 32px;
  border-right: 1px solid var(--border);
  transition: background var(--ease);
}

.phase-item:last-child {
  border-right: none;
}

.phase-item:hover {
  background: var(--bg-light);
}

.phase-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}

.phase-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.phase-desc {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.75;
  max-width: none;
}


/* ---- Sezione Risultati / Case Studies (homepage) --------- */

.for-who-section {
  padding: var(--section-py) 0;
}

.for-who-header {
  margin-bottom: 48px;
}


/* ---- Image Break (homepage) ------------------------------ */

.image-break {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.image-break::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.75);
  z-index: 1;
}

.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 640px) {
  .image-break {
    height: 240px;
  }
}


/* ---- Per chi lavoriamo (homepage) ------------------------ */

.for-who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.for-who-card {
  border-top: 3px solid var(--gold);
  padding-top: 24px;
}

.for-who-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.for-who-card p {
  font-size: 0.875rem;
  color: var(--grey);
  max-width: none;
}

/* ---- CTA Finale minimal (homepage) ---------------------- */

.cta-section {
  padding: var(--section-py) 0;
  background: var(--navy);
  text-align: center;
}

.cta-inner {
  max-width: 680px;
  margin-inline: auto;
}

.cta-inner h2 {
  color: var(--bg-white);
  margin-bottom: 16px;
}

.cta-inner p.lead {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 40px;
}

.cta-inner .btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ---- Responsive Homepage --------------------------------- */

@media (max-width: 1024px) {
  .vc-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 960px) {
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .intro-aside {
    border-left: none;
    border-top: 3px solid var(--border);
    padding-left: 0;
    padding-top: 40px;
  }
}

@media (max-width: 640px) {
  .panel-content {
    padding: 0 20px;
  }

  .panel-question {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .vc-pillars,
  .approach-phases,
  .for-who-grid {
    grid-template-columns: 1fr;
  }

}
