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

body {
  font-family: system-ui, Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* ================= STRUTTURA ================= */
header {
  background: #2c3e50;
  color: #fff;
  padding: 2.5rem 1rem;
}

.site-header {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}

.site-header .logo {
  max-width: 140px;
  width: 100%;
  flex-shrink: 0;
}

.site-header .header-text {
  flex: 1;
}

.site-header h1 {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .site-header .logo {
    margin-bottom: 1rem;
    max-width: 110px;
  }
}

section {
  background: #fff;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 1.8rem;
  border-radius: 10px;
}

h2 {
  color: #2c3e50;
  margin-bottom: 1.2rem;
  text-align: center;
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

ul li {
  padding-left: 0;
  position: static;
}

.icon {
  display: inline-flex;
  width: 1.75rem;
  justify-content: center;
  margin-right: 0.35rem;
}

.contact {
  background: #ecf0f1;
  text-align: center;
  color: #111;
  padding: 25px 15px;
  border-radius: 16px;
}

.contact a {
  display: inline-block;
  margin: 6px 0;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  color: #0b5d1e;
  font-weight: 800;
  text-decoration: none;
}

.contact a:hover {
  background: #f7f7f7;
  text-decoration: underline;
}

footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.85rem;
}

/* ================= GALLERIA ================= */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel {
  display: flex;
  gap: 24px;
  animation: scroll 30s linear infinite;
}

.carousel img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0.4;
  transform: scale(0.9);
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.carousel img.active {
  opacity: 1;
  transform: scale(1.4);
  z-index: 2;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  touch-action: pan-y;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox .close,
.lightbox .nav {
  position: absolute;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
}

.lightbox .close { top: 20px; right: 30px; }
.lightbox .prev { left: 20px; top: 50%; }
.lightbox .next { right: 20px; top: 50%; }

/* ================= FLOATING BUTTONS ================= */
.whatsapp-float,
.call-float,
.messenger-float {
  position: fixed;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.whatsapp-float { bottom: 18px; background: #25d366; }
.call-float { bottom: 84px; background: #007bff; }
.messenger-float { bottom: 150px; background: #0084ff; }

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

.instagram-float {
  position: fixed;
  right: 18px;
  bottom: 216px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.instagram-float:hover {
  transform: scale(1.1);
}

/* ================= RESPONSIVE ================= */
@media (min-width: 600px) {
  ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lightbox .nav {
    display: none;
  }
}
