@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600&family=Playfair+Display&display=swap');

body {
  font-family: 'Playfair Display', serif;
  margin: 0;
  padding: 60px 0 50px 0;
  line-height: 1.7;
  background-color: #f8f9fa;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  color: #003c73;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #003c73;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 1.6rem;
}

nav a {
  margin: 0 12px;
  color: #fdd835;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff176;
}

#hero {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #fdd835, #fff59d);
  text-align: center;
  color: #003c73;
  border-bottom: 4px solid #003c73;
}

section {
  padding: 2.5rem 1.5rem;
}

section h2 {
  margin-bottom: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 10px #fdd835;
}

.gallery-grid video {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 20px;
  border: none;
  background-color: #e3f2fd;
  color: #003c73;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.tab.active {
  background-color: #fdd835;
}

.tab:hover {
  background-color: #fff59d;
}

.map-container {
  width: 100%;
  max-width: 800px;
  margin: auto;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #003c73;
  color: white;
  text-align: center;
  line-height: 50px;
  z-index: 1000;
  font-size: 1rem;
}

.contact-info {
  font-size: 1.1rem;
  max-width: 600px;
  margin: auto;
  background-color: #fffde7;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.contact-info a {
  color: #003c73;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #fdd835;
  cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: #fdd835;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox .prev {
  left: 30px;
}

.lightbox .next {
  right: 30px;
}

#lightbox img {
  max-width: 1200px;
  max-height: 80vh;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 2rem auto;
  gap: 10px;
}

.carousel-btn {
  background-color: #003c73;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
  user-select: none;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: #002d5c;
}

.carousel-track-container {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-track img {
  width: 24%;
  flex-shrink: 0;
  padding: 0 5px;
  border-radius: 10px;
  transition: transform 0.3s;
  cursor: pointer;
}

.carousel-track img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 6px #fdd835;
}

button:focus,
a:focus {
  outline: 2px dashed #fdd835;
  outline-offset: 4px;
}

.bg-yellow {
  background-color: #fffde7;
}

.bg-blue {
  background-color: #e3f2fd;
}

.hidden {
  display: none !important;
}
.descrizione-elegante {
  font-style: italic;
}
.contact-list {
  list-style: none;
  padding: 0;
  font-size: 1.1em;
}

.contact-list li {
  margin: 10px 0;
}

.contact-list a {
  color: #4c7cac; 
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 8px;
  font-size: 0.95em;
  text-align: center;
  border-top: 1px solid #ddd;
}

@media (max-width: 1024px) {
  .carousel-track img {
    width: 33.33%;
  }

  .tab {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  header h1 {
    font-size: 1.2rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .carousel-track img {
    width: 50%;
  }

  .tab {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px;
  }

  section {
    padding: 1.2rem;
  }

  #hero {
    padding: 1.5rem 1rem;
  }

  .contact-info {
    padding: 1rem;
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 6px;
  }

  .lightbox .prev,
  .lightbox .next {
    font-size: 30px;
  }

  .lightbox .close {
    font-size: 35px;
    right: 20px;
  }
}
