/* Shared header/footer for the parent block templates and WooCommerce pages. */
body header.site-header:has(.bp-header-inner){padding:0}
body .bp-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(16px,2.2vw,32px);
  width:min(calc(100% - 72px),1220px);
  min-height:88px;
  margin-inline:auto;
  padding:8px 0;
}
body .bp-header-logo{display:flex;flex:none;align-items:center;width:105px}
body .bp-header-logo img{width:100%;height:auto;max-height:72px;object-fit:contain}
body .bp-header-inner .wp-block-navigation{flex:1;min-width:0}
body .bp-header-inner .wp-block-navigation a{color:#fffaf5;text-decoration:none;font:800 .72rem/1.35 "Manrope",Arial,sans-serif;letter-spacing:.045em;text-transform:uppercase}
body .bp-header-inner .wp-block-navigation a:hover{color:#c9ad76}
body .bp-header-inner a:focus-visible{outline:3px solid #c9ad76;outline-offset:3px}
/* The native overlay retains has-dark-background-color from the parent menu.
   Override that important preset on this panel only, at every viewport. */
body .bp-header-inner .wp-block-navigation__responsive-container.is-menu-open{
  color:var(--bp-ivory,#fffaf5)!important;
  background:var(--bp-navy,#101638)!important;
}
@media(max-width:1800px){
  body .bp-header-inner .wp-block-navigation__responsive-container:not(.is-menu-open){display:none}
  body .bp-header-inner .wp-block-navigation__responsive-container-open{display:flex}
  body .bp-header-inner .wp-block-navigation{flex:0 0 auto;margin-left:auto}
  /* Decorative brand mark inside the existing WordPress navigation dialog. */
  body .bp-header-inner .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:112px;
    height:84px;
    background:url("./logo-balena-pink-bianco-fucsia-trasparente.png") center/contain no-repeat;
    pointer-events:none;
  }
  body .bp-header-inner .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{padding-top:104px}
}
@media(max-width:600px){
  body .bp-header-inner{width:min(calc(100% - 34px),1220px);min-height:70px;gap:12px}
  body .bp-header-logo{width:77px}
  body .bp-header-logo img{max-height:56px}
}

/* The footer template part is shared by editorial and WooCommerce pages. */
body footer.site-footer:has(.bp-footer),
body footer.wp-block-template-part:has(.bp-footer){padding:0}
body .bp-footer{
  padding:clamp(52px,6vw,76px) 0 26px;
  border-top:1px solid rgba(201,173,118,.38);
  color:#c7c9d6;
  background-color:#101638!important;
  background-image:none!important;
  font-family:"Manrope",Arial,sans-serif;
  font-size:.88rem;
  line-height:1.6;
}
body .bp-footer__inner,
body .bp-footer__legal,
body .bp-footer__social,
body .bp-footer__end{width:min(calc(100% - 72px),1220px);margin-inline:auto}
body .bp-footer__inner{display:grid;grid-template-columns:1.15fr .9fr 1.05fr 1fr;gap:clamp(24px,3vw,48px)}
body .bp-footer__brand p{margin:0 0 9px}
body .bp-footer__logo{display:inline-block;margin:-17px 0 8px}
body .bp-footer__logo img{width:140px;height:auto;max-height:106px;object-fit:contain}
body .bp-footer__column h2{
  margin:0 0 16px;
  color:#c9ad76!important;
  font:800 .76rem/1.5 "Manrope",Arial,sans-serif!important;
  letter-spacing:.14em;
  text-transform:uppercase;
}
html body.wp-child-theme-balena-pink-child .bp-footer .bp-footer__column h2{
  color:#c9ad76!important;
  -webkit-text-fill-color:#c9ad76!important;
}
html body.wp-child-theme-balena-pink-child footer:has(.bp-footer){
  background-color:#101638!important;
  background-image:none!important;
}
/* The parent theme draws diagonal light streaks on footer::before.
   The shared Balena Pink footer must match the flat navy Home footer. */
html body.wp-child-theme-balena-pink-child footer.site-footer:has(.bp-footer)::before,
html body.wp-child-theme-balena-pink-child footer.wp-block-template-part:has(.bp-footer)::before,
html body.wp-child-theme-balena-pink-child footer.site-footer:has(.bp-footer)::after,
html body.wp-child-theme-balena-pink-child footer.wp-block-template-part:has(.bp-footer)::after{
  content:none!important;
  display:none!important;
  background:none!important;
  background-image:none!important;
  opacity:0!important;
}
body .bp-footer__column .bp-footer__subheading{margin-top:23px}
body .bp-footer__column p{margin:0 0 12px}
body .bp-footer__column a{display:block;width:fit-content;max-width:100%;padding:2px 0;margin:0 0 9px;overflow-wrap:anywhere}
body .bp-footer a{color:#d0d1dc;text-decoration:none}
body .bp-footer a:hover{color:#c9ad76}
body .bp-footer a:focus-visible{outline:3px solid #c9ad76;outline-offset:3px}
body .bp-footer__legal,
body .bp-footer__social{display:flex;flex-wrap:wrap;gap:10px 25px;padding-top:21px;margin-top:28px;border-top:1px solid rgba(201,173,118,.25)}
body .bp-footer__legal a,
body .bp-footer__social a{display:inline-block;padding:5px 0;font-size:.8rem}
body .bp-footer__social{padding-top:0;margin-top:9px;border:0}
body .bp-footer__end{display:flex;justify-content:space-between;gap:18px;padding-top:22px;margin-top:25px;border-top:1px solid rgba(201,173,118,.25);color:#a9abba;font-size:.74rem}
body .bp-footer__end strong{color:#c9ad76}
@media(max-width:920px){
  body .bp-footer__inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px}
}
@media(max-width:600px){
  body .bp-footer__inner,
  body .bp-footer__legal,
  body .bp-footer__social,
  body .bp-footer__end{width:min(calc(100% - 34px),1220px)}
  body .bp-footer__inner{grid-template-columns:1fr;gap:28px}
  body .bp-footer__end{flex-direction:column}
}
