/* ============================================
   Pamasoft — Products listing UI
   ============================================ */

.products-section {
  padding: 60px 0 100px;
  background: #f8fafc;
}

.products-section--related {
  padding: 70px 0 80px;
  background: #fff;
}

.products-section-header {
  margin-bottom: 48px;
  max-width: 720px;
}

.products-section-header .section-title {
  margin-bottom: 12px;
}

.products-section-header p {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.products-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 28px;
  height: auto;
  min-height: 0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  border-color: #c7d7f5;
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.product-card-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.product-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.product-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
  color: #0f172a;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-title a:hover {
  color: var(--primary_color, #1b4fd8);
}

.product-card-tagline {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary_color, #1b4fd8);
  margin: 0;
}

.product-card-desc {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.product-industry-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  border: 1px solid #dbeafe;
  transition: background 0.2s ease;
}

.product-industry-badge:hover {
  background: #dbeafe;
  color: #1e40af;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.product-card-actions .theme-btn,
.product-card-actions .theme-btn2 {
  font-size: 0.88rem;
  padding: 11px 18px;
  white-space: nowrap;
}

.product-card-actions .theme-btn2 i {
  margin-left: 6px;
  font-size: 0.75rem;
}

.products-empty {
  padding: 48px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

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

@media (max-width: 640px) {
  .products-section {
    padding: 40px 0 70px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    padding: 22px;
  }

  .product-card-actions {
    flex-direction: column;
  }

  .product-card-actions .theme-btn,
  .product-card-actions .theme-btn2 {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================
   Product detail page
   ============================================ */

.prodotto-page .pd-hero {
  padding: 70px 0 60px;
  background:
    radial-gradient(circle at top right, rgba(27, 79, 216, 0.08), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.pd-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary_color, #1b4fd8);
}

.pd-brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.pd-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pd-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pd-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #0f172a;
}

.pd-tagline {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
}

.pd-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  max-width: 38rem;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-audience {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.pd-audience-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.pd-audience ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-audience li {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 600;
}

.pd-hero-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  border: 1px solid #e2e8f0;
  background: #fff;
}

.pd-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pd-section {
  padding: 80px 0;
}

.pd-section--muted {
  background: #f8fafc;
}

.pd-section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.pd-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #0f172a;
}

.pd-section-head p {
  margin: 0;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
}

.pd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pd-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.pd-card-icon {
  font-size: 1.6rem;
  color: var(--primary_color, #1b4fd8);
  margin-bottom: 16px;
}

.pd-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #0f172a;
}

.pd-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.pd-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pd-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 24px;
}

.pd-feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--primary_color, #1b4fd8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.pd-feature h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #0f172a;
}

.pd-feature p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.pd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.pd-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 24px;
}

.pd-step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary_color, #1b4fd8);
  line-height: 1;
}

.pd-step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.pd-step p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.pd-story {
  max-width: 820px;
}

.pd-story h2 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.pd-story-body {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
}

.pd-story-body :global(p) {
  margin: 0 0 1.1rem;
}

.pd-story-body :global(ul) {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

.pd-story-body :global(li) {
  margin-bottom: 0.45rem;
}

.pd-industry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-industry-chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pd-industry-chip:hover {
  background: #eff6ff;
  transform: translateY(-2px);
}

.pd-cta {
  padding: 0 0 100px;
}

.pd-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
}

.pd-cta-box h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.8rem;
}

.pd-cta-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.pd-cta-box .theme-btn2 {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 980px) {
  .pd-hero-grid,
  .pd-cards,
  .pd-feature-grid {
    grid-template-columns: 1fr;
  }

  .pd-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .prodotto-page .pd-hero,
  .pd-section {
    padding: 48px 0;
  }

  .pd-brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pd-step {
    grid-template-columns: 1fr;
  }

  .pd-cta-box {
    padding: 28px;
  }

  .pd-actions {
    width: 100%;
    flex-direction: column;
  }

  .pd-actions .theme-btn,
  .pd-actions .theme-btn2 {
    width: 100%;
    text-align: center;
  }
}
