body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  color: #222;
  background-color: #fefefe;
}

#home {
  margin-top: -80px;
}

.navbar {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
  padding: 10px 20px;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.nav-logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #2a2a2a;
  font-weight: bold;
}

.navbar a.active {
  color: #0077cc;
  border-bottom: 2px solid #0077cc;
}

section {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
}

h1, h2, h3 {
  color: #00507a;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.card {
  flex: 1 1 280px;
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card a {
  display: inline-block;
  margin-top: 10px;
  color: #0077cc;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.timeline-date {
  min-width: 100px;
  font-weight: bold;
  color: #00507a;
}

.timeline-content {
  background-color: #f8f8f8;
  padding: 15px 20px;
  border-left: 4px solid #00507a;
  border-radius: 4px;
  flex: 1;
}

.timeline-content strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
  color: #333;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 15px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin-bottom: 10px;
  }

  .navbar {
    position: relative;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-date {
    margin-bottom: 5px;
  }

  .card-container {
    flex-direction: column;
  }
}

/* Stili per il calendario */
.fc-booked-day {
  background-color: #f8d7da !important;
  border-color: #f5c6cb !important;
  color: #721c24 !important;
}

.fc-past-day {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #6c757d !important;
}

.fc-available-day {
  background-color: #d4edda !important;
  border-color: #c3e6cb !important;
  color: #155724 !important;
  font-weight: bold;
}

.fc-selected {
  background-color: #007bff !important;
  border-color: #0056b3 !important;
  color: white !important;
}

/* Stili per la slideshow - meno invasivi */
div#propertyCarousel.carousel.slide {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

div#propertyCarousel .carousel-inner {
  border-radius: 15px;
}

div#propertyCarousel .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
}

.carousel-caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  border-radius: 0 0 15px 15px;
  padding: 20px;
  bottom: 0;
  left: 0;
  right: 0;
}

.carousel-caption h5 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators button.active {
  background-color: white;
  border-color: white;
}

/* Stili per la modale immagini */
#imageModal .modal-content {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

#imageModal .modal-body {
  padding: 20px;
}

#imageModal img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.clickable-image {
  transition: transform 0.2s ease;
}

.clickable-image:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  #propertyCarousel .carousel-item img {
    height: 300px;
  }
  
  .carousel-caption {
    display: none;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  #propertyCarousel .carousel-item img {
    height: 450px;
  }

@media (min-width: 769px) and (max-width: 1200px) {
  #propertyCarousel {
    height: 500px !important;
  }
  
  .carousel-item {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }
  
  .carousel-item img {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }
}

@media (min-width: 1201px) {
  #propertyCarousel {
    height: 500px !important;
  }
  
  .carousel-item {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }
  
  .carousel-item img {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }
}
