/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/


.servizi-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.servizi-modal-overlay.is-open {
  display: flex;
}

.servizi-modal {
  width: min(820px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.servizi-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

#servizi-modal-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
}

#servizi-modal-content {
  white-space: pre-line;
  line-height: 1.7;
  font-size: 16px;
  color: #222;
}

body.servizi-modal-open {
  overflow: hidden;
}

/* Reset markup CF7 che rompe il layout */
.pm-cf7 p {
  margin: 0;
}

.pm-cf7 br {
  display: none;
}

.pm-cf7 {
  --pm-primary: #085b9b;
  --pm-primary-hover: #0a6eb8;
  --pm-field-bg: #f5f5f5;
  --pm-gap: 16px;
  --pm-radius-field: 4px;
  --pm-radius-btn: 6px;

  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Prima riga: Nome + Email affiancati */
.pm-cf7__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pm-gap);
  margin-bottom: var(--pm-gap);
}

.pm-cf7__col,
.pm-cf7__col .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  min-width: 0;
}

/* Righe full width */
.pm-cf7__row {
  margin-bottom: var(--pm-gap);
}

.pm-cf7__row--privacy {
  margin-top: 4px;
}

.pm-cf7__row--submit {
  margin-bottom: 0;
}

.pm-cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Campi: bordo sottile blu, sfondo chiaro */
.pm-cf7 input.pm-field,
.pm-cf7 textarea.pm-field {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  background: var(--pm-field-bg);
  border: 1px solid var(--pm-primary);
  border-radius: var(--pm-radius-field);
  padding: 14px 16px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.4;
  color: #2a2a2a;
  outline: none;
  box-shadow: none;
}

.pm-cf7 textarea.pm-field--textarea {
  min-height: 200px;
  resize: vertical;
}

.pm-cf7 input.pm-field::placeholder,
.pm-cf7 textarea.pm-field::placeholder {
  color: #6b5f55;
  opacity: 1;
}

.pm-cf7 input.pm-field:focus,
.pm-cf7 textarea.pm-field:focus {
  border-color: var(--pm-primary);
  outline: 1px solid var(--pm-primary-hover);
  outline-offset: 0;
}

/* Privacy */
.pm-cf7 .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.5;
}

.pm-cf7 .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--pm-primary);
}

.pm-cf7 .wpcf7-acceptance a {
  color: var(--pm-primary);
}

/* Bottone: tutta la larghezza, angoli poco arrotondati */
.pm-cf7 input.wpcf7-submit,
.pm-cf7 input.pm-submit {
  width: 100% !important;
  max-width: 100%;
  display: block;
  margin: 0;
  border: none;
  border-radius: var(--pm-radius-btn);
  background: var(--pm-primary);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 24px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pm-cf7 input.wpcf7-submit:hover,
.pm-cf7 input.pm-submit:hover {
  background: var(--pm-primary-hover);
}

/* Mobile: stack solo sotto640px */
@media (max-width: 640px)  {
  .pm-cf7__row--2 {
    grid-template-columns: 1fr;
  }
}

body[data-form-submit="regular"] .container-wrap input[type=submit] {
padding-top: 0.7em !important;
    padding-bottom: 0.7em !important;
}


/* =========================
   COOKIEYES - COLORI CUSTOM
   ========================= */

/* Bottone "Personalizza" - solo bordo */
.cky-btn-customize {
    color: #222222 !important;
    border-color: #222222 !important;
    background-color: transparent !important;
}

.cky-btn-customize:hover {
    color: #ffffff !important;
    background-color: #222222 !important;
    border-color: #222222 !important;
}

/* Bottone "Rifiuta tutto" e "Accettare tutto" */
.cky-btn-reject,
.cky-btn-accept {
    color: #ffffff !important;
    border-color: #5ba04b !important;
    background-color: #5ba04b !important;
}

.cky-btn-reject:hover,
.cky-btn-accept:hover {
    color: #ffffff !important;
    border-color: #7cad70 !important;
    background-color: #7cad70 !important;
}

/* Bottone "Salva le mie preferenze" */
.cky-btn-preferences {
    color: #222222 !important;
    border-color: #4f8ce0 !important;
    background-color: #4f8ce0 !important;
}

.cky-btn-preferences:hover {
    color: #222222 !important;
    border-color: #4f8ce0 !important;
    background-color: #4f8ce0 !important;
}

/* Bottone revisit cookie */
.cky-btn-revisit-wrapper {
  background-color: #5ba04b !important;
}
.cky-btn-revisit-wrapper:hover {
  background-color: #4f8ce0 !important;
}