/* ============================
   BASE
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #f5f5f5;
  line-height: 1.6;
}

/* ============================
   NAVBAR AGGIORNATA
============================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);        /* effetto blur elegante */
  padding: 15px 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15); /* leggero rilievo */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin-left: 15px;
  color: #d4af37;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}



/* Hover leggero */
.logo:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
  color: #ffd700;
  box-shadow: 0 0 8px rgba(255,215,0,0.4);

}
.nav-links a {
  color: #f8f4e3;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}
.nav-links a:hover {
  background: linear-gradient(90deg, rgba(255,215,0,0.2), rgba(255,215,0,0.05));
  color: #ffd700;
  transform: scale(1.08);
  box-shadow: 0 0 8px rgba(255,215,0,0.4);
}

/* Underline animata */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ffd700;
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 10px 20px;
  }
  .nav-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .nav-links a {
    margin: 8px 0;
    font-size: 1.2rem;
  }
}

/* ============================
   SEZIONI
============================ */
.fade-in-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 32px;
  background: rgba(0, 0, 0, 0.5); /* più scuro */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.75);
  color: #fff; /* testo bianco */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in-section h2,
.fade-in-section p {
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}


.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.catchy-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

.catchy-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ddd;
}

.spaced-heading {
  margin: 40px 0 16px;
  font-size: 2rem;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  padding-bottom: 4px;
}

/* ============================
   LISTE
============================ */
ul {
  list-style: none;
  margin-top: 16px;
}
ul li {
  margin-bottom: 12px;
  padding-left: 1.5em;
  position: relative;
}
ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #d4af37;
}

/* ============================
   GALLERY
============================ */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}
#main-display {
  flex: 1 1 600px;
  max-width: 600px;
  text-align: center;
}
#main-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border-radius: 6px;
}
#description-box {
  margin-top: 12px;
  font-size: 1rem;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  border-left: 4px solid #d4af37;
  border-radius: 4px;
}
.gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.gallery-thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.gallery-thumbnails img:hover {
  transform: scale(1.05);
  outline: 2px solid #d4af37;
}

/* ============================
   BUTTONS
============================ */
.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: #d4af37;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.btn:hover {
  background: #fff;
  color: #111;
}

/* ============================
   CONTACT FORM
============================ */
.contact-box {
  background: rgba(0,0,0,0.75);
}
.contact-form {
  display: flex;
  flex-direction: column;
}
.contact-form label {
  margin-top: 12px;
  font-weight: 600;
  color: #d4af37;
}
.contact-form input,
.contact-form textarea {
  margin-top: 6px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #d4af37;
}

/* ============================
   THANK YOU BOX
============================ */
.thankyou-box {
  text-align: center;
  background: rgba(0,0,0,0.75);
}
.thankyou-box h1 {
  margin-bottom: 16px;
  color: #d4af37;
}


/* ============================
   SPAZIO TRA SEZIONI E FOOTER
============================ */
.spaceBetween {
  height: 200px;
}

/* ============================
   FOOTER
============================ */
.footer {
  background: rgba(0,0,0,0.85);
  color: #ccc;
  text-align: center;
  padding: 1rem 2rem;
  margin-top: 32px;
  font-size: 0.9rem;
  border-top: 2px solid #d4af37;
}

.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer__info p { margin: 5px 0; }

.footer__social {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social__link {
  display: inline-flex;
  transition: color .2s ease, transform .15s ease;
}

.social__link:hover { transform: translateY(-2px); }

.social__link--ig:hover { color: #E1306C; }
.social__link--li:hover { color: #0A66C2; }

/* Mobile friendly */
@media (max-width: 480px) {
  .footer__social { gap: 12px; }
  .footer__info p { font-size: 14px; }
}


/* Modal per ingrandire immagini */
.modal {
  display: none; 
  position: fixed; 
  z-index: 10000; /* sopra tutti gli elementi */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

#modal-caption {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1rem;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #d4af37;
}

#main-img {
  cursor: pointer; /* indica che si può cliccare per ingrandire */
}


/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #222;
  color: #fff;
  padding: 15px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
}

#cookie-banner a {
  color: #4CAF50;
  text-decoration: underline;
}

#cookie-banner button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}
