/* Navigation */
.navbar {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--light-cream) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--light-cream) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.navbar-nav .nav-link:hover {
  color: var(--highlight-lime) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight-lime);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 50%,
    var(--accent-teal) 100%
  );
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="50" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  color: var(--light-cream);
  z-index: 2;
  position: relative;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--light-cream), var(--highlight-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.hero-content .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Main Content */
.main-content {
  padding: 80px 0;
}

section {
  scroll-margin-top: 90px;
}

.content-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    45deg,
    var(--highlight-lime),
    var(--highlight-yellow)
  );
  border-radius: 2px;
}

.highlight-quote {
  background: linear-gradient(
    135deg,
    var(--accent-teal) 0%,
    var(--accent-light) 100%
  );
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  position: relative;
}

.highlight-quote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.3;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.value-item {
  background: linear-gradient(
    135deg,
    rgba(72, 164, 167, 0.1),
    rgba(84, 191, 195, 0.1)
  );
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border-left: 4px solid var(--accent-light);
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  border-left-color: var(--highlight-lime);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--accent-teal), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.btn-primary {
  background: linear-gradient(
    45deg,
    var(--highlight-lime),
    var(--highlight-yellow)
  );
  border: none;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(187, 216, 43, 0.3);
  background: linear-gradient(
    45deg,
    var(--highlight-yellow),
    var(--highlight-lime)
  );
  color: var(--primary-dark);
  text-decoration: none;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--accent-teal),
    var(--highlight-lime)
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
  width: 45%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 55%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--highlight-lime);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -62px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -62px;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* card hobby */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.hobby-card {
  background: #004e53;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgb(255, 255, 255);
}

.hobby-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.hobby-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hobby-content {
  padding: 1.5rem;
}

.hobby-content h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hobby-content p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Stili per la mappa */
.map-container {
  text-align: center;
  position: relative; 
}

.map-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #004e53;
  margin-bottom: 1rem;
  position: relative;
}

.map-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, var(--highlight-lime), var(--highlight-yellow));
  border-radius: 2px;
}

.map-subtitle {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#personalMap {
  height: 400px !important;
  width: 100% !important;
  max-width: 100%; 
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--accent-light);
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  overflow: hidden; 
}

/* controlli della mappa siano visibili */
.leaflet-control-container {
  font-family: inherit;
  position: relative;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

/* Stile specifico per contenere tutti gli elementi Leaflet */
#personalMap .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

/* Media queries responsive */
@media (max-width: 768px) {
  #personalMap {
    height: 300px !important;
    margin: 1rem 0; 
  }
  
  .map-title {
    font-size: 1.8rem;
  }
  
  .map-container {
    padding: 0 10px;/
  }
}

/* Stili per il carosello */
.carousel-img {
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-indicators {
  bottom: -50px;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--accent-teal);
  border: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: var(--highlight-lime);
}

/* Media queries responsive */
@media (max-width: 768px) {
  .hobbies-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hobby-image {
    height: 180px;
  }
  
  #personalMap {
    height: 300px !important;
  }
  
  .map-title {
    font-size: 1.8rem;
  }
  
  .carousel-img {
    height: 250px;
  }
}