:root {
  --dedalo-ink: #252422;
  --dedalo-soft-ink: #69645f;
  --dedalo-paper: #f4f1ec;
  --dedalo-line: #ded9d2;
}

.dedalo-realizzazioni-page #content {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dedalo-realizzazioni-page .page-header {
  max-width: 1540px;
  margin: 0 auto;
  padding: 52px 28px 0;
}

.dedalo-realizzazioni-page .page-title-section {
  margin: 0;
  color: var(--dedalo-ink);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: none;
}

.dedalo-projects {
  max-width: 1540px;
  margin: 0 auto;
  padding: 34px 28px 96px;
  color: var(--dedalo-ink);
}

.dedalo-projects__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 30px 80px;
  align-items: end;
  margin: 0 0 44px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--dedalo-line);
}

.dedalo-projects__eyebrow,
.dedalo-project-detail__gallery-heading > span {
  grid-column: 1 / -1;
  color: var(--dedalo-soft-ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dedalo-projects__intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
}

.dedalo-projects__intro p {
  margin: 0;
  color: var(--dedalo-soft-ink);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65;
}

.dedalo-projects__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.dedalo-project-card {
  position: relative;
  display: block;
  min-height: 540px;
  overflow: hidden;
  border-radius: 24px;
  background: #383633;
  color: #fff;
  text-decoration: none !important;
  isolation: isolate;
}

.dedalo-project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.dedalo-project-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06) 25%, rgba(0, 0, 0, .76) 100%);
}

.dedalo-project-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  min-height: 48%;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
}

.dedalo-project-card__location {
  margin-bottom: auto;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  opacity: .82;
  text-transform: uppercase;
}

.dedalo-project-card strong {
  display: block;
  max-width: 15ch;
  margin-top: 24px;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.dedalo-project-card__material {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
  line-height: 1.35;
}

.dedalo-project-card__cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .48);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Il tema applica colori propri ai discendenti dei link. Manteniamo ogni
   informazione della card chiara e leggibile sopra la fotografia. */
.dedalo-project-card .dedalo-project-card__location,
.dedalo-project-card strong,
.dedalo-project-card .dedalo-project-card__material,
.dedalo-project-card .dedalo-project-card__cta,
.dedalo-project-card .dedalo-project-card__cta span {
  color: #fff !important;
  opacity: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .34);
}

.dedalo-project-card:hover,
.dedalo-project-card:focus-visible {
  color: #fff;
}

.dedalo-project-card:hover img,
.dedalo-project-card:focus-visible img {
  transform: scale(1.045);
}

.dedalo-project-detail {
  max-width: 1540px;
  margin: 0 auto;
  padding: 34px 28px 100px;
  color: var(--dedalo-ink);
}

.dedalo-project-detail__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  color: var(--dedalo-ink);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.dedalo-project-detail__back:hover {
  color: #6b655f;
}

.dedalo-project-detail__hero {
  position: relative;
  min-height: min(74vh, 820px);
  overflow: hidden;
  border-radius: 28px;
  background: #3b3936;
  color: #fff;
}

.dedalo-project-detail__hero > img,
.dedalo-project-detail__hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dedalo-project-detail__hero > img {
  object-fit: cover;
}

.dedalo-project-detail__hero-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, .08) 30%, rgba(0, 0, 0, .76) 100%);
}

.dedalo-project-detail__hero-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  max-width: 1030px;
  padding: clamp(32px, 6vw, 78px);
}

.dedalo-project-detail__hero-copy > span {
  display: block;
  margin-bottom: 18px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dedalo-project-detail__hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.055em;
  text-transform: none;
}

.dedalo-project-detail__hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.dedalo-project-detail__story {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr);
  gap: 60px 110px;
  padding: 72px 0 86px;
}

.dedalo-project-detail__facts {
  align-self: start;
  border-top: 1px solid var(--dedalo-line);
}

.dedalo-project-detail__facts > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--dedalo-line);
}

.dedalo-project-detail__facts span {
  display: block;
  margin-bottom: 7px;
  color: var(--dedalo-soft-ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dedalo-project-detail__facts strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.dedalo-project-detail__text p {
  margin: 0 0 24px;
  color: #4e4a46;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.65;
}

.dedalo-project-detail__gallery {
  padding-top: 54px;
  border-top: 1px solid var(--dedalo-line);
}

.dedalo-project-detail__gallery-heading {
  margin-bottom: 34px;
}

.dedalo-project-detail__gallery-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -.045em;
  text-transform: none;
}

.dedalo-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(300px, 42vw);
  gap: 18px;
}

.dedalo-project-gallery__item {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #e8e4de;
  cursor: zoom-in;
}

.dedalo-project-gallery__item--feature {
  grid-column: 1 / -1;
}

.dedalo-project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.dedalo-project-gallery__item > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #292724;
  font-size: 1.4rem;
}

.dedalo-project-gallery__item:hover img,
.dedalo-project-gallery__item:focus-visible img {
  transform: scale(1.025);
}

.dedalo-lightbox[hidden] {
  display: none;
}

.dedalo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  padding: 32px;
  background: rgba(18, 17, 16, .96);
  color: #fff;
}

.dedalo-lightbox figure {
  display: grid;
  max-width: 1500px;
  max-height: calc(100vh - 64px);
  justify-self: center;
  margin: 0;
}

.dedalo-lightbox figure img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
}

.dedalo-lightbox figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, .7);
  text-align: center;
}

.dedalo-lightbox__close,
.dedalo-lightbox__nav {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.dedalo-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  font-size: 2.5rem;
}

.dedalo-lightbox__nav {
  padding: 18px;
  font-size: 2rem;
}

.dedalo-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .dedalo-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dedalo-project-card {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .dedalo-realizzazioni-page .page-header {
    padding: 34px 18px 0;
  }

  .dedalo-projects,
  .dedalo-project-detail {
    padding-right: 16px;
    padding-left: 16px;
  }

  .dedalo-projects {
    padding-top: 26px;
    padding-bottom: 64px;
  }

  .dedalo-projects__intro {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .dedalo-projects__intro > * {
    grid-column: 1;
  }

  .dedalo-projects__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dedalo-project-card {
    min-height: 520px;
    border-radius: 20px;
  }

  .dedalo-project-card__content {
    padding: 24px;
  }

  .dedalo-project-detail {
    padding-top: 22px;
    padding-bottom: 72px;
  }

  .dedalo-project-detail__hero {
    min-height: 70vh;
    border-radius: 20px;
  }

  .dedalo-project-detail__hero-copy {
    padding: 28px 24px;
  }

  .dedalo-project-detail__story {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 56px;
  }

  .dedalo-project-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(360px, 115vw);
  }

  .dedalo-project-gallery__item--feature {
    grid-column: 1;
  }

  .dedalo-lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 16px 4px;
  }

  .dedalo-lightbox__nav {
    padding: 8px;
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dedalo-project-card img,
  .dedalo-project-gallery__item img {
    transition: none;
  }
}
