/* ══════════════════════════════════════════════════
   WMR — Services page styles
   Stili specifici per pages/services.html
   ══════════════════════════════════════════════════ */

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  max-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--page-pad) 80px;
  background: var(--bg-deep);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 70% 30%, rgba(123,47,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(123,47,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 110px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 16px 0 24px;
}
.page-hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245,245,245,0.55);
  max-width: 480px;
}

/* ── SERVICE DETAIL BLOCKS ── */
.srv-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.srv-detail:first-of-type {
  border-top: 1px solid var(--border);
}

/* Reversed layout (image right, content left) */
.srv-reversed { direction: rtl; }
.srv-reversed > * { direction: ltr; }

/* Visual side */
.srv-visual {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.srv-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.srv-detail:hover .srv-visual img {
  transform: scale(1.03);
}
.srv-number {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--white);
  opacity: 0.12;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Content side */
.srv-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
}
.srv-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.srv-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 24px;
}
.srv-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245,245,245,0.6);
  max-width: 440px;
  margin-bottom: 32px;
}
.srv-text strong {
  color: var(--white);
  font-weight: 400;
}

/* Feature list */
.srv-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 40px;
  list-style: none;
}
.srv-features li {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(245,245,245,0.7);
  padding-left: 16px;
  position: relative;
}
.srv-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

/* Pulsanti non full-width nei blocchi servizio */
.srv-content .btn-primary {
  align-self: flex-start;
}

/* ── PROCESS SECTION ── */
.srv-process {
  padding: var(--space-2xl) var(--page-pad);
  background: var(--bg-alt);
}
.srv-process-header {
  margin-bottom: 80px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.process-step {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
  transition: background 0.3s var(--ease-out);
}
.process-step:hover {
  background: rgba(123,47,255,0.08);
}
/* Step icons (SVG line-art) */
.step-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 24px;
  transition: opacity 0.3s;
}
.process-step:hover .step-icon {
  opacity: 0.8;
}
/* Legacy step-num fallback */
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 24px;
  transition: opacity 0.3s;
}
.process-step:hover .step-num {
  opacity: 0.6;
}
.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 12px;
}
.step-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245,245,245,0.5);
}

/* ── CTA (riutilizza gli stili dalla homepage) ── */
.cta-section {
  position: relative;
  padding: 120px var(--page-pad);
  background: var(--accent);
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 20% 0%, rgba(255,255,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(0,0,0,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-section .section-label {
  color: rgba(255,255,255,0.7);
}
.cta-section .section-label::before {
  background: rgba(255,255,255,0.5);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 20px 0 28px;
  color: var(--white);
}
.cta-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 48px;
}
.cta-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cta-section .btn-primary.btn-xl {
  background: var(--white);
  color: var(--accent);
  font-weight: 600;
}
.cta-section .btn-primary.btn-xl:hover {
  background: #fff;
  box-shadow: 0 0 40px rgba(255,255,255,0.3);
}
.cta-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  transition: all var(--transition);
}
.cta-whatsapp:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ── FOOTER (riutilizza gli stili dalla homepage) ── */
.footer {
  background: var(--bg-deep);
  padding: 80px var(--page-pad) 40px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo {
  display: inline-flex;
  margin-bottom: 20px;
}
.footer-brand .nav-logo img {
  height: 40px;
}
.footer-brand p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  max-width: 280px;
}
/* Footer quick actions */
.footer-actions { display: flex; gap: 24px; margin-top: 20px; }
.footer-action-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; color: var(--muted); transition: color var(--transition); }
.footer-action-link:hover { color: var(--accent); }
.footer-action-link svg { opacity: 0.5; transition: opacity var(--transition); }
.footer-action-link:hover svg { opacity: 1; }
/* Column separators */
.footer-col { border-left: 1px solid var(--border); padding-left: 40px; }
/* Business/legal info row */
.footer-legal { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 300; color: rgba(245,245,245,0.3); padding: 20px 0 0; margin-bottom: 24px; flex-wrap: wrap; }
.footer-legal-sep { opacity: 0.3; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 12px;
  color: var(--muted);
}
.footer-frd {
  font-size: 12px;
  color: var(--muted);
}
.footer-frd a {
  color: var(--accent);
}
.footer-frd a:hover { text-decoration: underline; }

/* ── DESKTOP WIDE (1440px+) ── */
@media (min-width: 1440px) {
  .page-hero { padding: 0 8vw 80px; }
  .srv-content { padding: 80px 8vw 80px 80px; }
  .srv-reversed .srv-content { padding: 80px 80px 80px 8vw; }
  .srv-process { padding: var(--space-2xl) 8vw; }
  .cta-section { padding: 160px 8vw; }
  .footer { padding: 80px 8vw 40px; }
}

/* ── ULTRA WIDE (1920px+) ── */
@media (min-width: 1920px) {
  .page-hero { padding: 0 12vw 80px; }
  .srv-content { padding: 80px 12vw 80px 100px; }
  .srv-reversed .srv-content { padding: 80px 100px 80px 12vw; }
  .srv-process { padding: var(--space-2xl) 12vw; }
  .cta-section { padding: 160px 12vw; }
  .footer { padding: 80px 12vw 40px; }
}

/* ── TABLET ── */
@media (max-width: 1024px) {
  .srv-content {
    padding: 60px 48px;
  }
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .page-hero {
    height: auto;
    min-height: 0;
    padding: calc(var(--nav-height) + 40px) var(--page-pad-mobile) 60px;
  }
  .page-hero-title {
    font-size: 56px;
  }

  .srv-detail {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .srv-reversed {
    direction: ltr;
  }
  .srv-visual {
    aspect-ratio: 4/3;
  }
  .srv-content {
    padding: 48px var(--page-pad-mobile);
  }
  .srv-features {
    grid-template-columns: 1fr;
  }
  .srv-number {
    font-size: 48px;
    top: 20px;
    left: 20px;
  }

  .srv-process {
    padding: 80px var(--page-pad-mobile);
  }
  .process-steps {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .cta-section {
    padding: 80px var(--page-pad-mobile);
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .footer { padding: 60px var(--page-pad-mobile) 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
  .footer-col { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
  .footer-actions { flex-direction: column; gap: 12px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-legal-sep { display: none; }
}
