.hero .nda-door-hero {
  aspect-ratio: 1;
}
.hero .nda-door-hero img {
  width: 100%;
  object-fit: contain;
}
@media (max-width: 760px) {
  .hero:has(.door-hero-copy) {
    padding-top: 16px;
  }
  .hero-grid:has(.door-hero-copy) {
    gap: 14px;
  }
  .door-hero-copy,
  .door-hero-intro {
    display: contents;
  }
  .hero .door-hero-intro h1 {
    order: -2;
    margin: 0;
    font-size: clamp(30px, 8.8vw, 42px);
    line-height: 1;
  }
  .hero-grid:has(.door-hero-copy) .hero-photo {
    order: -1;
  }
  .door-hero-intro .lead {
    margin: 0;
    font-size: clamp(15px, 4vw, 17px);
  }
  .hero .nda-door-hero {
    width: min(100%, 42svh, max(190px, calc(100svh - 390px)));
    margin-inline: auto;
  }
  .door-hero-details {
    order: 1;
  }
  .door-hero-details .door-hero-quote {
    display: none;
  }
  .door-hero-details .areas-inline {
    margin-top: 16px;
    padding-top: 12px;
  }
}
#soluzioni .detail-card {
  display: grid;
  grid-template-columns: clamp(76px, 17vw, 108px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(14px, 2.2vw, 25px);
}
.nda-door-type-photo {
  margin: 0;
}
.nda-door-type-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: #eeeae4;
}
.nda-door-type-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: linear-gradient(#ded9d1, #eeeae4 88%, #817c74 88%, #918c83);
}
.nda-door-type-frame img {
  width: 58%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: 0 1px 3px #3c342e38;
}
.nda-door-type-photo figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.2;
  text-align: center;
}
.nda-door-gallery .nda-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}
.nda-door-gallery .nda-slide {
  flex: 0 0 calc((100% - 16px) / 2);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: var(--warm);
}
.nda-door-gallery .nda-slide-open {
  display: block;
  cursor: zoom-in;
}
.nda-door-gallery .nda-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.nda-door-gallery figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 18px 18px;
}
.nda-door-gallery figcaption span {
  color: var(--muted);
}
.nda-door-gallery .nda-carousel-controls:not([hidden]) {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  text-align: center;
  margin-top: 14px;
}
.nda-door-gallery button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 26px;
  cursor: pointer;
  touch-action: manipulation;
}
.nda-door-gallery button[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
}
.nda-door-gallery [data-porte-autoplay] {
  grid-column: 2;
  justify-self: center;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nda-door-gallery :focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}
.nda-door-gallery .detail-intro {
  color: var(--muted);
}
.nda-door-lightbox {
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: #f1efec;
}
.nda-door-lightbox::backdrop {
  background: rgb(30 36 41 / 78%);
}
.nda-door-lightbox form {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}
.nda-door-lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 98px);
  margin: auto;
  object-fit: contain;
}
.nda-door-classes {
  padding-left: 1.2rem;
}
.nda-door-classes li + li, .detail-card p + p {
  margin-top: .7rem;
}
.nda-security-cross p {
  margin: 0;
}
.nda-security-cross a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .nda-door-gallery .nda-slide {
    flex-basis: 100%;
  }
}
.hero h1 {
  font-size: clamp(44px, 5.1vw, 64px);
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(36px, 10.5vw, 50px);
  }
}
