body.insegne-page .insegne-hero {
  text-align: center;
  padding: 40px 20px 40px;
}

body.insegne-page .insegne-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

body.insegne-page .insegne-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
}

body.insegne-page section {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 20px;
  text-align: center;
}

body.insegne-page .insegne-cta {
  padding: 120px 20px;
}

/* MENU ATTIVO – PAGINA INSEGNE */
.insegne-page .menu-categories a[href="insegne.html"] {
  color: #0ff;
  font-weight: 600;
}


/* HEADER SEMPLICE – SOLO INSEGNE */
.insegne-header-simple {
  width: 100%;
  padding: 30px 20px;
  text-align: left;
}

.back-home-btn {
  text-decoration: none;
  font-weight: 600;
  color: #000;
  font-size: 1rem;
}

.back-home-btn:hover {
  text-decoration: underline;
}


/* ================= HERO ================= */

.insegne-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insegne-hero-text {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

.insegne-hero-text h1 {
  font-size: 3rem;
}

.insegne-hero-text p {
  font-size: 1.2rem;
}

/* ================= VETRINA ================= */
.insegne-vetrina {
  max-width: 1200px;
  margin: 120px auto;
  display: flex;
  flex-direction: column;
  gap: 140px;
  padding: 0 20px;
}

.insegne-blocco {
  display: flex;
  align-items: center;
  gap: 60px;
  opacity: 0;
  transform: translateY(80px);
  transition: all 0.9s ease;
}

.insegne-blocco.reverse {
  flex-direction: row-reverse;
}

.insegne-foto {
  width: 420px;
  height: 420px;
  flex-shrink: 0;
}

.insegne-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}


.insegne-testo {
  max-width: 480px;
}

.insegne-testo h3 {
  margin-bottom: 15px;
}

/* ================= ANIMAZIONE ================= */
.insegne-blocco.attivo {
  opacity: 1;
  transform: translateY(0);
}

.insegne-blocco.attivo .insegne-foto {
  transform: translateX(-30px);
}

.insegne-blocco.attivo.reverse .insegne-foto {
  transform: translateX(30px);
}

.insegne-foto,
.insegne-testo {
  transition: transform 0.9s ease;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .insegne-blocco,
  .insegne-blocco.reverse {
    flex-direction: column;
    text-align: center;
  }

  .insegne-foto img {
    width: 100%;
  }
}

/* ================= HERO COVER INSEGNE ================= */

.insegne-hero {
  position: relative;
  width: 100%;
  min-height: 75vh;   /* invece di height */
  overflow: hidden;
}


.insegne-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.insegne-slider {
  max-width: 700px;
  margin: 60px auto;
}

.slider-track img {
  height: 150px;
  width: auto;
  object-fit: cover;
}


/* ================= CAROUSEL INSEGNE ================= */

.insegne-slider {
  max-width: 1100px;
  margin: 80px auto;
  position: relative;
}

.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.slider-track img {
  width: calc(33.333% - 14px);
  height: auto;              /* fondamentale */
  aspect-ratio: 1 / 1;       /* mantiene quadrato */
  object-fit: contain;       /* NON taglia */
  border-radius: 16px;
  flex-shrink: 0;
  background: #000;          /* opzionale per riempire eventuali spazi */
}


/* FRECCE */

.slider-btn {
  position: absolute;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 26px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  z-index: 2;
  transition: 0.3s;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.9);
}

.slider-btn.prev { left: -15px; }
.slider-btn.next { right: -15px; }

/* ================= CONTATTI FINALE ================= */

.insegne-contatti {
  text-align: center;
  padding: 120px 20px;
}

.insegne-contatti .custom-file-banner {
  width: min(100%, 980px);
  margin-left: auto;
  margin-right: auto;
}

.menu-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}



/* ===== MENU STILE PERSONALIZZA (SIDEBAR) ===== */

body.insegne-page .menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9999;
}

body.insegne-page .menu-overlay.show {
  display: block;
}

body.insegne-page .menu-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 80%;
  height: 100%;
  background: #111;
  color: #fff;
  padding: 24px 20px;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  text-align: left;
}

body.insegne-page .menu-overlay-content h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

body.insegne-page .menu-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.insegne-page .menu-categories a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

body.insegne-page .menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ================= MOBILE – CONTENUTO SEMPRE DENTRO LO SCHERMO ================= */
@media (max-width: 900px) {
  html,
  body.insegne-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.insegne-page *,
  body.insegne-page *::before,
  body.insegne-page *::after {
    box-sizing: border-box;
  }

  body.insegne-page section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .insegne-hero {
    min-height: 62vh;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .insegne-hero-img,
  .insegne-hero img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .insegne-vetrina {
    width: 100%;
    max-width: 100%;
    margin: 64px 0;
    padding-left: 16px;
    padding-right: 16px;
    gap: 64px;
    overflow: hidden;
  }

  .insegne-blocco,
  .insegne-blocco.reverse {
    width: 100%;
    max-width: 100%;
    gap: 22px;
    transform: translateY(36px);
  }

  .insegne-blocco.attivo,
  .insegne-blocco.attivo .insegne-foto,
  .insegne-blocco.attivo.reverse .insegne-foto {
    transform: none;
  }

  .insegne-foto {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    flex-shrink: 1;
    overflow: hidden;
  }

  .insegne-foto img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .insegne-testo {
    width: 100%;
    max-width: 100%;
  }

  .insegne-slider {
    width: 100%;
    max-width: 100%;
    margin: 54px 0;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }

  .slider-wrapper,
  .slider-viewport {
    width: 100%;
    max-width: 100%;
  }

  .slider-wrapper {
    overflow: hidden;
  }

  .slider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .slider-viewport::-webkit-scrollbar {
    display: none;
  }

  .slider-track {
    gap: 12px;
    transition: none;
    transform: none !important;
    width: max-content;
  }

  .slider-track img {
    width: 78vw;
    max-width: 78vw;
    flex: 0 0 78vw;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .slider-btn.prev {
    left: 4px;
  }

  .slider-btn.next {
    right: 4px;
  }

  .insegne-contatti {
    padding: 78px 16px;
  }
}
