body .ContactPage__icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

body .ContactPage__intro {
  border-bottom: 0;
}

body .ContactPage__locations {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

body .ContactPage__location {
  display: grid;
  overflow: hidden;
  background: #f4f4f2;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.04);
}

body .ContactPage__location--showroom {
  grid-template-areas:
    "content"
    "media";
}

body .ContactPage__location--factory {
  grid-template-areas:
    "media"
    "content";
}

body .ContactPage__location-media {
  grid-area: media;
  width: 100%;
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  margin: 0;
  overflow: hidden;
  background: #e8e8e6;
}

body .ContactPage__location-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

body .ContactPage__location-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(42px, 5vw, 72px);
  background: linear-gradient(135deg, #f7f7f5 0%, #efefed 100%);
}

body .ContactPage__location-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

body .ContactPage__location-header h2 {
  flex: 0 0 auto;
  margin: 0;
  color: #111;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

body .ContactPage__location-header > span {
  width: 44px;
  height: 1px;
  background: rgba(17, 17, 17, 0.42);
}

body .ContactPage__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

body .ContactPage__details li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 15px 14px 15px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  color: #232323;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

body .ContactPage__details li:nth-child(even):not(.ContactPage__detail--wide) {
  padding-right: 0;
  padding-left: 14px;
}

body .ContactPage__details .ContactPage__detail--wide {
  grid-column: 1 / -1;
  padding-right: 0;
}

body .ContactPage__detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 50%;
}

body .ContactPage__detail-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .ContactPage__details a {
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body .ContactPage__details a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

body .ContactPage__details a:hover::after,
body .ContactPage__details a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

body .ContactPage__details a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

@media (min-width: 1355.1px) {
  body .ContactPage__location {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 530px;
    min-height: 530px;
    max-height: 530px;
  }

  body .ContactPage__location--showroom {
    grid-template-areas: "content media";
  }

  body .ContactPage__location--factory {
    grid-template-areas: "media content";
  }

  body .ContactPage__location-media,
  body .ContactPage__location-content {
    height: 530px;
    min-height: 530px;
    max-height: 530px;
  }
}

@media (max-width: 639.98px) {
  body .ContactPage__locations {
    gap: 28px;
    margin-top: 28px;
  }

  body .ContactPage__location-content {
    padding: 34px 24px 38px;
  }

  body .ContactPage__location-header {
    gap: 16px;
    margin-bottom: 22px;
  }

  body .ContactPage__location-header h2 {
    font-size: 26px;
  }

  body .ContactPage__location-header > span {
    width: 34px;
  }

  body .ContactPage__details {
    grid-template-columns: minmax(0, 1fr);
  }

  body .ContactPage__details li,
  body .ContactPage__details li:nth-child(even):not(.ContactPage__detail--wide) {
    grid-column: 1;
    padding: 14px 0;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .ContactPage__details a::after {
    transition: none;
  }
}

/*
 * Notebook and compact-desktop contact composition.
 * Keep the fixed-header clearance intact, then use the available viewport more
 * efficiently by tightening the introduction while preserving the familiar
 * single-column form flow. Wide desktops and the existing tablet/mobile flow
 * stay intact.
 */
@media (min-width: 1200.1px) and (max-width: 1536px),
  (min-width: 1200.1px) and (max-width: 1728px) and (max-height: 900px) {
  body .ContactPage__intro {
    grid-template-columns: minmax(190px, 0.6fr) minmax(0, 1.4fr);
    gap: clamp(24px, 3vw, 46px);
    padding: 20px 0 18px;
  }

  body .ContactPage__intro h1 {
    font-size: clamp(40px, 3.1vw, 46px);
    line-height: 0.94;
  }

  body .ContactPage__intro p {
    max-width: 620px;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.18;
  }

  body .ContactPage__form {
    align-items: flex-end;
    padding: 18px 0 28px;
  }

  body .ContactPage__form .formInner {
    width: min(100%, 760px);
    max-width: 760px;
  }

  body .ContactPage__form .formInner .legend {
    gap: 9px;
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 1.2;
  }

  body .ContactPage__form .formInner .legend img {
    width: 30px;
    height: 30px;
  }

  body .ContactPage__form .formInner form fieldset {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body .ContactPage__form .formInner form fieldset > p {
    min-width: 0;
    margin: 0;
  }

  body .ContactPage__form .formInner form fieldset > p > label {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.25;
  }

  body .ContactPage__form .formInner form fieldset > p > input[type="email"],
  body .ContactPage__form .formInner form fieldset > p > input[type="text"],
  body .ContactPage__form .formInner form fieldset > p > input[type="tel"],
  body .ContactPage__form .formInner form fieldset > p > textarea {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.35;
  }

  body .ContactPage__form .formInner form fieldset > p > textarea {
    height: 70px;
    resize: vertical;
  }

  body .ContactPage__form .formInner form fieldset > .scatto-form-consent {
    min-height: 44px;
  }

  body .ContactPage__form .formInner form fieldset > .actions,
  body .ContactPage__form .formInner form fieldset > .actions .Button {
    min-height: 44px;
  }

  body .ContactPage__form .formInner form fieldset > .scatto-form-status {
    grid-column: 1 / -1;
    min-height: 24px;
  }

  body .ContactPage__locations {
    margin-top: 24px;
  }
}
