/* Contacts page — immersive layout with the existing functional contact flow. */
body.contacts-page {
  --contacts-ink: #171817;
  --contacts-paper: var(--neutral-050);
  --contacts-soft: var(--neutral-100);
  --contacts-sand: var(--neutral-200);
  --contacts-on-burgundy: var(--neutral-050);
  --contacts-burgundy: #722a35;
  --contacts-line: rgba(23, 24, 23, 0.14);
  color: var(--contacts-ink);
  background: var(--contacts-paper);
}

.contacts-main {
  overflow: clip;
  background: var(--contacts-paper);
}

.contacts-hero__media { background: none; }

.contacts-hero__media picture,
.contacts-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.contacts-hero__media img {
  object-fit: cover;
  object-position: center;
}

.contacts-hero__shade {
  background:
    linear-gradient(90deg, rgba(15, 17, 16, 0.76) 0%, rgba(15, 17, 16, 0.36) 52%, rgba(15, 17, 16, 0.08) 100%),
    linear-gradient(0deg, rgba(9, 11, 10, 0.52) 0%, transparent 52%, rgba(9, 11, 10, 0.08) 100%);
}

.contacts-hero .as-home-hero__title {
  max-width: 930px;
  font-family: "Engravers MT", Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 4.2rem) !important;
  font-weight: 400;
  font-variation-settings: normal;
  line-height: 1.06;
  letter-spacing: 0.005em;
}

.contacts-hero .as-home-hero__title em {
  font-style: normal;
  font-weight: 400;
  font-variation-settings: normal;
}

.contacts-hero .as-home-hero__lead { max-width: 620px; }

.contacts-hero__action.as-home-search {
  display: inline-flex;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.contacts-hero__action a {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 15px 20px;
  color: var(--contacts-ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--contacts-soft);
  border-radius: 8px;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.contacts-hero__action a:hover,
.contacts-hero__action a:focus-visible {
  color: #fff;
  background: var(--contacts-burgundy);
  transform: translateY(-2px);
}

[data-editorial-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--editorial-reveal-delay, 0ms),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--editorial-reveal-delay, 0ms);
}

[data-editorial-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contacts-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, transparent calc(100% - 1px), rgba(23, 24, 23, 0.1) 1px);
  background-size: 25% 100%;
}

.contacts-overview {
  position: relative;
  padding: clamp(100px, 12vw, 190px) 0;
  overflow: hidden;
  background: var(--contacts-sand);
  scroll-margin-top: 90px;
}

.contacts-overview__label {
  display: flex;
  justify-content: space-between;
  padding-bottom: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--contacts-line);
}

.contacts-overview__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.7fr);
  gap: clamp(54px, 8vw, 130px);
  align-items: end;
  padding: clamp(70px, 9vw, 140px) 0;
}

.contacts-overview h2,
.contacts-closing h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 280;
  font-variation-settings: "wght" 280;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.contacts-overview h2 {
  font-size: clamp(4.4rem, 7.6vw, 8.4rem) !important;
}

.contacts-overview h2 em,
.contacts-closing h2 em {
  color: var(--contacts-burgundy);
  font-weight: 280;
  font-variation-settings: "wght" 280;
}

.contacts-overview__intro > p {
  max-width: 440px;
  margin: 0 0 8px;
}

.contacts-offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(3rem, 6vw, 6rem);
}

.contacts-office {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 4vw, 64px);
  overflow: hidden;
  border-radius: 18px;
}

.contacts-office--rome {
  color: var(--contacts-ink);
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.9), transparent 24%),
    var(--contacts-soft);
  border: 1px solid rgba(23, 24, 23, 0.08);
}

.contacts-office__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contacts-office__body {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin: auto 0;
}

.contacts-office h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(4rem, 6vw, 7rem) !important;
  font-weight: 280;
  font-variation-settings: "wght" 280;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.contacts-office address {
  max-width: 230px;
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.5;
  text-align: right;
}

.contacts-office > a,
.contacts-office__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0 10px;
  color: inherit;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.contacts-office__links { display: grid; }

.contacts-office__links a > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  overflow-wrap: anywhere;
}

.contacts-office__links a > span i {
  color: var(--contacts-burgundy);
  flex: 0 0 auto;
}

.contacts-office__links a > .bi-arrow-up-right { transition: transform 0.25s ease; }
.contacts-office__links a:hover > .bi-arrow-up-right { transform: translate(3px, -3px); }

.contacts-form-section {
  padding: clamp(100px, 12vw, 190px) 0;
  background: var(--contacts-paper);
  scroll-margin-top: 90px;
}

.contacts-form-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1.5fr) minmax(280px, 0.65fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
  margin-bottom: clamp(70px, 9vw, 140px);
}

.contacts-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contacts-kicker::before {
  width: 32px;
  height: 1px;
  content: '';
  background: currentColor;
}

.contacts-form-heading .main-title { margin: 0; }

.contacts-form-heading > p {
  max-width: 370px;
  margin: 12px 0 0;
}

.contacts-form-layout {
  display: block;
}

.contacts-form-card {
  border-radius: 18px;
}

.contacts-form-card {
  padding: clamp(34px, 5vw, 72px);
  background: #fff;
  border: 1px solid rgba(23, 24, 23, 0.08);
}

.contacts-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 60px);
}

.contacts-field {
  position: relative;
  padding: 20px 0 24px;
  border-bottom: 1px solid rgba(23, 24, 23, 0.22);
}

.contacts-field--wide { grid-column: 1 / -1; }

.contacts-field label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contacts-field label span { color: var(--contacts-burgundy); }

.contacts-field input:not([type='file']),
.contacts-field textarea {
  width: 100%;
  padding: 0;
  color: var(--contacts-ink);
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.contacts-field textarea { min-height: 145px; resize: vertical; }

.contacts-field input::placeholder,
.contacts-field textarea::placeholder { color: rgba(23, 24, 23, 0.42); }

.contacts-field:focus-within { border-bottom-color: var(--contacts-burgundy); }

.contacts-field small {
  display: block;
  margin-top: 8px;
  color: rgba(23, 24, 23, 0.54);
  font-size: 0.72rem;
}

.contacts-field--control {
  grid-column: 1 / -1;
  max-width: 300px;
}

.contacts-field--control strong { color: var(--contacts-burgundy); }

.contacts-privacy {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 32px;
  cursor: pointer;
}

.contacts-privacy input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--contacts-burgundy);
  flex: 0 0 auto;
}

.contacts-privacy span {
  max-width: 660px;
  color: rgba(23, 24, 23, 0.65);
  font-size: 0.76rem;
  line-height: 1.45;
}

.contacts-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 38px;
}

.contacts-submit button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 15px 20px;
  color: #fff;
  font-weight: 700;
  background: var(--contacts-burgundy);
  border: 0;
  border-radius: 8px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.contacts-submit button:hover:not(:disabled),
.contacts-submit button:focus-visible:not(:disabled) {
  background: #541e28;
  transform: translateY(-2px);
}

.contacts-submit button:disabled { cursor: wait; opacity: 0.75; }
.contacts-submit .btn-label-loading { align-items: center; gap: 8px; }

.contacts-closing {
  padding: 0 0 clamp(100px, 12vw, 190px);
  background: var(--contacts-sand);
}

.contacts-closing__card {
  min-height: min(720px, 78svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 9vw, 140px) 28px;
  color: var(--contacts-on-burgundy);
  text-align: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.15), transparent 24%),
    repeating-linear-gradient(165deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 13px),
    var(--contacts-burgundy);
  border-radius: 18px;
}

.contacts-closing__card > img {
  width: min(260px, 62vw);
  height: auto;
  margin-bottom: 34px;
}

.contacts-closing__card > span {
  margin-bottom: 24px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contacts-closing h2 {
  max-width: 980px;
  font-size: clamp(3.8rem, 6.2vw, 7.2rem) !important;
  line-height: 0.92;
}

.contacts-closing h2 em { color: var(--contacts-sand); }

.contacts-closing__card > a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  padding: 15px 21px;
  color: var(--contacts-ink);
  font-weight: 700;
  text-decoration: none;
  background: var(--contacts-sand);
  border-radius: 8px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.contacts-closing__card > a:hover,
.contacts-closing__card > a:focus-visible {
  background: #fff;
  transform: translateY(-2px);
}

@media (max-width: 1199.98px) {
  .contacts-form-heading { grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1.35fr) minmax(250px, 0.6fr); }
}

@media (max-width: 991.98px) {
  .contacts-hero .as-home-hero__title { max-width: 700px; font-size: clamp(2.1rem, 6vw, 3.5rem) !important; }
  .contacts-overview__intro,
  .contacts-form-heading { grid-template-columns: 1fr; }
  .contacts-overview__intro { gap: 48px; }
  .contacts-overview__intro > p { max-width: 650px; }
  .contacts-offices { grid-template-columns: 1fr; }
  .contacts-office { min-height: 540px; }
  .contacts-form-heading { gap: 36px; }
  .contacts-form-heading > p { max-width: 620px; }
}

@media (max-width: 767.98px) {
  .contacts-hero__shade {
    background:
      linear-gradient(90deg, rgba(9, 11, 10, 0.68) 0%, rgba(9, 11, 10, 0.32) 68%, rgba(9, 11, 10, 0.1) 100%),
      linear-gradient(0deg, rgba(9, 11, 10, 0.78) 0%, rgba(9, 11, 10, 0.2) 74%, rgba(9, 11, 10, 0.08) 100%);
  }

  .contacts-hero .as-home-hero__inner { padding-bottom: 104px; }
  .contacts-hero .as-home-hero__title { font-size: clamp(1.65rem, 7vw, 2.25rem) !important; line-height: 1.12; letter-spacing: 0; }
  .contacts-hero .as-home-hero__lead { margin-top: 22px; }
  .contacts-hero__action a { padding: 13px 16px; }

  .contacts-grid-lines { background-size: 50% 100%; }
  .contacts-overview__label { gap: 30px; }
  .contacts-overview__label span:last-child { text-align: right; }
  .contacts-overview h2 { font-size: clamp(3rem, 14.8vw, 4.2rem) !important; }
  .contacts-overview__intro { padding-block: 62px; }

  .contacts-office { min-height: 500px; padding: 30px 26px; border-radius: 12px; }
  .contacts-office__body { flex-direction: column; align-items: flex-start; }
  .contacts-office h3 { font-size: clamp(4rem, 19vw, 5.4rem) !important; }
  .contacts-office address { text-align: left; }
  .contacts-office > a,
  .contacts-office__links a { font-size: 1rem; }

  .contacts-form-card { border-radius: 12px; }
  .contacts-form-card { padding: 30px 24px; }
  .contacts-fields { grid-template-columns: 1fr; }
  .contacts-field--wide,
  .contacts-field--control { grid-column: auto; }
  .contacts-field--control { max-width: none; }
  .contacts-submit { justify-content: stretch; }
  .contacts-submit button { width: 100%; justify-content: center; }

  .contacts-closing { padding-inline: 6px; }
  .contacts-closing__card { min-height: 690px; border-radius: 12px; }
  .contacts-closing h2 { font-size: clamp(3rem, 13.8vw, 4rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-editorial-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
