/* ============================================================
   product-theme-extensions.css
   Shared component styles for all A4G product pages.
   Loaded globally via BaseLayout — do not duplicate in
   individual <style is:global> blocks.
   Primary: #f08723 / Darker: #d87520
============================================================ */

/* ============ Hero layout utilities ============ */
.product-hero-description {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.content-section .section-subtitle {
  font-size: 17px;
  color: #666;
  font-weight: 500;
  margin-top: -10px;
  margin-bottom: 18px;
}

/* ============ Problem box: equal-height cards ============ */
.problem-box .problem-item {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* ============ Numbered pillars ============ */
.lynx-pillars {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 25px;
}
.lynx-pillar {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #efe7dd;
  border-left: 4px solid #f08723;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.lynx-pillar .pillar-num {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f08723;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.lynx-pillar .pillar-content h4 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #2d2d2d;
}
.lynx-pillar .pillar-content p {
  margin: 0;
  color: #555;
  font-size: 15.5px;
  line-height: 1.6;
}
@media (max-width: 575px) {
  .lynx-pillar {
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
  }
}

/* ============ Dashboard grid ============ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 25px;
}
.dashboard-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #efe7dd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.dashboard-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f2ec;
  border-bottom: 1px solid #efe7dd;
  overflow: hidden;
}
.dashboard-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.dashboard-visual-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f5f0 0%, #efe7dd 100%);
}
.dashboard-visual-empty i {
  font-size: 64px;
  color: #f08723;
  opacity: 0.75;
}
.dashboard-card--with-visual .dashboard-visual-empty {
  display: none;
}
.dashboard-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dashboard-card-body h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #2d2d2d;
}
.dashboard-card-body p {
  margin: 0;
  font-size: 14.5px;
  color: #555;
  line-height: 1.55;
}
@media (max-width: 767px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ Use cases: palette overrides ============ */
.use-cases .use-case-item:hover {
  border-color: #f08723;
  box-shadow: 0 5px 20px rgba(240, 135, 35, 0.15);
}
.use-cases .use-case-icon {
  background: linear-gradient(135deg, #f08723 0%, #d87520 100%);
}

/* ============ Timeline badges & summary ============ */
.implementation-timeline .timeline-badge.ai-badge {
  background: linear-gradient(135deg, #f08723 0%, #d87520 100%);
  box-shadow: 0 5px 15px rgba(240, 135, 35, 0.3);
}
.implementation-timeline + .timeline-summary,
.content-section .timeline-summary {
  background: #f5f2ec;
  color: #2d2d2d;
  border: 1px solid #e3dcd2;
  border-left: 4px solid #f08723;
}
.content-section .timeline-summary strong {
  color: #2d2d2d;
}

/* ============ Results section ============ */
.results-hero {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 30px;
  align-items: stretch;
  margin-top: 25px;
}
.results-hero-metric {
  background: #2d2d2d;
  color: #fff;
  border-radius: 10px;
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 3px solid #f08723;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.results-hero-metric .metric-value {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: #fff;
}
.results-hero-metric .metric-label {
  font-size: 16px;
  font-weight: 500;
  color: #e5e5e5;
  margin-top: 18px;
  line-height: 1.45;
}
.results-hero-metric .metric-detail {
  font-size: 14px;
  color: #b9b9b9;
  margin-top: 10px;
  letter-spacing: 0.3px;
}
.results-hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.results-hero-list > li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ece7dc;
}
.results-hero-list > li:last-child {
  border-bottom: none;
}
.results-hero-list > li > i {
  flex: 0 0 36px;
  font-size: 22px;
  color: #f08723;
  margin-top: 2px;
  text-align: center;
}
.results-hero-list h5 {
  font-size: 16px;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0 0 3px;
}
.results-hero-list p {
  font-size: 14.5px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
.results-disclaimer {
  font-size: 13px;
  color: #888;
  margin-top: 14px;
  text-align: right;
}
@media (max-width: 767px) {
  .results-hero {
    grid-template-columns: 1fr;
  }
  .results-hero-metric {
    padding: 32px 20px;
  }
  .results-hero-metric .metric-value {
    font-size: 60px;
  }
}

/* ============ Audience grid ============ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 25px;
}
.audience-card {
  background: #fff8f0;
  border: 1px solid #f3d4a8;
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 135, 35, 0.12);
}
.audience-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #f08723;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.audience-card h5 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #2d2d2d;
}
.audience-card p {
  margin: 0;
  font-size: 14.5px;
  color: #555;
  line-height: 1.55;
}
@media (max-width: 767px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ CTA secondary link ============ */
.cta-final .cta-buttons {
  align-items: center;
  gap: 28px;
}
.btn-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-link-secondary:hover {
  color: #fff;
  border-bottom-color: #fff;
  transform: translateX(3px);
}
.btn-link-secondary i {
  font-size: 14px;
  transition: transform 0.2s ease;
}
.btn-link-secondary:hover i {
  transform: translateX(2px);
}

/* ============ FAQ accordion — boxed variant (.ss-faq-*) ============ */
.ss-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
}
.ss-faq-item {
  background: #fff;
  border: 1px solid #efe7dd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.ss-faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #2d2d2d;
  list-style: none;
  user-select: none;
  transition: background-color 0.2s ease;
}
.ss-faq-item > summary::-webkit-details-marker { display: none; }
.ss-faq-item > summary::marker { display: none; content: ''; }
.ss-faq-item > summary:hover {
  background: #fff8f0;
}
.ss-faq-chevron {
  font-size: 14px;
  color: #999;
  transition: transform 0.2s ease;
}
.ss-faq-item[open] > summary {
  background: #fff8f0;
  border-bottom: 1px solid #f3e3d1;
}
.ss-faq-item[open] .ss-faq-chevron {
  transform: rotate(180deg);
  color: #f08723;
}
.ss-faq-content {
  padding: 16px 22px 20px;
}
.ss-faq-content p {
  margin: 0;
  font-size: 14.5px;
  color: #555;
  line-height: 1.6;
}
.ss-faq-content p:empty::before {
  content: 'Risposta in arrivo.';
  color: #aaa;
  font-style: italic;
}

/* ============ FAQ accordion — flat variant (.lynx-faq-*) ============ */
.lynx-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}
.lynx-faq-item {
  border-bottom: 1px solid #e8e2da;
}
.lynx-faq-item > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #2d2d2d;
  list-style: none;
}
.lynx-faq-item > summary::-webkit-details-marker { display: none; }
.lynx-faq-item > summary::marker { display: none; content: ''; }
.lynx-faq-item > summary:hover { color: #f08723; }
.lynx-faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: #f08723;
}
.lynx-faq-item[open] > summary { color: #f08723; }
.lynx-faq-item[open] .lynx-faq-chevron { transform: rotate(180deg); }
.lynx-faq-content {
  padding: 0 4px 18px;
  font-size: 15px;
  color: #555;
  line-height: 1.65;
}
.lynx-faq-content p { margin: 0; }

/* ============ Product summary box — "In sintesi" per AI crawler ============ */
.prod-summary-box {
  background: #fff8f0;
  border: 1px solid #efe7dd;
  border-left: 4px solid #f08723;
  border-radius: 8px;
  padding: 22px 28px;
  margin-bottom: 40px;
}
.prod-summary-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f08723;
  margin-bottom: 12px;
}
.prod-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prod-summary-list li {
  font-size: 15px;
  color: #444;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.prod-summary-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #f08723;
  font-weight: 700;
}

/* ============ Layout overrides ============ */
.product-detail {
  padding: 0;
}
.breadcrumbs .page-header {
  padding-bottom: 20px;
}
