@font-face {
  font-family: "Arboria Replica";
  src: url("about/arboria-text.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Arboria Replica";
  src: url("fonts/arboria-medium.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

.replica-page {
  --replica-paper: #f2f2f2;
  color: #000;
  background: var(--replica-paper);
  font-family: "Arboria Replica", Arboria, sans-serif;
  font-size: 18px;
  line-height: 34px;
}
.replica-page .menu-toggle { font-weight: 700; }
.replica-page .menu-panel { font-family: Arboria, sans-serif; }

.replica-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.replica-title {
  margin: 0;
  font-size: 7vh;
  font-weight: 600;
  line-height: 1.1;
}
.replica-outline {
  color: transparent;
  -webkit-text-stroke: .03em #000;
}
.replica-prose {
  font-size: 1.2vw;
  line-height: 1.7;
}
.replica-prose p { margin: 0 0 23px; }
.replica-prose p:last-child { margin-bottom: 0; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #fff;
}
.service-detail:nth-of-type(odd), .contact-layout { background: var(--replica-paper); }
.service-detail-copy {
  padding: 8vw;
  min-width: 0;
}
.service-detail .replica-title { margin-bottom: 54px; }
.service-detail .replica-title br { line-height: 1.27; }
.service-detail-media {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  height: 110vh;
  margin: 1vw;
  background-color: #eee;
}
@media (min-width: 1000px) {
  #showroom .service-detail-media,
  #postvendita .service-detail-media,
  #dada .service-detail-media { height: 97vh; }
  #falegnameria .service-detail-media {
    height: min(97vh, calc(100svh - 2vw));
  }
}
.service-detail:nth-of-type(even) .service-detail-media { grid-column: 1; grid-row: 1; }
.service-detail:nth-of-type(even) .service-detail-copy { grid-column: 2; grid-row: 1; }
.service-detail-media img, .service-detail-media video {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.service-detail-media .service-photo-monochrome { filter: grayscale(1); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 900px;
}
.contact-copy { padding: 0 14%; transform: translateY(-50px); }
.contact-copy .replica-title { font-size: 5vh; margin-bottom: 44px; }
.contact-copy .replica-prose { margin-bottom: 44px; }
.contact-copy p { margin-top: 0; }
.contact-address { margin-bottom: 47px; }
.contact-details { margin-bottom: 0; }
.contact-details a[href^="mailto:"] { color: #4e6b68; }
.contact-details a:hover, .contact-details a:focus-visible { text-decoration: underline; }

.contact-map { position: relative; height: 900px; background: #f8f8f6; }
.contact-map-link {
  position: absolute;
  inset: 0;
  background: #f8f8f6 url("images/contatti-mappa.webp") center / cover no-repeat;
}
.contact-map-link:focus-visible { outline: 2px solid #4e6b68; outline-offset: -4px; }
.contact-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -100%);
  display: grid;
  place-items: end center;
  padding-bottom: 4px;
}
.contact-map-pin::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 1px solid #a93c2d;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: radial-gradient(circle, #962d23 0 5px, #ce4938 5.5px);
  box-shadow: -2px 2px 4px #0002;
}
.contact-map-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 5px;
  background: #ffffffe8;
  color: #333;
  font: 11px/16px Arial, sans-serif;
}

.replica-page footer {
  font-family: Arboria, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

.replica-line {
  display: block;
  overflow: clip;
  overflow-clip-margin: 2px;
}
.replica-line > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .replica-outline.outline-pending {
    color: #000;
    -webkit-text-stroke-color: transparent;
  }
  .replica-outline { transition: color .9s cubic-bezier(.15,.75,.4,1), -webkit-text-stroke-color .9s cubic-bezier(.15,.75,.4,1); }
  .replica-prose.lines-pending .replica-line > span { opacity: 0; transform: translateY(100%); }
  .replica-line > span { transition: transform 1.1s cubic-bezier(.165,.84,.44,1), opacity 1.1s cubic-bezier(.165,.84,.44,1); }
}
@media (max-width: 999px) {
  .replica-page .site-header { padding: 0 28px; height: 62px; }
  .replica-page .logo { width: 165px; }
  .replica-page .menu-toggle span { display: inline; }
  .replica-prose { font-size: 18px; }
  .service-detail { display: flex; flex-direction: column; align-items: stretch; padding: 4vw 8vw; }
  .service-detail-media { margin: 0; order: -1; }
  .service-detail .service-detail-media { height: 70vh; }
  .service-detail-copy { padding: 4vw 0 0; }
  .service-detail:first-of-type { padding-top: 72px; }
  .contact-layout { grid-template-columns: 1fr; min-height: 0; }
  .contact-copy { padding: 7vw; transform: none; }
  .contact-map { height: 330px; }
}
@media (max-width: 690px) {
  .replica-page { line-height: 33px; }
  .replica-prose { font-size: 16px; }
  .service-detail { padding-block: 8.3vw; }
  .service-detail .service-detail-media { height: 50vh; }
  .service-detail:first-of-type .service-detail-media { height: 59vh; margin-inline: -5.25vw; }
  .service-detail-copy { padding-top: 8.3vw; }
  .service-detail:first-of-type .service-detail-copy { padding-top: 42px; }
  .service-detail .replica-title, .contact-copy .replica-title { font-size: 38px; margin-bottom: 34px; }
  .contact-map { height: 270px; }
  .contact-copy .replica-prose { margin-bottom: 34px; }
  .contact-address { margin-bottom: 37px; }
}

.service-detail .replica-title .replica-outline + br { display: none; }
.service-detail .replica-title:has(br) .replica-outline {
  display: block;
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 1000px) {
  .service-detail-media img, .service-detail-media video {
    transform: translateY(var(--service-parallax, 0px)) scale(var(--service-scale, 1));
    will-change: transform;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .replica-prose.lines-pending { color: transparent; }
}
