/* Componente autonomo: nessuna regola globale per Elementor/WooCommerce. */
.elementor-widget-proggy-related-products:not(:has(.prg-related)) { display: none !important; }
.prg-related {
  --prg-green: #007f60;
  --prg-gap: 12px;
  --prg-surface: #f5f3e9;
  --prg-ink: #1c244b;
  --prg-cream: #fcf9f0;
  --prg-line: #cbd8cd;
  color: var(--prg-green);
  font-family: var(--e-global-typography-text-font-family, "bicyclette"), sans-serif;
  min-width: 0;
  margin-block-start: 28px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--prg-line);
}
.prg-related *, .prg-related *::before, .prg-related *::after { box-sizing: border-box; }
.prg-related__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.prg-related .prg-related__title { margin: 0; color: var(--prg-green); font-family: var(--e-global-typography-primary-font-family, "Syne"), sans-serif; font-size: 20px; font-weight: var(--e-global-typography-primary-font-weight, 700); line-height: 1.25; text-transform: none; }
.prg-related__controls { display: flex; gap: 6px; flex-shrink: 0; }
.prg-related__controls[hidden] { display: none; }
.prg-related .prg-related__arrow { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--prg-green); border-radius: 50%; background: transparent; color: var(--prg-green); cursor: pointer; }
.prg-related__arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prg-related .prg-related__arrow:hover:not(:disabled) { background: var(--prg-green); color: white; }
.prg-related .prg-related__arrow:disabled { opacity: .3; cursor: default; }
.prg-related__track { display: flex; gap: var(--prg-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #b2c5b8 transparent; list-style: none; margin: 0; padding: 3px 3px 12px; overscroll-behavior-inline: contain; }
.prg-related__item { flex: 0 0 calc((100% - var(--prg-gap)) / 2); min-width: 245px; scroll-snap-align: start; }
.prg-related__item:only-child { flex-basis: 100%; min-width: 0; }
.prg-related .prg-related__card { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 156px; height: 100%; padding: 14px 12px; background: var(--prg-surface); border: 1px solid var(--prg-line); border-radius: 14px; color: var(--prg-ink); text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.prg-related .prg-related__card:hover { border-color: var(--prg-green); background: #edf1e5; color: var(--prg-ink); }
.prg-related .prg-related__image { display: block; width: 84px; height: 116px; object-fit: contain; border-radius: 7px; }
.prg-related__copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.prg-related__line { color: var(--prg-green); font-size: 11px; line-height: 1.4; margin-bottom: 5px; }
.prg-related .prg-related__name { display: block; margin: 0; color: var(--prg-ink); font-family: var(--e-global-typography-secondary-font-family, "Syne"), sans-serif; font-size: 15px; font-weight: var(--e-global-typography-secondary-font-weight, 600); line-height: 1.25; text-transform: none; overflow-wrap: anywhere; }
.prg-related__format { display: block; margin-top: 5px; color: #535c53; font-size: 11px; line-height: 1.4; }
.prg-related__cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; color: var(--prg-green); font-family: var(--e-global-typography-accent-font-family, "bicyclette"), sans-serif; font-size: 11px; font-weight: var(--e-global-typography-accent-font-weight, 700); line-height: 1.4; }
.prg-related__cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prg-related .prg-related__cta { text-decoration: none; }
.prg-related .prg-related__cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.prg-related .prg-related__buy { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 10px 8px; border: 1px solid var(--prg-green); border-radius: 7px; background: var(--prg-green); color: #fff; font-family: var(--e-global-typography-accent-font-family, "bicyclette"), sans-serif; font-size: 12px; font-weight: var(--e-global-typography-accent-font-weight, 700); line-height: 1.3; text-align: center; text-decoration: none; }
.prg-related .prg-related__buy:hover { background: #006149; border-color: #006149; color: #fff; }
.prg-related .prg-related__buy--options { background: transparent; color: var(--prg-green); }
.prg-related__buy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.prg-related :focus-visible { outline: 3px solid var(--prg-green); outline-offset: 3px; }
@media (max-width: 600px) {
  .prg-related__item { flex-basis: 86%; min-width: 0; }
  .prg-related .prg-related__card { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; }
  .prg-related .prg-related__name { font-size: 16px; }
  .prg-related__line, .prg-related__format, .prg-related__cta { font-size: 12px; }
  .prg-related .prg-related__arrow { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .prg-related .prg-related__card { transition: none; } }

.prg-related .prg-related__card--no-image .prg-related__copy { grid-column: 1 / -1; }
.prg-related .prg-related__availability, .prg-related .added_to_cart { grid-column: 1 / -1; font: inherit; font-size: 12px; color: var(--prg-green); text-align: center; padding: 8px; }
.prg-related__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
