/*
 Theme Name:   veroghi
 Theme URI:    https://veroghi.com/
 Description:  Use this child theme to extend works.
 Author:       veroghi
 Author URI:   https://veroghi.com/
 Template:     bricks
 Version:      1.1
 Text Domain:  veroghi
*/

/* ============================================================
   Gestisce sticky menu
   ============================================================ */
html {
  scrollbar-gutter: stable;
}

/* Header */
#brx-header {
  z-index: 9999;
  position: relative;
}

#header-row {
  background-color: transparent;
  height: 70px;
  padding: 0 30px !important;
  transition: all 0.3s ease;
}

html[data-state="sticky"] #header-row {
  background-color: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 50px;
}

/* Topbar */
#hp-top-bar {
  transition: all 0.3s ease;
}

html[data-state="sticky"] #hp-top-bar {
  padding: 4px 0 !important;
  font-size: 16px !important;
}

/* Loghi */
#logo-full,
#logo-sticky {
  transition: opacity 0.3s ease;
}

#logo-sticky {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#logo-full[data-state="hidden"] { opacity: 0; }
#logo-sticky[data-state="visible"] { opacity: 1; }

/* Sticky show/hide */
.hide-on-sticky,
.show-on-sticky {
  transition: opacity 0.3s ease;
}

.show-on-sticky {
  opacity: 0;
  pointer-events: none;
}

html[data-state="sticky"] .hide-on-sticky {
  opacity: 0;
  pointer-events: none;
}

html[data-state="sticky"] .show-on-sticky {
  opacity: 1;
  pointer-events: auto;
}

/* Divider menu */
.header-mega-menu-divider {
  transition: opacity 0.3s ease;
}

html[data-state="sticky"] .header-mega-menu-divider {
  opacity: 0;
  pointer-events: none;
}

/* Cart e burger */
.bu-cart-counter-btn-icon {
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
}

html[data-state="sticky"] .bu-cart-counter-btn-icon {
  width: 30px;
  height: 30px;
}

.main-xburgertrigger {
  transition: transform 0.3s ease;
}

html[data-state="sticky"] .main-xburgertrigger {
  transform: scale(0.8);
}

/* Menu container — desktop dropdown */
.header-menu-container {
  margin-top: var(--header-real-height, 90px) !important;
  transition: margin-top 0.3s ease;
}

/* === Mobile ≤1080px === */
@media (max-width: 1080px) {
  #header-row {
    padding: 0 15px !important;
  }

  #logo-full {
    display: none !important;
  }

  #logo-sticky,
  #logo-sticky[data-state="visible"],
  #logo-sticky[data-state="hidden"] {
    opacity: 1 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    transition: transform 0.3s ease;
  }

  html[data-state="sticky"] #logo-sticky {
    transform: scale(0.75) !important;
  }

  .x-offcanvas_inner.x-offcanvas_top {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  /* Il container NON scrolla: fa solo da telaio */
  .header-menu-container {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    position: static !important;
    margin-top: 0 !important;
    padding-top: var(--header-real-height, 90px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  /* Solo il menu scrolla */
  .menu-scroll-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  /* La barra resta in fondo, fuori dallo scroll */
  .menu-sticky-bar {
    flex: 0 0 auto !important;
    margin-top: auto !important;
  }
}
/* ============================================================
   Fine Gestisce sticky menu
   ============================================================ */


/* === TOPBAR SPEDIZIONE === */
#hp-top-bar {
  transition: padding 0.3s ease, font-size 0.3s ease;
}
#hp-top-bar[data-state="sticky"] {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  font-size: 16px !important;
}



/* ============================================================
   Gestisce HP blog & Podcast mobile view
   ============================================================ */
@media (max-width: 800px) {
  .brxe-yiufrm ~ .brxe-yiufrm {
    display: none !important;
  }
  .brxe-zrpocp ~ .brxe-zrpocp {
    display: none !important;
  }
}
/* ============================================================
   Fone Gestisce HP blog & Podcast mobile view
   ============================================================ */



.brxe-woocommerce-account-page {
  text-align: left;
}

.brxe-woocommerce-account-page * {
  margin-left: 0;
  margin-right: unset;
}


/* ============================================================
   Gestisce paginazioni elenco
   ============================================================ */
.brxe-pagination .bricks-pagination ul .page-numbers.current {
  font-weight: 800;
  background: #f5f5f5;
  border: 1px solid #d9d2c0;
  border-radius: 100px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}
/* ============================================================
   Fine gestisce paginazioni elenco
   ============================================================ */


.blinking-text-live {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}
