.flexcont .cards{
  flex-wrap: nowrap;
  position: relative;
}

article img{
  width: 100%;
  height: auto;
  max-width: 800px;
  object-fit: cover;
}
.flexcont .cards img{
  
  mask: url('../images/blob.svg');
  -webkit-mask: url('../images/blob.svg');
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-position: center;
  object-fit: cover;
  animation-name: ani-float;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out; 
  position: absolute;
  left: 40px;
  mix-blend-mode: plus-lighter;
   height: 80%!important;
}

.flexcont .cards img.ai-ecommerce-pages-image {
  width: auto;
  aspect-ratio: 1;
}

.flexcont .cards:nth-child(2) img{
  mask: url('../images/blob1.svg');
  -webkit-mask: url('../images/blob1.svg');
}
.flexcont .cards:nth-child(3) img{
  mask: url('../images/blob2.svg');
  -webkit-mask: url('../images/blob2.svg');
}
.flexcont .cards:nth-child(4) img{
  mask: url('../images/blob3.svg');
  -webkit-mask: url('../images/blob3.svg');
}



@keyframes ani-float {
  0% { transform: translate(0,  0px) scale(1.3); }
  50% { transform: translate(0, 3px) scale(1.31); }
  100% { transform: translate(0, -0px) scale(1.3);; }    
}

@media screen and (max-width: 768px) {
  .flexcont .cards {
    flex-wrap: wrap;
    overflow: hidden;
  }

  .flexcont .cards img {
    position: relative;
    inset: auto;
    width: min(100%, 320px);
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 1;
    margin: 16px auto 0;
    animation: none;
    transform: none;
  }

  .flexcont .cards img.ai-ecommerce-pages-image {
    width: min(100%, 320px);
  }
}
body.invert a.blog-cta {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 clamp(16px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .9);
  color: #17181c !important;
  font-size: clamp(12px, 1.1vw, 18px) !important;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.invert a.blog-cta::after {
  content: "→";
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #6416c8;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease;
}

body.invert a.blog-cta:hover,
body.invert a.blog-cta:focus-visible {
  border-color: rgba(201, 167, 255, .9);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .32), 0 0 34px rgba(100, 22, 200, .18);
  color: #17181c !important;
  transform: translateY(-3px);
}

body.invert a.blog-cta:hover::after,
body.invert a.blog-cta:focus-visible::after {
  background: #4f0fa5;
  transform: translateX(3px);
}

body.invert a.blog-cta:focus-visible {
  outline: 2px solid rgba(201, 167, 255, .9);
  outline-offset: 4px;
}

@media screen and (max-width: 430px) {
  body.invert a.blog-cta {
    min-height: 52px;
    gap: 9px;
    padding: 0 13px;
    font-size: clamp(11px, 3.35vw, 14px) !important;
  }

  body.invert a.blog-cta::after {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 16px;
  }
}

/* Institutional illustration rows: clearer glass sections without overlaps. */
body.content.invert:not(.home) .flexcont {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

body.content.invert:not(.home) .flexcont .cards {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  margin: 0;
  padding: clamp(26px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025)),
    rgba(7, 8, 13, .54);
  box-shadow: 0 24px 76px rgba(0, 0, 0, .20);
  backdrop-filter: blur(18px) saturate(1.12);
}

body.content.invert:not(.home) .flexcont .cards:nth-child(even) {
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
}

body.content.invert:not(.home) .flexcont .cards:nth-child(even) > div {
  order: 2;
}

body.content.invert:not(.home) .flexcont .cards > div {
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: none !important;
  box-shadow: none;
  backdrop-filter: none;
}

body.content.invert:not(.home) .flexcont .cards > div::before {
  display: none;
}

body.content.invert:not(.home) .flexcont .cards > img,
body.content.invert:not(.home) .flexcont .cards > img.ai-ecommerce-pages-image {
  position: relative;
  inset: auto !important;
  justify-self: center;
  width: min(100%, 360px);
  height: auto !important;
  max-height: 360px;
  aspect-ratio: 1;
  object-fit: cover;
  animation: none;
  transform: none;
}

@media screen and (max-width: 767px) {
  body.content.invert:not(.home) .flexcont {
    gap: 14px;
  }

  body.content.invert:not(.home) .flexcont .cards,
  body.content.invert:not(.home) .flexcont .cards:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
    border-radius: 24px;
  }

  body.content.invert:not(.home) .flexcont .cards:nth-child(even) > div {
    order: initial;
  }

  body.content.invert:not(.home) .flexcont .cards > img,
  body.content.invert:not(.home) .flexcont .cards > img.ai-ecommerce-pages-image {
    width: min(100%, 280px);
    margin: 4px auto 0;
  }
}

/* Keep the header contact label and currentColor arrow readable on the purple hover. */
.site-nav a.bottone.bianco:hover {
  color: #fff;
}

/* Allow the gradient to paint ascenders and descenders beyond tight line boxes. */
h1 > span,
h2 > span,
h3 > span,
body.invert :is(h1, h2, h3, h4, h5, h6):not(:has(> span)),
body.invert :is(h4, h5, h6) > span {
  padding-block: .15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
