/* ============================================================
   IVALAB — homepage.css
   Stili specifici per la homepage (redesign v2)
   ============================================================ */

/* ─── NAV ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(228,231,236,0.6); }
.nav-inner { width: 100%%; display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.nav-logo { font-family: var(--font-logo); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.nav-logo .iva { color: var(--yellow); }
.nav-logo .lab { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--blue); transition: color 0.2s; }
.nav-links a:hover { color: var(--yellow); }
.btn-nav { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; background: var(--yellow); color: var(--white); font-weight: 600; font-size: 0.9rem; border-radius: 100px; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.btn-nav:hover { background: var(--yellow-dark); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(170deg, var(--blue-deep) 0%, var(--blue) 50%, #234b82 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,134,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge--gold {
  background: rgba(184,134,11,0.15);
  border: 1px solid rgba(184,134,11,0.3);
  color: var(--gold);
}
.hero-badge--gold .badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-badge--outline {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-subtitle strong { color: rgba(255,255,255,0.95); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  border: none;
  cursor: pointer;
}
.btn-hero--primary {
  background: var(--yellow);
  color: var(--white);
}
.btn-hero--primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,134,11,0.3); }
.btn-hero--ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-hero--ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }

.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.hero-trust-item svg { flex-shrink: 0; color: #4ade80; }

/* ─── SERVIZI ─── */
.servizi { padding: 100px 0; background: var(--white); }
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-text);
  max-width: 560px;
  line-height: 1.65;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--yellow);
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--grey-text);
  line-height: 1.65;
}
.service-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--yellow-dark);
  font-style: italic;
}

/* bottom row centered */
.servizi-grid-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── NON SIAMO GENERALISTI ─── */
.specializzazione { padding: 100px 0; background: var(--grey-bg); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spec-visual {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
}

.spec-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
  transition: border-color 0.2s, background 0.2s;
}
.spec-tag:hover { border-color: var(--yellow); background: var(--yellow-light); }

.spec-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grey-border);
}
.spec-stat:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.spec-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: -0.03em;
}
.spec-stat-label { font-size: 0.92rem; color: var(--grey-text); }

/* ─── COME FUNZIONA ─── */
.come-funziona { padding: 100px 0; background: var(--white); }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; position: relative; }
.steps-row::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.5%;
  right: 16.5%;
  height: 2px;
  background: var(--grey-border);
}
.step { text-align: center; position: relative; z-index: 1; padding: 0 20px; }
.step-number {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
}
.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  opacity: 0.4;
}
.step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
}
.step p { font-size: 0.9rem; color: var(--grey-text); line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* ─── PRICING ─── (moved to style.css — white card redesign) */
.pricing .section-label { color: var(--gold); }
.pricing .section-title { color: var(--white); }
.pricing .section-subtitle { color: rgba(255,255,255,0.6); }

/* ─── CTA FINALE ─── */
.cta-finale {
  padding: 100px 0;
  background: var(--grey-bg);
  text-align: center;
}
.cta-finale .section-title { max-width: 600px; margin: 0 auto 16px; }
.cta-finale .section-subtitle { margin: 0 auto 36px; text-align: center; }
.cta-finale-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-cta--primary { background: var(--yellow); color: var(--white); }
.btn-cta--primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-cta--ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--grey-border); }
.btn-cta--ghost:hover { border-color: var(--blue); background: rgba(27,58,107,0.04); }

/* Footer CSS is now in style.css (shared across all pages) */

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .servizi-grid-bottom { grid-template-columns: 1fr; max-width: 370px; }
  .spec-grid { grid-template-columns: 1fr; gap: 40px; }
  .spec-visual { order: -1; }
  /* pricing-grid responsive now in style.css */
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 72px; }
  .hero-title { font-size: 1.8rem; }
  .servizi-grid { grid-template-columns: 1fr; }
  .servizi-grid-bottom { max-width: 100%; }
  .steps-row { grid-template-columns: 1fr; gap: 40px; }
  .steps-row::before { display: none; }
  /* pricing-grid responsive now in style.css */
  .hero-cta { flex-direction: column; }
  .hero-trust { flex-direction: column; gap: 12px; }
  .cta-finale-actions { flex-direction: column; align-items: center; }
}

/* ─── REVEAL ON SCROLL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
