@font-face {
  font-family: "Arboria Home";
  src: url("about/arboria-text.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Arboria Home";
  src: url("fonts/arboria-medium.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
main { font-family: "Arboria Home", Arboria, sans-serif; }
.hero { height: 100svh; min-height: 0; }
.hero-stage { position: relative; height: 100%; isolation: isolate; }
.hero-media {
  background-image: url("images/hero-living-dainoarredi.webp");
  background-position: center 54%;
  transform: none;
  animation: none;
}
.hero-media::after {
  background: linear-gradient(99deg, rgb(212 212 210 / 76%) 27%, transparent 58%);
}
.hero #hero-title { color: #111313; }
.hero #hero-title .outline { -webkit-text-stroke: .028em #000; }

@media (min-width: 1000px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    transform-origin: 67% 48%;
    animation: hero-pullback 2.8s cubic-bezier(.2,.68,.25,1) both;
  }
}

@keyframes hero-pullback {
  from { transform: scale(1.12) translateX(-1.4%); }
  to { transform: none; }
}

@media (max-width: 900px) {
  .hero { height: 65svh; }
  .hero-media { background-position: 74% center; }
  .hero-media::after {
    background: linear-gradient(110deg, rgb(212 212 210 / 74%) 12%, rgb(212 212 210 / 46%) 43%, transparent 79%);
  }
}

@media (min-width: 691px) and (max-width: 900px) {
  .hero-copy { top: 56%; }
}

.story { grid-template-columns: 55% minmax(0, 1fr); padding-bottom: 14vw; }
.story::after, .services::after { height: 100px; }
.story::after { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.services::after { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.story-copy h2, .services-head h2, .products-intro h2 { font-weight: 600; }
.story-photo img { scale: 1; }
.story-copy .text-link {
  position: relative;
  color: #ce715f;
  font-size: 20px;
  line-height: 27px;
  display: inline-block;
  padding-right: 36px;
}
.story-copy .text-link::after { content: none; }
.story-copy .story-arrow {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  transition: none;
}
.story-copy .story-arrow::before {
  content: "";
  position: absolute;
  right: 11px;
  top: 11px;
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  rotate: 45deg;
  transition: translate .33s cubic-bezier(.12,.75,.4,1);
}
.story-copy .story-arrow::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 13px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .33s cubic-bezier(.12,.75,.4,1);
}
.story-copy .text-link::before {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  top: 0;
  right: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: opacity .33s, transform .33s cubic-bezier(.12,.75,.4,1);
}
.story-copy .text-link:is(:hover,:focus-visible) .story-arrow { transform: none; }
.story-copy .text-link:is(:hover,:focus-visible)::before { opacity: 0; transform: scale(.8); }
.story-copy .text-link:is(:hover,:focus-visible) .story-arrow::before { translate: 9px; }
.story-copy .text-link:is(:hover,:focus-visible) .story-arrow::after { transform: translateX(9px) scaleX(1); }

.services { padding: clamp(40px, 4.5vw, 72px) 0 10vw; overflow: hidden; }
.services-head { margin-bottom: 36px; }
.services-head h2, .products-intro h2 { font-size: 7vh; }
.services-head p {
  max-width: 370px;
  margin-top: 16px;
  font-size: 22px;
  line-height: 36px;
  color: #080808;
}
.service-carousel { position: relative; }
.service-track {
  --service-columns: 3;
  --service-gap: 30px;
  --service-content: calc(100vw - var(--inner-gutter) * 2);
  --service-card-width: calc((var(--service-content) - (var(--service-columns) - 1) * var(--service-gap)) / var(--service-columns) * .9 * .88);
  --card-width: var(--service-card-width);
  gap: var(--service-gap);
  padding: 0 var(--inner-gutter) 10px;
  scroll-snap-type: none;
}
.service-card { cursor: inherit; min-width: 0; }
.service-card img, .service-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 5px;
  pointer-events: none;
}
.service-card:hover img { filter: none; }
.service-card img.service-photo-monochrome,
.service-card:hover img.service-photo-monochrome { filter: grayscale(1); }
.service-card .service-label {
  display: block;
  padding: 18px 0 0;
  margin: 0;
  background: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
}
.service-card .service-label::before { display: none; }
.service-card .service-label > span { font: inherit; padding-bottom: 2px; }
.service-card:is(:hover,:focus-visible) .service-label > span { background-size: 100% 1px; }
.service-drag-label {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  width: 58px;
  height: 58px;
  display: grid;
  grid-auto-flow: column;
  place-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 50%;
  background: #ce715f;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  scale: .8;
  transform: translate(calc(var(--drag-x, -100px) - 50%), calc(var(--drag-y, -100px) - 50%));
  transition: opacity .2s, scale .2s;
}
.service-drag-label::before,
.service-drag-label::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  rotate: -135deg;
}
.service-drag-label::after { rotate: 45deg; }
@media (hover: hover) and (pointer: fine) {
  .service-carousel.has-pointer .service-drag-label { opacity: 1; scale: 1; }
  .service-carousel.has-pointer .service-card { cursor: none; }
}
.track-controls {
  gap: 0;
  margin-top: 20px;
  width: auto;
  min-height: 26px;
}
.track-controls button,
.track-controls button:hover {
  display: grid;
  place-items: center;
  transform: none;
  width: 25px;
  height: 25px;
  background: transparent;
  border: 0;
}
.track-controls button::before {
  position: static;
  inset: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
}
.track-controls button[aria-current=true] { background: transparent; }
.track-controls button[aria-current=true]::before { background: #ce715f; }

.render {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  padding: clamp(52px, 7vw, 104px) max(6vw, calc((100% - 1060px) / 2));
}
.render-photo {
  height: auto;
  max-height: none;
  aspect-ratio: 10 / 11;
}
.render-copy { padding: 0; }
.render-copy h2 {
  color: #252929;
  font-family: "Arboria Home", Arboria, sans-serif;
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 600;
  line-height: 1.1;
}
.render-copy h2 .outline { -webkit-text-stroke: 1.5px #252929; }

.products {
  padding: 6vw var(--inner-gutter) 11vw;
  color: #252929;
}
.products-layout {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 40px;
  align-items: start;
}

.products-intro { margin: 0; max-width: 180px; text-align: left; }
.products-intro h2 { line-height: 1.1; margin: 0 0 30px; }
.products-title-end { display: block; margin-top: 7px; white-space: nowrap; }
.products-intro p { font-size: 16px; line-height: 30px; color: #080808; }
.product-column { display: grid; gap: 24px; }
.product-column:nth-child(2) { margin-top: -20px; }
.product-column:nth-child(4) { margin-top: 20px; }
.product-column .product-art { height: 250px; aspect-ratio: auto; }
.product-column .product-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding-inline: 8px;
  background: #27282a;
  color: #fff;
}
.product-column .product-frame::after { content: none; }
.product-column .product-icon {
  display: block;
  width: clamp(60px, 6vw, 80px);
  height: auto;
  flex: 0 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .product-column .product-frame {
    transform: perspective(570px) translateY(var(--lift, 0px))
      rotateX(calc(var(--photo-rx, 0deg) * 1.2)) rotateY(calc(var(--photo-ry, 0deg) * 1.2));
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-column .product-card:hover { --lift: -2.4px; }
}
.product-column .product-card-name {
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 2.19vw, 28px);
  line-height: 1.1;
}
.product-column .product-card--complementi h3 { font-size: clamp(18px, 1.95vw, 25px); }
.products-link {
  margin: 28px 0 0;
  min-height: 42px;
  padding-inline: 28px 7px;
  border-color: #ce715fbf;
  color: #c27866;
  font-size: 12px;
  font-weight: 600;
}
.products-link span { background: #ce715f; }
.products-link:hover { background: #ce715f; color: #fff; }

.brands {
  min-height: 0;
  height: clamp(300px, 35vh, 365px);
  margin: 0 auto 0;
  background: #ccc5bd;
  touch-action: pan-y pinch-zoom;
}
.brands .brand-slide {
  transition: opacity .45s ease, visibility 0s .45s;
}
.brands .brand-slide.active {
  z-index: 1;
  transition-delay: 0s;
}
.brand-slide::after { background: rgb(30 27 24 / 49%); }
.brand-slide-copy {
  position: absolute;
  z-index: 2;
  inset: 14px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.brand-slide-copy .brand-slide-logo {
  width: 114px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand-slide:hover .brand-slide-logo { transform: none; }
.brand-slide-copy strong {
  position: static;
  width: min(100%, 680px);
  font-size: clamp(19px, 2.4vw, 34px);
  line-height: 1.2;
  font-weight: 500;
}
.brand-banner-controls {
  position: absolute;
  z-index: 4;
  inset: auto 0 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.brand-banner-controls[hidden] { display: none; }
.brand-banner-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: #1716159e;
  font-size: 18px;
  cursor: pointer;
  pointer-events: auto;
}
.brand-banner-controls button:hover { background: #171615; }
.brand-banner-controls button:focus-visible,
.brand-slide:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
  .brands .brand-slide { transition: none; }
}

@media (min-width: 1300px) { main { --inner-gutter: max(5vw, calc((100vw - 1100px) / 2)); } }
@media (min-width: 1600px) { .service-track { --service-columns: 4; } }
@media (max-width: 999px) {
  .service-track { --service-columns: 2; --service-gap: 24px; }
  .products-layout { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
  .products-intro { grid-column: 1/-1; max-width: 400px; margin-bottom: 18px; }
  .products-title-end { display: inline; }
  .product-column:nth-child(n) { margin-top: 0; }
}
@media (min-width: 751px) and (max-height: 680px) {
  .service-track { --card-width: min(var(--service-card-width), 29.6svh); }
}
@media (max-width: 800px) {
  .render { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .render-photo, .render-copy { width: min(100%, 540px); justify-self: center; }
}
@media (max-width: 750px) {
  .story { grid-template-columns: 1fr; padding-bottom: 22vw; }
  .story::after, .services::after { height: 50px; }
  .services { padding: 8vw 0 64px; }
  .services-head h2, .products-intro h2 { font-size: clamp(34px, 8vw, 50px); }
  .services-head p { font-size: 17px; line-height: 1.6; }
  .services-head { margin-bottom: 30px; }
  .render-copy h2 { font-size: clamp(31px, 8vw, 42px); }
  .service-track { --service-columns: 1; --service-gap: 20px; }
  .service-card .service-label { padding-top: 16px; font-size: 20px; line-height: 1.35; }
  .products { padding-block: 50px; }
  .products-layout { grid-template-columns: 1fr; gap: 24px; }
  .products-intro { grid-column: auto; }
  .product-column .product-art { height: 250px; }
  .product-column .product-card-name { font-size: 28px; }
  .product-column .product-card--complementi h3 { font-size: 25px; }
}
