﻿/* =======================
   BASE
======================= */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* =======================
   NAVBAR
======================= */
 /* Navbar */
    .navbar {
       background: #ffff99;
      z-index: 1000;
    }
.navbar {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ombra morbida */
  background-color: #ffffa0; /* il giallo leggermente più scuro che preferisci */
}

    .navbar-nav .nav-link {
      padding: 10px 15px;
    }
 .nav-link {
            color: #333 !important;
            font-weight: 500;
        }
  .nav-link.active {
            color: #008080 !important;
            font-weight: 600;
        }
/* Stile generale per il titolo nella navbar */
.navbar-title h1 {
  margin: 0;
  color: #008080;
  font-size: 1.8rem; /* dimensione di default */
  font-weight: 700;
  line-height: 1.2;
}

/* Riduci il font su tablet e mobile */
@media (max-width: 768px) {
  .navbar-title h1 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .navbar-title h1 {
    font-size: 1rem;
  }
}


/* =======================
   SEZIONE REVIEWS
======================= */
.reviews-section {
  background-color: #f5f5dc;
}

/* =======================
   MOSAIC GALLERY
======================= */
.mosaic-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  background-color: #f5f5dc;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Overlay al passaggio */
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 2rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Responsività */
@media (max-width: 768px) {
  .mosaic-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .mosaic-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =======================
   BRAND LOGO
======================= */
.brand-logo {
  flex: 1 1 25%;
  max-width: 180px;
  min-width: 80px;
  height: auto;
}

@media (max-width: 992px) {
  .brand-logo { 
    flex: 1 1 30%; 
    max-width: 150px; 
  }
}

@media (max-width: 576px) {
  .brand-logo { 
    flex: 1 1 28%; 
    max-width: 100px; 
    min-width: 70px; 
  }
}

/* =======================
   FOOTER
======================= */
footer {
  background: #ffff99;
  text-align: center;
  padding: 20px 15px;
  font-size: 0.9rem;
}

/* =======================
   SCROLL TOP BUTTON
======================= */
#scrollTopBtn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  padding: 0;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  position: fixed;
  bottom: 35px;
  right: 20px;
  display: none;
  z-index: 1000;
  background: #ffff99;
}