* {
    font-family: "Kodchasan", sans-serif;
}
html, body {
  height: 100%;
}
/*--------- nav --------*/
.logo-responsive {
  width: clamp(250px, 50vw, 400px);
  height: auto;
}
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.a-blu-nav {
  color: #fff;
  text-decoration: none;
}
.a-blu-nav:hover {
  color: #00aeea;
}

.btn-contattaci {
  background-color: #00aeea !important;
  color: white !important;
  border-radius: 20px !important;
  border: none !important;
  padding: 5px 15px !important;
}
.btn-contattaci:hover {
  background-color: #00aeea !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 5px 15px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
 .btn-condividi {
    background-color: #00aeea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 0; /* Angolo in basso a destra spigoloso */
    transition: background-color 0.3s ease;
  }
  .btn-condividi:hover {
    background-color: #0b5ed7;
  }
.btn-media {
  font-size: 12px !important;
font-weight: bold !important;
  border-radius: 25px !important;
  border: none !important;
  padding: 12px 18px !important;
  transform: translateX(0) !important;
  transition: opacity .45s cubic-bezier(.25,1,.33,1), transform .45s cubic-bezier(.25,1,.33,1) !important;
  position: relative !important;
}
.btn-media:hover {
  transform: translateY(-3px) !important;
  border-radius: 25px !important;
  border: none !important;
  padding: 12px 18px !important;
  box-shadow: 0 15px 35px rgba(32, 32, 32, 0.3);
}
.nav-link.active {
  color: #00aeea !important;
  border-bottom: 2px solid #00aeea;
}
.navbar-expand-lg {
  padding-inline: 20px;
  
}
.nav-link {
  color: #888 !important;
  font-weight: 300;
  font-size: 14px !important;
  letter-spacing: 1px;
  line-height: 1.0;
}
.offcanvas-body a {
  color: white;
  text-decoration: none;
}

.offcanvas-body a:hover,
.offcanvas-body a.active {
  text-decoration: underline;
}

.effetto-blu a i {
   color: rgba(0, 0, 0, .55); 
}

.effetto-blu a i:hover {
    cursor: pointer;
    color: #00aeea;
}

.effetto-blu-nav a i {
  color: #6c757d; 
}

.effetto-blu-nav a i:hover {
   cursor: pointer;
   color: #00aeea;
}
/* Transizione della navbar */
.custom-shadow {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}


.top-bar {
  background-color: #f8f9fa;
  font-size: 0.875rem;
  padding: 5px 0;
  color: #555;
  position: relative;
  z-index: 1030;
  transition: padding 0.3s ease;
}
.top-bar.shrink {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  font-size: 0.85rem;
}
.transition-topbar {
  transition: all 0.3s ease-in-out;
}
#carouselExample .carousel-control-prev, 
#carouselExample .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#carouselExample:hover .carousel-control-prev, 
#carouselExample:hover .carousel-control-next {
    opacity: 1;

}

.card.highlight {
  border: 2px solid #007bff;  /* Un bordo blu (puoi personalizzarlo) */
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);  /* Aggiungi un'ombra per far risaltare la card */
  background-color: rgba(0, 123, 255, 0.1);  /* Un colore di sfondo leggero */
}

/* Colori personalizzati per le tab */
.custom-tabs .tab-vendita {
  color: #ef4136;
  box-shadow: 0px -8px 10px rgba(0, 0, 0, 0.0);
  border-radius: 15px 15px 0 0;

}
.custom-tabs .tab-affitto {
  color: #00aeef;
  box-shadow: 0px -8px 10px rgba(0, 0, 0, 0.0);
  border-radius: 15px 15px 0 0;

}
.hero-section {
  background-color: rgb(239, 65, 54); /* Colore rosso */
  color: white;
  padding: 80px 0;
  text-align: center;
}
.subtitle {
  font-style: italic;
  font-size: 1.2rem;
}
.content-section {
  background-color: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
}
.divider {
  width: 60px;
  height: 2px;
  background-color: rgb(239, 65, 54);
  margin: 20px auto;
}
/* Quando la tab è attiva, cambia anche lo sfondo */
.custom-tabs .tab-vendita.active {
  background-color: #ef4136 !important;
  color: white !important;
  border-color: #ef4136 #ef4136 #fff;
  box-shadow: -3px -3px 9px rgba(0, 0, 0, 0.4);
  border-radius: 15px 15px 0 0;

}
.custom-tabs .tab-affitto.active {
  background-color: #00aeef !important;
  color: white !important;
  border-color: #00aeef #00aeef #fff;
  box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.4);
  border-radius: 15px 15px 0 0;


}

.bg-blur {
  background: rgba(255, 255, 255, 0.3); /* Sfondo bianco semi-trasparente */
  backdrop-filter: blur(8px);            /* Effetto sfocatura */
  -webkit-backdrop-filter: blur(8px);     /* Safari support */
  padding: 0.5rem 1rem;                   /* Padding interno per staccare il testo */
}

#backToTop {
  position: fixed;
  bottom: 75px;
  right: 20px;
  display: none; /* Nascosto inizialmente */
  z-index: 999;
  border-radius: 50%;
  width: 51px;
  height: 48px;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  padding: 0;
}
.card {
transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.6);
cursor: pointer;
}
.card-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
  /* Altezza fissa per il carosello immagini */
  #roomCarousel {
    height: 470px;
    overflow: hidden;
  }

  #roomCarousel .carousel-inner,
  #roomCarousel .carousel-item,
  #roomCarousel img {
    height: 100%;
    object-fit: cover; /* oppure "contain" se vuoi che le immagini non si taglino */
  }
  .zero-p a {
    position: relative;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    padding: 2px !important;
  }
  .zero-p a:not(:last-child) {
    padding: 0 !important;
  }
  .zero-p a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #00aeea;
    transition: width 0.3s ease-in-out;
  }
  .zero-p a:hover::after {
    width: 100%;
  }
  .btn-map {
    background: #00aeef;
    color: #fff;
    padding: 8px 15px;
    border: none;
  }
  .btn-map:hover {
    background: #fff;
    border: 1px solid #00aeef;
    color: #00aeef;
  }
.btn-red {
border-radius: 25px;
background-color: #ef4136;
color: #fff;
border: none;
font-weight: 600;
padding: 10px 20px;
}
.btn-red:hover {
border-radius: 25px;
background-color: #ef4136;
color: #fff;
border: none;
box-shadow: 0px 8px 16px rgba(59, 58, 58, 0.3);
}
.btn-red-outline {
  margin-top: 20px;
  border-radius: 25px;
  background-color: transparent;
  color: #ef4136;
  border: 1px solid #ef4136;
  font-weight: 600;
  padding: 10px 20px;
  }
  .btn-red-outline:hover {
  border-radius: 25px;
  background-color: #ef4136;
  border: 1px solid #ef4136;
  color: #fff;
  box-shadow: 0px 8px 16px rgba(59, 58, 58, 0.3);
  }
  .btn-blue-outline {
    margin-top: 20px;
    border-radius: 25px;
    background-color: transparent;
    color: #00aeef;
    border: 1px solid #00aeef;
    font-weight: 600;
    padding: 10px 20px;
    }
    .btn-blue-outline:hover {
    border-radius: 25px;
    background-color: #00aeef;
    border: 1px solid #00aeef;
    color: #fff;
    box-shadow: 0px 8px 16px rgba(59, 58, 58, 0.3);
    }
    .btn-phone:hover {
      color: #fff;
    }
    .btn-email:hover {
      color: #fff;
    }
.btn2 {
border-radius: 25px;
background-color: #00aeef;
color: #fff;
border: none;
font-weight: 600;
padding: 10px 20px;
}
.btn2:hover {
border-radius: 25px;
background-color: #00afefcd;
color: #fff;
border: none;
box-shadow: 0px 8px 16px rgba(59, 58, 58, 0.3);
}
.shadow-top-left {
box-shadow: 0 0 10px rgba(39, 39, 39, 0.5) !important;
}
.color-blue {
background-color: #00aeef;
color: #fff;
}
.color-red {
background-color: #ef4136;
color: #fff;
}


.form-container {
  max-width: 600px;
  margin: 50px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 30px;
}
 
.form-title {
  color: #343a40;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.form-control, .form-select {
  border-radius: 15px;
}
.privacy-text {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
.carousel-inner {
border-top-left-radius: 1rem !important;
border-top-right-radius: 1rem !important;
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
}

.modern-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
  }

  .modern-card:hover {
    background-color: #e2e6ea;
  }

  .icon-inline {
    width: 28px;
    height: 28px;
    margin-right: 10px !important;
  }

  .icon-circle {
    width: 25px;
    height: 25px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombra per effetto rialzato */

    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;

  }

  .icon-circle img {
    width: 30px;
  }

  .modern-card h6 {
    font-size: 1rem;
    margin: 0;
    color: #343a40;
  }

  .description-box {
    height: 9em;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  #toggleButton {
    background-color: transparent;
    color: blue;
    border: none;
    text-decoration: underline;
    margin-top: 10px;
  }

  .energy-label {
    --label-color: #d71900;
    display: inline-block;
    background-color: var(--label-color);
    color: white;
    font-weight: bold;
    padding: 5px 12px;
    position: relative;
    font-family: Arial, sans-serif;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }
  .energy-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: -14px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 15px solid var(--label-color);
  }
  .energy-label-nc    { --label-color: #999; }
  .energy-label-aplus { --label-color: #006400; }
  .energy-label-a     { --label-color: #009211; }
  .energy-label-b     { --label-color: #05af18; }
  .energy-label-c     { --label-color: #aade00; }
  .energy-label-d     { --label-color: #ffd900; }
  .energy-label-e     { --label-color: #FF8C00; }
  .energy-label-f     { --label-color: #FF6347; }
  .energy-label-g     { --label-color: #B22222; }

  .carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
    height: 100%;
}

.carousel-item img {
    object-fit: cover;
}

.chat-hidden {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  z-index: 1050;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  max-height: 250px;
}

.chat-input {
  border-top: 1px solid #ddd;
}
input.form-control,
select.form-control,
textarea.form-control {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
  border-radius: 25px;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
  outline: none;
}

/* --- Utility --- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Immagine listing: si adatta all'altezza della card */
.card .col-md-4 {
  min-height: 200px;
}
.card .col-md-4 .carousel,
.card .col-md-4 .carousel-inner,
.card .col-md-4 .carousel-item {
  height: 100%;
}
.card .col-md-4 .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pulsante secondario cookie banner */
.btn-cookie-rifiuta {
  background-color: transparent;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 50rem;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-cookie-rifiuta:hover {
  background-color: #e9ecef;
  color: #333;
}