:root {
  --color-sea-blue: #0369a1;
  --color-sea-blue-light: #0ea5e9;
  --color-sand: #edd9ae;
  --color-sand-light: #faf3e3;
  --color-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--color-sand-light);
}

/* ---------- Animazioni leggere ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease both;
}

.slide-up {
  animation: slideUp 0.7s ease both;
}

/* Elementi rivelati allo scroll tramite IntersectionObserver (main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navbar ---------- */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--color-sea-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: var(--color-sea-blue-light);
  border-radius: 2px;
}

/* ---------- Card hover ---------- */
.hover-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -12px rgba(3, 105, 161, 0.35);
}

/* ---------- Map container ---------- */
.map-container {
  width: 100%;
  height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  z-index: 0;
}

/* Scrollbar leggera */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-sea-blue-light);
  border-radius: 8px;
}
