/* Custom menu styles */
.main-menu { display: block; }

/* === MEDICALIKZ – Footer: banda link NERA === */

/* Colora il wrapper della banda link (vince su trasparent !important del tema) */
body.shop-id-2 #footer-container-main .footer-top,
body.shop-id-2 #footer-container-main .footer-widgets {
  background-color: #000000 !important;
}

/* Colora il blocco Link (qualsiasi variante del nome classe) */
body.shop-id-2 footer .block-links[class*="block-iqitlinksmanager"] {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Evita rientri bianchi nei wrapper interni */
body.shop-id-2 footer .block-links[class*="block-iqitlinksmanager"] .block-content,
body.shop-id-2 footer .block-links[class*="block-iqitlinksmanager"] .row,
body.shop-id-2 footer .block-links[class*="block-iqitlinksmanager"] [class*="col-"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Testi e link nella banda */
body.shop-id-2 footer .block-links[class*="block-iqitlinksmanager"] .block-title { color: #f28500 !important; }
body.shop-id-2 footer .block-links[class*="block-iqitlinksmanager"] a { color: #ffffff !important; }
body.shop-id-2 footer .block-links[class*="block-iqitlinksmanager"] a:hover { color: #ffffff !important; text-decoration: underline; }

/* === KETOZONA – Footer: banda link GRIGIA === */

body.shop-id-1 #footer-container-main .footer-top,
body.shop-id-1 #footer-container-main .footer-widgets {
  background-color: #3c3c3c !important;
}

body.shop-id-1 footer .block-links[class*="block-iqitlinksmanager"] {
  background-color: #3c3c3c !important;
  color: #eeeeee !important;
}

body.shop-id-1 footer .block-links[class*="block-iqitlinksmanager"] .block-content,
body.shop-id-1 footer .block-links[class*="block-iqitlinksmanager"] .row,
body.shop-id-1 footer .block-links[class*="block-iqitlinksmanager"] [class*="col-"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.shop-id-1 footer .block-links[class*="block-iqitlinksmanager"] .block-title { color: #f28500 !important; }
body.shop-id-1 footer .block-links[class*="block-iqitlinksmanager"] a { color: #eeeeee !important; }
body.shop-id-1 footer .block-links[class*="block-iqitlinksmanager"] a:hover { color: #ffffff !important; }
/* ===== MEDICALIKZ — footer NERO “hard override” ===== */

/* Colora interamente il footer (wrapper + righe + colonne) */
body.shop-id-2 footer,
body.shop-id-2 #footer-container-main,
body.shop-id-2 footer .container,
body.shop-id-2 footer .row,
body.shop-id-2 footer [class*="col-"],
body.shop-id-2 footer .block,
body.shop-id-2 footer .block-content {
  background-color: #000000 !important;
}

/* Testi e link chiari nel footer */
body.shop-id-2 footer,
body.shop-id-2 footer a,
body.shop-id-2 footer .block-title {
  color: #ffffff !important;
}
body.shop-id-2 footer .block-title { color: #f28500 !important; } /* titoli arancio come prima */
body.shop-id-2 footer a:hover { color: #ffffff !important; text-decoration: underline; }
/* ===== KETOZONA — footer GRIGIO “hard override” ===== */

body.shop-id-1 footer,
body.shop-id-1 #footer-container-main,
body.shop-id-1 footer .container,
body.shop-id-1 footer .row,
body.shop-id-1 footer [class*="col-"],
body.shop-id-1 footer .block,
body.shop-id-1 footer .block-content {
  background-color: #3c3c3c !important;
}

body.shop-id-1 footer,
body.shop-id-1 footer a,
body.shop-id-1 footer .block-title {
  color: #eeeeee !important;
}
body.shop-id-1 footer .block-title { color: #f28500 !important; }
body.shop-id-1 footer a:hover { color: #ffffff !important; }

/* DEBUG evidente */
body.shop-id-2 footer { outline: 6px solid red !important; }
/* HOTFIX footer band */
body.shop-id-2 #footer-container-main.footer-style-1 > .container > .row + .row {background:#000!important;}
body.shop-id-1 #footer-container-main.footer-style-1 > .container > .row + .row {background:#3c3c3c!important;}
/* Banda link = tutte le row dalla seconda in poi */
body.shop-id-2 #footer-container-main.footer-style-1 > .container > .row:nth-of-type(n+2){
  background:#000 !important;
}
/* testi/link dentro i blocchi link */
body.shop-id-2 #footer-container-main .block-iqitlinksmanager a{color:#fff!important;}
body.shop-id-2 #footer-container-main .block-iqitlinksmanager .block-title{color:#f28500!important;}


/* Hide legacy/fake inputs immediately */
#authentication input#ff_psgdpr,
#authentication input[name="psgdpr"],
#authentication span#ff_psgdpr,
.page-authentication input#ff_psgdpr,
.page-authentication input[name="psgdpr"],
.page-authentication span#ff_psgdpr {
  display: none !important;
}

/* Hide the phantom container if it doesn't contain the real GDPR checkbox */
#authentication .custom-checkbox.label:not(:has(input[name^="psgdpr_consent_checkbox_"])),
.page-authentication .custom-checkbox.label:not(:has(input[name^="psgdpr_consent_checkbox_"])) {
  display: none !important;
}

/* Also hide the entire row that wraps that phantom container */
#authentication .form-group:has(.custom-checkbox.label:not(:has(input[name^="psgdpr_consent_checkbox_"]))),
.page-authentication .form-group:has(.custom-checkbox.label:not(:has(input[name^="psgdpr_consent_checkbox_"]))) {
  display: none !important;
}
/* Nasconde la riga finta GDPR SOLO su medicalikz (shop-id-2) */
body.shop-id-2 #authentication .form-group:has(input#ff_psgdpr),
body.shop-id-2 #authentication .form-group:has(input[name="psgdpr"]),
body.shop-id-2 .page-authentication .form-group:has(input#ff_psgdpr),
body.shop-id-2 .page-authentication .form-group:has(input[name="psgdpr"]) {
  display: none !important;
}


/* disattiva i “finti” before/after fuori dal checkout */
body:not(#checkout) .custom-checkbox label::before,
body:not(#checkout) .custom-checkbox label::after{
  content:none !important;
}

/* Registration JavaScript removed from CSS: invalid here and never executable. */
/* Nasconde la riga finta GDPR SOLO su medicalikz */
body.shop-id-2 #authentication input#ff_psgdpr,
body.shop-id-2 #authentication input[name="psgdpr"],
body.shop-id-2 .page-authentication input#ff_psgdpr,
body.shop-id-2 .page-authentication input[name="psgdpr"] {
  display:none !important;
}

body.shop-id-2 #authentication input#ff_psgdpr,
body.shop-id-2 #authentication input[name="psgdpr"] {
  pointer-events:none !important;
}
/* Evidenzia nel menu la voce con URL '112-calcolatore-massa-grassa-metodo-ketozona' */
nav .nav-bar a[href*="112-calcolatore-massa-grassa-metodo-ketozona"] {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 30px;
  background: #F7E8A0;         /* colore oro chiaro */
  color: #143B3A !important;    /* testo scuro come il tema */
  font-weight: 700;
  text-decoration: none;
}

/* Bordo pulsante attorno alla voce per attirare l'attenzione */
nav .nav-bar a[href*="112-calcolatore-massa-grassa-metodo-ketozona"]::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 30px;
  box-shadow: 0 0 8px rgba(255, 183, 0, 0.6);
  opacity: 0;
  animation: pulse 2s infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* === KZ BIA MENU SPECIAL START === */

/* BIA & Morfologia - voce speciale IQIT MegaMenu */
#cbp-hrmenu a.nav-link[href*="112-calcolatore-massa-grassa-metodo-ketozona"],
#iqitmegamenu-horizontal a.nav-link[href*="112-calcolatore-massa-grassa-metodo-ketozona"] {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  line-height: 32px !important;
  margin-top: 9px !important;
  margin-bottom: 9px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fff7c2 0%, #f1c75b 48%, #c99a25 100%) !important;
  color: #143B3A !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 0 0 1px rgba(255,215,100,.85),
    0 0 14px rgba(255,190,40,.65) !important;
  animation: kz-bia-menu-glow 1.8s ease-in-out infinite !important;
}

/* Testo interno IQIT */
#cbp-hrmenu a.nav-link[href*="112-calcolatore-massa-grassa-metodo-ketozona"] .cbp-tab-title,
#iqitmegamenu-horizontal a.nav-link[href*="112-calcolatore-massa-grassa-metodo-ketozona"] .cbp-tab-title {
  color: #143B3A !important;
  font-weight: 900 !important;
}

/* Hover */
#cbp-hrmenu a.nav-link[href*="112-calcolatore-massa-grassa-metodo-ketozona"]:hover,
#iqitmegamenu-horizontal a.nav-link[href*="112-calcolatore-massa-grassa-metodo-ketozona"]:hover {
  background: linear-gradient(135deg, #fff4a8 0%, #ffd45a 48%, #d89b13 100%) !important;
  color: #143B3A !important;
}

/* Animazione */
@keyframes kz-bia-menu-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.75),
      0 0 0 1px rgba(255,215,100,.85),
      0 0 10px rgba(255,190,40,.45);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.9),
      0 0 0 1px rgba(255,225,120,.95),
      0 0 20px rgba(255,195,45,.9);
  }
}

/* === KZ BIA MENU SPECIAL END === */

/* === KZ BIA FORCE BROAD TEST START === */
html body a[href*="112-calcolatore-massa-grassa"] {
  background: linear-gradient(135deg, #fff7c2 0%, #f1c75b 48%, #c99a25 100%) !important;
  color: #143B3A !important;
  font-weight: 900 !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  box-shadow: 0 0 14px rgba(255,190,40,.75) !important;
  text-shadow: none !important;
}

html body a[href*="112-calcolatore-massa-grassa"] * {
  color: #143B3A !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}
/* === KZ BIA FORCE BROAD TEST END === */

/* ==========================================================
   KZ STALE RED DEBUG CACHE KILL V6.6
   Neutralizes historical cached body::before debug banner.
   ========================================================== */

html body::before {
    content: none !important;
    display: none !important;

    position: static !important;

    width: 0 !important;
    height: 0 !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    visibility: hidden !important;
    opacity: 0 !important;

    pointer-events: none !important;
}

/* === END KZ STALE RED DEBUG CACHE KILL V6.6 === */

