/* --- GENERALE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #333; background-color: #fafafa; line-height: 1.6; }

/* --- NAVBAR --- */
nav {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(255,255,255,0.9);
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  backdrop-filter: blur(6px);
}
nav .logo { font-weight: 600; font-size: 1.3rem; }
.nav-list { display: flex; list-style: none; gap: 25px; }
.nav-list li a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s; }
.nav-list li a:hover { color: #25D366; }
.whatsapp-btn {
  background: #25D366; color: white !important;
  padding: 8px 16px; border-radius: 25px; font-weight: 600; transition: background 0.3s;
}
nav .logo img {
  height: 100px;
  width: auto;
  border-radius: 8px;
}

.whatsapp-btn:hover { background: #1da851; }
.menu-toggle { display: none; font-size: 1.6rem; cursor: pointer; }

/* --- HEADER --- */
header {
  background: url('img/header.jpg') center/cover no-repeat;
  height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; color: white; position: relative;
}
header::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 0;
}
header h1, header p, .btn { z-index: 1; }
header h1 { font-size: 3rem; letter-spacing: 2px; }
header p { font-size: 1.1rem; margin-top: 10px; max-width: 800px; }
.btn {
  display: inline-block; margin-top: 30px;
  background: #25D366; color: white;
  padding: 14px 30px; border-radius: 30px;
  text-decoration: none; font-weight: 600; transition: background 0.3s;
}
.btn:hover { background: #1da851; }

/* --- SEZIONI --- */
section { padding: 80px 20px; max-width: 1000px; margin: auto; }
section h2 { text-align: center; margin-bottom: 30px; font-weight: 600; }
.about p { text-align: center; font-size: 1.1rem; max-width: 800px; margin: auto; }

/* --- GALLERIA --- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery img {
  width: 100%; border-radius: 10px; object-fit: cover;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease, box-shadow 0.4s ease, scale 0.4s ease;
}
.gallery img.visible { opacity: 1; transform: translateY(0); }
.gallery img:hover { transform: scale(1.05); box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 2; }

/* --- SERVIZI --- */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; text-align: center; margin-top: 40px;
}
.service-item {
  background: white; border-radius: 15px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 30px 20px; transition: transform 0.3s;
}
.service-item:hover { transform: translateY(-5px); }
.service-item i { font-size: 2rem; color: #25D366; margin-bottom: 10px; }

/* --- MAPPA --- */
.map iframe { width: 100%; height: 400px; border-radius: 15px; border: 0; }

/* --- FOOTER --- */
footer {
  background: #333; color: #eee; text-align: center;
  padding: 30px 20px; margin-top: 60px;
}
footer a.footer-email {
  color: white; text-decoration: underline;
}
footer a {
  color: white; text-decoration: none;
}

/* --- LIGHTBOX --- */
#lightbox {
  position: fixed; display: none; justify-content: center; align-items: center;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9); z-index: 9999;
}
#lightbox img.lightbox-img { max-width: 90%; max-height: 90%; border-radius: 10px; }
#lightbox .close {
  position: absolute; top: 20px; right: 30px; font-size: 2.5rem;
  color: white; cursor: pointer; font-weight: bold;
}
#lightbox .close:hover { color: #25D366; }
#lightbox .prev, #lightbox .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 3rem; color: white; cursor: pointer;
  user-select: none; padding: 10px; border-radius: 5px;
  background: rgba(0,0,0,0.3); transition: background 0.3s;
}
#lightbox .prev:hover, #lightbox .next:hover { background: rgba(0,0,0,0.6); }
#lightbox .prev { left: 20px; }
#lightbox .next { right: 20px; }

/* --- CRISTIAN --- */
.cristian {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  padding: 60px 30px;
  margin-top: 40px;
}

.cristian-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.cristian img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cristian-text {
  flex: 1;
  font-size: 1.05rem;
  color: #444;
}

.cristian-text p {
  margin-bottom: 15px;
}

/* --- DINTORNI --- */
#dintorni {
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 80px 20px;
}

.dintorni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

#dintorni h2 {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

#dintorni p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}

#dintorni ul {
  list-style: none;
  margin-bottom: 30px;
  padding-left: 10px;
}

#dintorni ul li {
  padding: 5px 0;
  color: #444;
  font-size: 0.95rem;
}

#dintorni i {
  color: #25D366;
  font-size: 1.1rem;
}

/* --- FAQ (Domande frequenti) --- */
#faq {
  background: #fff;
  padding: 80px 20px;
  border-top: 1px solid #eee;
}
#faq h2 {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px;
  cursor: pointer;
  position: relative;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover {
  color: #00b9d9;
}
.faq-icon {
  font-size: 1.5rem;
  color: #00b9d9;
  transition: transform 0.3s;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: #fafafa;
  padding: 0 15px;
}
.faq-answer p {
  padding: 10px 0 15px 0;
  font-size: 0.95rem;
  color: #444;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 15px 10px 15px;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}



/* Responsive */
@media (max-width: 700px) {
  .cristian-content {
    flex-direction: column;
    text-align: center;
  }

  .cristian img {
    width: 180px;
    height: 180px;
  }
}

/* --- COSA FARE --- */
#cosa-fare {
  background: #fff;
  padding: 80px 20px;
}

.cosa-fare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.cosa-item {
  background: #fafafa;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.cosa-item:hover {
  transform: translateY(-5px);
}

.cosa-item h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-list {
    display: none; position: absolute; top: 70px; right: 0;
    background: white; width: 100%; flex-direction: column; text-align: center;
    padding: 20px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .nav-list.active { display: flex; }
  .nav-list li { margin: 15px 0; }
}

@media (max-width: 600px) {
  header h1 { font-size: 2rem; }
  header p { font-size: 1rem; }
}
/* --- NAVBAR FADE-IN ON SCROLL --- */
nav {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

nav.visible {
  opacity: 1;
  transform: translateY(0);
}

