/* =========================================================
   PELLIZZONNI PRODUCT HERO – FIXED VERSION
   ========================================================= */

/* ---------------------------------------------------------
   HERO ROOT
   --------------------------------------------------------- */

.pellizzonni-hero-raw {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
}

.pellizzonni-hero-raw:after,
.pellizzonni-designer-section:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  height: .0625rem;
  width: 100%;
  background-image: linear-gradient(to right, #000000 33%, rgba(255, 255, 255, 0) 0);
  background-position: bottom;
  background-size: 3px 1px;
  background-repeat: repeat-x;
}

@media (max-width: 767px) {
  .pellizzonni-hero-raw {
    display: flex;
    flex-direction: column;
  }

  .pellizzonni-hero-raw:after {
    visibility: hidden;
  }
}


/* ---------------------------------------------------------
   BACKGROUND PANEL (REAL ELEMENT, NOT ::before)
   --------------------------------------------------------- */

.pellizzonni-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-color: #f3f3f3;
  z-index: 0;
}

@media (max-width: 767px) {
  .pellizzonni-hero-bg {
    height: 100%;
  }
}

/* ---------------------------------------------------------c
   SCROLLING BACKGROUND TEXT
   --------------------------------------------------------- */

.pellizzonni-hero-marquee {
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;

}

@media (max-width: 767px) {
  .pellizzonni-hero-marquee {
    position: absolute;
    top: 10%;
  }
}

.co-strip-band-2 {
  overflow: hidden;
}

.co-strip-band-2__track {
  display: flex;
  width: max-content;
  animation: stripLoop var(--rc-strip-speed, 18s) linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.co-strip-band-2__item {
  flex: 0 0 auto;
  padding-right: 3vw;
}

.co-strip-band-2__text {
  white-space: nowrap;
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes stripLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .co-strip-band-2__track {
    animation: none;
  }
}

/* ---------------------------------------------------------
   HERO IMAGE (CENTER, BOTTOM-ANCHORED)
   --------------------------------------------------------- */

.pellizzonni-hero-image {
  position: absolute;
  left: 50%;
  top: 6rem;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: darken;
  width: 100%;
}

.pellizzonni-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 95vh;
  object-fit: contain;

}

@media (max-width: 767px) {
  .pellizzonni-hero-image {
    position: relative;
    left: unset;
    transform: none;
    top: 50px;
    flex: 1;
  }

  .pellizzonni-hero-image img {
    width: auto;
    transform-origin: top;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    max-height: none;
    position: absolute;
  }

}

/* ---------------------------------------------------------
   HERO TEXT
   --------------------------------------------------------- */

.pellizzonni-hero-text {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 3;
  /*     pointer-events: none; */
  display: flex;
  mix-blend-mode: difference;
  flex-direction: column;
  padding: 50px;
}

.pellizzonni-hero-text:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  height: .0625rem;
  width: 100%;
  background-image: linear-gradient(to right, #ffffff 33%, rgba(255, 255, 255, 0) 0);
  background-position: bottom;
  background-size: 3px 1px;
  background-repeat: repeat-x;
}

.pellizzonni-hero-text:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  height: .0625rem;
  width: 100%;
  background-image: linear-gradient(to right, #ffffff 33%, rgba(255, 255, 255, 0) 0);
  background-position: bottom;
  background-size: 3px 1px;
  background-repeat: repeat-x;
}

@media (max-width: 1024px) {
  .pellizzonni-hero-text {
    position: relative;
    order: 2;
  }
}

/* ---------------------------------------------------------
   CATEGORY / BREADCRUMB
   --------------------------------------------------------- */

.pellizzonni-primary-cat {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.pellizzonni-primary-cat .cat-parent {
  display: none;
}

.pellizzonni-primary-cat .cat-label {
  font-size: 1.1rem;
  color: white;
  text-decoration: underline;
  font-weight: 200;
}

/* ---------------------------------------------------------
   PRODUCT TITLE (FIXED SELECTOR)
   --------------------------------------------------------- */

.pellizzonni-post-title {
  margin: 0;
  font-size: clamp(1rem, 10vw, 9rem);
  font-family: var(--font-stack-heading);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;

}

/* ---------------------------------------------------------
   BRAND LINE
   --------------------------------------------------------- */

.pellizzonni-brand {
  display: block;
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #ffffff;
  mix-blend-mode: difference;
}

/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */
.pellizzonni-logo-image {
  display: block;
  position: absolute;
  bottom: 50px;
  width: 100%;
  max-width: 1920px;
  left: 50%;
  transform: translate(-50%, 0px);
  padding: 0px 50px;
}

.pellizzonni-logo-image svg {
  width: 200px
}

.pellizzonni-logo-image path {
  fill: black;
}

@media (max-width: 767px) {
  .pellizzonni-logo-image {
    position: relative;
    bottom: unset;
    left: unset;
    transform: none;
    padding: 0px;
  }

  .pellizzonni-logo-image svg {
    width: 200px;
    max-width: 40vw;
    min-width: 125px;
    padding: 0px 20px;
  }
}

/*3rd section*/

.overview-section .product-image img {
  width: calc(100% - 100px) !important;
  max-height: 70vh;
  object-fit: contain;
  object-position: right;
}

@media (max-width: 1200px) {
  .overview-section .product-image img {
    width: calc(100% - 50px) !important;
  }

}

@media (max-width: 767px) {
  .overview-section .product-image img {
    width: 100% !important;
    height: auto;
    max-height: none;
  }
}


.overview-section .vertical-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6rem;
  z-index: 1;
}

@media (max-width: 1200px) {
  .overview-section .vertical-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 1;
  }
}

.overview-section .vertical-text .elementor-heading-title {
  display: inline-block;
  transform: rotate(90deg);
  white-space: nowrap;
  background: #fff;
  /* white mask */
  padding: 0px 20px;
  /* space around text */
  position: relative;
}


.tag-pellizzoni .overview-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* full height of overview-section */
  left: 50%;
  width: .0625rem;

  background-image: linear-gradient(to bottom,
      #000 33%,
      rgba(255, 255, 255, 0) 0);
  background-size: 1px 3px;
  background-repeat: repeat-y;
}

.overview-section .right .product-description {
  max-width: 377px !important;
  display: block;
}

@media (max-width: 767px) {
  .overview-section .vertical-text {
    display: none;
  }

  .tag-pellizzoni .overview-section::after {
    display: none;
  }

  .overview-section .right {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
  }

  .overview-section .description-label {
    display: flex;
    align-self: flex-start;
  }

  .overview-section .description-label span {
    font-size: 1.65rem;
  }
}

/* ===============================
   Pellizzoni Download Styling
   =============================== */

.downloads-section a {
  color: #000000;
  text-decoration: underline;
  font-size: 0.9em;
  display: flex;
  line-height: 40px;
}

.downloads-section a:last-child {
  border-right: none;
}

.downloads-section summary.e-n-accordion-item-title {
  display: flex;
  justify-content: space-between !important;
  border-bottom: solid 1px #888686 !important;
}

.downloads-section .e-n-accordion details>div[role="region"] {
  border: none !important;
}


/* =========================
   Category Grid Alignment
   ========================= */
.categories-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.category-grid-card {
  max-width: 30%;
}


/* ICON WRAPPER */


/* Normalize SVG sizes */
.categories-grid .elementor-widget-image {
  width: auto !important;
  height: 100% !important;
  max-height: 180px;
  max-width: 90% !important;
}

.category-grid-card:hover .cat-svg-img {
  display: none;

}

.category-grid-card .cat-svg-img-hover {
  display: none;

}

.category-grid-card:hover .cat-svg-img-hover {
  display: block;

}

/* Remove any borders Elementor might add */
.categories-grid .elementor-heading-title {
  border: none !important;
  position: relative;
  text-align: center;
}

/* Decorative line ABOVE the text */
.categories-grid .elementor-widget-heading {
  margin-top: 0px !important;
  position: relative;
  width: 100%;
}

.categories-grid .elementor-widget-heading::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #000;
  margin: 0 auto 20px auto;
}

@media (max-width: 767px) {
  .categories-grid .elementor-widget-heading::before {
    margin: 0 auto 5px auto;
  }

  .category-grid-card span.elementor-heading-title {
    font-size: 1rem;
  }
}

.category-grid-card span {
  color: black;
}

/*Button stlye*/

a.contact-btn-line.black {
  color: black;
}

a.contact-btn-line.black:hover {
  color: #c5a76d;
}

a.contact-btn-line.black path {
  stroke: black;
}

a.contact-btn-line.black:hover path {
  stroke: #c5a76d;
}

.contact-btn-line.black span {
  transition: none;
}


/*Marelli*/
.marelli-hero-image {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.marelli-hero-image img {
  width: 100%;
  object-fit: cover;
  height: 100%;
}

.marelli-post-title {
  margin: 0;
  font-size: clamp(1rem, 9vw, 4rem) !important;
  font-family: var(--font-stack-heading);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
}

/* the current logic with negative margin 
breaks on too many product pages */
@media screen and (min-width: 1025px) {
  .durame-designer-section {
    margin-top: 50px !important;
  }
  .durame-hero-image img {
    border: none !important; /* lets keep the border only on mobile*/
  }
}

@media screen and (max-width: 1023px) {
  .marelli-post-title {
    font-size: clamp(1rem, 6vw, 4rem) !important;
    overflow-wrap: break-word;
  }
}

@media screen and (max-width: 480px) {
  .marelli-post-title {
    font-size: 1.5rem !important;
  }
}

.marelli-primary-cat {
  color: white;
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
}

.marelli-primary-cat a {
  color: white;
}



.marelli-hero .brand-mention {
  color: white;
}

.marelli-hero-logo {
  position: absolute;
  bottom: 20px;
  width: 30vw;
  max-width: 180px !important;
}

.marelli-hero-logo img {
  width: 100%;
}

/*Marelli explore category*/
.tag-marelli .category-grid-card {
  display: block;
  max-width: 38vw;
}

.tag-marelli .categories-grid {
  gap: 25px;
}

.tag-marelli .categories-grid .elementor-widget-heading {
  margin-top: 5px !important;
}

/*Durame*/

/* ---------------------------------------------------------
   PRODUCT TITLE (FIXED SELECTOR)
   --------------------------------------------------------- */

.durame-post-title h1 {
  margin: 0;
  font-size: clamp(1rem, 10vw, 9rem);
  font-family: var(--font-stack-heading);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;

}

.durame-primary-cat {
  text-align: center;
}

.durame-primary-cat a {
  color: black;
}

.durame-hero-image {
  display: flex;
  justify-content: center;
  z-index: -1;
}


.durame-hero-image img {
  transform: translateY(100px);
  margin-top: -25vh;
  object-fit: contain;
  height: 75vh;
  width: auto;
  border: solid;
  /* 	aspect-ratio: 1 / 1; */
}

.italian-product-hero-overlay .marelli-hero::before {
    content: "";
    background: #0000006b;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.italian-product-hero-overlay .marelli-hero > *:not(.marelli-hero-image) {
  z-index: 2;
}

@media screen and (max-width: 767px) {
  .durame-hero-image img {
    margin: 0;
    height: 50vh;
    transform: none;
    background: white;
    max-width: 90%;
    object-position: 100% 100%;
  }

  /* instead of negative margin, add a black container
  to make it look like figma */
  .durame-hero-image::after {
    content: "";
    background: #1F1F1F;
    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 0;
    z-index: -1;
  }
}

.durame-designer-img {
  max-height: 500px;
}

/* .durame-hero-image{
	max-width:700px;
} */

/* .durame-hero-image {
    display: block;
    margin-top: calc(-97px - 40vh);
    z-index: -1;
    transform: translateY(140px);
} */
.durame-hero {
  padding-top: 100px;
  overflow: hidden;
}

.durame-hero .white-bg-con {
  z-index: 1;
}

.durame-hero .black-bg-con:before {
  content: "";
  width: 200%;
  height: 100%;
  background: #1F1F1F;
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.tag-durame .downloads-section {
  color: white;
}

.tag-durame .materials-heading h3,
.tag-durame .dimensions-heading h3,
.tag-durame .downloads-heading h3 {
  font-family: var(--font-stack-heading);
  color: white;
  font-weight: 300;
  font-size: 1.5rem;
}

.tag-durame .categories-grid .elementor-widget-heading::before {
  background: #ffffff;

}