@font-face {
  font-family: "Work Sans";
  src: url("/assets/client/work-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --p-bg: #f5f4f0; --p-surface: #eae8e3; --p-ink: #15181b; --p-muted: #50545a;
  --p-accent: #f47b20; --p-accent-ink: #111111; --p-action: #f47b20; --p-action-ink: #111111;
  --p-inv-bg: #15181b; --p-inv-surface: #222427; --p-inv-ink: #f5f4f0; --p-inv-muted: #979897;
  --p-inv-accent: #f47b20; --p-inv-accent-ink: #111111; --p-inv-action: #f47b20; --p-inv-action-ink: #111111;
  --font-display: "Work Sans", system-ui, sans-serif;
  --font-text: "Work Sans", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
  --nav: 84px;
  --intro-title-size: clamp(2rem, 1.15rem + 3.4vw, 3.75rem);
}

:where(a, button):focus-visible {
  outline: 2px solid #9b3c00;
  outline-offset: 4px;
}

.nav__bar { gap: clamp(28px, 4vw, 64px); }
.nav__links { justify-content: center; }

.brand {
  min-height: 44px;
  gap: 12px;
  line-height: 1.02;
}
.brand__mark {
  position: relative;
  display: block;
  flex: none;
  width: 42px;
  aspect-ratio: 424 / 399;
  overflow: clip;
}
/* Show the symbol from the original artwork. The name is set alongside it. */
.brand .brand__mark img {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: calc(-100% * 32 / 424);
  display: block;
  width: calc(100% * 479 / 424);
  height: auto;
  max-width: none;
}
.site-footer .brand__mark img { filter: brightness(0) invert(1); }
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 500 12px/1.1 var(--font-text);
  letter-spacing: .015em;
}

.nav .brand {
  font-size: 1.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.nav .brand__mark { width: 50px; }

main > .hero--split {
  --hgap: clamp(24px, 4vw, 56px);
  --hpadb: clamp(24px, 4vw, 48px);
  display: grid;
  align-content: center;
  height: auto;
  min-height: min(100svh, 52.5rem);
}
.hero--split > .wrap {
  height: auto;
  grid-template-rows: auto auto;
  row-gap: clamp(24px, 3vw, 42px);
}
.hero--split > .wrap > .hero__grid {
  display: grid;
  grid-template-rows: auto;
  align-items: start;
  row-gap: clamp(24px, 4vw, 40px);
  height: auto;
}
.hero__kicker {
  color: #84360d;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero--split .hero__text h1 {
  max-width: 22ch;
  font-size: var(--intro-title-size);
  font-weight: 650;
  line-height: 1.05;
}
.hero--split .hero__lead {
  max-width: 44ch;
  color: #484d52;
}
.hero--split .hero__media {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  margin: 0;
}

.hero__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-radius: var(--r-lg);
  background: var(--p-inv-bg);
  color: var(--p-inv-ink);
  list-style: none;
}
.hero__details > li + li { border-inline-start: 1px solid #45484b; }
.hero__details a {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 100%;
  padding: 16px clamp(16px, 2.25vw, 32px);
  line-height: 1.3;
}
.hero__details a span { font-size: .875rem; color: #d0d1d1; }
.hero__details a strong { font-size: clamp(1rem, .9rem + .4vw, 1.25rem); font-weight: 600; }
.hero__details a:is(:hover, :focus-visible) strong {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.hero__details a:focus-visible {
  outline-color: var(--accent);
  outline-offset: -5px;
  border-radius: var(--r-lg);
}

@media (max-width: 1023px) {
  main > .hero--split { min-height: min(100svh, 61rem); }
  .hero--split > .wrap > .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero--split .hero__grid > * { grid-column: auto; }
  .hero--split .hero__media { aspect-ratio: 2 / 1; }
}

@media (min-width: 1024px) and (max-width: 1160px) {
  .hero--split .hero__text .btn { padding-inline: 14px; font-size: .9375rem; }
}

@media (max-width: 639px) {
  :root { --nav: 66px; }
  .nav .brand { gap: 8px; font-size: 1.375rem; }
  .nav .brand__mark { width: 40px; }
  .hero--split .hero__text h1 { max-width: none; }
  .hero--split .hero__text > .hero__lead,
  .hero--split .hero__text > .btn-row { margin-top: 16px; }
  .hero--split .hero__text .btn { padding-inline: 14px; font-size: .875rem; }
  .hero__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__details > li:last-child {
    grid-column: 1 / -1;
    border-inline-start: 0;
    border-block-start: 1px solid #45484b;
  }
  .hero__details a { padding: 12px; }
  .hero__details a span { font-size: .8125rem; }
  .hero__details > li:last-child a {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
  }
}

#servizi {
  border-block: 1px solid var(--line);
}
.service-photo {
  height: clamp(440px, var(--ly-fit), 660px);
  --pos: 60% 50%;
}
.service-rows > li { display: block; padding-block: 10px; }
.service-rows > li:first-child { padding-top: 0; }
.service-rows > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.2;
}
.service-rows a span { color: #9b3c00; }

.method .mo-wh__text {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.07;
  font-size: clamp(34px, 3.55vw, 54px);
  letter-spacing: var(--display-tracking);
  max-width: 23ch;
}
.method :is(.mo-wh__text, .mo-wh__text strong) { --accent: #9b3c00; }
.method-detail p { max-width: 40ch; }
.method-detail .link { margin-top: 12px; }
.work-pair { margin-top: clamp(28px, 3.5vw, 52px); }
.work-pair .frame {
  height: clamp(240px, calc(var(--ly-fit) - 240px), 430px);
  --pos: 50% 48%;
}

.closing { background: var(--surface); }
.closing .close__media { --pos: 50% 17%; }
.closing .close__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pos);
}
.closing__cta h2 { max-width: 29ch; }
.closing__links .footer__legal { align-items: center; }
.closing__links .footer__legal .credits { width: auto; }
.footer__lede { margin-top: 14px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; }



@media (max-width: 1023px) {
  .service-photo { height: clamp(345px, 57vw, 530px); }
}

@media (max-width: 767px) {
  .service-photo {
    height: auto;
    aspect-ratio: 4 / 3;
    margin-top: 14px;
  }
  .method-detail .link { margin-top: 4px; }
  .work-pair { row-gap: 12px; }
  .work-pair .frame {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 1024px) and (max-width: 1160px) {
  #servizi .section-head { margin-bottom: 24px; }
  #servizi h2 { font-size: 36px; }
  .service-rows > li { padding-block: 5px; }
  .service-rows > li > p { font-size: 15px; }
}

@media (max-width: 639px) {
  .closing .close__media { --pos: 50% 50%; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav:not(.is-open) .nav__actions > .btn--secondary { display: inline-flex; }
  #servizi > .wrap, .method-top, .work-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #servizi > .wrap > *, .method-top > *, .work-pair > * { grid-column: auto; }
  .service-photo { height: clamp(440px, 60svh, 650px); }
  .method .work-pair .frame { height: clamp(350px, 48svh, 550px); }
  .closing__links > .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .closing__links > .grid > :first-child { grid-column: 1 / span 6; }
  .closing__links > .grid > .footer__col { grid-column: auto / span 3; }
}

@media (max-width: 639px) {
  #servizi .section-head { margin-bottom: 14px; }
  #servizi h2 { font-size: 30px; }
  .service-rows > li { padding-block: 3px; }
  .service-rows > li > p { font-size: 15px; line-height: 1.36; }
  .service-photo { height: clamp(150px, 48vw, 200px); margin-top: 0; }
  .method .mo-wh__text { font-size: clamp(29px, 8.2vw, 34px); }
  .work-pair { margin-top: 20px; }
  .work-pair .frame { aspect-ratio: 2 / 1; }
  .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}
.frame.frame--photo > picture {
  position: absolute;
  inset: 0;
}
.frame.frame--photo > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
@media (max-width: 639px) {
  .service-photo { margin-top: 10px; }
  .nav__bar { gap: 0; }
}
@media (max-width: 639px) {
  .service-photo {
    width: 100%;
    aspect-ratio: auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .service-rows a > span { transition: transform 180ms ease; }
  .service-rows a:is(:hover, :focus-visible) > span { transform: translate(2px, -2px); }
}

@media (min-width: 1024px) and (max-width: 1160px) {
  #servizi { --padb: 62px; }
}
@media (max-width: 639px) {
  #servizi {
    --padt: 58px;
    --padb: 36px;
  }
}
.nav__menu a[aria-label$="sito esterno"]::after,
.footer__col a[aria-label$="sito esterno"]::after {
  content: "↗" / "";
  margin-inline-start: 5px;
  color: #84360d;
  font-size: .85em;
}
.nav__menu a[aria-label$="sito esterno"] {
  display: block;
}

.method-detail > p + p {
  margin-top: 12px;
}
.method-detail > p > a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (min-width: 1024px) and (max-width: 1160px) {
  #servizi { --padt: 96px; }
}

.quote-description-hint {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
}
