
/* PAGINA CONTATTI — contenuti HTML/CSS responsive, header e area finale condivisi */
.contact-page {
  background: #f4f4f2;
  color: #171717;
}

.contact-page main {
  background: #f4f4f2;
}

.contact-container {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding-left: clamp(24px, 4.6vw, 72px);
  padding-right: clamp(24px, 4.6vw, 72px);
}

.contact-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f7f5f2;
  color: #111;
  border-bottom: 0;
  box-shadow: none;
}

/* Transizione full-width HERO → modulo: elimina la linea di giunzione
   anche nelle fasce laterali esterne al contenitore centrale. */
.contact-hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(48px, 5vw, 78px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(247, 245, 242, 0) 0%,
    rgba(246, 244, 241, .48) 42%,
    #f4f4f2 100%
  );
}

.contact-hero__inner {
  min-height: clamp(390px, 31vw, 520px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.1fr);
  align-items: stretch;
  padding-right: 0;
}

.contact-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(48px, 5.5vw, 86px);
  padding-bottom: clamp(48px, 5.5vw, 86px);
  padding-right: clamp(28px, 4.5vw, 70px);
  background: linear-gradient(to right, #f7f5f2 0%, #f7f5f2 86%, rgba(247,245,242,.84) 94%, rgba(247,245,242,0) 100%);
}


.contact-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: #121212;
  font-size: clamp(2.65rem, 3.55vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
}

.contact-hero h1 span {
  display: block;
  white-space: nowrap;
}

.contact-rule {
  display: block;
  width: clamp(52px, 4.4vw, 70px);
  height: 4px;
  margin: clamp(22px, 2vw, 31px) 0;
  background: var(--accent);
}

.contact-lead {
  max-width: 52ch;
  margin: 0;
  color: #464646;
  font-size: clamp(1rem, 1.12vw, 1.18rem);
  line-height: 1.65;
}

.contact-hero__visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f3f1ee;
}

.contact-hero__visual::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(18px, 3.5vw, 64px);
  pointer-events: none;
  background: linear-gradient(to right, #f7f5f2 0%, rgba(247,245,242,.64) 38%, transparent 100%);
}

.contact-hero__visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(24px, 4vw, 72px);
  pointer-events: none;
  background: linear-gradient(to right, transparent 0%, rgba(247,245,242,.38) 52%, #f7f5f2 100%);
}

.contact-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.contact-main {
  width: 100%;
  margin-top: 0;
  padding: clamp(46px, 5.2vw, 82px) 0 clamp(58px, 6vw, 96px);
  background: #f4f4f2;
  color: #171717;
  border-top: 0;
  box-shadow: none;
}

.contact-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, .85fr);
  align-items: start;
  gap: clamp(24px, 3.2vw, 48px);
}

.contact-form-card,
.contact-direct-card {
  border: 1px solid #d8d8d4;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.045);
}

.contact-form-card {
  padding: clamp(28px, 3.2vw, 48px);
}

.contact-direct-card {
  padding: clamp(28px, 3vw, 44px);
  background: linear-gradient(145deg, #080b11 0%, #111720 100%);
  color: #fff;
}

.contact-section-heading h2 {
  margin: 0;
  color: #181818;
  font-size: clamp(1.35rem, 1.55vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.contact-section-heading > span {
  display: block;
  width: 44px;
  height: 3px;
  margin: 10px 0 8px;
  background: var(--accent);
}

.contact-section-heading p {
  margin: 0 0 clamp(24px, 2.4vw, 34px);
  color: #606060;
  font-size: .95rem;
  line-height: 1.5;
}

.contact-section-heading--dark h2 {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  color: #292929;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .015em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #d8d8d4;
  border-radius: 0;
  background: #fff;
  color: #171717;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.contact-field input,
.contact-field select {
  min-height: 52px;
  padding: 0 15px;
}

.contact-field textarea {
  min-height: 168px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.5;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239,31,47,.1);
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #555;
  font-size: .78rem;
  line-height: 1.5;
  cursor: pointer;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.contact-submit {
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .025em;
  transition: filter .18s ease, transform .18s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  filter: brightness(.92);
  transform: translateY(-1px);
}

.contact-submit:focus-visible {
  outline: 3px solid #171717;
  outline-offset: 3px;
}

.contact-form__status {
  min-height: 1.35em;
  margin: -4px 0 0;
  color: #555;
  font-size: .78rem;
  line-height: 1.45;
}

.contact-direct-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.17);
}

.contact-direct-item svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #fff;
}

.contact-direct-item strong,
.contact-direct-item span,
.contact-direct-item a {
  display: block;
}

.contact-direct-item strong {
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 700;
}

.contact-direct-item span,
.contact-direct-item a {
  color: #d6d9df;
  font-size: .88rem;
  line-height: 1.5;
  text-decoration: none;
}

.contact-direct-item a:hover,
.contact-direct-item a:focus-visible {
  color: var(--accent);
}

.contact-direct-note {
  padding-top: 24px;
}

.contact-direct-note p {
  max-width: 28ch;
  margin: 0;
  color: #d6d9df;
  font-size: .88rem;
  line-height: 1.65;
}

@media (max-width: 1050px) {
  .contact-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
  }

  .contact-main__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(285px, .8fr);
  }
}

@media (max-width: 900px) {
  .contact-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-right: clamp(24px, 4.6vw, 72px);
  }

  .contact-hero__copy {
    padding-right: 0;
    background: transparent;
  }

  .contact-hero__visual {
    min-height: 340px;
    margin-left: calc(clamp(24px, 4.6vw, 72px) * -1);
    margin-right: calc(clamp(24px, 4.6vw, 72px) * -1);
  }

  .contact-hero__visual::before,
  .contact-hero__visual::after {
    display: none;
  }

  .contact-main__grid {
    grid-template-columns: 1fr;
  }

  .contact-direct-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }

  .contact-direct-card .contact-section-heading,
  .contact-direct-card .contact-direct-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .contact-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-hero__inner {
    padding-right: 20px;
  }

  .contact-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .contact-hero h1 span {
    white-space: normal;
  }

  .contact-hero__visual {
    min-height: 260px;
    margin-left: -20px;
    margin-right: -20px;
  }

  .contact-form-card,
  .contact-direct-card {
    padding: 25px 20px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-direct-card {
    display: block;
  }
}

@media (max-width: 420px) {
  .contact-hero__copy {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .contact-hero h1 {
    font-size: 2.12rem;
  }

  .contact-main {
    padding-top: 34px;
  }
}
