/* ---- BUTTONS and LINKS ---- */

.row-default-content a,
.cta-primary:visited,
.cta-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 8px 8px 12px;
  font-size: var(--default-font-size);
  font-weight: 600;
  text-decoration: none;
  background-position: right 10px center;
  background-size: 10px;
  font-weight: 600;
  display: flex;
  max-width: fit-content;
  align-items: center;
  gap: 2px;
}
.row-default-content a:hover,
.cta-primary:hover {
  background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.16) 100%
    ),
    #00b3d0;
}

.cta-secondary,
.cta-secondary:visited {
  background-color: transparent;
  padding: 8px;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  text-decoration: none;
  line-height: var(--line-height-140);
  font-size: var(--body-S);
  font-weight: 600;
}
.cta-secondary:hover {
  border: 1px solid var(--secondary-color);
  background: rgba(0, 179, 208, 0.08);
}

.row-default-content a::after,
.cta-primary::after {
  content: "";
  display: inline-block;
  height: 20px;
  width: 20px;
  background-image: url(../img/arrow-right.svg);
  background-repeat: no-repeat;
  background-position: center;
}

.row-default-content a {
  margin-top: var(--space-M);
}

.cta-mobile-menu {
  padding: 16px 24px;
  border: 1px solid var(--secondary-color);
  display: block;
  max-width: fit-content;
  margin-top: auto;
}
.mobile-main-menu li.cta-mobile-menu a {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: var(--title-XS);
  line-height: var(--line-height-150);
  text-decoration: none;
  padding: 0;
}

.grid5-image {
  width: 381px;
  height: 215px;
  background-image: url(../img/grid5.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  position: absolute;
}
.grid4-image {
  width: 336px;
  height: 160px;
  background-image: url(../img/grid4.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  position: absolute;
}

@media (max-width: 768px) {
  .cta-primary,
  .cta-secondary,
  .row-default-content a,
  .banner-pdf-demo a.cta {
    padding: 16px 24px;
  }
}

/* ---- HEROES ---- */

/* classe per tutte le hero */
.row-hero {
  position: relative;
}

.row-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hero-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

.hero-title {
  font-size: var(--hero-title-size);
  color: var(--hero-title-color);
  margin-block: 8px;
}

.hero-subtitle {
  font-size: var(--hero-subtitle-size);
  color: var(--hero-title-color);
  margin-block: 8px;
  line-height: var(--line-height-140);
}

/* hero default */
.row-hero-default {
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.row-hero-homepage-image::after,
.row-hero-default::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: linear-gradient(
      270deg,
      rgba(29, 29, 27, 0) 0%,
      rgba(29, 29, 27, 0.4) 63.46%,
      rgba(29, 29, 27, 0.5) 100%
    ),
    linear-gradient(
      237deg,
      rgba(82, 203, 223, 0) 59.88%,
      rgba(82, 203, 223, 0.3) 100%
    );
}

.row-hero-default .cont {
  z-index: 1;
}

/* .row-hero-default:has(.hero-cta) {
  height: 560px;
} */
.row-hero-default .hero-cta {
  margin-top: var(--space-M);
}

@media (max-width: 768px) {
  .row-hero-default {
    height: 256px;
    background-position-x: 70%;
  }
  .row-hero-default:has(.hero-cta) {
    height: 400px;
  }
  .row-hero-default .hero-cta {
    padding: 16px 20px 16px 24px;
  }
  .row-hero-default::after {
    background: rgba(29, 29, 27, 0.3);
  }
}

@media (min-width: 1920px) {
  .row-hero-default {
    height: 560px;
  }
}

/* Hero video */

.row-hero-video {
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.row-hero-video .hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.row-hero-video .hero-background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-hero-video::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: linear-gradient(
    270deg,
    rgba(29, 29, 27, 0) 0%,
    rgba(29, 29, 27, 0.4) 63.46%,
    rgba(29, 29, 27, 0.5) 100%
  );
}

.row-hero-video .cont {
  z-index: 1;
  position: relative;
}

.row-hero-video:has(.hero-cta) {
  height: 560px;
}
.row-hero-video .hero-cta {
  margin-top: var(--space-M);
}

@media (max-width: 768px) {
  .row-hero-video {
    height: 256px;
  }
  .row-hero-video:has(.hero-cta) {
    height: 400px;
  }
  .row-hero-video .hero-cta {
    padding: 16px 20px 16px 24px;
  }
  .row-hero-video::after {
    background: rgba(29, 29, 27, 0.3);
  }
}

@media (min-width: 1920px) {
  .row-hero-video {
    height: 560px;
  }
}

/* Hero Homepage Image */
.row-hero-homepage-image {
  /* height: calc(100vh - var(--navbar-height)); */
  height: calc(100vh);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

/* .row-hero-homepage-image::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: linear-gradient(237deg, rgba(82, 203, 223, 0.00) 59.88%, rgba(82, 203, 223, 0.30) 100%), linear-gradient(0deg, #000 0%, #000 100%), linear-gradient(270deg, rgba(29, 29, 27, 0.00) 0%, rgba(29, 29, 27, 0.40) 63.46%, rgba(29, 29, 27, 0.50) 100%), url(<path-to-image>) lightgray 50% / cover no-repeat, url(<path-to-image>) lightgray 50% / cover no-repeat;
  z-index: 0;
} */

.row-hero-homepage-image .cont {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}

.row-hero-homepage-image .hero-subtitle {
  background-image: url(../img/nayad-logo.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 360px;
  height: 64px;
  text-indent: -9999px;
  overflow: hidden;
  margin: 0;
}

.row-hero-homepage-image .hero-title {
  font-size: var(--hero-home-title-size);
  color: white;
  line-height: var(--line-height-150);
  margin: 8px 0;
  font-weight: 700;
}

.row-hero-homepage-image .hero-cta {
  margin-top: 24px;
  padding: 16px 24px;
}

.row-hero-homepage-image .hero-cta::after {
  display: none;
}

@media (max-width: 768px) {
  .row-hero-homepage-image {
    height: 100vh;
    background-position: center;
  }

  .row-hero-homepage-image .hero-subtitle {
    width: 120px;
    height: 21px;
  }

  .row-hero-homepage-image .hero-title {
    font-size: var(--title-L);
  }
}

/* Hero Homepage Video */
.row-hero-homepage-video {
  /* height: calc(100vh - var(--navbar-height)); */
  height: 100vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.row-hero-homepage-video .hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.row-hero-homepage-video .hero-background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-hero-homepage-video::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: rgba(29, 29, 27, 0.4);
  z-index: 0;
}

.row-hero-homepage-video .hero-content {
  z-index: 1;
  position: relative;
  width: 100%;
}

.row-hero-homepage-video .cont {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}

.row-hero-homepage-video .hero-subtitle {
  background-image: url(../img/nayad-logo.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 360px;
  height: 64px;
  text-indent: -9999px;
  overflow: hidden;
  margin: 0;
}

.row-hero-homepage-video .hero-title {
  font-size: var(--hero-home-title-size);
  color: white;
  line-height: var(--line-height-150);
  margin: 8px 0;
  font-weight: 700;
}

.row-hero-homepage-video .hero-cta {
  margin-top: 24px;
  padding: 16px 24px;
}

.row-hero-homepage-video .hero-cta::after {
  display: none;
}

@media (max-width: 768px) {
  .row-hero-homepage-video {
    height: 100vh;
  }

  .row-hero-homepage-video .hero-subtitle {
    display: none;
  }

  .row-hero-homepage-video {
    height: 480px;
  }
  .row-hero-homepage-video .hero-title {
    /* font-size: var(--title-L); */
  }
}

/* ---- ICON SECTION ---- */

.icon-section:not(.highlight) {
  margin-block: var(--space-XL);
}
.icon-section h2 {
  margin-top: 0;
  margin-bottom: var(--space-M);
}
.icon-section h2.left {
  text-align: left;
  max-width: 728px;
}
.icon-section h2.center {
  text-align: center;
}

.icon-section p {
  margin: 0px;
}
.icon-section .number {
  font-size: 5rem;
  font-weight: 500;
  line-height: 1;
}

.icon-section .number + .text-group,
.icon-section img + .text-group {
  margin-top: 8px;
}

.icon-section .cta-primary {
  margin-top: var(--space-M);
  margin-inline: auto;
}

.icon-section .layout-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: var(--space-M);
}
.icon-section .layout-3,
.icon-section .layout-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: var(--space-M);
}
.icon-section .layout-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--space-M);
}

.icon-section .layout-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: var(--space-M);
}

.layout-5 .icon-box:nth-child(1) {
  grid-column: 1/3;
}
.layout-5 .icon-box:nth-child(2) {
  grid-column: 3/5;
}
.layout-5 .icon-box:nth-child(3) {
  grid-column: 5/7;
}
.layout-5 .icon-box:nth-child(4) {
  grid-column: 2/4;
}
.layout-5 .icon-box:nth-child(5) {
  grid-column: 4/6;
}

@media (max-width: 768px) {
  .icon-section [class*="layout-"] {
    grid-template-columns: 1fr;
  }
  .icon-box {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .layout-5 .icon-box:nth-child(n) {
    grid-column: auto;
  }

  .icon-section h2.center,
  .icon-section h2.left {
    text-align: left;
  }
  .icon-section .number {
    width: 40px;
    height: 72px;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.125;
  }
  .icon-section img {
    width: 55px;
    height: 55px;
  }
  .icon-section .number + .text-group,
  .icon-section img + .text-group {
    margin-top: 0;
  }

  .icon-section .cta-primary {
    margin-left: 0px;
  }
}

.icon-section:has(+ footer) {
  border-bottom: 1px solid var(--secondary-color);
}

/* ---- ICON SECTION HORIZONTAL ---- */

.row.icon-section-horizontal {
  margin-block: var(--space-XL);
}

.icon-section-horizontal.highlight {
  background-color: var(--primary-color);
  padding-block: var(--space-XL);
  margin-block: 0;
}

.icon-section-horizontal .horizontal-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-L);
}

.icon-section-horizontal .text-column {
  flex: 0 1 40%;
  display: flex;
  flex-direction: column;
  gap: var(--space-M);
  align-self: flex-start;
  padding-top: 16px;
}

.icon-section-horizontal .text-column h2 {
  color: var(--primary-color);
  margin: 0;
  font-size: var(--title-L);
  font-weight: 700;
  line-height: var(--line-height-125);
}

.icon-section-horizontal.highlight .text-column h2 {
  color: white;
}

.icon-section-horizontal .text-column .cta-primary {
  margin-top: 0;
  align-self: flex-start;
}

.icon-section-horizontal .icons-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.icon-section-horizontal .icon-box-horizontal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--primary-color);
}

.icon-section-horizontal.highlight .icon-box-horizontal {
  border-bottom: 1px solid white;
}

.icon-section-horizontal .icon-box-horizontal:last-child {
  border-bottom: none;
}

.icon-section-horizontal .icon-box-horizontal img {
  width: 47px;
  height: 48px;
  flex-shrink: 0;
}

.icon-section-horizontal .icon-box-horizontal .text-group {
  flex: 1;
}

.icon-section-horizontal .icon-box-horizontal .text-group p {
  color: var(--primary-color);
  margin: 0;
  font-size: var(--default-font-size);
  line-height: var(--line-height-150);
  font-weight: 400;
}

.icon-section-horizontal.highlight .icon-box-horizontal .text-group p {
  color: white;
}

@media (max-width: 768px) {
  .icon-section-horizontal .horizontal-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-M);
  }

  .icon-section-horizontal .text-column {
    flex: 1;
    width: 100%;
  }

  .icon-section-horizontal .icons-column {
    width: 100%;
    gap: var(--space-S);
  }

  .icon-section-horizontal .icon-box-horizontal {
    gap: 12px;
    padding: 12px 0;
  }

  .icon-section-horizontal .text-column h2 {
    font-size: var(--title-M);
  }
}

/* ---- SHOWCASE SECTION ---- */

.showcase-section {
  background: var(--showcase-gradient);
  padding-block: var(--space-XL);
  color: white;
}

.showcase-section .cont {
  position: relative;
  padding-bottom: 48px;
}

.showcase-section .showcase-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.showcase-section .text-row {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 833px;
}

.showcase-section .showcase-title {
  font-size: var(--title-L);
  font-weight: 700;
  line-height: var(--line-height-125);
  margin: 0;
  color: var(--primary-color);
  text-align: center;
}

.showcase-section .showcase-content {
  font-size: var(--default-font-size);
  line-height: var(--line-height-175);
  text-align: center;
}

.showcase-section .showcase-content p {
  margin: 0 0 var(--space-S) 0;
  color: var(--primary-color);
}

.showcase-section .showcase-content p:last-child {
  margin-bottom: 0;
}

.showcase-section .image-row {
  flex: 1;
  display: flex;
  justify-content: center;
}

.showcase-section .showcase-image {
  max-width: 960px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 32px 64px 0 #004f61;
  z-index: 2;
}

.showcase-section .showcase-image img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-section .grid5-image {
  position: absolute;
  bottom: 0;
  left: 0;
}

@media (max-width: 768px) {
  .showcase-section .showcase-layout {
    flex-direction: column;
    gap: var(--space-M);
    text-align: center;
    flex-direction: column-reverse;
  }
  .showcase-section .cont {
    padding-bottom: 0;
  }

  .showcase-section .showcase-title {
    margin-bottom: 8px;
  }
  .showcase-section .text-row {
    flex: 1;
    order: 2;
  }

  .showcase-section .image-row {
    order: 1;
    width: 100%;
  }

  .showcase-section .showcase-title {
    font-size: var(--title-XL);
  }
  .showcase-section .grid5-image {
    width: 184px;
    height: 108px;
    left: 50%;
    transform: translate(-50%, 50%);
  }
}

/* -- TEXT - IMAGE 2 COLUMNS (highlith and flipped) -- */

.slide-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  container-type: inline-size;
}

.slide-content-wrapper .slide-image-column {
  flex: 1 4 768px;
  max-width: 768px;
  height: 480px;
  overflow: hidden;
  position: relative;
}

.slide-content-wrapper .slide-image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 55% 0, 87% 100%, 0 100%);
}
.slide-content-wrapper .slide-image-column {
  position: relative;
}

.slide-content-wrapper .slide-image-column::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 55% 0, 87% 100%, 0 100%);
  background: linear-gradient(
    240deg,
    rgba(82, 203, 223, 0) 72.23%,
    rgba(82, 203, 223, 0.5) 97.88%
  );
  pointer-events: none;
}
.slide-content-wrapper.flipped .slide-image-column img {
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 13% 100%);
}

.slide-content-wrapper.flipped .slide-image-column::after {
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 13% 100%);
}
.slide-content-wrapper:not(.flipped) .slide-image-column::after {
  transform: rotateY(180deg);
  clip-path: polygon(100% 0, 45% 0, 13% 100%, 100% 100%);
}

.slide-content-wrapper .slide-image-column video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content-wrapper.flipped .slide-image-column .grid4-image {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
}
.slide-content-wrapper:not(.flipped) .slide-image-column .grid4-image {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
}

.slide-content-wrapper .slide-text-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 2 536px;
  max-width: 536px;
  margin-left: clamp(-150px, -25cqw, -268px);
  z-index: 2;
}
.slide-content-wrapper:not(.flipped) .slide-text-column {
  text-align: end;
}
.slide-content-wrapper .slide-text-column .slide-title {
  color: var(--primary-color);
  font-size: var(--title-L);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-125);
  margin: 0;
}
.slide-content-wrapper.small-title .slide-text-column .slide-title {
  font-size: var(--title-M);
}

.slide-content-wrapper .slide-text-column .slide-text-content p {
  font-weight: 400;
  margin-top: 16px;
  margin-bottom: 32px;
}
.slide-content-wrapper.small-title .slide-text-column .slide-text-content p {
  margin-top: 0;
}

.slide-content-wrapper .slide-text-column .slide-link {
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  max-width: fit-content;
  padding: 16px 12px 16px 16px;
}

.slide-content-wrapper .slide-text-column .slide-link:visited {
  color: var(--primary-color);
}

.slide-content-wrapper:not(.flipped) .slide-text-column .slide-link {
  align-self: flex-end;
}
.slide-content-wrapper.even .slide-image-column,
.slide-content-wrapper.even .slide-text-column {
  flex: 1 1 50%;
  max-width: 100%;
}

.slide-content-wrapper.even .slide-link {
  text-transform: initial;
}
.row.row-slide-title {
  margin-top: var(--space-L);
  text-align: center;
}
.row-slide:has(> .highlight) {
  padding-block: var(--gap80-to-56);
}

.row-slide:has(> .highlight) .slide-link,
.row-slide:has(> .highlight) .slide-link:visited {
  color: white;
  text-transform: uppercase;
  text-align: center;
  padding: 16px 24px;
  border: none;
  font-weight: 400;
}

.slide-content-wrapper.flipped {
  flex-direction: row-reverse;
}

.slide-content-wrapper.flipped .slide-text-column {
  margin-left: 0;
  margin-right: clamp(-150px, -25cqw, -268px);
}

@media (max-width: 840px) {
  /* In tutti i casi, voglio vadano in colonna */
  .cont.slide-content-wrapper,
  .row-slide:not(.auto-flip) .cont.slide-content-wrapper.flipped,
  .row-slide.flipped.auto-flip:nth-of-type(2n) .cont.slide-content-wrapper,
  .row-slide.auto-flip:not(.flipped):nth-of-type(2n + 1)
    .cont.slide-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .cont.slide-content-wrapper .slide-image-column,
  .row-slide:not(.auto-flip)
    .cont.slide-content-wrapper.flipped
    .slide-image-column,
  .row-slide.flipped.auto-flip:nth-of-type(2n)
    .cont.slide-content-wrapper
    .slide-image-column,
  .row-slide.auto-flip:not(.flipped):nth-of-type(2n + 1)
    .cont.slide-content-wrapper
    .slide-image-column {
    flex: 1 1 280px;
    /* Altezza */
    width: 100%;
    max-height: 280px;
  }
  .slide-content-wrapper {
    gap: 16px;
  }

  .cont.slide-content-wrapper .slide-text-column,
  .row-slide:not(.auto-flip)
    .cont.slide-content-wrapper.flipped
    .slide-text-column,
  .row-slide.flipped.auto-flip:nth-of-type(2n)
    .cont.slide-content-wrapper
    .slide-text-column,
  .row-slide.auto-flip:not(.flipped):nth-of-type(2n + 1)
    .cont.slide-content-wrapper
    .slide-text-column {
    flex: 1;
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .cont.slide-content-wrapper .slide-text-column p,
  .row-slide:not(.auto-flip)
    .cont.slide-content-wrapper.flipped
    .slide-text-column
    p,
  .row-slide.flipped.auto-flip:nth-of-type(2n)
    .cont.slide-content-wrapper
    .slide-text-column
    p,
  .row-slide.auto-flip:not(.flipped):nth-of-type(2n + 1)
    .cont.slide-content-wrapper
    .slide-text-column
    p {
    margin: 0;
  }

  .row-slide:has(> .highlight) .cont.slide-content-wrapper .slide-link,
  .row-slide:has(> .highlight) .cont.slide-content-wrapper .slide-link:visited {
    color: white;
    margin-top: 24px;
    background-color: var(--marrone-peck);
    /* text-transform: initial; */
    text-align: center;
    padding: 16px 24px;
    border: none;
  }

  .row-slide .cont.slide-content-wrapper .slide-link {
    font-style: normal;
    font-weight: 600;
    line-height: 1.33;
    align-self: flex-start;
    letter-spacing: 0.0175rem;
    /* text-transform: capitalize; */
    padding: 16px 24px;
    margin-top: 16px;
  }

  .slide-content-wrapper .slide-text-column .slide-title {
    margin-top: 16px;
  }
  .slide-content-wrapper:not(.flipped) .slide-text-column {
    text-align: left;
  }

  .slide-content-wrapper .slide-image-column img,
  .slide-content-wrapper.flipped .slide-image-column img {
    clip-path: none;
  }

  .slide-content-wrapper:not(.flipped) .slide-image-column::after,
  .slide-content-wrapper.flipped .slide-image-column::after {
    clip-path: none;
  }
}
@media (max-width: 680px) {
  .slide-content-wrapper .slide-image-column .grid4-image,
  .slide-content-wrapper.flipped .slide-image-column .grid4-image {
    width: 150px;
    height: 78px;
  }
}

/* -- BANNER PDF DEMO --- */
.banner-pdf-demo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 480px;
  color: var(--banner-text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.banner-pdf-demo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  clip-path: polygon(0 0, 48% 0, 27% 100%, 0% 100%);
}
.banner-pdf-demo .cont {
  position: relative;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
}

.banner-pdf-demo .grid5-image {
  position: absolute;
  bottom: 40px;
  right: 0px;
}
.banner-pdf-demo.smaller {
  min-height: 320px;
}

.banner-pdf-demo .text-wrapper {
  max-width: 536px;
}

.banner-pdf-demo h2 {
  font-size: var(--banner-title-size);
  line-height: var(--line-height-120);
  font-weight: 700;
  margin-bottom: 16px;
}
.banner-pdf-demo.smaller h2 {
  font-size: var(--title-M);
  line-height: var(--line-height-130);
}

.banner-pdf-demo h2 + p {
  margin-top: 0;
  margin-bottom: 32px;
  font-size: var(--default-font-size);
  line-height: var(--line-height-175);
}

.banner-pdf-demo .cta {
  border: 1px solid var(--secondary-color);
  padding: 16px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--title-XS);
  line-height: var(--line-height-150);
  display: inline-block;
}

.banner-pdf-demo svg {
  vertical-align: text-top;
}

@media (max-width: 640px) {
  .banner-pdf-demo {
    background-size: 100% 50%;
    background-position: top;
    background-color: var(--primary-color);
  }
  .banner-pdf-demo::after {
    display: none;
  }
  .banner-pdf-demo .text-wrapper {
    transform: translateY(50%);
  }
  .banner-pdf-demo .grid5-image {
    width: 184px;
    height: 108px;
    top: 16px;
    left: 0px;
  }
}

/* --- FAQ --- */
.faq-section {
  background-color: var(--secondary-color);
  padding-block: var(--space-L);
}
.faq-section .cont {
  color: var(--primary-color);
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.faq-title h2 {
  font-size: var(--title-L);
  margin: 0;
  font-weight: 700;
  line-height: var(--line-height-125);
}

.faq-accordion {
  flex: 1 1 728px;
  max-width: 728px;
}

.faq-item {
  border-bottom: 1px solid var(--primary-color);
}

.faq-question {
  font-size: var(--title-M);
  padding: 16px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  padding-right: 30px;
}

.faq-question::after {
  content: "▾";
  position: absolute;
  right: 8px;
  font-size: 24px;
  transition: transform 0.2s;
}
.faq-item:first-of-type > .faq-question {
  padding-top: 0;
}
.faq-item[open] > .faq-question::after {
  transform: rotate(-180deg);
}

.faq-answer {
  padding-bottom: 0px;
  padding-top: 0;
  line-height: var(--line-height-175);
  font-size: var(--default-font-size);
  font-weight: 400;
  max-height: 0;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}
/* Quando l'elemento <details> ha l'attributo [open] */
.faq-item[open] > .faq-answer {
  max-height: 500px;
  padding-bottom: 16px; /* Padding solo quando è aperto */
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.faq-question::-webkit-details-marker {
  display: none;
}

@media (max-width: 768px) {
  .faq-section .cont {
    flex-direction: column;
  }
  .faq-accordion {
    flex: 1 1 auto;
  }
  .faq-question::after {
    top: 20%;
  }
  .faq-question {
    line-height: var(--line-height-150);
  }
}

/* --- TWO ICON COLUMN --- */
.two-icon-colum {
  background-color: var(--primary-color);
  padding-block: var(--space-L);
  color: white;
}
.two-icon-colum .cont {
  display: flex;
  gap: var(--space-M);
  justify-content: space-between;
}
.two-icon-colum .col-1 {
  flex: 1 1 50%;
  max-width: 50%;
}
.two-icon-colum .col-2 {
  flex: 1 1 50%;
  max-width: 50%;
}

.two-icon-colum .icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  width: 64px;
}

.two-icon-colum .icon-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.two-icon-colum .text-container {
  flex: 1;
}

.two-icon-colum .text-container h3 {
  font-size: var(--title-L);
  font-weight: 700;
  line-height: var(--line-height-125);
  margin-bottom: 16px;
  margin-top: 0;
  color: var(--secondary-color);
}

.two-icon-colum .text-container p {
  font-size: var(--default-font-size);
  line-height: var(--line-height-175);
  font-weight: 400;
}

@media (max-width: 768px) {
  .two-icon-colum .cont {
    flex-direction: column;
    gap: 40px;
  }
  .two-icon-colum .col-1,
  .two-icon-colum .col-2 {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .two-icon-colum .text-container h3,
  .two-icon-colum .text-container p {
    margin: 0;
  }
}

/* --- PARTNERS --- */
.row.partners {
  padding-block: var(--space-M);
}

.partners .cont {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.partner-title {
  font-size: var(--title-L);
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap; /* Evita che il testo vada a capo */
  flex-shrink: 0; /* Impedisce al titolo di rimpicciolirsi */
  line-height: var(--line-height-125);
  margin: 0;
}

.logos-wrapper {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  max-width: 696px;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 16px; /* Spazio tra i loghi */
  width: max-content;
  justify-content: space-between;
}

/* Stile per i loghi singoli */
.logos-track img {
  max-height: 64px; /* Altezza massima uniforme per tutti i loghi */
  width: auto; /* Larghezza automatica per mantenere le proporzioni */
  flex-shrink: 0; /* Impedisce ai loghi di rimpicciolirsi */
}

.logos-wrapper.is-scrolling::before {
  content: "";
  left: 0;
  background: linear-gradient(90deg, rgb(255 255 255) 0%, #fff0 100%);
  position: absolute;
  width: 40px;
  height: 100%;
  content: "";
  z-index: 2;
}
.logos-wrapper.is-scrolling::after {
  content: "";
  left: 0;
  background: linear-gradient(0deg, rgb(255 255 255) 0%, #fff0 100%);
  position: absolute;
  width: 40px;
  height: 100%;
  content: "";
  z-index: 2;
}

/* Stile di default (per 1 o 2 loghi): restano fermi */
.logos-wrapper.is-static .logos-track {
  justify-content: space-between;
  width: 100%;
}

/* Stile per il carosello (per 3+ loghi) */
.logos-wrapper.is-scrolling .logos-track {
  animation: scroll-left var(--scroll-duration, 20s) linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Sposta il carosello a sinistra della sua metà larghezza.
               Dato che abbiamo duplicato i loghi, questo crea un loop perfetto. */
    transform: translateX(-55%);
  }
}

@media (max-width: 768px) {
  .row.partners .cont,
  .logos-track {
    flex-direction: column;
    align-items: flex-start;
  }
  .row.partners .cont {
    padding-top: 40px;
    border-top: 1px solid var(--primary-color);
  }
  .logos-track:has(> :nth-child(3)) {
    flex-direction: row; /* Se ho 3+ figli mantengo il layout desktop */
  }
}
/* --- SINGOLO CASE STUDY IN ARCHIVIO/MODULO --- */

.singolo-case-study a,
.singolo-case-study a:visited {
  text-decoration: none;
  color: var(--primary-color);
}
.singolo-case-study .logo-container {
  height: 160px;
  max-height: 160px;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}
.singolo-case-study .logo-container img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.singolo-case-study .logo-container::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 90%;
  width: 100%;
  background-image: url(../img/grid3-blue.png);
  background-repeat: no-repeat;
  background-position: 10px;
  background-size: contain;
}
.singolo-case-study .logo-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #00b3d0;
  clip-path: polygon(65% 0, 100% 0, 100% 100%, 40% 100%);
  z-index: 2;
  opacity: 0.6;
}
.singolo-case-study .entry-title {
  font-size: var(--default-font-size);
  line-height: var(--line-height-150);
  color: var(--darker-secondary-color);
  font-weight: 600;
  margin: 0;
}
.singolo-case-study .subtitle {
  font-size: var(--body-S);
  line-height: var(--line-height-140);
  font-weight: 400;
  margin: 0;
}
.lista-case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-M);
  margin-bottom: 16px;
  margin-top: 32px;
}
.row.related-case-studies-module {
  margin-block: var(--space-L);
}

.row.related-case-studies-module .module-title {
  font-size: var(--title-L);
  list-style: var(--line-height-125);
  font-weight: 700;
  margin: 0;
}

.row.related-case-studies-module .module-cta,
.row.related-case-studies-module .module-cta:visited,
.row.related-case-studies-module .module-cta:hover {
  color: var(--primary-color);
  display: block;
  max-width: fit-content;
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  text-decoration: none;
  line-height: var(--line-height-140);
  font-size: var(--body-S);
  font-weight: 600;
}
.row.related-case-studies-module .module-cta:hover {
  background: linear-gradient(
      0deg,
      rgba(0, 179, 208, 0.16) 0%,
      rgba(0, 179, 208, 0.16) 100%
    ),
    #fff;
}

@media (max-width: 768px) {
  .lista-case-study-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .singolo-case-study .logo-container {
    margin-bottom: 0;
  }
  .row.related-case-studies-module .module-cta {
    padding: 16px 24px;
  }
}

/* --- DISCOVER NEWS --- */
.row.discover-news {
  margin-block: var(--space-L);
}

.discover-news .module-title {
  font-size: var(--title-L);
  list-style: var(--line-height-125);
  font-weight: 700;
  text-align: center;
  margin-block: var(--space-M);
}

.lista-news {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--space-S);
  margin-block: var(--space-M);
}

.news-item-card a {
  display: flex;
  min-height: 210px;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--secondary-color);
}

.news-item-image-container {
  width: 248px;
  height: auto;
  flex: 0 0 248px;
  align-self: stretch;
}
.news-item-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-item-card a,
.news-item-card a:hover,
.news-item-card a:visited {
  color: var(--primary-color);
  text-decoration: none;
}
.news-item-content {
  padding: var(--space-M);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-item-meta {
  font-size: 0.75rem;
  line-height: 1.33;
  font-weight: 400;
}
.news-item-title {
  font-size: var(--title-S);
  line-height: var(--line-height-140);
  font-weight: 700;
  margin: 12px 0px 4px 0;
}
.news-item-subtitle {
  font-size: var(--body-S);
  line-height: var(--line-height-140);
  font-weight: 400;
  margin: 0;
}

.discover-news .cta-primary {
  margin-inline: auto;
}

@media (max-width: 768px) {
  .news-item-card a {
    flex-direction: column;
  }
  .news-item-image-container {
    width: 100%;
    max-height: 184px;
  }
}
/* --- ENDING BANNER ARCHIVIO --- */
.row.ending-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 408px;
  color: var(--banner-text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-L);
}

.ending-banner .text-wrapper {
  max-width: 536px;
  margin-left: auto;
}

.ending-banner h2 {
  font-size: var(--title-M);
  line-height: var(--line-height-133);
  font-weight: 700;
  margin-bottom: 16px;
}
.ending-banner.smaller h2 {
  font-size: var(--title-M);
  line-height: var(--line-height-130);
}

.ending-banner h2 + p {
  margin-top: 0;
  margin-bottom: 32px;
  font-size: var(--body-S);
  line-height: var(--line-height-175);
}

.ending-banner .cta {
  border: 1px solid var(--banner-text-color);
  padding: 8px;
  color: var(--banner-text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--title-XS);
  line-height: var(--line-height-150);
  margin-top: 32px;
  display: block;
  max-width: fit-content;
}
@media (max-width: 768px) {
  .ending-banner .cta {
    padding: 16px 24px;
  }
}
/* --- WEBINAR CARD --- */
.webinar-card {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.webinar-card:nth-child(1) {
  padding-bottom: var(--space-M);
}
.webinar-card:nth-child(2) {
  padding-block: var(--space-M);
  border-block: 1px solid var(--secondary-color);
}
.webinar-card:nth-child(3) {
  padding-top: var(--space-M);
}

/* Per rimuoverli indifferentemente da quanti sono in pagina  */
.webinar-card:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.webinar-card .webinar-card__image {
  width: 526px;
  height: 301px;
  flex: 0 0 526px;
  align-self: stretch;
}
.webinar-card .webinar-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.webinar-card__title {
  font-size: var(--title-S);
  line-height: var(--line-height-140);
  font-weight: 700;
  margin: 0;
  margin-top: 16px;
}
.webinar-card__excerpt p {
  font-size: var(--body-S);
  line-height: var(--line-height-140);
  font-weight: 400;
  margin: 4px 0;
}
.webinar-card__actions {
  margin-top: 32px;
}

.webinar-card__actions a:nth-child(2) {
  padding: 9px 8px 9px 12px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  font-size: var(--default-font-size);
  line-height: var(--line-height-150);
  text-decoration: none;
  display: block;
  max-width: fit-content;
  margin-top: 8px;
}
.webinar-card__actions a:nth-child(2):hover {
  background: linear-gradient(
      0deg,
      rgba(0, 179, 208, 0.16) 0%,
      rgba(0, 179, 208, 0.16) 100%
    ),
    #fff;
}

.webinar-card__actions svg {
  vertical-align: sub;
}
.cta-primary.watch-webinar::after {
  display: none;
}

@media (max-width: 768px) {
  .webinar-card {
    flex-direction: column;
  }
  .webinar-card .webinar-card__image {
    width: 100%;
    max-height: 200px;
  }
  .webinar-card__actions a:nth-child(2) {
    padding: 16px 24px;
  }
}

/* --- ACCORDION WITH LABEL --- */
.row.accordion-section {
  margin-block: var(--space-L);
}
/* .accordion-section .cont {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-direction: column;
} */

.accordion-section h2 {
  font-size: var(--title-L);
  margin: 0;
  font-weight: 700;
  line-height: var(--line-height-125);
}
.accordion-section .subtitle {
  font-size: var(--default-font-size);
  line-height: var(--line-height-175);
  font-weight: 400;
  margin-bottom: 32px;
}
.accordion-item {
  padding: 32px 16px 8px;
  background-color: white;
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}
.accordion-item:first-of-type {
  border-top: 1px solid var(--primary-color);
}
.accordion-question {
  font-size: var(--title-M);
  line-height: var(--line-height-160);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.accordion-label {
  color: var(--darker-secondary-color);
  font-weight: 600;
  font-size: var(--body-S);
  line-height: var(--line-height-140);
  padding: 4px;
  margin-right: 8px;
  display: block;
  max-width: fit-content;
  background-color: rgba(178, 232, 241, 0.6);
  border-radius: 8px;
}
.accordion-question::after {
  content: "";
  background-image: url(../img/accordion_arrow.svg);
  position: absolute;
  right: 8px;
  bottom: 16px;
  width: 16px;
  height: 8px;
  transition: transform 0.2s;
  transform: rotateX(180deg);
}
.accordion-item:hover,
.accordion-item[open] {
  background-color: #f6f9fc;
}

.accordion-item[open] > .accordion-question::after {
  transform: rotateX(0deg);
}

.accordion-content {
  padding-bottom: 0px;
  padding-top: 0;
  line-height: var(--line-height-175);
  font-size: var(--default-font-size);
  font-weight: 400;
  max-height: 0;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}
.accordion-content ul {
  margin-left: 0;
  padding-left: 24px;
}
/* Quando l'elemento <details> ha l'attributo [open] */
.accordion-item[open] > .accordion-content {
  max-height: 9000px;
  padding-bottom: 16px; /* Padding solo quando è aperto */
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.accordion-content p {
  margin: 0;
}
.accordion-content b,
.accordion-content strong {
  color: var(--darker-secondary-color);
}

.accordion-question::-webkit-details-marker {
  display: none;
}

@media (max-width: 768px) {
  .accordion-section h2,
  .accordion-section .subtitle {
    text-align: left;
  }

  .accordion-question {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .accordion-question::after {
    right: -12px;
  }
}

.row.wysiwyg-section {
  margin-block: var(--space-XL);
}

.wysiwyg-section h2 {
  margin-block: 8px;
}
.wysiwyg-section p {
  margin-block: 0px;
}
