@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Satoshi-Regular.woff?v=1.0.5") format("woff");
}

@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Satoshi-Medium.woff?v=1.0.5") format("woff");
}

@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Satoshi-Bold.woff?v=1.0.5") format("woff");
}

@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/Satoshi-Black.woff?v=1.0.5") format("woff");
}

:root {
  --color-charcoal: #232222;
  --color-footer: #46484a;
  --color-footer-muted: #b6b6b6;
  --color-services: #e1cc76;
  --color-services-card: #c9b04a;
  --color-services-mark: #8d6a00;
  --color-white: #fff;
  --page-gutter: 1.5rem;
  --content-width: 72.125rem;
  --carousel-full-width: 92.9375rem;
  --desktop-section-gutter: 8.9375rem;
  --transition: 320ms cubic-bezier(.2, .7, .2, 1);
  font-family: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  color: #000;
  background: var(--color-footer);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--color-footer);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.625rem 0.875rem;
  color: #000;
  background: var(--color-services);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  color: var(--color-white);
  background: var(--color-charcoal);
}

.hero__main {
  position: relative;
  min-height: 51.25rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)),
    url("assets/hero.jpg") center center / cover no-repeat;
}

.site-header,
.hero-copy,
.brand-strip__inner,
.services__inner,
.site-footer__top,
.site-footer__bottom {
  width: min(var(--content-width), calc(100% - (2 * var(--page-gutter))));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 1.5625rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
  text-decoration: none;
}

.brand-lockup img {
  width: 10.375rem;
  height: 4.5rem;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1.5625rem;
  padding-top: 0.625rem;
}

.header-contact__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--color-white);
  text-decoration: none;
}

.header-contact__copy span {
  color: rgba(255, 255, 255, .78);
  font-size: 0.625rem;
  line-height: 1.2;
  letter-spacing: 0.09375rem;
}

.header-contact__copy strong {
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.125rem;
}

.phone-button {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 3.25rem;
  transition: transform 180ms ease;
}

.phone-button:hover {
  transform: translateY(-0.125rem);
}

.phone-button img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: absolute;
  right: 0;
  bottom: 4.4375rem;
  left: 0;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 1.0625rem;
  width: max-content;
  margin-bottom: 1.75rem;
}

.social-proof__avatars {
  width: 4.319938rem;
  height: 2.602813rem;
  flex: 0 0 4.319938rem;
}

.social-proof__avatars img {
  width: 100%;
  height: 100%;
}

.social-proof__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 12.4375rem;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.00875rem;
  white-space: nowrap;
}

.social-proof__review {
  display: flex;
  height: 1.125rem;
  align-items: center;
  gap: 0.5rem;
}

.social-proof__review img {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 1.125rem;
}

.social-proof__review strong {
  font-weight: 500;
}

.hero h1 {
  max-width: 56.25rem;
  margin: 0;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.hero-copy > p {
  max-width: 32.3125rem;
  margin: 1.375rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01rem;
}

.brand-strip {
  min-height: 5.3125rem;
  background: var(--color-charcoal);
}

.brand-strip__inner {
  display: grid;
  min-height: 5.3125rem;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
}

.brand-strip p {
  margin: 0;
  color: #777;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.00875rem;
}

.brand-strip__marquee {
  min-width: 0;
}

.brand-strip ul {
  display: flex;
  height: 5.3125rem;
  margin: 0;
  padding: 0;
  align-items: stretch;
  list-style: none;
}

.brand-strip li {
  display: grid;
  min-width: 8.75rem;
  padding: 0 1.875rem;
  place-items: center;
  color: #666;
  border-left: 1px solid rgba(255, 255, 255, .08);
  white-space: nowrap;
}

.brand-strip .brand-strip__group--clone {
  display: none;
}

.brand-strip li img {
  width: auto;
  height: auto;
  opacity: .72;
}

.brand-strip .brand-logo--ariston {
  width: 6.834875rem;
}

.brand-strip .brand-logo--viessmann {
  width: 7.256563rem;
}

.brand-strip .brand-logo--ferroli {
  width: 3.550063rem;
}

.brand-strip .brand-logo--motan {
  width: 4.608438rem;
}

.brand-strip .brand-logo--immergas {
  width: 5.625rem;
}

.brand-strip .brand-logo--fornello {
  width: 4.625rem;
}

.services {
  height: 67.625rem;
  overflow: hidden;
  background: var(--color-services);
}

.services__inner {
  position: relative;
  height: 100%;
  padding-top: 5.125rem;
}

.services-intro {
  width: 29.4375rem;
}

.services-intro__mark {
  width: 2.5625rem;
  height: 4rem;
  margin-bottom: 2.1875rem;
  color: var(--color-services-mark);
}

.services h2 {
  margin: 0;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.services-carousel {
  position: absolute;
  bottom: 1.5rem;
  left: calc(
    0rem - max(
      var(--page-gutter),
      calc((100vw - var(--content-width)) / 2)
    )
  );
  width: 100vw;
}

.services-track {
  display: flex;
  width: 100%;
  gap: 1.5rem;
  padding-right: var(--page-gutter);
  padding-left: max(
    var(--page-gutter),
    calc((100vw - var(--content-width)) / 2)
  );
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: max(
    var(--page-gutter),
    calc((100vw - var(--content-width)) / 2)
  ) var(--page-gutter);
  scrollbar-width: none;
  cursor: default;
  touch-action: pan-y;
}

.services-track::-webkit-scrollbar {
  display: none;
}

.services-track.is-scrollable {
  cursor: grab;
}

.services-track.is-scrollable.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.service-card {
  position: relative;
  display: block;
  width: 14.75rem;
  height: 22.125rem;
  flex: 0 0 14.75rem;
  padding: 1.5rem;
  overflow: hidden;
  color: #000;
  background: var(--color-services-card);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: width var(--transition), flex-basis var(--transition), filter 180ms ease;
}

.service-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.service-card__number {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  display: block;
  color: #000;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  transition: opacity 160ms ease;
}

.service-card__content {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #fff;
  opacity: 0;
  text-align: left;
  transform: translateY(0.375rem);
  transition: opacity 180ms ease, transform var(--transition);
}

.service-card__content strong {
  color: var(--color-services);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.15;
}

.service-card__content > span {
  font-size: 0.84375rem;
  font-weight: 400;
  line-height: 1.35;
}

.service-card.is-active {
  width: 27.9375rem;
  flex-basis: 27.9375rem;
  background: #333;
}

.service-card.is-active img {
  opacity: 1;
}

.service-card.is-active::after {
  opacity: 1;
}

.service-card.is-active .service-card__number {
  color: var(--color-services);
  opacity: 1;
}

.service-card.is-active .service-card__content {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover:not(.is-active) {
  filter: brightness(.96);
}

.service-card:focus-visible,
.services-track:focus-visible,
.phone-button:focus-visible,
a:focus-visible {
  outline: 0.1875rem solid #fff;
  outline-offset: 0.1875rem;
}

.service-card:focus-visible,
.services-track:focus-visible {
  outline-color: #000;
}

.site-footer {
  min-height: 30.3125rem;
  padding: 3.5625rem 0;
  color: var(--color-white);
  background: var(--color-footer);
}

.site-footer__top {
  display: flex;
  min-height: 9.5rem;
  justify-content: space-between;
}

.contact-info {
  display: flex;
  width: 15rem;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.35;
}

.contact-info strong,
.review-links strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.contact-info a {
  width: max-content;
  max-width: 100%;
  color: var(--color-footer-muted);
  font-weight: 500;
  text-decoration: none;
}

.header-contact__copy:hover,
.contact-info a:hover,
.review-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}

.review-links {
  display: flex;
  width: 11rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.review-links strong {
  margin-bottom: 0.375rem;
}

.review-links a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-footer-muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.1875rem;
}

.review-links a img {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
}

.site-footer__bottom {
  display: flex;
  min-height: 8rem;
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #5b5f61;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 1.25rem;
}

@media (min-width: 47.5625rem) and (max-width: 63.9375rem) {
  .brand-strip__inner {
    display: block;
    width: 100%;
    margin-inline: 0;
    overflow: hidden;
  }

  .brand-strip p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .brand-strip ul {
    width: max-content;
    flex: 0 0 auto;
    align-items: center;
    gap: 2rem;
  }

  .brand-strip li {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .brand-strip__marquee {
    display: flex;
    width: max-content;
    height: 5.3125rem;
    gap: 2rem;
    animation: brand-marquee-mobile 14s linear infinite;
    will-change: transform;
  }

  .brand-strip .brand-strip__group--clone {
    display: flex;
  }
}

@media (max-width: 47.5rem) {
  :root {
    --page-gutter: 1.5rem;
  }

  .site-header,
  .hero-copy,
  .brand-strip__inner,
  .services__inner,
  .site-footer__top,
  .site-footer__bottom {
    width: calc(100% - (2 * var(--page-gutter)));
  }

  .hero__main {
    min-height: 27.125rem;
    background-position: 52% center;
  }

  .site-header {
    align-items: center;
    padding-top: 1.5625rem;
  }

  .site-header .brand-lockup img {
    width: 5.625rem;
    height: auto;
  }

  .header-contact {
    gap: 1.5rem;
    padding-top: 0;
  }

  .header-contact__copy span {
    font-size: 0.5rem;
    letter-spacing: 0.075rem;
  }

  .header-contact__copy strong {
    font-size: 0.625rem;
    letter-spacing: 0.1rem;
  }

  .phone-button {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
  }

  .hero-copy {
    bottom: 1.25rem;
  }

  .social-proof {
    gap: 1.0625rem;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: .95;
    letter-spacing: 0.075rem;
  }

  .hero-copy > p {
    max-width: 21.5625rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.35;
  }

  .brand-strip,
  .brand-strip__inner {
    height: 4.6875rem;
    min-height: 4.6875rem;
  }

  .brand-strip__inner {
    display: block;
    width: 100%;
    margin-inline: 0;
    overflow: hidden;
  }

  .brand-strip p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .brand-strip ul {
    display: flex;
    width: max-content;
    height: 4.6875rem;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .brand-strip li {
    display: grid;
    min-width: 0;
    padding: 0;
    border: 0;
    place-items: center;
  }

  .brand-strip .brand-logo--motan {
    width: 3.550063rem;
  }

  .brand-strip__marquee {
    display: flex;
    width: max-content;
    height: 4.6875rem;
    gap: 2rem;
    animation: brand-marquee-mobile 14s linear infinite;
    will-change: transform;
  }

  .brand-strip .brand-strip__group--clone {
    display: flex;
  }

  .brand-strip:hover .brand-strip__marquee {
    animation-play-state: paused;
  }

  .services {
    height: 56.25rem;
  }

  .services__inner {
    padding-top: 5.125rem;
  }

  .services-intro {
    width: 100%;
  }

  .services-intro__mark {
    width: 2.5625rem;
    height: 4rem;
    margin-bottom: 2.1875rem;
  }

  .services h2 {
    max-width: 21.5625rem;
    font-size: 2.5rem;
    line-height: 1;
  }

  .services-carousel {
    bottom: 1.5rem;
  }

  .services-track {
    overflow-x: hidden;
    cursor: default;
  }

  .services-track.is-scrollable,
  .services-track.is-scrollable.is-dragging {
    cursor: default;
  }

  .service-card.is-active {
    width: min(16rem, calc(100vw - 7rem));
    flex-basis: min(16rem, calc(100vw - 7rem));
  }

  .service-card.is-active img {
    object-fit: cover;
  }

  .service-card__content {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    gap: 0.3125rem;
  }

  .service-card__content strong {
    font-size: 1.2rem;
  }

  .service-card__content > span {
    font-size: 1rem;
    line-height: 1.3;
  }

  .site-footer {
    height: 30.3125rem;
    min-height: 30.3125rem;
    padding: 3.5625rem 0 0.25rem;
  }

  .site-footer__top {
    display: flex;
    min-height: 16.875rem;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
  }

  .contact-info {
    gap: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.035;
  }

  .contact-info strong,
  .review-links strong {
    font-size: 1rem;
    line-height: .75;
  }

  .contact-info > a:last-child {
    line-height: .715;
  }

  .review-links {
    gap: 0.5rem;
  }

  .review-links strong {
    margin-bottom: 0.625rem;
  }

  .review-links a {
    font-size: 0.875rem;
  }

  .site-footer__bottom {
    min-height: 7.625rem;
    margin-top: 2rem;
    padding-top: 0;
    align-items: flex-start;
    flex-direction: column;
    border-top: 0;
  }

  .site-footer__bottom .brand-lockup img {
    width: 10.875rem;
    height: 4.4375rem;
  }

  .site-footer__bottom p {
    font-size: 1.25rem;
    line-height: 1.35;
  }
}

@media (max-width: 21.25rem) {
  .social-proof {
    gap: 0.625rem;
  }

  .social-proof__avatars {
    width: 3.75rem;
    height: auto;
    flex-basis: 3.75rem;
  }

  .social-proof__text {
    width: auto;
    font-size: 0.8125rem;
    letter-spacing: 0.008125rem;
  }

  .social-proof__review {
    gap: 0.375rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@keyframes brand-marquee-mobile {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 1rem), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

}

@media (prefers-reduced-motion: reduce) and (max-width: 63.9375rem) {
  .brand-strip__marquee {
    animation: none;
    transform: translateX(-1.3125rem);
  }
}
