/* Hub & section pages — same visual language as blog (GuidaPrinto3D vitrine) */
:root {
  --green: #02A13A;
  --text: #0f172a;
  --text-muted: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

.vp-hub-body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.vp-hub-main {
  max-width: 840px;
  margin: 48px auto 80px;
  padding: 0 24px 40px;
}

.vp-hub-main .page-header {
  margin-bottom: 40px;
}

.vp-hub-main .page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.vp-hub-main .page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Card list — matches blog index cards */
.vp-hub-main .article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.vp-hub-main .article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.vp-hub-main .article-card:hover {
  border-color: rgba(2, 161, 58, 0.35);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
}

.vp-hub-main .article-card-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}

.vp-hub-main .article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vp-hub-main .article-card-body h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}

.vp-hub-main .article-card-body .meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.vp-hub-main .article-card-body .excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.vp-hub-main .read-more {
  margin-top: 12px;
  font-weight: 600;
  color: var(--green);
  font-size: 0.9rem;
}

/* Optional intro block below cards */
.vp-hub-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.vp-hub-section h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.vp-hub-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Tighter transition from promo CTA into first content block */
.vp-hub-main .vp-service-cta + .vp-hub-section {
  border-top: none;
  padding-top: 12px;
}

/* Prose article pages (material detail, use case, city) */
.vp-prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.vp-prose .breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.vp-prose .breadcrumb a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.vp-prose .breadcrumb a:hover {
  text-decoration: underline;
}

.vp-prose > header h1 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.vp-prose .lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.vp-prose h2 {
  font-size: 1.35rem;
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.02em;
}

.vp-prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 28px;
}

.vp-prose p {
  margin-bottom: 14px;
  color: var(--text);
}

.vp-prose ul {
  margin: 12px 0 18px 1.25rem;
  color: var(--text);
}

.vp-prose li {
  margin-bottom: 8px;
}

.vp-prose a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.vp-prose a:hover {
  text-decoration: underline;
}

.vp-prose-cta {
  margin-top: 28px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(2, 161, 58, 0.08), rgba(2, 161, 58, 0.02));
  border-radius: var(--radius);
  border: 1px solid rgba(2, 161, 58, 0.2);
}

.vp-prose-cta p {
  margin-bottom: 0;
  font-weight: 600;
}

.vp-prose-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.vp-prose-footer a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.vp-prose-footer a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
}

/* Service page (e.g. /3d-printing/): hero CTA + step grid */
.vp-hub-main .vp-service-cta {
  margin: 36px 0 0;
  padding: 24px 22px;
  background: linear-gradient(135deg, rgba(2, 161, 58, 0.1), rgba(2, 161, 58, 0.02));
  border-radius: var(--radius);
  border: 1px solid rgba(2, 161, 58, 0.22);
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.vp-hub-main .vp-service-cta p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.vp-hub-main .vp-service-cta p:last-child {
  margin-bottom: 0;
}

.vp-hub-main .vp-service-cta .vp-service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vp-hub-main .vp-service-cta a.vp-service-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--green);
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

.vp-hub-main .vp-service-cta a.vp-service-cta-btn:hover {
  opacity: 0.92;
}

.vp-hub-main .vp-service-cta a.vp-service-cta-btn--secondary {
  background: #fff;
  color: var(--green);
}

.vp-hub-steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .vp-hub-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vp-hub-step {
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.vp-hub-step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.vp-hub-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.vp-hub-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .vp-hub-main .article-card {
    grid-template-columns: 1fr;
  }

  .vp-hub-main .article-card-thumb {
    max-height: 180px;
  }
}

@media (max-width: 767px) {
  .vp-hub-main {
    margin-top: 28px;
    padding: 0 16px 56px;
  }

  .vp-hub-main .page-header h1 {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .vp-prose {
    padding: 20px 16px 64px;
  }

  .vp-hub-main .article-card {
    padding: 16px;
    gap: 16px;
  }

  .vp-hub-main .vp-service-cta {
    margin-top: 28px;
    padding: 20px 16px;
  }

  .vp-hub-main .vp-service-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .vp-hub-main .vp-service-cta a.vp-service-cta-btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}
