/**
 * Teaser sistemi capsule — homepage carousel + hub categoria (ID 11).
 */

.system-teasers-section {
  padding: 48px 0 56px;
  background: #fff;
  overflow: hidden;
}

.system-teasers-section__header {
  text-align: center;
  margin-bottom: 32px;
}

.system-teasers-section__title {
  margin: 0 0 8px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  color: #c30016;
}

.system-teasers-section__subtitle {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.35;
  color: #777;
}

.system-teasers-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid #c30016;
  color: #c30016;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

.system-teasers-section__cta:hover {
  background: #c30016;
  color: #fff;
}

.system-teasers-section .container {
  width: 100% !important;
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.layout-fullwidth .system-teasers-section .container {
  max-width: 1480px !important;
}

.system-teasers-section--carousel .system-teasers-carousel.owl-carousel {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

.system-teasers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0;
  align-items: stretch;
}

.system-teaser-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.system-teaser-card__link,
.system-teaser-card__link:visited,
.system-teaser-card__link:hover,
.system-teaser-card__link:active,
.system-teaser-card__link:focus {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  background: #fff;
  transition: border-color 0.2s ease;
}

.system-teaser-card__visual {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
}

.system-teaser-card__visual--empty {
  background: #f7f7f7;
}

.system-teaser-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.system-teaser-card__visual--gallery {
  position: relative;
}

.system-teaser-card__visual--gallery .system-teaser-card__frame {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.system-teaser-card__visual--gallery .system-teaser-card__frame.is-active {
  opacity: 1;
}

.system-teaser-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 20px 24px;
  text-align: left;
  min-height: 0;
}

.system-teaser-card__eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #888;
}

.system-teaser-card__name {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.2em);
}

.system-teaser-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid #c30016;
  background: #fff;
  color: #c30016;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.system-teaser-card__link:visited .system-teaser-card__btn {
  color: #c30016;
}

.system-teaser-card__link:hover .system-teaser-card__btn,
.system-teaser-card__link:focus-visible .system-teaser-card__btn {
  background: #c30016;
  border-color: #c30016;
  color: #fff;
}

.system-teasers-section--carousel .system-teaser-card__link {
  margin: 0 4px;
}

/* Owl: stessa altezza per tutte le card visibili nella riga */
.system-teasers-carousel.owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.system-teasers-carousel.owl-carousel .owl-item {
  display: flex;
  align-items: stretch;
  height: auto;
}

.system-teasers-section--carousel .system-teaser-card {
  width: 100%;
}

body.category-systems-hub .page-main {
  max-width: 100%;
}

body.category-systems-hub .columns {
  display: block;
}

body.category-systems-hub .column.main {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.category-systems-hub .category-cms,
body.category-systems-hub .category.view.container>.home-latest-container.home-best-seller-container {
  display: none !important;
}

body.category-systems-hub .system-teasers-section {
  padding-top: 24px;
  padding-bottom: 32px;
}

body.category-systems-hub .system-teasers-section__header {
  text-align: left;
}

body.category-systems-hub .system-teasers-section__title {
  font-size: 40px;
}

body.category-systems-hub .system-teasers-section__subtitle {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 1199px) {
  .system-teasers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .system-teasers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-teasers-section__title {
    font-size: 36px;
  }
}

@media (max-width: 575px) {
  .system-teasers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .system-teaser-card__body {
    padding: 16px 16px 20px;
  }

  .system-teaser-card__name {
    font-size: 22px;
    min-height: calc(2 * 1.2em);
  }
}