/*
 * Spazio Casa — contatti v1
 * Layout dedicato, senza JavaScript e senza dipendenze esterne.
 */

body#contact {
  background: #fff;
}

body#contact #columns {
  padding-bottom: 48px;
}

body#contact #center_column {
  float: none;
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.sc-contact-v1 {
  --sc-red: #dc342f;
  --sc-red-dark: #bd2723;
  --sc-ink: #24282e;
  --sc-text: #4f5863;
  --sc-muted: #68717c;
  --sc-line: #dfe4ea;
  --sc-soft: #f6f7f9;
  --sc-white: #fff;
  color: var(--sc-text);
  font-family: Arial, Tahoma, sans-serif;
}

.sc-contact-v1,
.sc-contact-v1 * {
  box-sizing: border-box;
}

.sc-contact-v1 h1,
.sc-contact-v1 h2,
.sc-contact-v1 h3,
.sc-contact-v1 p {
  margin-top: 0;
  text-transform: none;
}

.sc-contact-v1__hero {
  max-width: 760px;
  margin: 30px auto 32px;
  text-align: center;
}

.sc-contact-v1__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--sc-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.sc-contact-v1__hero h1 {
  margin-bottom: 10px;
  color: var(--sc-ink);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}

.sc-contact-v1__hero p {
  margin-bottom: 0;
  color: var(--sc-muted);
  font-size: 16px;
  line-height: 1.55;
}

.sc-contact-v1__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, .72fr);
  gap: 22px;
  align-items: start;
}

.sc-contact-v1__card {
  padding: 28px;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: var(--sc-white);
  box-shadow: 0 10px 28px rgba(27, 31, 36, .06);
}

.sc-contact-v1__card h2 {
  margin-bottom: 6px;
  color: var(--sc-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.sc-contact-v1__card-intro {
  margin-bottom: 22px;
  color: var(--sc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.sc-contact-v1 fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

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

.sc-contact-v1__field {
  min-width: 0;
  margin: 0;
}

.sc-contact-v1__field--wide {
  grid-column: 1 / -1;
}

.sc-contact-v1 label {
  display: block;
  margin-bottom: 7px;
  color: #343a42;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.sc-contact-v1__optional {
  color: #747d87;
  font-size: 12px;
  font-weight: 500;
}

.sc-contact-v1 .form-control,
.sc-contact-v1 .selector,
.sc-contact-v1 .uploader {
  width: 100% !important;
  max-width: none !important;
}

.sc-contact-v1 input.form-control,
.sc-contact-v1 select.form-control,
.sc-contact-v1 .selector,
.sc-contact-v1 .uploader {
  min-height: 48px;
}

.sc-contact-v1 input.form-control,
.sc-contact-v1 select.form-control,
.sc-contact-v1 textarea.form-control,
.sc-contact-v1 .selector,
.sc-contact-v1 .uploader {
  border: 1px solid #cfd6de;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  color: #30363d;
  font-size: 15px;
}

.sc-contact-v1 input.form-control,
.sc-contact-v1 select.form-control,
.sc-contact-v1 textarea.form-control {
  padding: 12px 14px;
}

.sc-contact-v1 select.form-control {
  cursor: pointer;
}

.sc-contact-v1 textarea.form-control {
  min-height: 168px;
  resize: vertical;
  line-height: 1.5;
}

.sc-contact-v1 input.form-control:focus,
.sc-contact-v1 select.form-control:focus,
.sc-contact-v1 textarea.form-control:focus {
  border-color: var(--sc-red);
  box-shadow: 0 0 0 3px rgba(220, 52, 47, .13);
  outline: 0;
}

.sc-contact-v1 input[readonly] {
  background: #f3f5f7;
  color: #555e68;
}

.sc-contact-v1 .selector span {
  width: calc(100% - 42px) !important;
  padding: 13px 14px;
  color: #30363d;
  font-size: 15px;
  line-height: 20px;
}

.sc-contact-v1 .selector select {
  width: 100% !important;
  height: 48px;
}

.sc-contact-v1__select {
  position: relative;
  width: 100%;
}

.sc-contact-v1__select-trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 14px;
  align-items: center;
  border: 1px solid #cfd6de !important;
  border-radius: 9px;
  background: #fff !important;
  box-shadow: none;
  color: #30363d !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.sc-contact-v1__select-trigger > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-contact-v1__select-trigger::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  transform: translateY(-65%) rotate(45deg);
  border-right: 1.5px solid #4e565f;
  border-bottom: 1.5px solid #4e565f;
  content: "";
  transition: transform .18s ease;
}

.sc-contact-v1__select-trigger:hover {
  border-color: #aeb7c0 !important;
}

.sc-contact-v1__select-trigger:focus,
.sc-contact-v1__select-trigger[aria-expanded="true"] {
  border-color: var(--sc-red) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(220, 52, 47, .13);
  outline: 0;
}

.sc-contact-v1__select-trigger[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(225deg);
}

.sc-contact-v1__select-trigger.sc-contact-v1__select-invalid {
  border-color: #c92d28 !important;
  box-shadow: 0 0 0 3px rgba(201, 45, 40, .1);
}

.sc-contact-v1__select-list {
  position: absolute;
  z-index: 50;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  max-height: 250px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid #dfe3e7;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 37, 43, .16);
}

.sc-contact-v1__select--up .sc-contact-v1__select-list {
  top: auto;
  bottom: calc(100% + 7px);
}

.sc-contact-v1__select-list[hidden] {
  display: none !important;
}

.sc-contact-v1__select-option {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0 !important;
  border-radius: 8px;
  background: #fff !important;
  color: #414951 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.sc-contact-v1__select-option + .sc-contact-v1__select-option {
  margin-top: 2px;
}

.sc-contact-v1__select-option:hover,
.sc-contact-v1__select-option:focus {
  background: #fff4f3 !important;
  color: #a92723 !important;
  outline: 0;
}

.sc-contact-v1__select-option[aria-selected="true"] {
  background: #fcebea !important;
  color: #b32a26 !important;
  font-weight: 700;
}

.sc-contact-v1 select.sc-contact-v1__native-select {
  position: absolute !important;
  z-index: -1;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.sc-contact-v1 .selector.sc-contact-v1__uniform-hidden {
  position: absolute !important;
  z-index: -1;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.sc-contact-v1 .uploader {
  display: flex;
  overflow: hidden;
  align-items: center;
}

.sc-contact-v1 .uploader .filename {
  min-width: 0;
  height: auto;
  padding: 0 12px;
  overflow: hidden;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: #69727c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-contact-v1 .uploader .action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 15px;
  border: 0;
  border-left: 1px solid #cfd6de;
  background: #f2f4f6;
  color: #343a42;
  font-weight: 700;
}

.sc-contact-v1__help {
  display: block;
  margin-top: 6px;
  color: #727b85;
  font-size: 12px;
  line-height: 1.45;
}

.sc-contact-v1 .desc_contact {
  min-height: 0;
  margin: 7px 0 0;
  padding: 9px 11px;
  border-radius: 7px;
  background: #f6f7f9;
  color: #59626c;
  font-size: 12px;
  line-height: 1.45;
}

.sc-contact-v1 .desc_contact:empty,
.sc-contact-v1 #desc_contact0 {
  display: none;
}

.sc-contact-v1 .desc_contact i {
  display: none;
}

.sc-contact-v1__privacy {
  margin: 16px 0 0;
  color: #737c86;
  font-size: 11px;
  line-height: 1.5;
}

.sc-contact-v1__privacy a {
  color: #555e68;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sc-contact-v1__submit-row {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 14px;
}

.sc-contact-v1 .sc-contact-v1__submit {
  display: inline-flex;
  min-width: 220px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--sc-red) !important;
  border-radius: 9px;
  background: var(--sc-red) !important;
  box-shadow: none;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
}

.sc-contact-v1 .sc-contact-v1__submit span {
  padding: 0;
  border: 0;
}

.sc-contact-v1 .sc-contact-v1__submit i {
  margin-left: 8px;
}

.sc-contact-v1 .sc-contact-v1__submit:hover,
.sc-contact-v1 .sc-contact-v1__submit:focus {
  border-color: var(--sc-red-dark) !important;
  background: var(--sc-red-dark) !important;
}

.sc-contact-v1 .sc-contact-v1__submit:focus-visible,
.sc-contact-v1__whatsapp:focus-visible {
  outline: 3px solid rgba(220, 52, 47, .22);
  outline-offset: 3px;
}

.sc-contact-v1__submit-note {
  color: #6b747e;
  font-size: 12px;
  line-height: 1.4;
}

.sc-contact-v1__aside {
  display: grid;
  gap: 14px;
}

.sc-contact-v1__aside-card {
  padding: 22px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: var(--sc-soft);
}

.sc-contact-v1__aside-card h2 {
  margin-bottom: 12px;
  font-size: 17px;
}

.sc-contact-v1__checklist {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sc-contact-v1__checklist li {
  position: relative;
  padding-left: 24px;
  color: #535d67;
  font-size: 13px;
  line-height: 1.5;
}

.sc-contact-v1__checklist li + li {
  margin-top: 10px;
}

.sc-contact-v1__checklist li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--sc-red);
  content: "✓";
  font-size: 15px;
  font-weight: 900;
}

.sc-contact-v1__aside-card p {
  margin-bottom: 14px;
  color: #606a74;
  font-size: 13px;
  line-height: 1.5;
}

.sc-contact-v1__whatsapp {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #fff;
  color: #24282e;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.sc-contact-v1__whatsapp:hover,
.sc-contact-v1__whatsapp:focus {
  border-color: var(--sc-red);
  color: var(--sc-red-dark);
}

.sc-contact-v1 .alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.45;
}

.sc-contact-v1 .alert-danger {
  border-color: #efb7b5;
  background: #fff4f3;
  color: #842722;
}

.sc-contact-v1 .alert-success {
  border-color: #b9ddc8;
  background: #eff9f3;
  color: #21643d;
}

.sc-contact-v1 .alert-warning {
  border-color: #efd49b;
  background: #fff9e9;
  color: #66501f;
}

.sc-contact-v1__status-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.sc-contact-v1__status-card .alert {
  margin-bottom: 18px;
  text-align: left;
}

.sc-contact-v1__home {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #24282e;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.sc-contact-v1 .grecaptcha-badge {
  visibility: hidden !important;
}

@media (max-width: 991px) {
  body#contact #center_column {
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .sc-contact-v1__aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body#contact #columns {
    padding-bottom: 28px;
  }

  body#contact #center_column {
    padding-right: 12px;
    padding-left: 12px;
  }

  .sc-contact-v1__hero {
    margin: 22px auto 24px;
  }

  .sc-contact-v1__hero h1 {
    font-size: 28px;
  }

  .sc-contact-v1__hero p {
    font-size: 15px;
  }

  .sc-contact-v1__card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .sc-contact-v1__fields,
  .sc-contact-v1__aside {
    grid-template-columns: 1fr;
  }

  .sc-contact-v1__field--wide {
    grid-column: auto;
  }

  .sc-contact-v1 textarea.form-control {
    min-height: 150px;
  }

  .sc-contact-v1__submit-row {
    display: block;
  }

  .sc-contact-v1 .sc-contact-v1__submit {
    width: 100%;
  }

  .sc-contact-v1__submit-note {
    display: block;
    margin-top: 9px;
    text-align: center;
  }
}