/* =========================================
   RENIX — Pagina Contatti
   Ricostruita sulla grafica desktop 1118 × 2048
========================================= */

:root {
  --renix-contact-left: #4c5a5c;
  --renix-contact-right: #344041;
  --renix-contact-accent: #91c3a2;
  --renix-contact-heading: #cde4c5;
  --renix-contact-white: #ffffff;
  --renix-contact-text: rgba(255, 255, 255, 0.92);
}

/* Evita che padding e larghezze alterino le misure della grafica */
.renix-contact-page,
.renix-contact-page *,
.renix-contact-page *::before,
.renix-contact-page *::after {
  box-sizing: border-box;
}

.renix-contact-page {
  width: 100%;
  margin: 0;
  background: var(--renix-contact-left);
  color: var(--renix-contact-white);
}

/* =========================================
   HERO
========================================= */

.renix-contact-hero {
  position: relative;
  width: 100%;
  height: 570px;
  min-height: 570px;
  overflow: hidden;
}

.renix-contact-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.renix-contact-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 17, 16, 0.76) 0%,
      rgba(10, 17, 16, 0.52) 42%,
      rgba(10, 17, 16, 0.12) 73%,
      rgba(10, 17, 16, 0.04) 100%
    );
}

.renix-contact-hero__content {
  position: absolute;
  z-index: 2;
  left: 66px;
  right: 40px;
  bottom: 132px;
  width: auto;
  max-width: 650px;
  margin: 0;
  padding: 0;
}

.renix-contact-hero__content h1 {
  margin: 0 0 23px;
  color: #ffffff;
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.renix-contact-hero__content p {
  max-width: 650px;
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* =========================================
   AREA CONTATTI
========================================= */

.renix-contact-content {
  display: grid;
  grid-template-columns: 58.7657% 41.2343%;
  width: 100%;
  min-height: 1111px;
  background: var(--renix-contact-left);
}

.renix-contact-left {
  min-width: 0;
  padding: 52px 79px 90px 66px;
  background: var(--renix-contact-left);
}

.renix-contact-right {
  min-width: 0;
  padding: 52px 58px 90px 78px;
  background: var(--renix-contact-right);
}

.renix-contact-heading {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: auto;
  margin: 0 0 45px;
  color: var(--renix-contact-heading);
}

.renix-contact-heading h2 {
  margin: 0;
  color: inherit;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.renix-contact-heading > span {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 10px;
  background: currentColor;
}

/* =========================================
   FORM
========================================= */

.renix-contact-form {
  width: 100%;
  max-width: 513px;
  margin: 0;
}

.renix-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
  margin-bottom: 19px;
}

.renix-contact-form label {
  display: block;
  margin: 0;
}

.renix-contact-form > label:not(.renix-privacy) {
  margin-bottom: 19px;
}

/* Label accessibili, nascosti visivamente */
.renix-contact-form label:not(.renix-privacy) > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.renix-contact-form input,
.renix-contact-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: #ffffff;
  color: #344041;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  outline: 0;
  box-shadow: 0 3px 4px rgba(18, 29, 29, 0.34);
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.renix-contact-form input {
  height: 54px;
  padding: 0 17px;
}

.renix-contact-form textarea {
  height: 162px;
  min-height: 162px;
  padding: 17px;
  line-height: 1.35;
  resize: vertical;
}

.renix-contact-form input::placeholder,
.renix-contact-form textarea::placeholder {
  color: #566466;
  opacity: 1;
}

.renix-contact-form input:focus,
.renix-contact-form textarea:focus {
  box-shadow:
    0 3px 4px rgba(18, 29, 29, 0.25),
    0 0 0 3px rgba(145, 195, 162, 0.45);
}

.renix-privacy {
  display: flex !important;
  align-items: center;
  gap: 11px;
  min-height: 18px;
  margin: 2px 0 31px !important;
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  line-height: 1.3;
}

.renix-privacy input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  accent-color: var(--renix-contact-accent);
  box-shadow: none;
}

.renix-privacy a {
  color: inherit;
  text-decoration: none;
}

.renix-privacy a:hover,
.renix-privacy a:focus-visible {
  text-decoration: underline;
}

.renix-contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 247px;
  height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--renix-contact-accent);
  color: #ffffff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 4px rgba(18, 29, 29, 0.28);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.renix-contact-form button:hover {
  background: #82b995;
  transform: translateY(-2px);
  box-shadow: 0 5px 8px rgba(18, 29, 29, 0.3);
}

.renix-contact-form button:focus-visible {
  outline: 3px solid rgba(205, 228, 197, 0.62);
  outline-offset: 3px;
}

.renix-button-arrow {
  margin-left: 17px;
  font-size: 23px;
  line-height: 1;
  font-weight: 400;
}

.renix-form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================================
   MAPPA
========================================= */

.renix-contact-block + .renix-contact-block {
  margin-top: 91px;
}

.renix-map-block .renix-contact-heading {
  margin-bottom: 46px;
}

.renix-map-card {
  width: 100%;
  max-width: 513px;
  height: 267px;
  overflow: hidden;
  border-radius: 9px;
  background: #ffffff;
}

.renix-map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   CONTATTI E ORARI
========================================= */

.renix-contact-right .renix-contact-heading {
  margin-bottom: 47px;
}

.renix-info-list {
  display: grid;
  gap: 50px;
}

.renix-info-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  color: #ffffff;
}

.renix-info-icon {
  width: 34px;
  height: 34px;
  color: var(--renix-contact-accent);
}

.renix-info-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.renix-info-item h3 {
  margin: 0 0 7px;
  color: var(--renix-contact-accent);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.renix-info-item p {
  margin: 0;
  color: var(--renix-contact-text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 400;
}

.renix-info-item a {
  color: inherit;
  text-decoration: none;
}

.renix-info-item a:hover,
.renix-info-item a:focus-visible {
  color: var(--renix-contact-heading);
}

.renix-opening-hours {
  margin-top: 122px;
}

.renix-hours-weekend {
  margin-top: 53px !important;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {
  .renix-contact-hero {
    height: 500px;
    min-height: 500px;
  }

  .renix-contact-hero__content {
    left: 40px;
    bottom: 80px;
  }

  .renix-contact-content {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .renix-contact-left,
  .renix-contact-right {
    padding: 58px 40px 72px;
  }

  .renix-contact-form,
  .renix-map-card {
    max-width: 100%;
  }

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

  .renix-opening-hours {
    margin-top: 0;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 640px) {
  .renix-contact-hero {
    height: 410px;
    min-height: 410px;
  }

  .renix-contact-hero__image {
    object-position: 61% center;
  }

  .renix-contact-hero__content {
    left: 20px;
    right: 20px;
    bottom: 46px;
  }

  .renix-contact-hero__content h1 {
    margin-bottom: 16px;
    font-size: 38px;
  }

  .renix-contact-hero__content p {
    max-width: 420px;
    font-size: 19px;
    line-height: 1.3;
  }

  .renix-contact-hero__desktop-break {
    display: none;
  }

  .renix-contact-left,
  .renix-contact-right {
    padding: 44px 20px 58px;
  }

  .renix-contact-heading {
    margin-bottom: 34px;
  }

  .renix-contact-heading h2 {
    font-size: 27px;
    white-space: normal;
  }

  .renix-form-row {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .renix-contact-form button {
    width: 100%;
    max-width: 247px;
  }

  .renix-contact-block + .renix-contact-block {
    margin-top: 66px;
  }

  .renix-map-card {
    height: 250px;
  }

  .renix-contact-right {
    display: block;
  }

  .renix-opening-hours {
    margin-top: 70px;
  }

  .renix-info-list {
    gap: 42px;
  }
}
