/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #111111;
  --line: rgba(17, 17, 17, 0.10);
  --line-strong: rgba(17, 17, 17, 0.18);
  --bg: #f4f1ec;
  --container: min(1300px, calc(100% - 48px));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.5;
  background-color: var(--bg);
  background-image: url('/difrancesco/images/background.png');
  background-repeat: repeat;
  background-size: cover;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.site-header {
  padding-top: 34px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.45);
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  opacity: 0.65;
}

/* =========================
   HERO
========================= */
.contacts-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.contacts-hero__background {
  position: absolute;
  inset: 0;
}

.contacts-hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.58) 28%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0.04) 100%
  );
}

.contacts-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contacts-hero .container {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.contacts-hero__content {
  max-width: 520px;
  color: #ffffff;
  padding: 40px 0;
}

.contacts-hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(64px, 8vw, 108px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.contacts-hero__line {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  margin: 24px 0 28px;
}

.contacts-hero__text {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.45;
  font-weight: 400;
}

/* =========================
   INTRO
========================= */
.contacts-intro {
  padding: 56px 0 40px;
  text-align: center;
}

.contacts-intro__eyebrow {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  margin-bottom: 14px;
}

.contacts-intro__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 5vw, 78px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.contacts-intro__text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 23px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.82);
}

/* =========================
   TEAM CONTACTS
========================= */
.contact-team {
  padding: 10px 0 40px;
}

.contact-person {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-strong);
}

.contact-person--reverse .contact-person__media {
  order: 2;
}

.contact-person--reverse .contact-person__content {
  order: 1;
}

.contact-person__media img {
  width: 100%;
  object-fit: cover;
}

.contact-person__content {
  max-width: 620px;
}

.contact-person__name {
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.contact-person__role {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.74);
}

.contact-person__line {
  width: 56px;
  height: 1px;
  background: rgba(17, 17, 17, 0.35);
  margin: 20px 0;
}

.contact-person__bio {
  font-size: 21px;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.90);
  margin-bottom: 20px;
}

.contact-person__details {
  display: grid;
  gap: 12px;
}

.contact-person__details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  line-height: 1.45;
}

.contact-person__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.contact-person__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
   CTA
========================= */
.contacts-cta {
  padding: 36px 0 70px;
}

.contacts-cta__grid {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 34px;
  align-items: center;
  padding-top: 18px;
}

.contacts-cta__icon {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(17, 17, 17, 0.42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
}

.contacts-cta__content {
  border-left: 1px solid var(--line-strong);
  padding-left: 34px;
}

.contacts-cta__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 3vw, 54px);
  line-height: 1.02;
  font-weight: 400;
  margin-bottom: 8px;
}

.contacts-cta__text {
  font-size: 22px;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.82);
}

.contacts-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  min-width: 280px;
  background: #111111;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contacts-cta__button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.footer-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.footer-main {
  padding: 42px 0 56px;
}

.footer-brand {
  text-align: center;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  margin-bottom: 26px;
  padding-bottom: 16px;
}

.footer-logo {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column {
  text-align: center;
}

.footer-title {
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.footer-column p,
.footer-column a {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.88);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-social a {
  position: relative;
}

.footer-social a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: rgba(17, 17, 17, 0.3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-social a:hover::after {
  transform: scaleX(1);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .main-nav ul {
    gap: 22px;
  }

  .main-nav a {
    font-size: 17px;
  }

  .contact-person {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .contact-person--reverse .contact-person__media,
  .contact-person--reverse .contact-person__content {
    order: initial;
  }

  .contact-person__content {
    max-width: 100%;
  }

  .contacts-cta__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contacts-cta__content {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 860px) {
  .header-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo {
    margin: 0 auto;
  }

  .main-nav ul {
    justify-content: center;
  }

  .contacts-hero {
    min-height: 560px;
  }

  .contacts-hero .container {
    min-height: 560px;
  }

  .contacts-hero__title {
    font-size: clamp(54px, 11vw, 84px);
  }

  .contacts-hero__text {
    font-size: 24px;
  }

  .contacts-intro__title {
    font-size: 54px;
  }

  .contacts-intro__text {
    font-size: 20px;
  }

  .contact-person__name {
    font-size: 44px;
  }

  .contact-person__bio,
  .contact-person__details li {
    font-size: 18px;
  }

  .footer-banner img {
    height: 250px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100%, calc(100% - 28px));
  }

  .site-header {
    padding-top: 22px;
  }

  .logo {
    font-size: 18px;
  }

  .main-nav ul {
    gap: 14px 18px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .contacts-hero {
    min-height: 480px;
  }

  .contacts-hero .container {
    min-height: 480px;
  }

  .contacts-hero__content {
    max-width: 100%;
  }

  .contacts-hero__title {
    font-size: clamp(46px, 14vw, 70px);
  }

  .contacts-hero__line {
    margin: 18px 0 20px;
  }

  .contacts-hero__text {
    font-size: 20px;
    line-height: 1.5;
  }

  .contacts-intro {
    padding: 36px 0 28px;
  }

  .contacts-intro__eyebrow {
    font-size: 14px;
  }

  .contacts-intro__title {
    font-size: 38px;
  }

  .contacts-intro__text {
    font-size: 17px;
  }

  .contact-team {
    padding: 0 0 20px;
  }

  .contact-person {
    padding: 18px 0 30px;
  }

  .contact-person__name {
    font-size: 34px;
  }

  .contact-person__role {
    font-size: 13px;
  }

  .contact-person__bio,
  .contact-person__details li {
    font-size: 16px;
    line-height: 1.55;
  }

  .contacts-cta {
    padding: 0px 0 44px;
  }

  .contacts-cta__icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .contacts-cta__title {
    font-size: 32px;
  }

  .contacts-cta__text {
    font-size: 18px;
  }

  .contacts-cta__button {
    width: 100%;
  }

  .footer-banner img {
    height: 180px;
  }

  .footer-main {
    padding: 32px 0 42px;
  }

  .footer-brand {
    padding-bottom: 15px;
    margin-bottom: 25px;
  }

  .footer-logo {
    font-size: 20px;
  }

  .footer-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 15px;
    line-height: 1.6;
  }

  .footer-social {
    gap: 14px;
  }
}