/* Shared internal hero layout for products-family pages */

/* Product cards: subtle radius shared by Orthodontics and Implantology. */
:is(.page-prodotti, .page-tapered) .prod-card,
:is(.page-prodotti, .page-tapered) .prod-card img,
:is(.page-prodotti, .page-tapered) .prod-card .pc-image,
:is(.page-prodotti, .page-tapered) .prod-card.card-blue {
  border-radius: 3px !important;
}

:is(.page-prodotti, .page-tapered) video {
  display: block;
}

:is(.page-prodotti, .page-tapered) .cat-banner {
  display: block;
  width: 100%;
  background-color: #fff !important;
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

:is(.page-prodotti, .page-tapered) .banner-inner,
:is(.page-prodotti, .page-tapered) .cat-banner .banner-inner.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start !important;
  width: 100%;
  overflow: visible;
  position: static;
}

:is(.page-prodotti, .page-tapered) .banner-text {
  flex-shrink: 0;
  z-index: 20;
  padding-left: 0 !important;
  margin-left: 0 !important;
  align-self: center;
  visibility: visible;
  opacity: 1;
  position: relative;
  text-align: left;
  max-width: 560px;
}

:is(.page-prodotti, .page-tapered) .banner-text h1,
:is(.page-prodotti, .page-tapered) .cat-banner .container h1 {
  font-weight: 700;
  line-height: var(--lh-h1);
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

:is(.page-prodotti, .page-tapered) .banner-text p {
  line-height: var(--lh-body-lg);
  color: #666;
  max-width: 560px;
  margin-top: 1rem;
  font-weight: 400;
}

:is(.page-prodotti, .page-tapered) .banner-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 58%;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  background: transparent;
  visibility: visible;
  opacity: 1;
}

:is(.page-prodotti, .page-tapered) .banner-image video,
:is(.page-prodotti, .page-tapered) .banner-image img {
  width: 135%;
  height: 100%;
  transform: none;
  transform-origin: center right;
  max-width: none;
  margin-bottom: 0;
  border-radius: 0;
}

:is(.page-prodotti, .page-tapered) .banner-image [hidden] {
  display: none;
}

:is(.page-prodotti, .page-tapered) .banner-image img {
  object-fit: cover;
}

:is(.page-prodotti, .page-tapered) .banner-image video {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.page-prodotti .products-editorial {
  padding-top: var(--site-section-gap);
  padding-bottom: var(--site-section-gap);
}

body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .info-panel__label {
  display: none;
}

body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .info-panel h3 {
  color: var(--page-accent, #214ecd);
}

.page-prodotti .products-editorial__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: start;
  max-width: 920px;
}

.page-prodotti .products-editorial__intro .section-title,
.page-prodotti .products-editorial--reasons .section-title {
  color: #121212;
  margin-bottom: 0;
}

.page-prodotti .products-editorial--reasons .section-title,
.page-prodotti #products-section-title {
  margin-bottom: 1.6rem;
}

.page-prodotti .products-section-desc {
  max-width: 680px;
  margin: -0.6rem 0 2rem;
  color: #4d5563;
  line-height: 1.65;
}

.page-prodotti .products-editorial__copy {
  max-width: 82ch;
}

.page-prodotti .products-editorial__copy p {
  margin: 0 0 1.2rem;
  line-height: 1.8;
  color: #4d5563;
}

.page-prodotti .products-editorial__copy p:last-child {
  margin-bottom: 0;
}

.page-prodotti .products-vision {
  margin-top: 0;
  margin-bottom: 0;
  padding: var(--site-section-gap) 0;
}

.page-prodotti .products-vision__row {
  margin-bottom: 0;
}

.page-prodotti .products-vision--additional {
  padding-top: 0;
}

.page-prodotti .products-vision .main-title {
  width: auto;
  max-width: 11ch;
}

html:lang(fr) .page-prodotti #products-vision-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.page-prodotti .products-vision__copy p {
  margin: 1rem 0 0;
}

.page-prodotti .products-vision__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1.25rem;
  max-width: 100%;
}

.page-prodotti .products-vision__ctas .history-cta {
  display: inline-flex;
  flex: 0 1 auto;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  width: auto;
  margin-top: 0;
  padding-right: 16px;
  padding-left: 16px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

body.page-prodotti[data-category="ortodonzia"] .products-vision__media img {
  object-position: center;
}

body.page-prodotti[data-category="ortodonzia"] #products-vision-section .products-vision__media img {
  object-position: center 90%;
}

.page-prodotti .products-vision__media [hidden] {
  display: none;
}

.page-prodotti .products-vision__media::after {
  content: none;
}

body.page-prodotti[data-category="implantologia"] .products-vision--additional .row-top .products-vision__media {
  overflow: hidden;
}

body.page-prodotti[data-category="implantologia"] .products-vision--additional .row-top .products-vision__media img {
  transform: scale(1.18);
  transform-origin: center center;
}

.page-prodotti .products-system {
  padding: var(--site-section-gap) 0;
  background: #fff;
}

.page-prodotti .products-system--cards {
  background: #f5f7fb;
}

.page-prodotti .products-system__split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.page-prodotti .products-system__media {
  display: grid;
  min-height: 460px;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 4rem);
  place-items: center;
  background: #fafafa;
}

.page-prodotti .products-system__media img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
}

.page-prodotti .products-system__label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--page-accent, #214ecd);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-prodotti .products-system .section-title {
  margin: 0;
  color: #121212;
}

.page-prodotti .products-system__intro {
  max-width: 62ch;
  margin: 1.25rem 0 2rem;
  color: #4d5563;
  line-height: var(--lh-body);
}

.page-prodotti .products-system__list {
  border-top: 1px solid #dfe6f2;
}

.page-prodotti .products-system__item {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: 1.35rem 0;
  border-bottom: 1px solid #dfe6f2;
}

.page-prodotti .products-system__item h3 {
  margin: 0;
  color: var(--page-accent, #214ecd);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.page-prodotti .products-system__item p {
  margin: 0;
  color: #4d5563;
  line-height: var(--lh-body);
}

.page-prodotti .products-system__header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-prodotti .products-system__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.page-prodotti .products-system__cards .products-system__item {
  display: block;
  padding: 1.75rem;
  border: 0;
  border-top: 3px solid var(--page-accent, #214ecd);
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 47, 95, 0.07);
}

.page-prodotti .products-system__cards .products-system__item p {
  margin-top: 0.85rem;
}

.page-prodotti .products-editorial__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.page-prodotti .products-editorial__card {
  padding: 1.75rem;
  border: 1px solid #dfe6f2;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 31, 67, 0.06);
}

.page-prodotti .products-editorial__card h3 {
  margin: 0 0 0.85rem;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: #121212;
  position: static;
  padding-left: 0;
}

.page-prodotti .products-editorial--reasons .products-editorial__card h3 {
  color: var(--page-accent, var(--prod-blue, #214ecd));
}

.page-prodotti .products-editorial__card p {
  margin: 0;
  color: #4d5563;
  line-height: var(--lh-body);
}

.page-prodotti .products-editorial__card h3::before {
  content: none;
}

.page-prodotti .products-editorial__details {
  display: grid;
  gap: 1.2rem;
  margin-top: 3rem;
  max-width: 1080px;
}

.page-prodotti .products-extra-editorial__section {
  padding-top: var(--site-section-gap);
  padding-bottom: var(--site-section-gap);
}

.page-prodotti .products-extra-editorial__section header {
  margin-bottom: 2rem;
}

.page-prodotti .products-extra-editorial__section .section-title {
  margin-bottom: 0.75rem;
}

.page-prodotti .products-extra-editorial__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.page-prodotti .products-extra-editorial__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid #dfe6f2;
  background: #fff;
}

.page-prodotti .products-extra-editorial__card figure {
  display: grid;
  height: 190px;
  margin: 0 0 1.25rem;
  place-items: center;
}

.page-prodotti .products-extra-editorial__card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-prodotti .products-extra-editorial__card h3 {
  margin: 0 0 0.75rem;
  color: var(--page-accent, #214ecd);
  font-size: 1.15rem;
  line-height: 1.2;
}

.page-prodotti .products-extra-editorial__card p,
.page-prodotti .products-extra-editorial__note {
  margin: 0;
  color: #4d5563;
  line-height: 1.65;
}

.page-prodotti .products-extra-editorial__workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-prodotti .products-extra-editorial__workflow-item {
  margin: 0;
  border: 1px solid #dfe6f2;
}

.page-prodotti .products-extra-editorial__workflow-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-prodotti .products-extra-editorial__note {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.page-prodotti .products-editorial__detail h3 {
  margin: 0 0 0.25rem;
  color: #121212;
  font-size: 1.35rem;
  line-height: 1.2;
}

.page-prodotti .products-editorial__detail p {
  margin: 0;
  color: #121212;
  line-height: 1.35;
}

.page-prodotti .prod-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: color 220ms ease;
}

.page-prodotti :is(a[href]:not([href="#"]), button, [role="button"]).prod-card:hover,
.page-prodotti .prod-card:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  outline: none;
  z-index: 1;
}

.page-prodotti .prod-card .pc-image {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  border: 1px solid rgba(10, 43, 76, 0.1);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.page-prodotti .pc-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  transition: transform 220ms ease;
}

.page-prodotti .prod-card:hover .pc-image,
.page-prodotti .prod-card:focus-visible .pc-image {
  border-color: rgba(10, 43, 76, 0.24);
  box-shadow: 0 18px 40px rgba(10, 43, 76, 0.08);
  transform: translateY(-3px);
}

.page-prodotti .prod-card:hover .pc-image img,
.page-prodotti .prod-card:focus-visible .pc-image img {
  transform: scale(1.025);
}

.page-prodotti .prod-card .pc-title {
  margin: 0.8rem 0 0;
  color: #0a2b4c;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.25;
}

.page-prodotti .prod-card .pc-title-suffix {
  font-weight: 400;
}

.page-prodotti .prod-card .pc-desc {
  margin: 0.45rem 0 0;
  color: #586f86;
  font-size: 0.94rem;
  line-height: 1.5;
}

.page-prodotti .prod-card.center-text,
.page-prodotti .prod-card.card-blue {
  aspect-ratio: 1 / 1;
  padding: 1rem;
}

.page-prodotti .prod-card.card-blue {
  border: 1px solid var(--page-accent, var(--prod-blue, #214ecd));
  box-shadow: none;
}

.page-prodotti .prod-card.card-blue:hover,
.page-prodotti .prod-card.card-blue:focus-visible {
  border-color: var(--page-accent-hover, var(--prod-blue-hover, #163caa));
  box-shadow: none;
}

@media (max-width: 1024px) {
  :is(.page-prodotti, .page-tapered) .banner-inner,
  :is(.page-prodotti, .page-tapered) .cat-banner .banner-inner.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
  }

  :is(.page-prodotti, .page-tapered) .banner-image {
    position: relative;
    width: 100%;
    height: 420px;
  }

  :is(.page-prodotti, .page-tapered) .banner-image video,
  :is(.page-prodotti, .page-tapered) .banner-image img {
    width: 100%;
    height: 100%;
  }

  .page-prodotti .products-editorial__grid,
  .page-prodotti .products-editorial__cards,
  .page-prodotti .products-extra-editorial__cards,
  .page-prodotti .products-extra-editorial__workflow,
  .page-prodotti .products-system__cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-prodotti .products-system__split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-prodotti .products-system__media {
    min-height: 360px;
  }

  .page-prodotti .products-system__item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .page-prodotti .products-vision .main-title {
    max-width: none;
  }

  .page-prodotti .card-badges {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  :is(.page-prodotti, .page-tapered) .banner-inner,
  :is(.page-prodotti, .page-tapered) .cat-banner .banner-inner.container {
    gap: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  :is(.page-prodotti, .page-tapered) .banner-text h1,
  :is(.page-prodotti, .page-tapered) .cat-banner .container h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
  }

  :is(.page-prodotti, .page-tapered) .banner-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .page-prodotti .products-editorial__card {
    padding: 1.15rem;
  }

  .page-prodotti .products-vision {
    margin-top: 0;
    padding: var(--site-section-gap) 0;
  }

  .page-prodotti .products-vision__ctas {
    flex-wrap: wrap;
  }
}

/* Hero delle categorie cliniche: trattamento visivo condiviso. */
body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .cat-banner::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, #fff 32%, rgba(255, 255, 255, 0.72) 45%, rgba(255, 255, 255, 0) 66%);
  content: "";
  pointer-events: none;
}

body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .cat-banner .banner-inner.container {
  display: flex;
  align-items: center !important;
  gap: 0;
  padding: calc(var(--header-height) + 4rem) 20px 4rem;
}

body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .cat-banner .banner-text {
  width: 100%;
  max-width: none;
  align-self: auto;
}

body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .cat-banner .banner-text h1 {
  max-width: 11ch;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: 0;
}

body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .cat-banner .banner-text p {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: #121212;
  line-height: 1.65;
}

body.page-prodotti[data-category="ortodonzia"] .cat-banner .banner-text p {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: #222;
}

body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .cat-banner .banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .cat-banner .banner-image video,
body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .cat-banner .banner-image img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 769px) {
  body.page-prodotti[data-category="implantologia"] .cat-banner .banner-image img {
    object-fit: contain;
    object-position: right center;
    transform: scale(1.6);
    transform-origin: right center;
  }
}

@media (max-width: 768px) {
  body.page-prodotti:is([data-category="ortodonzia"], [data-category="implantologia"]) .cat-banner::before {
    background: linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255, 255, 255, 0.92) 68%, rgba(255, 255, 255, 0.48) 86%, rgba(255, 255, 255, 0.12) 100%);
  }

}
