/* PALAZZO MARCHI - HOTFIX STATICO (sito senza runtime Wix) */

/* ================= TOP NAVIGATION BAR (desktop) ================= */
/* Rimozione linee / bordi orizzontali sopra e sotto le voci del menu e overflow dropdown */
#comp-kzs6lk4v,
#comp-kzs6lk4v *:not(.pm-dropdown-submenu):not(.pm-dropdown-submenu *),
.wixui-dropdown-menu,
.wixui-dropdown-menu *:not(.pm-dropdown-submenu):not(.pm-dropdown-submenu *),
.GR8pzA,
.GR8pzA *:not(.pm-dropdown-submenu):not(.pm-dropdown-submenu *) {
  --menuTotalBordersY: 0px !important;
  --menuTotalBordersX: 0px !important;
  --brw: 0px !important;
  border-top: none !important;
  border-bottom: none !important;
}

#comp-kzs6lk4v,
.wixui-dropdown-menu,
.pScGWV {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  border: none !important;
  box-shadow: none !important;
}

#comp-kzs6lk4v hr,
#comp-kzs6lk4v [data-testid="line"] {
  display: none !important;
}

.GR8pzA .jCARfd,
.wixui-dropdown-menu .jCARfd,
#comp-kzs6lk4v .jCARfd {
  border-top: none !important;
  border-bottom: none !important;
  border: none !important;
}

/* Rimozione voce residua "Altro" / "__more__" e rispettivo wrapper */
#comp-kzs6lk4v__more__,
li[id*="comp-kzs6lk4v__more__"],
[id*="__more__"],
.aNE4sG,
#comp-kzs6lk4vdropWrapper,
[id*="dropWrapper"],
#comp-kzs6lk4vmoreContainer,
.wixui-dropdown-menu__more-container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  opacity: 0 !important;
}

/* Elementi Wix che restavano nascosti in attesa dell'idratazione JS */
[data-motion-enter], [data-motion-part], .ihMbXz, [data-hidden="true"]:not(.pm-mobile-drawer) {
  opacity: 1 !important;
  visibility: visible !important;
}
/* Nessuna animazione di sfondo (zoom/pan/parallax) */
.NgeJ4N, .i5THm9, [data-motion-part*="BG_MEDIA"], [data-motion-part*="BG_MEDIA"] * , wow-image.bgImage, wow-image.bgImage img {
  transform: none !important;
  animation: none !important;
  transition: none !important;
}
html { scroll-behavior: auto; }
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
#SITE_HEADER {
  max-width: 100vw !important;
}

/* ================= HOMEPAGE HERO (scalone) ================= */
#comp-kzsg5uk7 {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  min-height: 85vh !important;
}
#comp-kzsg5uj3 {
  width: 100% !important;
  min-height: 85vh !important;
}
#comp-kzsg5uk7 #bgMedia_comp-kzsg5uk7,
#comp-kzsg5uk7 #bgMedia_comp-kzsg5uk7 wow-image,
#comp-kzsg5uk7 #bgMedia_comp-kzsg5uk7 img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
}
#comp-kzsg5uk7::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.55) 100%);
}
#comp-kzsg5uk7 [data-mesh-id="comp-kzsg5uk7inlineContent"] { position: relative !important; z-index: 2 !important; }
#comp-l0l4ndrf h1, #comp-l0l4ndrf h1 *, #comp-l0l4o0or h1, #comp-l0l4o0or h1 * {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.65), 0 1px 3px rgba(0,0,0,.8) !important;
  white-space: nowrap !important;
}

@media screen and (max-width: 899px) {
  /* I contenitori-griglia Wix non devono accumulare margini (spazi bianchi) */
  [data-mesh-id$="inlineContent"] > [data-mesh-id$="-gridContainer"] { margin: 0 !important; }
  /* Colonne con altezza fissa da desktop: altezza naturale del contenuto */
  .wixui-column-strip__column, .FDI5TK, .Ak0vpt, .CeUMmm,
  .FDI5TK > [data-mesh-id$="inlineContent"] { height: auto !important; min-height: 0 !important; }
  /* Colonne che contengono solo un'immagine di sfondo: riquadro proporzionato */
  .FDI5TK:not(#comp-kzsg5uk7):not(:has([data-mesh-id$="-gridContainer"] > *)) { aspect-ratio: 4 / 3; height: auto !important; }
  .pm-mobile-drawer:not(.pm-open) { visibility: hidden !important; }
  /* Hero a tutto schermo, immagine immobile */
  #comp-m37d3ztm, #comp-kzsg5uj3, #comp-kzsg5uk7 {
    width: 100% !important; max-width: 100vw !important; min-width: 0 !important;
    margin: 0 !important; padding: 0 !important; left: 0 !important;
  }
  [data-mesh-id="comp-m37d3ztminlineContent-gridContainer"],
  [data-mesh-id="Containerc1dmpinlineContent-gridContainer"] { padding: 0 !important; }
  [data-mesh-id="comp-m37d3ztminlineContent-gridContainer"] > *,
  [data-mesh-id="Containerc1dmpinlineContent-gridContainer"] > * { margin: 0 !important; }
  #comp-kzsg5uk7 { height: calc(100svh - 64px) !important; min-height: 520px !important; }
  [data-mesh-id="comp-kzsg5uk7inlineContent"],
  [data-mesh-id="comp-kzsg5uk7inlineContent-gridContainer"] {
    height: 100% !important; min-height: 0 !important;
    display: flex !important; flex-direction: column !important;
    justify-content: center !important; align-items: center !important;
    padding: 0 16px !important;
  }
  #comp-l0l4ndrf h1, #comp-l0l4ndrf h1 * {
    font-size: clamp(26px, 9.2vw, 44px) !important;
    letter-spacing: .08em !important; line-height: 1.15 !important;
  }
  #comp-l0l4o0or h1, #comp-l0l4o0or h1 * {
    font-size: clamp(13px, 4vw, 18px) !important; letter-spacing: .2em !important;
  }

  /* Immagini di contenuto: riquadri proporzionati, niente vuoti */
  .wixui-image, [data-testid="imageElement"], .wixui-image wow-image, [data-testid="imageElement"] wow-image {
    height: auto !important;
  }
  .wixui-image img, [data-testid="imageElement"] img {
    width: 100% !important; height: auto !important;
    aspect-ratio: auto !important; object-fit: contain !important;
    max-height: 78vh !important;
    display: block !important;
  }
  /* Sezioni con altezze fisse da desktop */
  section, .wixui-section, [data-mesh-id$="inlineContent-gridContainer"] { min-height: 0 !important; }
  /* Gallerie: niente sporgenze */
  [data-hook*="gallery"], .pro-gallery, [class*="pro-gallery"], [data-testid*="gallery"] {
    max-width: 100% !important; overflow: hidden !important;
  }
  [class*="pro-gallery"] img { max-width: 100% !important; height: auto !important; }
}
