:root {
  --red-for-font: #8b0000;
}



/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

#contact-content .container .row .item h6 span {
  display: inline-block;
  margin: 4px;
}

.company {
  font-size: 0.86em;
  color: grey;
  text-align: center;
}

.company .ids {
  font-size: 0.76em;
}

/* NB: verificare che ../../images/ risolva nella cartella reale (themes/v2/images vs assets/images) */
#contact {
  position: relative;
  padding: 100px 0 250px;
  background-image: url(../../images/contact-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

#contact-objects {
  margin-top: 28px;
}

/* Spaziatura ordinata tra le righe e le colonne dei contatti */
.contact-content .contact-row {
  row-gap: 10px;
}

.contact-content .contact-row > .col-lg-6 > a {
  display: block;
  height: 100%;
  text-decoration: none;
}

/* Card compatta e leggibile */
.contact-content .contact-row .item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-content .contact-row > .col-lg-6 > a:hover .item {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Icona di dimensioni coerenti */
.contact-content .contact-row .item .rcp-icon-lg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

/* Testo: titolo ben leggibile + dettaglio subito sotto o allineato meglio */
.contact-content .contact-row .item h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1e1e1e;
}

.contact-content .contact-row .item h6 span,
.contact-content .contact-row .item .contact-detail {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #555; /* Più leggibile del grigio chiaro attuale */
  word-break: break-word;
}

/* Su mobile evitiamo card troppo alte e spazi vuoti */
@media (max-width: 991px) {
  .contact-content .contact-row > .col-lg-6 {
    margin-bottom: 4px;
  }

  .contact-content .contact-row .item {
    padding: 10px 12px;
  }
}

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

.contact-content {
  position: relative;
  z-index: 1;
  margin-top: -240px;
}

.contact-content #map {
  margin-bottom: 30px;
  padding: 10px;
  background-color: #e9e9e9cc;
  border-radius: 10px;
}


.contact-content .item img {
  float: left;
  margin-right: 25px;
  vertical-align: middle;
}

.contact-content .item i {
  float: left;
  margin-right: 25px;
  font-size: 3em;
  color: darkred;
  vertical-align: middle;
}

/* Card e form condivisi tra home (.contact-content) e pagina contatti (.contact-page) */
:is(.contact-content, .contact-page) .item {
  padding: 35px 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

:is(.contact-content, .contact-page) .item h6 {
  font-size: 20px;
  font-weight: 600;
  vertical-align: middle;
}

:is(.contact-content, .contact-page) .item h6 span {
  font-size: 15px;
  font-weight: 400;
  color: #aaa;
}

/* TODO: l'id con suffisso --4 e' generato da Drupal, meglio una classe */
:is(.contact-content, .contact-page) #contact-message-inquiry-form--4 {
  margin-left: 30px;
  padding: 35px 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

:is(.contact-content, .contact-page) #contact-message-inquiry-form--4 label {
  margin-bottom: 15px;
  font-size: 15px;
  color: #3a3a3a;
}



.contact-content #contact-message-inquiry-form--4 input {
  margin-bottom: 30px;
}

.contact-page #contact-message-inquiry-form--4 input {
  width: 100%;
  height: 44px;
  margin-bottom: 30px;
  padding: 0 15px;
  font-size: 14px;
  background-color: #f6f6f6;
  border: none;
  border-radius: 22px;
}

:is(.contact-content, .contact-page) #contact-message-inquiry-form--4 textarea {
  width: 100%;
  height: 150px;
  max-height: 180px;
  margin-bottom: 40px;
  padding: 15px;
  font-size: 14px;
  background-color: #f6f6f6;
  border: none;
  border-radius: 22px;
}

:is(.contact-content, .contact-page) #contact-message-inquiry-form--4 button {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background-color: #1e1e1e;
  border: none;
  border-radius: 22px;
  transition: all 0.5s;
}

:is(.contact-content, .contact-page) #contact-message-inquiry-form--4 button:hover {
  background-color: darkred;
}
