/* ═══════════════════════════════════════════════
   NAPOLI CATEGORY NAVIGATOR  v6
   Screen 1 : Banner(100vh) → Breadcrumb → 2-col grid
   Screen 2 : Breadcrumb → Alternating list (no banner)
   Screen 3 : Banner(100vh) → Breadcrumb → Circle grid
   Screen 4 : Staggered ACF → Breadcrumb → Container → 2×2 products
   Theme     : BLACK
═══════════════════════════════════════════════ */
/* Gotham font - loaded via theme or @font-face */
:root {
  --bg:    #000;
  --surf:  #151515;
  --surf2: #1e1e1e;
  --line:  rgba(255,255,255,0.08);
  --white: #ffffff;
  --grey:  rgba(255,255,255,0.50);
  --muted: rgba(255,255,255,0.28);
  --r:     25px;
  --font:  'Gotham', 'Gothamm', sans-serif;
  --ease:  cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET + BASE ── */
*, *::before, *::after { box-sizing: border-box; }
.napoli-nav-wrapper {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  width: 100%;
  position: relative;
  overflow: clip;            /* clip (not hidden) so sticky breadcrumb still works */
}

/* ════════════════════════════════
   CONTAINER
════════════════════════════════ */
.napoli-container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
}
/* No stray top spacing between the (sticky) breadcrumb and the first content row */
.napoli-breadcrumb + .napoli-container,
.napoli-breadcrumb + .napoli-container > .napoli-grid-2col { margin-top: 0; padding-top: 0; }

/* ════════════════════════════════
   BANNER  (100vh by default via inline style)
   No more fixed 340px — uses JS-driven height
════════════════════════════════ */
.napoli-banner {
  width: 100%;
  overflow: hidden;
  background: var(--surf);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.napoli-banner:empty { display: none; }
.napoli-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;           /* fills whatever height is set inline */
  object-fit: cover;
  object-position: center;
  display: block;
}
/* readability overlay so heading + chevron stay legible on any image */
.napoli-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0.50) 100%);
  pointer-events: none;
  z-index: 1;
}
.napoli-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 22px;
}
.napoli-banner-scroll-down {
  margin-top: 20px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--white);
  line-height: 0;
  display: inline-flex;
  opacity: .9;
  animation: napoliBounce 1.8s var(--ease) infinite;
  transition: opacity .2s, transform .2s;
}
.napoli-banner-scroll-down:hover { opacity: 1; }
.napoli-banner-scroll-down svg { display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
@keyframes napoliBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ════════════════════════════════
   BREADCRUMB
   Lives BELOW the banner inside each view
════════════════════════════════ */
.napoli-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 !important;      /* kill theme margin on <nav> — this is the empty-band/gap source */
  padding: 13px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;          /* stick to top of viewport while scrolling */
  top: 0;
  z-index: 50;
}
.napoli-bc-item {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 20px;
  transition: color .2s;
}
.napoli-bc-item:hover { color: var(--white); }
.napoli-bc-item.active { color: var(--white); font-weight: 700; }
.napoli-bc-sep { color: var(--muted); font-size: 10px; pointer-events: none; padding: 0 1px; }

/* ════════════════════════════════
   VIEWS ENGINE
════════════════════════════════ */
.napoli-views { position: relative; }
.napoli-view {
  display: none;
  opacity: 0;
  transform: translateX(32px);
  padding-bottom: 50px;
}
.napoli-view.active { display: block; opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════
   SCREEN 1 — 2-col grid
══════════════════════════════════════ */
.napoli-section-title {
  font-size: 38px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  padding: 0;
  letter-spacing: .04em;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.napoli-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}
.napoli-card-grid {
  cursor: pointer;
  transition: transform .28s var(--ease);
  display: block;
}
.napoli-card-grid:hover { transform: translateY(-3px); }
.napoli-card-grid:hover .napoli-card-img { opacity: .80; }
.napoli-card-img {
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surf2);
  transition: opacity .28s;
  display: block;
  line-height: 0;
}
.napoli-card-img img {
  width: 100%;
  height: auto;          /* natural height from the uploaded image */
  display: block;
}
.napoli-card-label {
    display: block;
    margin-top: 14px;
    padding-left: 10px;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
  color: var(--white);
}

/* ══════════════════════════════════════
   SCREEN 2 — Alternating list (NO banner)
   Odd: img-left  Even: img-right
══════════════════════════════════════ */
.napoli-alt-list { padding: 0; }
.napoli-alt-item {
  display: flex;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity .2s;
}
.napoli-alt-item:last-child { border-bottom: none; }
.napoli-alt-item:hover { opacity: .80; }
.napoli-alt-item:nth-child(odd)  { flex-direction: row; }
.napoli-alt-item:nth-child(even) { flex-direction: row-reverse; }
.napoli-alt-img {
  flex-shrink: 0;
  width: 185px;
  height: auto;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surf2);
}
.napoli-alt-img img { width:100%; height:auto; display:block; }
.napoli-alt-text { flex:1; display:flex; flex-direction:column; justify-content:flex-end; padding-bottom:4px; }
.napoli-alt-item:nth-child(odd)  .napoli-alt-text { padding-left:20px; padding-right:0; }
.napoli-alt-item:nth-child(even) .napoli-alt-text { padding-left:0; padding-right:20px; }
.napoli-alt-name { font-size:20px; font-weight:700; color:var(--white); margin:0 0 5px; line-height:1.15; }
.napoli-alt-sub  { font-size:13px; font-weight:400; color:var(--grey); margin:0; }

/* ══════════════════════════════════════
   SCREEN 3 — Circle grid (WITH banner)
══════════════════════════════════════ */
.napoli-level2-title {
  font-size:28px; font-weight:700; text-align:center;
  color:var(--white); margin:0; padding:30px 0 4px;
  letter-spacing:-0.01em;
}
.napoli-circle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 58px 14px;
    padding: 24px 0 10px;
}
.napoli-circle-item { display:flex; flex-direction:column; align-items:center; gap:11px; cursor:pointer; transition:transform .28s var(--ease); }
.napoli-circle-item:hover { transform:translateY(-4px); }
.napoli-circle-thumb {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surf2);
    transition: box-shadow .28s;
}
.napoli-circle-item:hover .napoli-circle-thumb { box-shadow:0 0 0 2px rgba(255,255,255,.18); }
.napoli-circle-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.napoli-circle-name {
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    text-align: center;
    line-height: 1.3;
}
/* ══════════════════════════════════════
   SCREEN 4 — Products
   ALL content inside .napoli-container
   Staggered images match screenshot:
     img1 left ~55%, img2 right ~65%, overlap
══════════════════════════════════════ */

/* Staggered zone — lives inside .napoli-container */
.napoli-coll-zone {
  width: 100%;
  padding-top: 28px;
  padding-bottom: 0;
}

.napoli-coll-img1 img { width:100%; height:auto; display:block; object-fit:cover; }
 
.napoli-coll-img2 img { width:100%; height:auto; display:block; object-fit:cover; }

/* Title + products inside container — same as Screen 1/2 */
.napoli-prod-title {
  font-size:26px; font-weight:700; color:var(--white);
  text-align:center; margin:28px 0 20px;
  letter-spacing:-0.01em;
}
.napoli-prod-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
}
.napoli-prod-card {
  text-decoration:none; display:block;
  transition:transform .28s var(--ease);
}
.napoli-prod-card:hover { transform:translateY(-3px); }
.napoli-prod-img-wrap {
  width:100%; aspect-ratio:1/1; border-radius:var(--r);
  background:var(--surf2); overflow:hidden;
}
.napoli-prod-img-wrap img { width:100%; height:100%; object-fit:contain; display:block; padding:10px; }
.napoli-prod-card-name {
        font-size: 22px;
    font-weight: 500;
    color: var(--white);
    text-align: center;
    letter-spacing: 0;
    line-height: 1.3;
    margin-top: 10px;
    position: relative;
}.napoli-prod-card-price { font-size:11px; color:var(--grey); text-align:center; margin-top:2px; }
.napoli-prod-card-price .woocommerce-Price-amount { color:var(--white); font-weight:600; }

/* ── Misc ── */
.napoli-empty { text-align:center; color:var(--grey); padding:50px 20px; font-size:14px; }

/* ── Spinner ── */
/* ── Spinner — fixed so it always covers viewport regardless of scroll ── */
.napoli-spinner {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;           /* fixed, not absolute — always in viewport */
  inset: 0;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;            /* above everything including header */
}
.napoli-spinner.visible { display: flex; }
.napoli-spin-ring { width:40px; height:40px; border:3px solid rgba(255,255,255,.12); border-top-color:#fff; border-radius:50%; animation:nSpin .72s linear infinite; }
@keyframes nSpin { to { transform:rotate(360deg); } }

h3.napoli-prod-title {
    background: linear-gradient(to bottom, #fdc633 0%, #ebb837 35%, #b48e36 52%, #fcd266 75%, #fde29e 100%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


 
.napoli-alt-img {
    width: 50%;
    height: auto;
}

.napoli-alt-item {
    align-items: end;
}

.napoli-alt-img img {
    height: auto;
}

.napoli-alt-name {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 10px;
}

.napoli-alt-sub {
    text-transform: capitalize;
    color: #ffffffd1;
    font-size: 17px;
}

.napoli-alt-text {
    padding-bottom: 30px;
}

div#napoliLevel1List {
    padding-top: 60px;
}
.napoli-alt-item {
    border: unset;
}


 
.napoli-coll-zone {
    padding-top: 50px;
}

 

.napoli-coll-img2 {
     margin-top: 30px;
}

.napoli-prod-title {
    margin-top: 50px;
    font-size: 35px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
}



p.napoli-prod-card-price {
    display: none;
}

.napoli-prod-img-wrap img {
    padding: 0;
}

.napoli-prod-grid {
    gap: 20px 20px;
}

.napoli-prod-card-name::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 3px;
    width: 17px;
    height: 17px;
    background: #fdc633;
}

p.napoli-prod-card-name {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width:767px) {
  .napoli-alt-img { width:145px; height:auto; }
  .napoli-alt-name { font-size:17px; }
  .napoli-circle-thumb { width:82px; height:auto; }
 

.napoli-section-title {
    font-size: 28px;
}

.napoli-grid-2col {
    gap: 20px;
}

.napoli-card-label {
    padding-left: revert-layer;
    font-size: 16px;
    text-align: center;
}
 
div#napoliLevel1List {
    padding-top: 20px;
}


.napoli-alt-name {
    font-size: 20px;
}

.napoli-alt-sub {
    font-size: 14px;
}

.napoli-alt-img img {
    height: auto !important;
    object-fit: initial !important;
    
}

.napoli-alt-img {
    height: auto;
}

.napoli-level2-title {
    padding-top: 40px;
}

.napoli-circle-grid {
    grid-template-columns: 45% 45%;
    justify-content: center;
    align-items: center;
    gap: 30px 20px;
}


.napoli-circle-name {
    font-size: 20px;
}
 

.napoli-coll-zone {
    padding-top: 40px;
}

.napoli-coll-img2 {
    margin-top: 10px;
}

h3.napoli-prod-title {
    font-size: 32px;
}

p.napoli-prod-card-name {
    font-size: 18px;
}
.napoli-alt-img {
        flex: 1;
    }
}

/* ── Search Results Header ── */
.napoli-search-results-head {
  padding-top: 28px;
  text-align: center;
  margin-bottom: 4px;
}
.napoli-search-results-meta {
  font-size: 13px;
  color: var(--grey);
  margin: 0 0 22px;
  line-height: 1.5;
}
.napoli-search-results-meta em { font-style: normal; color: var(--white); font-weight: 600; }


.napoli-alt-sub {
    background: linear-gradient(to bottom, #fdc633 0%, #ebb837 35%, #b48e36 52%, #fcd266 75%, #fde29e 100%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.napoli-circle-thumb {
    width: 100%;
    border-radius: 0;
    height: auto;
}

.napoli-circle-thumb img {
    height: auto !important;
    object-fit: initial !important;
}

div#napoliLevel2Grid {
    column-gap: 20px;
}