/* popup-style.css */
.popup-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 60%;
  height: 100%;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  padding: 5vw 5vw;
  overflow-y: auto;
}

.popup-overlay.active {
  right: 0;
  box-shadow: -20px -1px 0px 200vw rgb(0 0 0 / 55%);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.popup-close {
  cursor: pointer;
  font-size: 60px;
  font-weight: bold;
  position: absolute;
  top: 20px;
  right: 2vw;
  color: #e35205;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "DM Sans", serif;
  color: black;
}

.popup-content p a {
  color: #23201b;
  text-decoration: underline;
}

.popup-map {
  width: 100%;
  height: 300px;
  z-index: 1;
  border-radius: 30px;
}

.popup-buttons {
  display: none;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 1.2rem;
}

.popup-column-info p {
  font-size: 1.2rem;
}

.popup-buttons a {
  padding: 8px 12px 10px 12px;
  background: #e35205;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  font-family: "Darker Grotesque", serif;
}

.popup-buttons a:hover {
  padding: 8px 12px 10px 12px;
  background: #c44805;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  font-family: "Darker Grotesque", serif;
}

.appuntamento-popup span {
  color: #e35205;
  font-weight: 700;
}

.appuntamento-popup {
  font-weight: 700;
}

.popup-column {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.popup-column-info {
  width: 60%;
  display: flex;
  flex-direction: column;
}

.popup-column-map {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#popup-form-link {
  width: 49%;
}

#popup-maps-link {
  width: 210px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  background-color: #e35205;
  padding: 1rem 2rem;
  font-weight: 700;
  z-index: 2;
  justify-content: space-between;
  margin-top: -56px;
  border-radius: 0px 0px 30px 0px;
  transition: all .3s;
}

#popup-maps-link:hover{
  background-color: #23201b;
}

#popup-maps-link .popup-arrow-icon svg {
  width: 32px;
  height: auto;
  fill: white;
  transition: transform 0.2s ease;
}

#popup-title {
  font-family: "Darker Grotesque", serif;
  font-weight: 700;
  font-size: 3rem;
  padding-right: 3rem;
}

.dove-siamo-popup {
  font-family: "Darker Grotesque", serif;
  font-size: 2rem;
  display: none;
}

.appuntamento-popup {
  font-family: "Darker Grotesque", serif;
  font-size: 2rem;
  line-height: 1em;
}

.popup-overlay p {
  width: 100%;
  margin-block-end: 0rem !important;
}

.popup-overlay .wpcf7-submit {
  width: 100%;
  background-color: #e35205;
  color: white;
}

.popup-overlay .wpcf7-submit::hover {
  width: 100%;
  background-color: #23201b !important;
  color: white;
}

.popup-overlay [type="submit"]:hover {
  background-color: #23201b !important;
}

.popup-overlay [type="submit"] svg:hover {
  fill: #ffffff;
}

.popup-overlay [type="submit"]:focus:not(:focus-visible) {
  background-color: #23201b !important;
}

.leaflet-control-locate-location circle {
  fill: #e35205 !important;
  /* Cambia il colore del marker */
  stroke: #e35205 !important;
  /* Bordo del marker */
}

path.leaflet-control-locate-circle.leaflet-interactive {
  fill: #e35205 !important;
}

.search-results-item {
  font-family: "DM Sans", serif !important;
}

.search-input-container .search-input{
    border: 0px solid;
    background-color: #23201B;
    border-radius: 500px;
    padding: 2rem 2rem;
}

.search-input-container input{
  color: white;
}

.search-input-container input::placeholder{
    color: white;
}

.search-results{
    padding: 1rem 2rem;
    border: 0px solid;
    border-radius: 300px;
    background-color: #23201B;
}

.search-results-item{
    color: white;
    border-radius: 10px;
}

.search-results-item:hover{
  background-color: #393530;
}

input.search-input {
  font-family: "DM Sans", serif !important;
}

.leaflet-popup-content {
  font-family: "DM Sans", serif !important;
}

.cf7-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  margin-top: 40px;
}

.cf7-row-label {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  margin-top: 10px;
}

.cf7-col label {
  color: #23201b;
  font-weight: 700;
  line-height: 1.4em;
  margin-bottom: 15px;
}

.cf7-row-label label {
  color: #23201b;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4em;
}

.cf7-row-label .wpcf7-list-item {
  margin: 0rem !important;
}

.cf7-row-label a {
  color: #e9511d !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
}

.cf7-col {
  flex: 1 1 45%;
}

.cf7-row-btn {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin-top: 40px;
}

.cf7-row-btn p {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cf7-row-btn .wpcf7-spinner {
  margin: 20px 0px !important;
}

.cf7-col input[type="text"],
input[type="email"],
input[type="tel"],
input[type="textarea"] {
  border-radius: 300px !important;
  padding: 1rem 2rem !important;
  border: 1px solid #23201b !important;
}

.cf7-col label {
  color: #23201b;
  font-weight: 700;
  margin-top: 15px;
}

button.wpcf7-submit.custom-submit svg {
  width: 32px;
  height: auto;
  fill: #23201b;
  transition: all 0.3s;
  margin-left: 10px;
}

button.wpcf7-submit.custom-submit svg:hover {
  width: 32px;
  height: auto;
  fill: #ffffff;
}

.custom-submit svg:hover {
  fill: #ffffff;
}

.cf7-row-btn .wpcf7-submit {
  background-color: white;
  color: #23201b;
  font-weight: 700;
  border-radius: 300px;
  border: 1px solid #23201b;
  padding: 1rem 2rem;
  box-shadow: 25px 15px 30px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.cf7-row-btn .wpcf7-submit:hover {
  background-color: #23201b !important;
  color: #ffffff;
  font-weight: 700;
  border-radius: 300px;
  border: 1px solid #23201b;
  padding: 1rem 2rem;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
}

input[type="checkbox"]:checked {
  accent-color: #e9511d;
}

@media (max-width: 1600px) {
  .popup-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 5vw 5vw;
    overflow-y: auto;
  }

  .popup-close {
    cursor: pointer;
    font-size: 60px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 2vw;
    color: #e35205;
  }

  .popup-overlay.active {
    right: 0;
    box-shadow: -20px -1px 0px 200vw rgb(0 0 0 / 55%);
  }
 
  #leaflet-map{
    height: 600px !important;
  }

}

@media (max-width: 1366px) {
  #leaflet-map{
    height: 500px !important;
  }
}

@media (max-width: 1200px) {
  .popup-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 5vw 5vw;
    overflow-y: auto;
  }

  .popup-close {
    cursor: pointer;
    font-size: 60px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 2vw;
    color: #e35205;
  }

  .popup-overlay.active {
    right: 0;
    box-shadow: -20px -1px 0px 200vw rgb(0 0 0 / 55%);
  }

   #leaflet-map{
    height: 500px !important;
  }

}

@media (max-width: 1024px) {
  .popup-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 5vw 5vw;
    overflow-y: auto;
  }

  .popup-close {
    cursor: pointer;
    font-size: 60px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 5vw;
    color: #e35205;
  }

  .popup-overlay.active {
    right: 0;
    box-shadow: -20px -1px 0px 200vw rgb(0 0 0 / 55%);
  }

  input.search-input {
    width: 500px !important;
  }

  .popup-column {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .popup-column-info {
    width: 100%;
  }

  .popup-column-map {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .cf7-col {
    flex: 1 1 100%;
  }

  .cf7-row {
    flex-direction: column;
    margin-top: 0px;
  }

  .cf7-row-btn {
    margin-top: 40px;
  }

  .popup-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 3rem 1rem 3rem 1rem;
    overflow-y: auto;
  }

  #popup-title {
    font-family: "Darker Grotesque", serif;
    font-weight: 700;
    font-size: 2rem;
    padding-right: 0rem;
    margin-top: 2rem;
  }

  .popup-buttons {
    flex-direction: column;
  }

  #popup-maps-link {
    width: 210px;
  }

  #popup-form-link {
    width: 100%;
    margin-top: 1rem;
  }

  .popup-close {
    cursor: pointer;
    font-size: 60px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 5vw;
    color: #e35205;
  }

  .search-results{
    padding: 1rem 2rem;
    border: 0px solid;
    border-radius: 30px;
    background-color: #23201B;
  }

  input.search-input {
    width: 300px !important;
  }

  .popup-column-info p{
    font-size: 1rem;
  }

  #leaflet-map{
    height: 400px !important;
  }

}
